Example #1
0
 function get_map()
 {
     //get the generic filter array
     $generic_filter_array = td_generic_filter_array::get_array();
     //add custom filter fields to generic filter array
     array_push($generic_filter_array, array("param_name" => "limit", "type" => "textfield", "value" => __("5", TD_THEME_NAME), "heading" => __("Limit post number:", TD_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "offset", "type" => "textfield", "value" => __("", TD_THEME_NAME), "heading" => __("Offset posts:", TD_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Header color", TD_THEME_NAME), "param_name" => "header_color", "value" => '', "description" => __("Choose a custom header color for this block", TD_THEME_NAME)), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Header text color", TD_THEME_NAME), "param_name" => "header_text_color", "value" => '', "description" => __("Choose a custom header color for this block", TD_THEME_NAME)), array("param_name" => "custom_title", "type" => "textfield", "value" => "", "heading" => __("Optional - custom title for this block:", TD_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):", TD_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "title_style", "type" => "dropdown", "value" => array('- default style -' => '', 'Style 1' => 'td_title_style_1'), "heading" => __("Title style:", TD_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "show_child_cat", "type" => "dropdown", "value" => array('- Hide -' => '', 'Show 1 category' => '1', 'Show 2 categories' => '2', 'Show 3 categories' => '3', 'Show 4 categories' => '4', 'Show 5 categories' => '5', 'Show 6 categories' => '6', 'Show 7 categories' => '7', 'Show 8 categories' => '8', 'Show all' => 'all'), "heading" => __("Show child categories menu:", TD_THEME_NAME), "description" => "This will show a menu at the top of the block that contains the child categories of the selected category. It only works when you're using a single category filter form the dropdown. It doss't work with multiple categories IDs", "holder" => "div", "class" => ""), array("param_name" => "sub_cat_ajax", "type" => "dropdown", "value" => array('- Use ajax -' => '', 'Do not use ajax' => 'n'), "heading" => __("Use ajax in child categories menu:", TD_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "ajax_pagination", "type" => "dropdown", "value" => array('- No pagination -' => '', 'Next Prev ajax' => 'next_prev', 'Load More button' => 'load_more', 'Infinite load' => 'infinite'), "heading" => __("Pagination:", TD_THEME_NAME), "description" => "", "holder" => "div", "class" => ""));
     return array("name" => __("Block 9", TD_THEME_NAME), "base" => "td_block9", "class" => "td_block9", "controls" => "full", "category" => __('Blocks', TD_THEME_NAME), 'icon' => 'icon-pagebuilder-block9', "params" => $generic_filter_array);
 }
 /**
  *  setting the array that will be used for homepage filter
  * @return array
  */
 function homepage_filter_get_map()
 {
     //get the generic filter array
     $generic_filter_array = td_generic_filter_array::get_array();
     //remove items from array
     $offset = 0;
     foreach ($generic_filter_array as $field_array) {
         if ($field_array['param_name'] == "hide_title") {
             array_splice($generic_filter_array, $offset, 1);
         }
         $offset++;
     }
     //add custom filter fields to generic filter array
     array_push($generic_filter_array, array("param_name" => "limit", "type" => "textfield", "value" => '', "heading" => __("Posts per page:", TD_THEME_NAME), "description" => "ex: 8; a integer number, used to display the number of posts per page", "holder" => "div", "class" => ""));
     //add the show featured posts in the loop setting
     array_push($generic_filter_array, array("param_name" => "show_featured_posts", "type" => "dropdown", "value" => array('- Show featured posts -' => '', 'Hide featured posts' => 'hide_featured'), "heading" => __("Featured posts:", TD_THEME_NAME), "description" => "", "holder" => "div", "class" => ""));
     //add the show featured posts in the loop setting
     array_push($generic_filter_array, array("param_name" => "offset", "type" => "textfield", "value" => '', "heading" => __("Offset:", TD_THEME_NAME), "description" => "ex: 8; a integer number, used to display the number of posts per page", "holder" => "div", "class" => ""));
     return array("name" => __("Templates with articles", TD_THEME_NAME), "base" => "", "class" => "", "controls" => "full", "category" => "", 'icon' => '', "params" => $generic_filter_array);
 }
 function get_map()
 {
     //get the generic filter array
     $generic_filter_array = td_generic_filter_array::get_array();
     unset($generic_filter_array[5]);
     //add custom filter fields to generic filter array
     array_push($generic_filter_array, array("param_name" => "autoplay", "type" => "textfield", "value" => '', "heading" => '自动播放幻灯片 (在 x 秒)', "description" => "留空禁用自动播放", "holder" => "div", "class" => ""), array("param_name" => "limit", "type" => "textfield", "value" => __("4", TD_THEME_NAME), "heading" => __("限制文章数量:", TD_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "offset", "type" => "textfield", "value" => __("", TD_THEME_NAME), "heading" => __("偏移文章:", TD_THEME_NAME), "description" => "", "holder" => "div", "class" => ""));
     return array("name" => __("大幻灯片", TD_THEME_NAME), "base" => "td_slide_big", "class" => "td_slide_big", "controls" => "full", "category" => __('区块', TD_THEME_NAME), 'icon' => 'icon-pagebuilder-slide_big', "params" => $generic_filter_array);
 }
Example #4
0
 function get_map()
 {
     //get the generic filter array
     $generic_filter_array = td_generic_filter_array::get_array();
     unset($generic_filter_array[5]);
     //add custom filter fields to generic filter array
     array_push($generic_filter_array, array("param_name" => "autoplay", "type" => "textfield", "value" => '', "heading" => 'Autoplay slider (at x seconds)', "description" => "Leave empty do disable autoplay", "holder" => "div", "class" => ""), array("param_name" => "limit", "type" => "textfield", "value" => __("4", TD_THEME_NAME), "heading" => __("Limit post number:", TD_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "offset", "type" => "textfield", "value" => __("", TD_THEME_NAME), "heading" => __("Offset posts:", TD_THEME_NAME), "description" => "", "holder" => "div", "class" => ""));
     return array("name" => __("Big Slide", TD_THEME_NAME), "base" => "td_slide_big", "class" => "td_slide_big", "controls" => "full", "category" => __('Blocks', TD_THEME_NAME), 'icon' => 'icon-pagebuilder-slide_big', "params" => $generic_filter_array);
 }
Example #5
0
 function get_map()
 {
     //get the generic filter array
     $generic_filter_array = td_generic_filter_array::get_array();
     //add custom filter fields to generic filter array
     array_push($generic_filter_array, array("param_name" => "autoplay", "type" => "textfield", "value" => '', "heading" => 'Autoplay slider (at x seconds)', "description" => "Leave empty do disable autoplay", "holder" => "div", "class" => ""), array("param_name" => "limit", "type" => "textfield", "value" => __("5", TD_THEME_NAME), "heading" => __("Limit post number:", TD_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "offset", "type" => "textfield", "value" => __("", TD_THEME_NAME), "heading" => __("Offset posts:", TD_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Header color", TD_THEME_NAME), "param_name" => "header_color", "value" => '', "description" => __("Choose a custom header color for this block", TD_THEME_NAME)), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Header text color", TD_THEME_NAME), "param_name" => "header_text_color", "value" => '', "description" => __("Choose a custom header color for this block", TD_THEME_NAME)), array("param_name" => "custom_title", "type" => "textfield", "value" => "", "heading" => __("Optional - custom title for this block:", TD_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):", TD_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "title_style", "type" => "dropdown", "value" => array('- default style -' => '', 'Style 1' => 'td_title_style_1'), "heading" => __("Title style:", TD_THEME_NAME), "description" => "", "holder" => "div", "class" => ""), array("param_name" => "show_child_cat", "type" => "dropdown", "value" => array('- Hide -' => '', 'Show 1 category' => '1', 'Show 2 categories' => '2', 'Show 3 categories' => '3', 'Show 4 categories' => '4', 'Show 5 categories' => '5', 'Show 6 categories' => '6', 'Show 7 categories' => '7', 'Show 8 categories' => '8', 'Show all' => 'all'), "heading" => __("Show child categories menu:", TD_THEME_NAME), "description" => "This will show a menu at the top of the block that contains the child categories of the selected category. It only works when you're using a single category filter form the dropdown. It doss't work with multiple categories IDs", "holder" => "div", "class" => ""));
     return array("name" => __("Slide", TD_THEME_NAME), "base" => "td_slide", "class" => "td_slide", "controls" => "full", "category" => __('Blocks', TD_THEME_NAME), 'icon' => 'icon-pagebuilder-slide', "params" => $generic_filter_array);
 }