示例#1
0
</h1>
			<?php 
} else {
    ?>
				<h3 class="gdlr-blog-title"><a href="<?php 
    echo get_permalink();
    ?>
"><?php 
    the_title();
    ?>
</a></h3>
			<?php 
}
?>
			<div class="clear"></div>
		</header><!-- entry-header -->

		<?php 
if ($gdlr_post_settings['excerpt'] < 0) {
    echo '<div class="gdlr-blog-content">';
    echo gdlr_content_filter($gdlr_post_settings['content'], true);
    wp_link_pages(array('before' => '<div class="page-links"><span class="page-links-title">' . __('Pages:', 'gdlr_translate') . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>'));
    echo '</div>';
} else {
    if ($gdlr_post_settings['excerpt'] != 0) {
        echo '<div class="gdlr-blog-content">' . get_the_excerpt() . '</div>';
    }
}
?>
	</div>
</article><!-- #post -->
if (is_single()) {
    echo gdlr_get_blog_info(array('author', 'date', 'category', 'comment'));
}
// blog title
$blog_link = empty($post_format_data) ? get_the_title() : $post_format_data;
if (is_single()) {
    echo '<h1 class="gdlr-blog-title"><a href="' . $blog_link . '" >' . get_the_title() . '</a></h1>';
} else {
    echo '<h3 class="gdlr-blog-title"><a href="' . $blog_link . '" >' . get_the_title() . '</a></h3>';
}
// print blog information for widget style
if (!is_single() && !empty($gdlr_post_settings['blog-info-widget'])) {
    echo gdlr_get_blog_info($gdlr_post_settings['blog-info']);
}
?>
		<div class="clear"></div>	
	</header>
	<?php 
if (is_single() || $gdlr_post_settings['excerpt'] < 0) {
    echo '<div class="gdlr-blog-content">';
    echo gdlr_content_filter($content, true);
    wp_link_pages(array('before' => '<div class="page-links"><span class="page-links-title">' . __('Pages:', 'gdlr_translate') . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>'));
    echo '</div>';
} else {
    if ($gdlr_post_settings['excerpt'] > 0) {
        echo '<div class="gdlr-blog-content">' . get_the_excerpt() . '</div>';
    }
}
?>
	
</article>
 function gdlr_get_carousel_personnel_item($settings)
 {
     $item_id = empty($settings['page-item-id']) ? '' : ' id="' . $settings['page-item-id'] . '" ';
     global $gdlr_spaces;
     $margin = !empty($settings['margin-bottom']) && $settings['margin-bottom'] != $gdlr_spaces['bottom-item'] ? 'margin-bottom: ' . $settings['margin-bottom'] . ';' : '';
     $margin_style = !empty($margin) ? ' style="' . $margin . '" ' : '';
     $settings['personnel'] = empty($settings['personnel']) ? array() : $settings['personnel'];
     $list = is_array($settings['personnel']) ? $settings['personnel'] : json_decode($settings['personnel'], true);
     $ret = '<div class="gdlr-personnel-item-wrapper" ' . $item_id . $margin_style . '>';
     $settings['title-type'] = empty($settings['title-type']) ? 'none' : $settings['title-type'];
     $settings['title'] = empty($settings['title']) ? '' : $settings['title'];
     $settings['caption'] = empty($settings['caption']) ? '' : $settings['caption'];
     $settings['icon'] = empty($settings['icon']) ? '' : $settings['icon'];
     $ret .= gdlr_get_item_title(array('title' => $settings['title'], 'caption' => $settings['caption'], 'icon' => $settings['icon'], 'type' => $settings['title-type'], 'carousel' => true, 'additional_class' => 'gdlr-nav-container'));
     $ret .= '<div class="gdlr-item gdlr-personnel-item carousel ' . $settings['personnel-style'] . '">';
     $ret .= '<div class="gdlr-ux gdlr-personnel-ux">';
     $ret .= '<div class="flexslider" data-type="carousel" data-nav-container="gdlr-personnel-item" ';
     $ret .= 'data-columns="' . $settings['personnel-columns'] . '" >';
     $ret .= '<ul class="slides" >';
     foreach ($list as $tab) {
         $ret .= '<li class="personnel-item">';
         if ($settings['personnel-style'] == 'round-style') {
             $ret .= '<div class="personnel-author-image" >';
             $ret .= gdlr_get_image($tab['gdl-tab-author-image'], $settings['thumbnail-size']);
             $ret .= '</div>';
         }
         if ($settings['personnel-style'] != 'plain-style') {
             // hide this in plain style
             $ret .= '<div class="personnel-item-inner gdlr-skin-box">';
         }
         if ($settings['personnel-style'] != 'round-style') {
             $ret .= '<div class="personnel-author-image gdlr-skin-border" >';
             $ret .= gdlr_get_image($tab['gdl-tab-author-image'], $settings['thumbnail-size']);
             $ret .= '</div>';
         }
         $ret .= '<div class="personnel-info">';
         if (!empty($tab['gdl-tab-title'])) {
             $ret .= '<div class="personnel-author gdlr-skin-title">' . gdlr_text_filter($tab['gdl-tab-title']) . '</div>';
         }
         if (!empty($tab['gdl-tab-position'])) {
             $ret .= '<div class="personnel-position gdlr-skin-info">' . gdlr_text_filter($tab['gdl-tab-position']) . '</div>';
         }
         $ret .= '</div>';
         // personnel-info
         $ret .= '<div class="personnel-content gdlr-skin-content">' . gdlr_content_filter($tab['gdl-tab-content']) . '</div>';
         if (!empty($tab['gdl-tab-social-list'])) {
             $ret .= '<div class="personnel-social">';
             $ret .= gdlr_text_filter($tab['gdl-tab-social-list']);
             $ret .= '</div>';
         }
         if ($settings['personnel-style'] != 'plain-style') {
             // hide this in plain style
             $ret .= '</div>';
             // personnel-item-inner
         }
         $ret .= '</li>';
     }
     $ret .= '</ul>';
     $ret .= '</div>';
     // flexslider
     $ret .= '</div>';
     // gdlr-ux
     $ret .= '</div>';
     // gdlr-personnel-item
     $ret .= '</div>';
     // gdlr-personnel-item-wrapper
     return $ret;
 }
<?php

while (have_posts()) {
    the_post();
    $content = gdlr_content_filter(get_the_content(), true);
    if (!empty($content)) {
        echo $content;
    }
    ?>
          <div id="document-section">
						<div id="document-sort">
              <div class="inner">
							<?php 
    $full_list_args = array('post_type' => 'post', 'orderby' => 'title', 'order' => 'asc', 'posts_per_page' => 15, 'paged' => $paged, 'tax_query' => array(array('taxonomy' => 'category', 'field' => 'slug', 'terms' => 'all-businesses')));
    $full_list_query = new WP_Query($full_list_args);
    global $wp_query;
    global $paged;
    if ($full_list_query->have_posts()) {
        ?>
                    <div class="list">
											<h3>Applicable to All Businesses</h3>
                    <?php 
        while ($full_list_query->have_posts()) {
            $full_list_query->the_post();
            $pdf = rwmb_meta('business_pdf');
            $link = rwmb_meta('business_link');
            $postid = get_the_ID();
            ?>
<div class="document-row group">
                       <div class="list nine columns">
                         <a href="<?php 
    if (preg_match('#^<blockquote[\\s\\S]+</blockquote>#', $content, $match)) {
        $post_format_data = gdlr_content_filter($match[0]);
        $content = substr($content, strlen($match[0]));
    }
}
?>
<article id="post-<?php 
the_ID();
?>
" <?php 
post_class();
?>
>
	<div class="gdlr-blog-content">
		<div class="gdlr-top-quote">
			<?php 
echo $post_format_data;
?>
		</div>
		<div class="gdlr-quote-author">
		<?php 
if (is_single() || $gdlr_post_settings['excerpt'] < 0) {
    echo gdlr_content_filter($content, true);
} else {
    echo gdlr_content_filter($content);
}
?>
	
		</div>
	</div>
</article><!-- #post -->
<?php

/**
 * The template for displaying posts in the Aside post format
 */
if (!is_single()) {
    global $gdlr_post_settings;
}
?>
<article id="post-<?php 
the_ID();
?>
" <?php 
post_class();
?>
>
	<div class="gdlr-blog-content">
		<?php 
if (is_single() || $gdlr_post_settings['excerpt'] < 0) {
    echo gdlr_content_filter(get_the_content(__('Read More', 'gdlr_translate')), true);
} else {
    echo gdlr_content_filter(get_the_content(__('Read More', 'gdlr_translate')));
}
?>
	</div>
</article>
						<!-- biography -->
						<div class="gdlr-soccer-tab-content" data-tab="biography">
							<?php 
if (function_exists('gdlr_content_filter')) {
    echo gdlr_content_filter($player_options['biography']['biography']);
} else {
    echo do_shortcode($player_options['biography']['biography']);
}
?>
						</div>
						
						<!-- gallery -->
						<div class="gdlr-soccer-tab-content" data-tab="gallery">
							<?php 
if (function_exists('gdlr_content_filter')) {
    echo gdlr_content_filter($player_options['gallery']['player-gallery']);
} else {
    echo do_shortcode($player_options['gallery']['player-gallery']);
}
?>
						</div>
					</div>
				</div>
				<?php 
get_sidebar('left');
?>
				<div class="clear"></div>
			</div>
			<?php 
get_sidebar('right');
?>
 function gdlr_get_cause_full($query, $thumbnail_size, $excerpt)
 {
     global $post;
     $ret = '';
     while ($query->have_posts()) {
         $query->the_post();
         $ret .= '<div class="gdlr-item gdlr-cause-item gdlr-cause-full">';
         $ret .= '<div class="gdlr-ux gdlr-cause-full-ux">';
         $cause_option = json_decode(gdlr_decode_preventslashes(get_post_meta($post->ID, 'post-option', true)), true);
         $ret .= '<div class="gdlr-cause-thumbnail-wrapper">';
         $ret .= gdlr_get_cause_thumbnail($thumbnail_size);
         $ret .= '</div>';
         // cause-thumbnail
         $ret .= '<div class="gdlr-cause-info-wrapper" >';
         $ret .= gdlr_cause_donation_button($cause_option);
         $ret .= gdlr_get_cause_info(array('date', 'category'));
         $ret .= '</div>';
         $ret .= '<div class="cause-content-wrapper">';
         $ret .= '<h3 class="cause-title"><a href="' . get_permalink() . '" >' . get_the_title() . '</a></h3>';
         $ret .= gdlr_cause_donation_amount($cause_option['goal-of-donation'], $cause_option['current-funding']);
         if ($excerpt == '-1') {
             $ret .= '<div class="cause-content">' . gdlr_content_filter(get_the_content()) . '</div>';
         } else {
             if (!empty($excerpt)) {
                 $ret .= '<div class="cause-content">' . get_the_excerpt() . '</div>';
             }
         }
         $ret .= '</div>';
         $ret .= '<div class="clear"></div>';
         $ret .= '</div>';
         // gdlr-ux
         $ret .= '</div>';
         // gdlr-item
     }
     wp_reset_postdata();
     return $ret;
 }
	<!-- start content -->
	<div class="with-sidebar-wrapper">
		<div class="with-sidebar-container container">
			<div class="with-sidebar-left <?php 
echo $gdlr_sidebar['outer'];
?>
 columns">
				<div class="with-sidebar-content <?php 
echo $gdlr_sidebar['center'];
?>
 columns">
					<div class="gdlr-soccer-single-fixture-result gdlr-item gdlr-item-start-content" >
						<?php 
echo gdlr_soccer_get_match_thumbnail();
if (function_exists('gdlr_content_filter')) {
    echo gdlr_content_filter($match_options['match-report']);
} else {
    echo do_shortcode($match_options['match-report']);
}
?>
					</div>
				</div>
				<?php 
get_sidebar('left');
?>
				<div class="clear"></div>
			</div>
			<?php 
get_sidebar('right');
?>
			<div class="clear"></div>