Exemple #1
0
function td_add_js_typekit()
{
    $td_fonts_js_buffer = stripcslashes(td_util::get_option('td_fonts_js_buffer'));
    if (!empty($td_fonts_js_buffer)) {
        echo $td_fonts_js_buffer;
    }
}
    function render()
    {
        ob_start();
        ?>

        <div class="<?php 
        echo $this->get_module_classes(array("td_mod_mega_menu"));
        ?>
">
            <div class="td-module-image">
                <?php 
        echo $this->get_image('td_218x150');
        ?>
                <?php 
        if (td_util::get_option('tds_category_module_mega_menu') == 'yes') {
            echo $this->get_category();
        }
        ?>
            </div>

            <div class="item-details">
                <?php 
        echo $this->get_title(12);
        ?>
            </div>
        </div>
        <?php 
        return ob_get_clean();
    }
Exemple #3
0
    function render($order_no)
    {
        ob_start();
        ?>

        <div class="<?php 
        echo $this->get_module_classes(array("td-big-grid-post-{$order_no}", "td-big-grid-post", "td-small-thumb"));
        ?>
">
            <?php 
        echo $this->get_image('td_265x198');
        ?>
            <div class="td-meta-info-container">
                <div class="td-meta-align">
                    <div class="td-big-grid-meta">
                        <?php 
        if (td_util::get_option('tds_category_module_mx6') == 'yes') {
            echo $this->get_category();
        }
        ?>
                        <?php 
        echo $this->get_title();
        ?>
                    </div>
                </div>
            </div>

        </div>


        <?php 
        return ob_get_clean();
    }
    function render()
    {
        ob_start();
        ?>

        <div class="td_mod_related_posts">
            <div class="td-module-image">
                <?php 
        echo $this->get_image('td_238x178');
        ?>
                <?php 
        if (td_util::get_option('tds_category_module_1') == 'yes') {
            echo $this->get_category();
        }
        ?>
            </div>
            <div class="item-details">
                <?php 
        echo $this->get_title(25);
        ?>
            </div>
        </div>
        <?php 
        return ob_get_clean();
    }
Exemple #5
0
    function render()
    {
        ob_start();
        ?>

        <div class="<?php 
        echo $this->get_module_classes();
        ?>
">
            <div class="td-module-image">
                <?php 
        echo $this->get_image('td_218x150');
        ?>
                <?php 
        if (td_util::get_option('tds_category_module_mx4') == 'yes') {
            echo $this->get_category();
        }
        ?>
            </div>

            <?php 
        echo $this->get_title();
        ?>

        </div>

        <?php 
        return ob_get_clean();
    }
 /**
  * we have to render the block first in the buffer, to avoid two queries.
  * - IF there are posts, we already have the buffer with the block's content and we don't have to make another query
  * - IF there are no posts, we ignore the buffer and we can also remove the wraps in the child classes of this class
  */
 protected function render_posts_to_buffer()
 {
     // get the global category top posts grid style setting
     $td_grid_style = td_util::get_option('tds_category_td_grid_style');
     $limit = td_api_category_top_posts_style::_helper_get_posts_shown_in_the_loop();
     $block_name = td_api_category_top_posts_style::get_key(get_class($this), 'td_block_name');
     // overwrite the $td_grid_style if the setting for this category was changed
     $td_grid_style_per_category_setting = td_util::get_category_option(td_global::$current_category_obj->cat_ID, 'tdc_category_td_grid_style');
     if ($td_grid_style_per_category_setting != '') {
         $td_grid_style = $td_grid_style_per_category_setting;
     }
     // we have to have a default grid, there seems to be a problem with the grid styles
     if (empty($td_grid_style)) {
         $td_grid_style = 'td-grid-style-1';
     }
     //parameters to filter to for big grid
     $atts_for_big_grid = array('limit' => $limit, 'category_id' => td_global::$current_category_obj->cat_ID, 'sort' => get_query_var('filter_by'), 'td_grid_style' => $td_grid_style);
     //show the big grid
     $block_instance = td_global_blocks::get_instance($block_name);
     $this->rendered_block_buffer = $block_instance->render($atts_for_big_grid);
     $this->rendered_posts_count = $block_instance->td_query->post_count;
     if ($this->rendered_posts_count > 0) {
         td_global::$custom_no_posts_message = false;
     }
     // use class_name($this) to get the id :)
 }
Exemple #7
0
    function render()
    {
        ob_start();
        ?>

        <div class="td_mod_wrap td_mod8 <?php 
        echo $this->get_no_thumb_class();
        ?>
" <?php 
        echo $this->get_item_scope();
        ?>
>
            <?php 
        echo $this->get_image('art-big-1col');
        ?>

            <div class="item-details">
                <?php 
        echo $this->get_title(td_util::get_option('tds_mod8_title_excerpt'));
        ?>
                <div class="meta-info">
                    <?php 
        //echo $this->get_author();
        ?>
                    <?php 
        echo $this->get_date();
        ?>
                    <?php 
        echo $this->get_commentsAndViews();
        ?>
                </div>


                <p><div class="td-post-text-excerpt"><?php 
        echo $this->get_excerpt(td_util::get_option('tds_mod8_content_excerpt'));
        ?>
</div></p>

                <div class="more-link-wrap wpb_button td_read_more clearfix">
                    <a href="<?php 
        echo $this->href;
        ?>
"><?php 
        echo __td('Continue', TD_THEME_NAME);
        ?>
</a>
                </div>


            </div>

            <?php 
        echo $this->get_item_scope_meta();
        ?>
        </div>

        <?php 
        return ob_get_clean();
    }
    function render()
    {
        ob_start();
        ?>

        <div class="<?php 
        echo $this->get_module_classes();
        ?>
" <?php 
        echo $this->get_item_scope();
        ?>
>
            <div class="td-module-image">
                <?php 
        echo $this->get_image('td_324x160');
        ?>
                <?php 
        if (td_util::get_option('tds_category_module_2') == 'yes') {
            echo $this->get_category();
        }
        ?>
            </div>
            <?php 
        echo $this->get_title();
        ?>


            <div class="td-module-meta-info">
                <?php 
        echo $this->get_author();
        ?>
                <?php 
        echo $this->get_date();
        ?>
                <?php 
        echo $this->get_comments();
        ?>
            </div>


            <div class="td-excerpt">
                <?php 
        echo $this->get_excerpt();
        ?>
            </div>

            <?php 
        echo $this->get_quotes_on_blocks();
        ?>

            <?php 
        echo $this->get_item_scope_meta();
        ?>
        </div>

        <?php 
        return ob_get_clean();
    }
Exemple #9
0
    function render()
    {
        ob_start();
        ?>

        <div class="<?php 
        echo $this->get_module_classes();
        ?>
">
            <div class="meta-info-container">
                <?php 
        echo $this->get_image('td_696x385');
        ?>

                <div class="td-module-meta-info">
                    <div class="td-module-meta-holder">
                        <?php 
        echo $this->get_title();
        ?>
                        <?php 
        if (td_util::get_option('tds_category_module_14') == 'yes') {
            echo $this->get_category();
        }
        ?>
                        <?php 
        echo $this->get_author();
        ?>
                        <?php 
        echo $this->get_date();
        ?>
                        <?php 
        echo $this->get_comments();
        ?>
                    </div>
                </div>
            </div>

            <div class="td-excerpt">
                <?php 
        echo $this->get_excerpt();
        ?>

                <div class="td-read-more">
                    <a href="<?php 
        echo $this->href;
        ?>
"><?php 
        echo __td('Read more', TD_THEME_NAME);
        ?>
</a>
                </div>
            </div>

        </div>

        <?php 
        return ob_get_clean();
    }
    function render()
    {
        ob_start();
        ?>

        <div class="<?php 
        echo $this->get_module_classes();
        ?>
" <?php 
        echo $this->get_item_scope();
        ?>
>
            <div class="item-details">
                <?php 
        echo $this->get_title();
        ?>

                <div class="td-module-meta-info">
                    <?php 
        if (td_util::get_option('tds_category_module_13') == 'yes') {
            echo $this->get_category();
        }
        ?>
                    <?php 
        echo $this->get_author();
        ?>
                    <?php 
        echo $this->get_date();
        ?>
                    <?php 
        echo $this->get_comments();
        ?>
                </div>

                <?php 
        echo $this->get_image('td_696x0');
        ?>

                <div class="td-read-more">
                    <a href="<?php 
        echo $this->href;
        ?>
"><?php 
        echo __td('Read more', TD_THEME_NAME);
        ?>
</a>
                </div>
            </div>

            <?php 
        echo $this->get_item_scope_meta();
        ?>
        </div>

        <?php 
        return ob_get_clean();
    }
 function load_setting($name, $append_to_value = '')
 {
     //echo 'rara1';
     $current_customizer_value = td_util::get_option('tds_' . $name);
     if (!empty($current_customizer_value)) {
         $current_customizer_value .= $append_to_value;
     }
     $this->load_setting_raw($name, $current_customizer_value);
 }
Exemple #12
0
 /**
  * add td_fonts_css_buffer from database into the source of the page
  *
  * td_fonts_css_buffer : used to store the css generated for custom font files in the database
  *
  * used in : @see td_css_generator.php
  */
 public static function td_add_fonts_css_buffer()
 {
     $td_fonts_css_buffer = td_util::get_option('td_fonts_css_buffer');
     if (!empty($td_fonts_css_buffer)) {
         return $td_fonts_css_buffer . "\n";
     } else {
         return '';
     }
 }
    function render()
    {
        ob_start();
        ?>

        <div class="<?php 
        echo $this->get_module_classes(array_merge(get_post_class()));
        ?>
" <?php 
        echo $this->get_item_scope();
        ?>
>
            <div class="item-details">
                <?php 
        echo $this->get_title();
        ?>

                <div class="td-module-meta-info">
	                <?php 
        if (td_util::get_option('tds_category_module_15') == 'yes') {
            echo $this->get_category();
        }
        ?>
                    <?php 
        echo $this->get_author();
        ?>
                    <?php 
        echo $this->get_date();
        ?>
                    <?php 
        echo $this->get_comments();
        ?>
                </div>

                <?php 
        echo $this->get_image('td_696x0');
        ?>

	            <div class="td-post-text-content td-post-content">
		            <?php 
        echo $this->get_content();
        ?>
	            </div>
            </div>

            <?php 
        echo $this->get_item_scope_meta();
        ?>
        </div>

        <?php 
        return ob_get_clean();
    }
Exemple #14
0
 function get_comments()
 {
     $buffy = '';
     if (td_util::get_option('tds_p_show_comments') != 'hide') {
         $buffy .= '<div class="td-post-comments"><i class="td-icon-comments"></i>';
         $buffy .= '<a href="' . get_comments_link($this->post->ID) . '">';
         $buffy .= get_comments_number($this->post->ID);
         $buffy .= '</a>';
         $buffy .= '</div>';
     }
     return $buffy;
 }
Exemple #15
0
    function render()
    {
        ob_start();
        ?>

        <div class="<?php 
        echo $this->get_module_classes();
        ?>
" <?php 
        echo $this->get_item_scope();
        ?>
>
            <?php 
        echo $this->get_image('td_218x150');
        ?>

            <div class="item-details">
            <?php 
        echo $this->get_title();
        ?>

                <div class="td-module-meta-info">
                    <?php 
        if (td_util::get_option('tds_category_module_10') == 'yes') {
            echo $this->get_category();
        }
        ?>
                        <?php 
        // echo $this->get_author();
        ?>
                        <?php 
        // echo $this->get_date();
        ?>
                        <?php 
        // echo $this->get_comments();
        ?>
                </div>

                <div class="td-excerpt">
                    <?php 
        echo $this->get_excerpt();
        ?>
                </div>
            </div>

        <?php 
        echo $this->get_item_scope_meta();
        ?>
        </div>

        <?php 
        return ob_get_clean();
    }
    function render()
    {
        ob_start();
        ?>

        <!-- <div class="<?php 
        echo $this->get_module_classes(array("td_mod_related_posts"));
        ?>
">
            <div class="td-module-image">
                <?php 
        echo $this->get_image('td_218x150');
        ?>
                <?php 
        if (td_util::get_option('tds_category_module_related_posts') == 'yes') {
            echo $this->get_category();
        }
        ?>
            </div>
            <div class="item-details">
                <?php 
        echo $this->get_title();
        ?>
            </div>
        </div> -->
        
        <!-- ZA Custom -->
        <div class="<?php 
        echo $this->get_module_classes(array("td_mod_related_posts"));
        ?>
">
            <div class="td-module-image">
                <?php 
        echo $this->get_image('td_218x150');
        ?>
            </div>
            <div class="item-details">
                <?php 
        if (td_util::get_option('tds_category_module_related_posts') == 'yes') {
            echo $this->get_category();
        }
        ?>
                <?php 
        echo $this->get_title();
        ?>
            </div>
        </div>
        <?php 
        return ob_get_clean();
    }
    function get_social_sharing_bottom()
    {
        if (!$this->is_single) {
            return;
        }
        if (td_util::get_option('tds_bottom_social_show') == 'hide' and td_util::get_option('tds_bottom_like_tweet_show') == 'hide') {
            return;
        }
        // used to style the sharing icon to be big on tablet
        $td_no_like = '';
        if (td_util::get_option('tds_bottom_like_tweet_show') != 'hide') {
            $td_no_like = 'td-with-like';
        }
        $buffy = '';
        // @todo single-post-thumbnail appears to not be in used! please check
        $image = wp_get_attachment_image_src(get_post_thumbnail_id($this->post->ID), 'single-post-thumbnail');
        $buffy .= '<div class="td-post-sharing td-post-sharing-bottom ' . $td_no_like . '"><span class="td-post-share-title">' . __td('SHARE', TD_THEME_NAME) . '</span>';
        if (td_util::get_option('tds_bottom_social_show') != 'hide') {
            $twitter_user = td_util::get_option('tds_tweeter_username');
            //default share buttons
            $buffy .= '
            <div class="td-default-sharing">
	            <a class="td-social-sharing-buttons td-social-facebook" href="http://www.facebook.com/sharer.php?u=' . urlencode(esc_url(get_permalink())) . '" onclick="window.open(this.href, \'mywin\',\'left=50,top=50,width=600,height=350,toolbar=0\'); return false;"><i class="td-icon-facebook"></i><div class="td-social-but-text">Facebook</div></a>
	            <a class="td-social-sharing-buttons td-social-twitter" href="https://twitter.com/intent/tweet?text=' . htmlspecialchars(urlencode(html_entity_decode($this->title, ENT_COMPAT, 'UTF-8')), ENT_COMPAT, 'UTF-8') . '&url=' . urlencode(esc_url(get_permalink())) . '&via=' . urlencode($twitter_user ? $twitter_user : get_bloginfo('name')) . '"><i class="td-icon-twitter"></i><div class="td-social-but-text">Twitter</div></a>
	            <a class="td-social-sharing-buttons td-social-google" href="http://plus.google.com/share?url=' . esc_url(get_permalink()) . '" onclick="window.open(this.href, \'mywin\',\'left=50,top=50,width=600,height=350,toolbar=0\'); return false;"><i class="td-icon-googleplus"></i></a>
	            <a class="td-social-sharing-buttons td-social-pinterest" href="http://pinterest.com/pin/create/button/?url=' . esc_url(get_permalink()) . '&amp;media=' . (!empty($image[0]) ? $image[0] : '') . '" onclick="window.open(this.href, \'mywin\',\'left=50,top=50,width=600,height=350,toolbar=0\'); return false;"><i class="td-icon-pinterest"></i></a>
            </div>';
        }
        if (td_util::get_option('tds_bottom_like_tweet_show') != 'hide') {
            //classic share buttons
            $buffy .= '<!-- JiaThis Button BEGIN -->
<div class="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_weixin"></a>
	<a class="jiathis_button_renren"></a>
	<a href="http://www.jiathis.com/share?uid=2037753" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript">';
            $buffy .= "var jiathis_config = {data_track_clickback:'true'};";
            $buffy .= '</script>
<script type="text/javascript" src="http://v3.jiathis.com/code/jia.js?uid=2037753" charset="utf-8"></script>
<!-- JiaThis Button END -->';
        }
        $buffy .= '</div>';
        return $buffy;
    }
    function render()
    {
        ob_start();
        ?>

        <div class="<?php 
        echo $this->get_module_classes();
        ?>
" <?php 
        echo $this->get_item_scope();
        ?>
>
            <div class="meta-info-container">
                <?php 
        echo $this->get_image('td_696x385');
        ?>

                <div class="td-module-meta-info">
                    <?php 
        echo $this->get_title();
        ?>
                    <?php 
        if (td_util::get_option('tds_category_module_mx8') == 'yes') {
            echo $this->get_category();
        }
        ?>
                    <span class="td-author-date">
                        <?php 
        echo $this->get_author();
        ?>
                        <?php 
        echo $this->get_date();
        ?>
                        <?php 
        echo $this->get_comments();
        ?>
                    </span>
                </div>
            </div>

            <?php 
        echo $this->get_item_scope_meta();
        ?>
        </div>

        <?php 
        return ob_get_clean();
    }
Exemple #19
0
    function render()
    {
        ob_start();
        ?>

        <div class="td_mod2 td_mod_wrap <?php 
        echo $this->get_no_thumb_class();
        ?>
" <?php 
        echo $this->get_item_scope();
        ?>
>
            <?php 
        echo $this->get_image('art-big-1col');
        ?>

            <?php 
        echo $this->get_title(td_util::get_option('tds_mod2_title_excerpt'));
        ?>

            <div class="meta-info">
                <?php 
        //echo $this->get_author();
        ?>
                <?php 
        echo $this->get_date();
        ?>
                <?php 
        echo $this->get_commentsAndViews();
        ?>
            </div>

            <div class="td-post-text-excerpt">
                <?php 
        echo $this->get_excerpt(td_util::get_option('tds_mod2_content_excerpt'));
        ?>
            </div>

            <?php 
        echo $this->get_item_scope_meta();
        ?>

        </div>

        <?php 
        return ob_get_clean();
    }
    function render($order_no)
    {
        ob_start();
        ?>

        <div class="<?php 
        echo $this->get_module_classes(array("td-big-grid-post-{$order_no}", "td-big-grid-post", "td-big-thumb"));
        ?>
" <?php 
        echo $this->get_item_scope();
        ?>
>
            <?php 
        echo $this->get_image('td_534x462');
        ?>
            <div class="td-meta-info-container">
                <div class="td-meta-align">
                    <div class="td-big-grid-meta">
                        <?php 
        if (td_util::get_option('tds_category_module_mx5') == 'yes') {
            echo $this->get_category();
        }
        ?>
                        <?php 
        echo $this->get_title();
        ?>
                    </div>
                    <div class="td-module-meta-info">
                        <?php 
        echo $this->get_author();
        ?>
                        <?php 
        echo $this->get_date();
        ?>
                    </div>
                </div>
            </div>

            <?php 
        echo $this->get_item_scope_meta();
        ?>
        </div>

        <?php 
        return ob_get_clean();
    }
 function get_title_sec_item()
 {
     //get the excerpt from panel
     $tds_big_slide_small_image_title_excerpt = td_util::get_option('tds_big_slide_small_image_title_excerpt');
     $buffy = '';
     $buffy .= '<div class="td-sbig-title-wrap">';
     $buffy .= '<a class="noSwipe" itemprop="url" href="' . $this->current_post->href . '" rel="bookmark" title="' . $this->current_post->title_attribute . '">';
     //make the title
     if (intval($tds_big_slide_small_image_title_excerpt) > 0) {
         $buffy .= td_util::excerpt($this->current_post->title, $tds_big_slide_small_image_title_excerpt);
     } else {
         $buffy .= $this->current_post->title;
     }
     $buffy .= '</a>';
     $buffy .= '</div>';
     return $buffy;
 }
 static function hook_td_wp_booster_after_header()
 {
     $page_id = get_queried_object_id();
     //if we are on a page, read the page meta and see if td_unique_articles is set
     if (is_page()) {
         $td_unique_articles = get_post_meta($page_id, 'td_unique_articles', true);
         if (!empty($td_unique_articles['td_unique_articles'])) {
             self::$keep_rendered_posts_ids = true;
             //for new module hook
             self::$unique_articles_enabled = true;
             //for datasource
         }
     }
     if (td_util::get_option('tds_ajax_post_view_count') == 'enabled') {
         self::$keep_rendered_posts_ids = true;
     }
 }
Exemple #23
0
function td_js_generator()
{
    td_js_buffer::add_variable('td_ajax_url', admin_url('admin-ajax.php'));
    td_js_buffer::add_variable('td_get_template_directory_uri', get_template_directory_uri());
    td_js_buffer::add_variable('tds_snap_menu', td_util::get_option('tds_snap_menu'));
    td_js_buffer::add_variable('tds_header_style', td_util::get_option('tds_header_style'));
    td_js_buffer::add_variable('tds_mobile_swipe', td_util::get_option('tds_mobile_swipe'));
    td_js_buffer::add_variable('td_search_url', get_search_link());
    td_js_buffer::add_variable('td_please_wait', str_replace(array('"', "'"), array('`'), __td("Please wait...")));
    td_js_buffer::add_variable('td_email_user_pass_incorrect', str_replace(array('"', "'"), array('`'), __td("User or password incorrect!")));
    td_js_buffer::add_variable('td_email_user_incorrect', str_replace(array('"', "'"), array('`'), __td("Email or username incorrect!")));
    td_js_buffer::add_variable('td_email_incorrect', str_replace(array('"', "'"), array('`'), __td("Email incorrect!")));
    //use for more articles on post pages
    td_js_buffer::add_variable('tds_more_articles_on_post_enable', td_util::get_option('tds_more_articles_on_post_pages_enable'));
    td_js_buffer::add_variable('tds_more_articles_on_post_time_to_wait', td_util::get_option('tds_more_articles_on_post_pages_time_to_wait'));
    td_js_buffer::add_variable('tds_more_articles_on_post_pages_distance_from_top', intval(td_util::get_option('tds_more_articles_on_post_pages_distance_from_top')));
    td_js_buffer::add("\nvar td_blocks = []; //here we store all the items for the current page\n\n//td_block class - each ajax block uses a object of this class for requests\nfunction td_block() {\n    this.id = '';\n    this.block_type = 1; //block type id (1-234 etc)\n    this.atts = '';\n    this.td_cur_cat = '';\n    this.td_column_number = '';\n    this.td_current_page = 1; //\n    this.post_count = 0; //from wp\n    this.found_posts = 0; //from wp\n    this.max_num_pages = 0; //from wp\n    this.is_ajax_running = false;\n    this.header_color = '';\n}\n\n    ");
}
    function render()
    {
        ob_start();
        ?>

        <div class="td_mod_mega_menu">
            <?php 
        echo $this->get_image('td_198x143');
        ?>
            <div class="item-details">
                <?php 
        echo $this->get_title(td_util::get_option('tds_mod3_title_excerpt'));
        ?>
            </div>
        </div>
        <?php 
        return ob_get_clean();
    }
Exemple #25
0
    function render()
    {
        ob_start();
        ?>

        <div class="<?php 
        echo $this->get_module_classes();
        ?>
">

            <div class="item-details">
                <?php 
        echo $this->get_comments();
        ?>
                <?php 
        echo $this->get_title();
        ?>

                <?php 
        if (td_util::get_option('tds_category_module_9') == 'yes') {
            echo $this->get_category();
        }
        ?>

                <div class="td-module-meta-info">
                    <?php 
        echo $this->get_author();
        ?>
                    <?php 
        echo $this->get_date();
        ?>
                </div>

            </div>

	        <?php 
        echo $this->get_quotes_on_blocks();
        ?>

        </div>

        <?php 
        return ob_get_clean();
    }
Exemple #26
0
    function render()
    {
        ob_start();
        ?>

        <div class="td_mod4 td_mod_wrap <?php 
        echo $this->get_no_thumb_class();
        ?>
" <?php 
        echo $this->get_item_scope();
        ?>
>
        <?php 
        echo $this->get_image('art-thumb');
        ?>

        <div class="item-details">
            <?php 
        echo $this->get_title(td_util::get_option('tds_mod4_title_excerpt'));
        ?>

            <div class="meta-info">
                <?php 
        //echo $this->get_author();
        ?>
                <?php 
        echo $this->get_date();
        ?>
                <?php 
        //echo $this->get_commentsAndViews();
        ?>
            </div>

        </div>

        <?php 
        echo $this->get_item_scope_meta();
        ?>
        </div>

        <?php 
        return ob_get_clean();
    }
Exemple #27
0
 function body_class($classes)
 {
     $responsive = td_util::get_option('tds_responsive');
     switch ($responsive) {
         case '980_responsive':
             $classes[] = 'td_980_resp';
             $classes[] = 'td_responsive';
             break;
         case '980':
             $classes[] = 'td_980_not_resp';
             break;
         case '1170':
             $classes[] = 'td_1170_not_resp';
             break;
         default:
             $classes[] = 'td_responsive';
             break;
     }
     return $classes;
 }
Exemple #28
0
    function render()
    {
        ob_start();
        ?>

        <div class="<?php 
        echo $this->get_module_classes(array("td-big-grid-post-0", "td-big-grid-post", "td-big-thumb"));
        ?>
">
            <?php 
        echo $this->get_image('td_741x486');
        ?>
            <div class="td-meta-info-container">
                <div class="td-meta-align">
                    <div class="td-big-grid-meta">
                        <?php 
        if (td_util::get_option('tds_category_module_mx9') == 'yes') {
            echo $this->get_category();
        }
        ?>
                        <?php 
        echo $this->get_title();
        ?>
                    </div>
                    <div class="td-module-meta-info">
                        <?php 
        echo $this->get_author();
        ?>
                        <?php 
        echo $this->get_date();
        ?>
                    </div>
                </div>
            </div>

        </div>

        <?php 
        return ob_get_clean();
    }
Exemple #29
0
    function render()
    {
        ob_start();
        ?>

        <div class="<?php 
        echo $this->get_module_classes();
        ?>
">
            <?php 
        echo $this->get_image('td_356x220');
        ?>

            <div class="td-module-meta-info">
                <?php 
        echo $this->get_title();
        ?>
                <div class="td-editor-date">
                    <?php 
        if (td_util::get_option('tds_category_module_mx1') == 'yes') {
            echo $this->get_category();
        }
        ?>
                    <span class="td-author-date">
                        <?php 
        echo $this->get_author();
        ?>
                        <?php 
        echo $this->get_date();
        ?>
                    </span>
                </div>
            </div>

        </div>

        <?php 
        return ob_get_clean();
    }
Exemple #30
0
    function render()
    {
        ob_start();
        ?>

        <div class="<?php 
        echo $this->get_module_classes();
        ?>
">
            <?php 
        echo $this->get_image('td_324x235');
        ?>

            <div class="td-module-meta-info">
                <?php 
        echo $this->get_title();
        ?>
                <?php 
        if (td_util::get_option('tds_category_module_mx3') == 'yes') {
            echo $this->get_category();
        }
        ?>
                <?php 
        echo $this->get_author();
        ?>
                <?php 
        echo $this->get_date();
        ?>
                <?php 
        echo $this->get_comments();
        ?>
            </div>

        </div>

        <?php 
        return ob_get_clean();
    }