Submit
Path:
~
/
home
/
getwphos
/
public_html
/
sdp
/
wp-content
/
themes
/
labtechco
/
includes
/
vc
/
File Content:
element-ts-blogbox.php
<?php /* Options for ThemeStek Blogbox */ $postCatList = get_categories( array('hide_empty'=>false) ); $catList = array(); foreach($postCatList as $cat){ $catList[ esc_attr($cat->name) . ' (' . esc_attr($cat->count) . ')' ] = esc_attr($cat->slug); } $heading_element = vc_map_integrate_shortcode( 'ts-heading', '', esc_attr__('Headings','labtechco'), array( 'exclude' => array( 'el_class', 'css', 'css_animation' ), ) ); $boxParams = ts_box_params('blog'); $allParams = array_merge( $heading_element, array( array( 'type' => 'themestek_imgselector', 'heading' => esc_attr__( 'Box View Style', 'labtechco' ), 'description' => esc_attr__( 'Select box view style.', 'labtechco' ), 'param_name' => 'boxstyle', 'std' => 'style-1', 'value' => themestek_global_template_list('blog', false), 'group' => esc_attr__( 'Box Style', 'labtechco' ), ), array( "type" => "dropdown", "heading" => esc_attr__("Box Spacing", "labtechco"), "param_name" => "box_spacing", "description" => esc_attr__("Spacing between each box.", "labtechco"), "value" => array( esc_attr__("Default", "labtechco") => "", esc_attr__("0 pixel spacing (joint boxes)", "labtechco") => "0px", esc_attr__("5 pixel spacing", "labtechco") => "5px", esc_attr__("10 pixel spacing", "labtechco") => "10px", ), "std" => "", 'group' => esc_attr__( 'Box Style', 'labtechco' ), ) ), array( array( "type" => "dropdown", "holder" => "div", "class" => "", "heading" => esc_attr__("Show Sortable Category Links",'labtechco'), "description" => esc_attr__("Show sortable category links above Blog boxes so user can sort by category by just single click.",'labtechco'), "param_name" => "sortable", "value" => array( esc_attr__('No','labtechco') => 'no', esc_attr__('Yes','labtechco') => 'yes', ), "std" => "no", 'dependency' => array( 'element' => 'boxview', 'value_not_equal_to' => array( 'carousel' ), ), 'group' => esc_attr__( 'Box Options', 'labtechco' ), ), array( 'type' => 'textfield', 'heading' => esc_attr__( 'Replace ALL word', 'labtechco' ), 'param_name' => 'allword', 'description' => esc_attr__( 'Replace ALL word in sortable category links. Default is ALL word.', 'labtechco' ), "std" => "All", 'dependency' => array( 'element' => 'sortable', 'value' => array( 'yes' ), ), 'group' => esc_attr__( 'Box Options', 'labtechco' ), ), array( "type" => "dropdown", "holder" => "div", "class" => "", "heading" => esc_attr__("Show Pagination",'labtechco'), "description" => esc_attr__("Show pagination links below blog boxes.",'labtechco'), "param_name" => "pagination", "value" => array( esc_attr__('No','labtechco') => 'no', esc_attr__('Yes','labtechco') => 'yes', ), "std" => "no", 'dependency' => array( 'element' => 'sortable', 'value_not_equal_to' => array( 'yes' ), ), 'group' => esc_attr__( 'Box Options', 'labtechco' ), ), array( "type" => "checkbox", "heading" => esc_attr__("Set Post Link On Feature Image", "labtechco"), "param_name" => "postlink_onimage", "description" => esc_attr__("If you like to set post link on feature image than check here.", "labtechco"), 'group' => esc_attr__( 'Box Options', 'labtechco' ), ), array( "type" => "checkbox", "heading" => esc_attr__("From Category", "labtechco"), "description" => esc_attr__("If you like to show posts from selected category than select the category here.", "labtechco") . esc_attr__("The brecket number shows how many posts there in the category.", "labtechco"), "param_name" => "category", "value" => $catList, 'group' => esc_attr__( 'Box Options', 'labtechco' ), ), array( "type" => "dropdown", "holder" => "div", "class" => "", "heading" => esc_attr__("Order by",'labtechco'), "description" => esc_attr__("Sort retrieved portfolio by parameter.",'labtechco'), "param_name" => "orderby", "value" => array( esc_attr__('No order (none)','labtechco') => 'none', esc_attr__('Order by post id (ID)','labtechco') => 'ID', esc_attr__('Order by author (author)','labtechco') => 'author', esc_attr__('Order by title (title)','labtechco') => 'title', esc_attr__('Order by slug (name)','labtechco') => 'name', esc_attr__('Order by date (date)','labtechco') => 'date', esc_attr__('Order by last modified date (modified)','labtechco') => 'modified', esc_attr__('Random order (rand)','labtechco') => 'rand', esc_attr__('Order by number of comments (comment_count)','labtechco') => 'comment_count', ), 'edit_field_class' => 'vc_col-sm-6 vc_column', "std" => "date", 'group' => esc_attr__( 'Box Options', 'labtechco' ), ), array( "type" => "dropdown", "holder" => "div", "class" => "", "heading" => esc_attr__("Order",'labtechco'), "description" => esc_attr__("Designates the ascending or descending order of the 'orderby' parameter.",'labtechco'), "param_name" => "order", "value" => array( esc_attr__('Ascending (1, 2, 3; a, b, c)','labtechco') => 'ASC', esc_attr__('Descending (3, 2, 1; c, b, a)','labtechco') => 'DESC', ), 'edit_field_class' => 'vc_col-sm-6 vc_column', "std" => "DESC", 'group' => esc_attr__( 'Box Options', 'labtechco' ), ), array( "type" => "dropdown", "holder" => "div", "class" => "", "heading" => esc_attr__("Show Posts",'labtechco'), "description" => esc_attr__("How many post you want to show.",'labtechco'), "param_name" => "show", "value" => array( esc_attr__('All','labtechco')=>'-1', esc_attr__('1','labtechco')=>'1', esc_attr__('2','labtechco')=>'2', esc_attr__('3','labtechco')=>'3', esc_attr__('4','labtechco')=>'4', esc_attr__('5','labtechco')=>'5', esc_attr__('6','labtechco')=>'6', esc_attr__('7','labtechco')=>'7', esc_attr__('8','labtechco')=>'8', esc_attr__('9','labtechco')=>'9', esc_attr__('10','labtechco')=>'10', esc_attr__('11','labtechco')=>'11', esc_attr__('12','labtechco')=>'12', esc_attr__('13','labtechco')=>'13', esc_attr__('14','labtechco')=>'14', esc_attr__('15','labtechco')=>'15', esc_attr__('16','labtechco')=>'16', esc_attr__('17','labtechco')=>'17', esc_attr__('18','labtechco')=>'18', esc_attr__('19','labtechco')=>'19', esc_attr__('20','labtechco')=>'20', esc_attr__('21','labtechco')=>'21', esc_attr__('22','labtechco')=>'22', esc_attr__('23','labtechco')=>'23', esc_attr__('24','labtechco')=>'24', ), "std" => "3", 'group' => esc_attr__( 'Box Options', 'labtechco' ), ), ), $boxParams, array( ts_vc_ele_css_editor_option(), ) ); $params = $allParams; // Changing default values $i = 0; foreach( $params as $param ){ $param_name = (isset($param['param_name'])) ? $param['param_name'] : '' ; if( $param_name == 'h2' ){ $params[$i]['std'] = 'Blog'; } else if( $param_name == 'h2_use_theme_fonts' ){ $params[$i]['std'] = 'yes'; } else if( $param_name == 'h4_use_theme_fonts' ){ $params[$i]['std'] = 'yes'; } else if( $param_name == 'txt_align' ){ $params[$i]['std'] = 'center'; } $i++; } global $ts_sc_params_blogbox; $ts_sc_params_blogbox = $params; vc_map( array( "name" => esc_attr__('PBM Blog Box','labtechco'), "base" => "ts-blogbox", "class" => "", 'category' => esc_attr__( 'PBM', 'labtechco' ), "icon" => 'icon-themestek-vc', "params" => $params, ) );
Submit
FILE
FOLDER
Name
Size
Permission
Action
element-ts-action-box.php
1985 bytes
0644
element-ts-blogbox.php
8178 bytes
0644
element-ts-btn.php
11771 bytes
0644
element-ts-clientsbox.php
9394 bytes
0644
element-ts-contactbox.php
1893 bytes
0644
element-ts-cta.php
9706 bytes
0644
element-ts-custom-heading.php
3775 bytes
0644
element-ts-facts-in-digits.php
6352 bytes
0644
element-ts-heading.php
6817 bytes
0644
element-ts-icon.php
6133 bytes
0644
element-ts-iconheadingbox.php
7772 bytes
0644
element-ts-list.php
4510 bytes
0644
element-ts-portfoliobox.php
9976 bytes
0644
element-ts-pricelistbox.php
2165 bytes
0644
element-ts-pricing-table.php
10702 bytes
0644
element-ts-progress-bar.php
4940 bytes
0644
element-ts-servicebox.php
9956 bytes
0644
element-ts-single-image.php
1756 bytes
0644
element-ts-socialbox.php
3755 bytes
0644
element-ts-staticbox.php
3203 bytes
0644
element-ts-teambox.php
8936 bytes
0644
element-ts-testimonialbox.php
8037 bytes
0644
element-ts-twitterbox.php
2488 bytes
0644
vc-core.php
64215 bytes
0644
N4ST4R_ID | Naxtarrr