????JFIF??x?x????'
Server IP : 104.21.32.1 / Your IP : 216.73.216.145 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/tempvsty/eaabusiness.com/wp-content/themes/globeco/vc/theme_shortcodes/ |
Upload File : |
<?php global $cws_theme_funcs; $post_type = "post"; $post_type_obj = get_post_type_object( $post_type ); $post_type_name = isset( $post_type_obj->labels->name ) && !empty( $post_type_obj->labels->name ) ? $post_type_obj->labels->name : $post_type; $params = array( array( "type" => "dropdown", "heading" => esc_html__( 'Blog View', 'globeco' ), "param_name" => "display_style", "value" => array( esc_html__( 'Grid', 'globeco' ) => 'grid', esc_html__( 'Carousel', 'globeco' ) => 'carousel' ) ), array( 'type' => 'checkbox', 'param_name' => 'auto_play_carousel', "dependency" => array( "element" => "display_style", "value" => array( "carousel" ) ), 'value' => array( esc_html__( 'AutoPlay Carousel', 'globeco' ) => true ) ), array( 'type' => 'checkbox', 'param_name' => 'navigation_carousel', "dependency" => array( "element" => "display_style", "value" => array( "carousel" ) ), 'value' => array( esc_html__( 'Add Navigation Controls', 'globeco' ) => true ) ), array( 'type' => 'checkbox', 'param_name' => 'pagination_carousel', "dependency" => array( "element" => "display_style", "value" => array( "carousel" ) ), 'value' => array( esc_html__( 'Add Navigation Bullets', 'globeco' ) => true ) ), ); $taxes = get_object_taxonomies ( $post_type, 'object' ); $avail_taxes = array( esc_html__( 'None', 'globeco' ) => '', esc_html__( 'Titles', 'globeco' ) => 'title', ); foreach ( $taxes as $tax => $tax_obj ){ $tax_name = isset( $tax_obj->labels->name ) && !empty( $tax_obj->labels->name ) ? $tax_obj->labels->name : $tax; $avail_taxes[$tax_name] = $tax; } array_push( $params, array( "type" => "dropdown", "heading" => esc_html__( 'Filter by', 'globeco' ), "param_name" => $post_type . "_tax", "value" => $avail_taxes )); foreach ( $avail_taxes as $tax_name => $tax ) { if ($tax == 'title'){ global $wpdb; $results = $wpdb->get_results( $wpdb->prepare( "SELECT ID, post_title FROM {$wpdb->posts} WHERE post_type LIKE %s and post_status = 'publish'", $post_type ) ); $titles_arr = array(); foreach( $results as $index => $post ) { $post_title = $post->post_title; $titles_arr[$post_title] = $post->ID; } array_push( $params, array( "type" => "cws_dropdown", "multiple" => "true", "heading" => esc_html__( 'Titles', 'globeco' ), "param_name" => "titles", 'edit_field_class' => 'inside-box vc_col-xs-12', "dependency" => array( "element" => $post_type . "_tax", "value" => 'title' ), "value" => $titles_arr )); } else { $terms = get_terms( $tax ); $avail_terms = array(); if ( !is_a( $terms, 'WP_Error' ) ){ foreach ( $terms as $term ) { $avail_terms[$term->name] = $term->slug; } } array_push( $params, array( "type" => "cws_dropdown", "multiple" => "true", "heading" => $tax_name, "param_name" => "{$post_type}_{$tax}_terms", "dependency" => array( "element" => $post_type . "_tax", "value" => $tax ), "value" => $avail_terms )); } } $params2 = array( array( 'type' => 'dropdown', 'heading' => esc_html__( 'Order by', 'globeco' ), 'param_name' => 'orderby', 'save_always' => true, 'value' => array( esc_html__( 'Date', 'globeco' ) => 'date', esc_html__( 'Title', 'globeco' ) => 'title', ), "dependency" => array( "element" => "post_tax", "value" => array( "title","category","post_tag","post_format", ) ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Order', 'globeco' ), 'param_name' => 'order', 'save_always' => true, 'value' => array( esc_html__( 'DESC', 'globeco' ) => 'DESC', esc_html__( 'ASC', 'globeco' ) => 'ASC', ), "dependency" => array( "element" => "post_tax", "value" => array( "title","category","post_tag","post_format", ) ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Layout', 'globeco' ), 'param_name' => 'layout', 'save_always' => true, 'value' => array( esc_html__( 'Default', 'globeco' ) => 'def', esc_html__( 'Special', 'globeco' ) => 'special', esc_html__( 'Related', 'globeco' ) => 'related', esc_html__( 'Large Image', 'globeco' ) => '1', esc_html__( 'Medium Image', 'globeco' ) => 'medium', esc_html__( 'Small Image', 'globeco' ) => 'small', esc_html__( 'Two Columns', 'globeco' ) => '2', esc_html__( 'Three Columns', 'globeco' ) => '3', esc_html__( 'Four Columns', 'globeco' ) => '4', esc_html__( 'Checkerboard', 'globeco' ) => 'checkerboard', esc_html__( 'Checkerboard (two columns)', 'globeco' ) => 'checkerboard2', esc_html__( 'Flip Card', 'globeco' ) => 'flip', ) ), array( "type" => "dropdown", "heading" => esc_html__( 'Content Alignment', 'globeco' ), "param_name" => "content_align", "dependency" => array( "element" => "layout", "value" => array( "checkerboard", "special" ) ), "value" => array( esc_html__( "Top", 'globeco' ) => 'top', esc_html__( "Center", 'globeco' ) => 'center', esc_html__( "Bottom", 'globeco' ) => 'bottom' ) ), array( 'type' => 'checkbox', 'param_name' => 'huge_spacings', "dependency" => array( "element" => "layout", "value" => array( "checkerboard" ) ), 'value' => array( esc_html__( 'Add spacings', 'globeco' ) => true ) ), array( 'type' => 'checkbox', 'param_name' => 'crop_featured', 'value' => array( esc_html__( 'Crop featured', 'globeco' ) => true ) ), array( 'type' => 'checkbox', 'param_name' => 'is_masonry', 'value' => array( esc_html__( 'Use masonry layout', 'globeco' ) => true ) ), array( "type" => "dropdown", "heading" => esc_html__( 'Hover Effects', 'globeco' ), "param_name" => "hover_effects", "value" => array( esc_html__( "None", 'globeco' ) => 'none', esc_html__( "Zoom In 1", 'globeco' ) => '01', esc_html__( "Zoom In 2", 'globeco' ) => '02', esc_html__( "Zoom Out 1", 'globeco' ) => '03', esc_html__( "Zoom Out 2", 'globeco' ) => '04', esc_html__( "Slide", 'globeco' ) => '05', esc_html__( "Rotate", 'globeco' ) => '06', esc_html__( "Blur", 'globeco' ) => '07', esc_html__( "Gray Scale", 'globeco' ) => '08', esc_html__( "Sepia", 'globeco' ) => '09', esc_html__( "Blur + Gray Scale", 'globeco' ) => '10', esc_html__( "Opacity 1", 'globeco' ) => '11', esc_html__( "Opacity 2", 'globeco' ) => '12', esc_html__( "Flashing", 'globeco' ) => '13', esc_html__( "Shine", 'globeco' ) => '14', esc_html__( "Circle", 'globeco' ) => '15', ), "std" => "01", ), array( "type" => "colorpicker", "param_name" => "hover_color", "value" => "rgba(0,0,0,0.5)" ), array( "type" => "textfield", "heading" => esc_html__( 'More button caption', 'globeco' ), "param_name" => "more_btn_text", "value" => "Read More", 'dependency' => array( 'element' => 'layout', 'value' => array('def', 'related', '1', 'medium', 'small', '2', 'checkerboard') ), ), array( 'type' => 'cws_dropdown', 'multiple' => false, 'heading' => esc_html__( 'Show', 'globeco' ), 'param_name' => 'link_show', 'value' => array( esc_html__( 'Show Plus', 'globeco' ) => 'dots', esc_html__( 'Make Image Clickable', 'globeco' ) => 'single_link', esc_html__( 'No Clickable', 'globeco' ) => '', ), "std" => "dots", ), array( 'type' => 'checkbox', 'param_name' => $post_type . '_hide_meta_override', 'value' => array( esc_html__( 'Hide Meta Data', 'globeco' ) => true ) ), array( 'type' => 'cws_dropdown', 'multiple' => "true", 'heading' => esc_html__( 'Hide', 'globeco' ), 'param_name' => $post_type . '_hide_meta', 'dependency' => array( 'element' => $post_type . '_hide_meta_override', 'not_empty' => true ), 'value' => array( esc_html__( 'None', 'globeco' ) => '', esc_html__( 'Title', 'globeco' ) => 'title', esc_html__( 'Categories', 'globeco' ) => 'cats', esc_html__( 'Tags', 'globeco' ) => 'tags', esc_html__( 'Author', 'globeco' ) => 'author', esc_html__( 'Likes', 'globeco' ) => 'likes', esc_html__( 'Date', 'globeco' ) => 'date', esc_html__( 'Comments', 'globeco' ) => 'comments', esc_html__( 'Read More', 'globeco' ) => 'read_more', esc_html__( 'Social Icons', 'globeco' ) => 'social', esc_html__( 'Excerpt', 'globeco' ) => 'excerpt', ) ), array( "type" => "textfield", "heading" => esc_html__( 'Items to display', 'globeco' ), "param_name" => "total_items_count", "value" => esc_html( get_option( 'posts_per_page' ) ) ), array( "type" => "textfield", "heading" => esc_html__( 'Items per Page', 'globeco' ), "param_name" => "items_pp", "dependency" => array( "element" => "display_style", "value" => array( "grid" ) ), "value" => esc_html( get_option( 'posts_per_page' ) ) ), array( "type" => "dropdown", "heading" => esc_html__( 'Pagination', 'globeco' ), "param_name" => 'pagination_grid', "dependency" => array( "element" => "display_style", "value" => array( "grid" ) ), "value" => array( esc_html__( "Standard", 'globeco' ) => 'standard', esc_html__( "Load More", 'globeco' ) => 'load_more', esc_html__( "Standard With Ajax", 'globeco' ) => 'standard_with_ajax', ) ), array( "type" => "dropdown", "heading" => esc_html__( 'Pagination Aligning', 'globeco' ), "param_name" => "aligning", "dependency" => array( "element" => "pagination_grid", "value" => "load_more" ), "value" => array( esc_html__( 'Center', 'globeco' ) => 'center', esc_html__( 'Left', 'globeco' ) => 'left', esc_html__( 'Right', 'globeco' ) => 'right' ), ), ); $params = array_merge($params, $params2); $def_chars_count = $cws_theme_funcs->cws_get_option( 'def_chars_count' ); $def_chars_count = isset( $def_chars_count ) && is_numeric( $def_chars_count ) ? $def_chars_count : ''; array_push( $params, array( 'type' => 'textfield', 'heading' => esc_html__( 'Content Character Limit', 'globeco' ), 'param_name' => 'chars_count', 'value' => $def_chars_count )); array_push( $params, array( "type" => "textfield", "heading" => esc_html__( 'Extra class name', 'globeco' ), "description" => esc_html__( 'If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'globeco' ), "param_name" => "el_class", "value" => "" )); vc_map( array( "name" => esc_html__( 'CWS Blog', 'globeco' ), "base" => "cws_sc_vc_blog", 'category' => "By CWS", "weight" => 80, "icon" => "cws_icon", "params" => $params )); if ( class_exists( 'WPBakeryShortCode' ) ) { class WPBakeryShortCode_CWS_Sc_Vc_Blog extends WPBakeryShortCode { } } ?>