-
Notifications
You must be signed in to change notification settings - Fork 1
/
index_old.php
62 lines (58 loc) · 2.21 KB
/
index_old.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
/**
* Content
*
* Standard loop for the content
*
* @package WordPress
* @subpackage Foundation, for WordPress
* @since Foundation, for WordPress 1.0
*/
get_header(); ?>
<div class="row">
<!-- Main Content -->
<div class="large-12 columns" role="content">
<!-- <ul data-orbit>
<?php
$args=array(
'post_type' => 'post',
'post_status' => 'publish',
'orderby' => 'rand'
);
$the_query = new WP_Query($args);
if($the_query->have_posts()) : while ( $the_query->have_posts() ) : $the_query->the_post();
$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large');
echo '<li class="post-box large-12 columns" style="background:#' . get_post_meta($post->ID, '_digitalsign_bgcolor', true) . ';">',
'<div class="row">',
'<p class="large-7 columns copy end" style="color:#' . get_post_meta($post->ID, '_digitalsign_pcolor', true) . ';">' . do_shortcode( get_the_content() ) . '</p>',
'</div>',
'</li>';
endwhile;
endif;
wp_reset_query();
?>
</ul> -->
<div class="fade" style="height:880px; width:1920px;">
<?php
$args=array(
'post_type' => 'post',
'post_status' => 'publish',
'orderby' => 'rand'
);
$the_query = new WP_Query($args);
if($the_query->have_posts()) : while ( $the_query->have_posts() ) : $the_query->the_post();
$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large');
$format = get_post_format();
get_template_part( 'format', $format );
echo '<div style="background:#' . get_post_meta($post->ID, '_digitalsign_bgcolor', true) . ';">',
'<p "class=' . post_class() . '; style="color:#' . get_post_meta($post->ID, '_digitalsign_pcolor', true) . ';">' . do_shortcode( get_the_content() ) . '</p>',
'</div>';
endwhile;
endif;
wp_reset_query();
?>
</div>
</div>
</div>
<!-- End Main Content -->
<?php get_footer(); ?>