Esempio n. 1
0
                      <?php 
                    }
                }
                ?>
                        <div class="text">
                            <h2 class="cs-post-title">
                                <a href="<?php 
                the_permalink();
                ?>
"><?php 
                the_title();
                ?>
</a>
                            </h2>
                           	<p><?php 
                cs_get_the_excerpt($cs_node->cs_event_excerpt, false);
                ?>
</p>
                            <ul class="post-options">
                                <li>
                                    <i class="fa fa-calendar"></i>
                                    <time datetime="2013-12-04"><?php 
                echo date_i18n(get_option('date_format'), strtotime($event_from_date));
                ?>
,</time>
                                </li>
                                <?php 
                if ($cs_node->cs_event_time == "Yes") {
                    $to = '-';
                    ?>
                                        <?php 
Esempio n. 2
0
                      <div class="blog_text webkit">
                              <div class="text">
                                  <h2 class="heading-color cs-post-title"><a href="<?php 
        the_permalink();
        ?>
" class="cs-colrhvr"><?php 
        the_title();
        ?>
</a></h2>
                              </div>
                              <?php 
        cs_posted_on();
        ?>
 
                          <p><?php 
        echo cs_get_the_excerpt($default_excerpt_length, true);
        ?>
</p>
                      </div>
                     <!-- Text End -->
                  </article>
						
                <?php 
    }
    // If no content, include the "No posts found" template.
} else {
    fnc_no_result_found();
}
?>
                  
        		</div>
    function cs_post_slider($cs_slider_blog_cat, $blog_no_posts)
    {
        global $post, $cs_theme_option;
        if (empty($_GET['page_id_all'])) {
            $_GET['page_id_all'] = 1;
        }
        $args = array('posts_per_page' => "{$blog_no_posts}", 'paged' => $_GET['page_id_all'], 'category_name' => "{$cs_slider_blog_cat}", 'order' => "DESC");
        $custom_query = new WP_Query($args);
        $post_count = $custom_query->post_count;
        if ($custom_query->have_posts()) {
            $slider_pagination = array();
            echo '<div id="sliderbanner">';
            echo '<div class="cycle-slideshow" 
								data-cycle-fx=fade
								data-cycle-timeout=3000
								data-cycle-auto-height=container
								data-cycle-slides="article"
								
								data-cycle-random=false
								data-cycle-pager="#banner-pager"
								data-cycle-pager-template="">';
            while ($custom_query->have_posts()) {
                $custom_query->the_post();
                $image_url_full = cs_get_post_img_src($post->ID, '', '');
                if ($image_url_full != '') {
                    $slider_pagination[] = get_the_title();
                    ?>
									<article class="<?php 
                    echo $post->ID;
                    ?>
">
                                        <?php 
                    if ($image_url_full != '') {
                        ?>
<img src="<?php 
                        echo $image_url_full;
                        ?>
" alt=""><?php 
                    }
                    ?>
                                               <div class="caption">
                                                	<h2><?php 
                    the_title();
                    ?>
</h2>
                                               		<p><?php 
                    cs_get_the_excerpt('113', false);
                    ?>
</p>
                                                	<a href="<?php 
                    the_permalink();
                    ?>
" class="btn cs-bgcolrhvr"><?php 
                    if ($cs_theme_option['trans_switcher'] == "on") {
                        _e('Continue Reading', 'WeStand');
                    } else {
                        echo $cs_theme_option['trans_read_more'];
                    }
                    ?>
</a>
                                               </div> 
                                    </article>
                                <?php 
                }
            }
            echo '</div>';
            echo '</div>';
            if (isset($cs_theme_option['show_slider_pagination']) && $cs_theme_option['show_slider_pagination'] == 'on') {
                $pagination_no = 0;
                echo '<div id="sliderpagination">
				<div class="container">
					<ul id="banner-pager">';
                foreach ($slider_pagination as $slider) {
                    $pagination_no++;
                    $slider_title = substr($slider, 0, 30);
                    if (strlen($slider) > 30) {
                        $slider_title .= "...";
                    }
                    echo '<li>
											<div class="pager-desc">
												<span class="cs-number">' . str_pad($pagination_no, 2, "0", STR_PAD_LEFT) . '</span>
												<span class="cs-desc">' . $slider_title . '</span>
											</div>
										</li>';
                }
                echo '</ul>
				</div>
			</div>';
            }
            cs_cycleslider_script();
        }
        wp_reset_query();
    }
Esempio n. 4
0
                                <div class="text">
                                        <h3><a href="<?php 
        the_permalink();
        ?>
" class="cs-colrhvr"><?php 
        the_title();
        ?>
</a></h3>
                                        <?php 
        if ($cs_xmlObject_team->var_cp_expertise != '') {
            echo '<span class="cs-designation">' . $cs_xmlObject_team->var_cp_expertise . '</span>';
        }
        ?>
                                        
                                            <p><?php 
        cs_get_the_excerpt($cs_node->cs_team_excerpt, false);
        ?>
</p>
                                    
                                        <div class="followus">
                                            <?php 
        if ($cs_xmlObject_team->facebook != '') {
            ?>
<a href="<?php 
            echo $cs_xmlObject_team->facebook;
            ?>
" target="_blank"><i class="fa fa-facebook-square"></i></a><?php 
        }
        ?>
                                            <?php 
        if ($cs_xmlObject_team->twitter != '') {
Esempio n. 5
0
                                                                                     <?php 
                if (function_exists('cs_get_course_reviews')) {
                    cs_get_course_reviews($reviews_count, $var_cp_rating);
                }
                if (function_exists('cs_get_course_instructor')) {
                    cs_get_course_instructor($cs_xmlObject);
                }
                ?>
                                                                                 </ul>
                                                                               </div>
                                                                        </div>
                                                                     </div>
                                                                     <div class="cs-peragraph">
                                                                          <p><?php 
                if (function_exists('cs_get_the_excerpt')) {
                    echo cs_get_the_excerpt('180', false, '');
                }
                ?>
</p>
                                                                      </div>
                                                                      <div class="cs-cat-list">
                                                                        <ul>
                                                                            <?php 
                if (function_exists('cs_get_course_members')) {
                    cs_get_course_members($course_post_id);
                }
                if (function_exists('cs_get_course_lessons')) {
                    cs_get_course_lessons($cs_xmlObject);
                }
                ?>
                                                                        </ul>
Esempio n. 6
0
            <div class="text">
            	<h2 class="cs-post-title"><a href="<?php 
    the_permalink();
    ?>
" class="cs-colrhvr"><?php 
    echo substr(get_the_title(), 0, 43);
    if (strlen(get_the_title()) > 43) {
        echo '...';
    }
    ?>
</a></h2>
            	<?php 
    if (isset($cs_node->cs_cause_excerpt) && $cs_node->cs_cause_excerpt > 0) {
        ?>
                	<p><?php 
        cs_get_the_excerpt($cs_node->cs_cause_excerpt, false);
        ?>
</p>
                 <?php 
    }
    ?>
                <div class="progress-wrap">
                    <div class="progress-bar-charity" data-loadbar="<?php 
    echo round($percentage_amount);
    ?>
" data-loadbar-text="<?php 
    echo round($percentage_amount);
    ?>
%">
                        <div class="cs-bgcolr"></div>
                    </div>
Esempio n. 7
0
                                </div>
                                <div class="text">
                                    <h2 class="cs-post-title">
                                        <a href="<?php 
            the_permalink();
            ?>
" class="cs-colrhvr"><?php 
            the_title();
            ?>
</a>
                                    </h2>
                                     <?php 
            if ($cs_node->cs_blog_description == "yes") {
                ?>
                                            <p><?php 
                cs_get_the_excerpt($cs_node->cs_blog_excerpt, false);
                ?>
</p>
                                    <?php 
            }
            ?>
                                    <div class="cs-blog-panel">
                                        <ul class="post-options">
                                            <?php 
            cs_featured();
            ?>
                                            <li><i class="fa fa-user"></i><?php 
            printf(__('%s', 'WeStand'), '<a href="' . get_author_posts_url(get_the_author_meta('ID')) . '" >' . get_the_author() . '</a>');
            ?>
</li>
                                            <?php