Ejemplo n.º 1
0
                $T20_d_2 = new T20_d_2($post);
                switch ($tt_column_number) {
                    case '1':
                        $buffy .= $T20_d_2->render($post);
                        break;
                    case '2':
                        $buffy .= $T20_d_2->render($post);
                        break;
                    case '3':
                        $buffy .= $T20_d_2->render($post);
                        break;
                }
                //current column
                if ($tt_current_column == $tt_column_number) {
                    $tt_current_column = 1;
                } else {
                    $tt_current_column++;
                }
                $tt_post_count++;
            }
        }
        $buffy .= $tt_block_layout->close_all_tags();
        return $buffy;
    }
    function get_map()
    {
        return array("name" => __("Carousel Posts", TT_THEME_NAME), "base" => "tt_block4", "class" => "tt_block4", "controls" => "full", "category" => __('Blocks', TT_THEME_NAME), 'icon' => 'icon-pagebuilder-block4', "params" => array(array("param_name" => "category_id", "admin_label" => true, "type" => "dropdown", "value" => tt_get_category2id_array(), "heading" => __("Category filter:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "category_ids", "type" => "textfield", "value" => '', "heading" => __("Multiple categories filter:", TT_THEME_NAME), "description" => "To filter multiple categories, enter here the category IDs separated by commas (example: 13,23,18)", "holder" => "div", "class" => ""), array("param_name" => "tag_slug", "type" => "textfield", "value" => '', "heading" => __("Filter by tag slug:", TT_THEME_NAME), "holder" => "div", "class" => ""), array("param_name" => "limit", "type" => "textfield", "value" => __("9", TT_THEME_NAME), "heading" => __("Limit post number:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "sort", "type" => "dropdown", "value" => array('- Latest -' => '', 'Popular' => 'popular'), "heading" => __("Sort order:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "custom_title", "type" => "textfield", "value" => "", "heading" => __("Optional - custom title for this block:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "custom_url", "type" => "textfield", "value" => "", "heading" => __("Optional - custom url for this block (when the module title is clicked):", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "hide_title", "type" => "dropdown", "value" => array('- Show title -' => '', 'Hide title' => 'hide_title'), "heading" => __("Hide block title:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => "")));
    }
}
tt_global_blocks::add_instance('Block 4', new T20_d_4());
Ejemplo n.º 2
0
        $tt_post_count = 0;
        // the number of posts rendered
        $tt_current_column = 1;
        //the current column
        if (!empty($posts)) {
            foreach ($posts as $post) {
                $T20_slider_22 = new T20_slider_22($post);
                switch ($tt_column_number) {
                    case '1':
                        $buffy .= $T20_slider_22->render($post);
                        break;
                }
                //current column
                if ($tt_current_column == $tt_column_number) {
                    $tt_current_column = 1;
                } else {
                    $tt_current_column++;
                }
                $tt_post_count++;
            }
        }
        $buffy .= $tt_block_layout->close_all_tags();
        return $buffy;
    }
    function get_map()
    {
        return array("name" => __("Slideshow 2", TT_THEME_NAME), "base" => "tt_block7", "class" => "tt_block7", "controls" => "full", "category" => __('Blocks', TT_THEME_NAME), 'icon' => 'icon-pagebuilder-block7', "params" => array(array("param_name" => "category_id", "admin_label" => true, "type" => "dropdown", "value" => tt_get_category2id_array(), "heading" => __("Category filter:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "category_ids", "type" => "textfield", "value" => '', "heading" => __("Multiple categories filter:", TT_THEME_NAME), "description" => "To filter multiple categories, enter here the category IDs separated by commas (example: 13,23,18)", "holder" => "div", "class" => ""), array("param_name" => "tag_slug", "type" => "textfield", "value" => '', "heading" => __("Filter by tag slug:", TT_THEME_NAME), "holder" => "div", "class" => ""), array("param_name" => "limit", "type" => "textfield", "value" => __("5", TT_THEME_NAME), "heading" => __("Limit post number:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "sort", "type" => "dropdown", "value" => array('- Latest -' => '', 'Popular' => 'popular'), "heading" => __("Sort order:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => "")));
    }
}
tt_global_blocks::add_instance('Block 7', new T20_slider2_7());
Ejemplo n.º 3
0
        $tt_post_count = 0;
        // the number of posts rendered
        if (!empty($posts)) {
            foreach ($posts as $post) {
                $T20_first_c = new T20_first_c($post);
                $T20_more_c = new T20_more_c($post);
                switch ($tt_column_number) {
                    case '1':
                        if ($tt_post_count == 0) {
                            $buffy .= '<div class="grid_6 alpha first_post">';
                            $buffy .= $T20_first_c->render();
                            $buffy .= '</div><div class="grid_6 omega introfxo more_posts">';
                        } else {
                            $buffy .= $T20_more_c->render();
                        }
                        break;
                }
                $tt_post_count++;
            }
            $buffy .= '</div>';
        }
        $buffy .= $tt_block_layout->close_all_tags();
        return $buffy;
    }
    function get_map()
    {
        return array("name" => __("News In Picture", TT_THEME_NAME), "base" => "tt_block3", "class" => "tt_block3", "controls" => "full", "category" => __('Blocks', TT_THEME_NAME), 'icon' => 'icon-pagebuilder-block3', "params" => array(array("param_name" => "category_id", "admin_label" => true, "type" => "dropdown", "value" => tt_get_category2id_array(), "heading" => __("Category filter:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "category_ids", "type" => "textfield", "value" => '', "heading" => __("Multiple categories filter:", TT_THEME_NAME), "description" => "To filter multiple categories, enter here the category IDs separated by commas (example: 13,23,18)", "holder" => "div", "class" => ""), array("param_name" => "tag_slug", "type" => "textfield", "value" => '', "heading" => __("Filter by tag slug:", TT_THEME_NAME), "holder" => "div", "class" => ""), array("param_name" => "limit", "type" => "textfield", "value" => __("10", TT_THEME_NAME), "heading" => __("Limit post number:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "sort", "type" => "dropdown", "value" => array('- Latest -' => '', 'Popular' => 'popular'), "heading" => __("Sort order:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "custom_title", "type" => "textfield", "value" => "", "heading" => __("Optional - custom title for this block:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "custom_url", "type" => "textfield", "value" => "", "heading" => __("Optional - custom url for this block (when the module title is clicked):", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "hide_title", "type" => "dropdown", "value" => array('- Show title -' => '', 'Hide title' => 'hide_title'), "heading" => __("Hide block title:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => "")));
    }
}
tt_global_blocks::add_instance('Block 3', new T20_c_3());
Ejemplo n.º 4
0
                    case '1':
                        if ($tt_post_count == 0) {
                            if (is_rtl()) {
                                $first_rtl = 'grid_6 omega righter';
                                $sec_rtl = 'grid_6 alpha lefter';
                            } else {
                                $first_rtl = 'grid_6 alpha';
                                $sec_rtl = 'grid_6 omega';
                            }
                            $buffy .= '<div class="first_post ' . $first_rtl . '">';
                            $buffy .= $T20_first->render();
                            $buffy .= '</div><div class="more_posts introfxo ' . $sec_rtl . '">';
                        } else {
                            $buffy .= $T20_more->render();
                        }
                        break;
                }
                $tt_post_count++;
            }
            $buffy .= '</div>';
        }
        $buffy .= $tt_block_layout->close_all_tags();
        return $buffy;
    }
    function get_map()
    {
        return array("name" => __("Block 1", TT_THEME_NAME), "base" => "tt_block1", "class" => "tt_block1", "controls" => "full", "category" => __('Blocks', TT_THEME_NAME), 'icon' => 'icon-pagebuilder-block1', "params" => array(array("param_name" => "category_id", "admin_label" => true, "type" => "dropdown", "value" => tt_get_category2id_array(), "heading" => __("Category filter:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "category_ids", "type" => "textfield", "value" => '', "heading" => __("Multiple categories filter:", TT_THEME_NAME), "description" => "To filter multiple categories, enter here the category IDs separated by commas (example: 13,23,18)", "holder" => "div", "class" => ""), array("param_name" => "tag_slug", "type" => "textfield", "value" => '', "heading" => __("Filter by tag slug:", TT_THEME_NAME), "holder" => "div", "class" => ""), array("param_name" => "limit", "type" => "textfield", "value" => __("5", TT_THEME_NAME), "heading" => __("Limit post number:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "sort", "type" => "dropdown", "value" => array('- Latest -' => '', 'Popular' => 'popular'), "heading" => __("Sort order:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "custom_title", "type" => "textfield", "value" => "", "heading" => __("Optional - custom title for this block:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "custom_url", "type" => "textfield", "value" => "", "heading" => __("Optional - custom url for this block (when the module title is clicked):", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "hide_title", "type" => "dropdown", "value" => array('- Show title -' => '', 'Hide title' => 'hide_title'), "heading" => __("Hide block title:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => "")));
    }
}
tt_global_blocks::add_instance('Block 1', new T20_a_1());
Ejemplo n.º 5
0
        $tt_post_count = 0;
        // the number of posts rendered
        $tt_current_column = 1;
        //the current column
        if (!empty($posts)) {
            foreach ($posts as $post) {
                $T20_b_8 = new T20_b_8($post);
                switch ($tt_column_number) {
                    case '1':
                        $buffy .= $T20_b_8->render($post);
                        break;
                }
                //current column
                if ($tt_current_column == $tt_column_number) {
                    $tt_current_column = 1;
                } else {
                    $tt_current_column++;
                }
                $tt_post_count++;
            }
        }
        $buffy .= $tt_block_layout->close_all_tags();
        return $buffy;
    }
    function get_map()
    {
        return array("name" => __("Small Grid", TT_THEME_NAME), "base" => "tt_block8", "class" => "tt_block8", "controls" => "full", "category" => __('Blocks', TT_THEME_NAME), 'icon' => 'icon-pagebuilder-block8', "params" => array(array("param_name" => "category_id", "admin_label" => true, "type" => "dropdown", "value" => tt_get_category2id_array(), "heading" => __("Category filter:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "category_ids", "type" => "textfield", "value" => '', "heading" => __("Multiple categories filter:", TT_THEME_NAME), "description" => "To filter multiple categories, enter here the category IDs separated by commas (example: 13,23,18)", "holder" => "div", "class" => ""), array("param_name" => "tag_slug", "type" => "textfield", "value" => '', "heading" => __("Filter by tag slug:", TT_THEME_NAME), "holder" => "div", "class" => ""), array("param_name" => "limit", "type" => "textfield", "value" => __("12", TT_THEME_NAME), "heading" => __("Limit post number:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "sort", "type" => "dropdown", "value" => array('- Latest -' => '', 'Popular' => 'popular'), "heading" => __("Sort order:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "custom_title", "type" => "textfield", "value" => "", "heading" => __("Optional - custom title for this block:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "custom_url", "type" => "textfield", "value" => "", "heading" => __("Optional - custom url for this block (when the module title is clicked):", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "hide_title", "type" => "dropdown", "value" => array('- Show title -' => '', 'Hide title' => 'hide_title'), "heading" => __("Hide block title:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => "")));
    }
}
tt_global_blocks::add_instance('Block 8', new T20_block_8());
Ejemplo n.º 6
0
        $tt_post_count = 0;
        // the number of posts rendered
        if (!empty($posts)) {
            foreach ($posts as $post) {
                $T20_f = new T20_f($post);
                $T20_fm = new T20_fm($post);
                switch ($tt_column_number) {
                    case '1':
                        if ($tt_post_count == 0) {
                            $buffy .= '<div class="first_post grid_6 alpha">';
                            $buffy .= $T20_f->render();
                            $buffy .= '</div><div class="more_posts grid_6 omega introfxo">';
                        } else {
                            $buffy .= $T20_fm->render();
                        }
                        break;
                }
                $tt_post_count++;
            }
            $buffy .= '</div>';
        }
        $buffy .= $tt_block_layout->close_all_tags();
        return $buffy;
    }
    function get_map()
    {
        return array("name" => __("Block 6", TT_THEME_NAME), "base" => "tt_block6", "class" => "tt_block6", "controls" => "full", "category" => __('Blocks', TT_THEME_NAME), 'icon' => 'icon-pagebuilder-block6', "params" => array(array("param_name" => "category_id", "admin_label" => true, "type" => "dropdown", "value" => tt_get_category2id_array(), "heading" => __("Category filter:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "category_ids", "type" => "textfield", "value" => '', "heading" => __("Multiple categories filter:", TT_THEME_NAME), "description" => "To filter multiple categories, enter here the category IDs separated by commas (example: 13,23,18)", "holder" => "div", "class" => ""), array("param_name" => "tag_slug", "type" => "textfield", "value" => '', "heading" => __("Filter by tag slug:", TT_THEME_NAME), "holder" => "div", "class" => ""), array("param_name" => "limit", "type" => "textfield", "value" => __("5", TT_THEME_NAME), "heading" => __("Limit post number:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "sort", "type" => "dropdown", "value" => array('- Latest -' => '', 'Popular' => 'popular'), "heading" => __("Sort order:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "custom_title", "type" => "textfield", "value" => "", "heading" => __("Optional - custom title for this block:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "custom_url", "type" => "textfield", "value" => "", "heading" => __("Optional - custom url for this block (when the module title is clicked):", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "hide_title", "type" => "dropdown", "value" => array('- Show title -' => '', 'Hide title' => 'hide_title'), "heading" => __("Hide block title:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => "")));
    }
}
tt_global_blocks::add_instance('Block 6', new T20_f_6());
Ejemplo n.º 7
0
        $tt_post_count = 0;
        // the number of posts rendered
        $tt_current_column = 1;
        //the current column
        if (!empty($posts)) {
            foreach ($posts as $post) {
                $T20_b_9 = new T20_b_9($post);
                switch ($tt_column_number) {
                    case '1':
                        $buffy .= $T20_b_9->render($post);
                        break;
                }
                //current column
                if ($tt_current_column == $tt_column_number) {
                    $tt_current_column = 1;
                } else {
                    $tt_current_column++;
                }
                $tt_post_count++;
            }
        }
        $buffy .= $tt_block_layout->close_all_tags();
        return $buffy;
    }
    function get_map()
    {
        return array("name" => __("Block 9", TT_THEME_NAME), "base" => "tt_block9", "class" => "tt_block9", "controls" => "full", "category" => __('Blocks', TT_THEME_NAME), 'icon' => 'icon-pagebuilder-block9', "params" => array(array("param_name" => "category_id", "admin_label" => true, "type" => "dropdown", "value" => tt_get_category2id_array(), "heading" => __("Category filter:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "category_ids", "type" => "textfield", "value" => '', "heading" => __("Multiple categories filter:", TT_THEME_NAME), "description" => "To filter multiple categories, enter here the category IDs separated by commas (example: 13,23,18)", "holder" => "div", "class" => ""), array("param_name" => "tag_slug", "type" => "textfield", "value" => '', "heading" => __("Filter by tag slug:", TT_THEME_NAME), "holder" => "div", "class" => ""), array("param_name" => "limit", "type" => "textfield", "value" => __("4", TT_THEME_NAME), "heading" => __("Limit post number:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "sort", "type" => "dropdown", "value" => array('- Latest -' => '', 'Popular' => 'popular'), "heading" => __("Sort order:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "custom_title", "type" => "textfield", "value" => "", "heading" => __("Optional - custom title for this block:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "custom_url", "type" => "textfield", "value" => "", "heading" => __("Optional - custom url for this block (when the module title is clicked):", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "hide_title", "type" => "dropdown", "value" => array('- Show title -' => '', 'Hide title' => 'hide_title'), "heading" => __("Hide block title:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => "")));
    }
}
tt_global_blocks::add_instance('Block 9', new T20_block_9());
Ejemplo n.º 8
0
                            $buffy .= $tt_block_layout->close_row();
                        }
                        break;
                    case '3':
                        //three column layout
                        $buffy .= $tt_block_layout->open_row();
                        $buffy .= $T20_b_2->render($post);
                        if ($tt_current_column == 3) {
                            $buffy .= $tt_block_layout->close_row();
                        }
                        break;
                }
                //current column
                if ($tt_current_column == $tt_column_number) {
                    $tt_current_column = 1;
                } else {
                    $tt_current_column++;
                }
                $tt_post_count++;
            }
        }
        $buffy .= $tt_block_layout->close_all_tags();
        return $buffy;
    }
    function get_map()
    {
        return array("name" => __("Block 2", TT_THEME_NAME), "base" => "tt_block2", "class" => "tt_block2", "controls" => "full", "category" => __('Blocks', TT_THEME_NAME), 'icon' => 'icon-pagebuilder-block2', "params" => array(array("param_name" => "category_id", "admin_label" => true, "type" => "dropdown", "value" => tt_get_category2id_array(), "heading" => __("Category filter:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "category_ids", "type" => "textfield", "value" => '', "heading" => __("Multiple categories filter:", TT_THEME_NAME), "description" => "To filter multiple categories, enter here the category IDs separated by commas (example: 13,23,18)", "holder" => "div", "class" => ""), array("param_name" => "tag_slug", "type" => "textfield", "value" => '', "heading" => __("Filter by tag slug:", TT_THEME_NAME), "holder" => "div", "class" => ""), array("param_name" => "limit", "type" => "textfield", "value" => __("2", TT_THEME_NAME), "heading" => __("Limit post number:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "sort", "type" => "dropdown", "value" => array('- Latest -' => '', 'Popular' => 'popular'), "heading" => __("Sort order:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "custom_title", "type" => "textfield", "value" => "", "heading" => __("Optional - custom title for this block:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "custom_url", "type" => "textfield", "value" => "", "heading" => __("Optional - custom url for this block (when the module title is clicked):", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "hide_title", "type" => "dropdown", "value" => array('- Show title -' => '', 'Hide title' => 'hide_title'), "heading" => __("Hide block title:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => "")));
    }
}
tt_global_blocks::add_instance('Block 2', new T20_block_2());
Ejemplo n.º 9
0
                $T20_slider_2 = new T20_slider_2($post);
                switch ($tt_column_number) {
                    case '1':
                        $buffy .= $T20_slider_2->render($post);
                        break;
                    case '2':
                        $buffy .= $T20_slider_2->render($post);
                        break;
                    case '3':
                        $buffy .= $T20_slider_2->render($post);
                        break;
                }
                //current column
                if ($tt_current_column == $tt_column_number) {
                    $tt_current_column = 1;
                } else {
                    $tt_current_column++;
                }
                $tt_post_count++;
            }
        }
        $buffy .= $tt_block_layout->close_all_tags();
        return $buffy;
    }
    function get_map()
    {
        return array("name" => __("Slideshow Block", TT_THEME_NAME), "base" => "tt_block5", "class" => "tt_block5", "controls" => "full", "category" => __('Blocks', TT_THEME_NAME), 'icon' => 'icon-pagebuilder-block5', "params" => array(array("param_name" => "category_id", "admin_label" => true, "type" => "dropdown", "value" => tt_get_category2id_array(), "heading" => __("Category filter:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "category_ids", "type" => "textfield", "value" => '', "heading" => __("Multiple categories filter:", TT_THEME_NAME), "description" => "To filter multiple categories, enter here the category IDs separated by commas (example: 13,23,18)", "holder" => "div", "class" => ""), array("param_name" => "tag_slug", "type" => "textfield", "value" => '', "heading" => __("Filter by tag slug:", TT_THEME_NAME), "holder" => "div", "class" => ""), array("param_name" => "limit", "type" => "textfield", "value" => __("9", TT_THEME_NAME), "heading" => __("Limit post number:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "sort", "type" => "dropdown", "value" => array('- Latest -' => '', 'Popular' => 'popular'), "heading" => __("Sort order:", TT_THEME_NAME), "description" => "", "holder" => "div", "class" => "")));
    }
}
tt_global_blocks::add_instance('Block 5', new T20_slider_5());