protected function content($atts, $content = null) { global $title_option; $atts_extra = shortcode_atts(array('pr_small_title' => 'Small title', 'pr_title' => 'Enter Tite', 'pr_description' => 'Enter Description', 'layout' => 'layout1'), $atts); $title_option = array_merge($atts_extra, $atts); $atts['template'] = 'template-' . str_replace('.php', '', $atts['cmsblue_template']) . ' content-align-' . $atts['content_align'] . ' ' . $atts['class']; return parent::content($atts, $content); }
protected function content($atts, $content = null) { global $box_opton; $atts_extra = shortcode_atts(array('style' => 'box-services', 'title_box' => '', 'description' => '', 'ex_class' => ''), $atts); $box_opton = array_merge($atts_extra, $atts); $atts['template'] = 'template-' . str_replace('.php', '', $atts['cmsblue_template']) . ' content-align-' . $atts['content_align'] . ' ' . $atts['class']; return parent::content($atts, $content); }
protected function content($atts, $content = null) { global $post, $wp_query, $port_option, $pagination_options; $atts_extra = shortcode_atts(array('category' => '', 'crop_image' => false, 'width_image' => 255, 'height_image' => 176, 'show_category' => true), $atts); $atts = array_merge($atts_extra, $atts); extract($atts); $port_option = array('show_category' => $show_category, 'category' => $category, 'width_image' => $width_image, 'height_image' => $height_image, 'category' => $category); //Buding array item porfolio $args = $this->build_args_portfolio_item(array('wp_query' => $wp_query, 'category' => $category, 'posts_per_page' => $posts_per_page)); //Query get all post type. $wp_query = new WP_Query($args); $count_post = $wp_query->post_count; $atts['template'] = 'template-' . str_replace('.php', '', $atts['cmsblue_template']) . ' content-align-' . $atts['content_align'] . ' ' . $atts['class']; wp_enqueue_script('js-porfolio'); return parent::content($atts, $content); }
protected function content($atts, $content = null) { global $slide; $imagemax = 6; $image_number = 0; for ($i = 1; $i <= $imagemax; $i++) { if (isset($atts['title_slide' . $i]) && $atts['title_slide' . $i] != '') { $image_number += 1; } } $atts_extra = shortcode_atts(array('style' => '', 'videourl' => '', 'image1' => '', 'image2' => '', 'image3' => '', 'title_slide1' => __("Silde Title", CMSBLUE_NAME), 'description1' => __("Silde Description", CMSBLUE_NAME), 'text_button1' => __("Button", CMSBLUE_NAME), 'title_slide2' => __("Silde Title", CMSBLUE_NAME), 'description2' => __("Silde Description", CMSBLUE_NAME), 'text_button2' => __("Button", CMSBLUE_NAME), 'title_slide3' => __("Silde Title", CMSBLUE_NAME), 'description3' => __("Silde Description", CMSBLUE_NAME), 'text_button3' => __("Button", CMSBLUE_NAME), 'title_slide4' => __("Silde Title", CMSBLUE_NAME), 'description4' => __("Silde Description", CMSBLUE_NAME), 'text_button4' => __("Button", CMSBLUE_NAME), 'title_slide5' => __("Silde Title", CMSBLUE_NAME), 'description5' => __("Silde Description", CMSBLUE_NAME), 'text_button5' => __("Button", CMSBLUE_NAME), 'title_slide6' => __("Silde Title", CMSBLUE_NAME), 'description6' => __("Silde Description", CMSBLUE_NAME), 'text_button6' => __("Button", CMSBLUE_NAME)), $atts); $atts = array_merge($atts_extra, $atts); $atts['image_number'] = $image_number; $slide = $atts; $atts['template'] = 'template-' . str_replace('.php', '', $atts['cmsblue_template']) . ' content-align-' . $atts['content_align'] . ' ' . $atts['class']; return parent::content($atts, $content); }