当前位置: 首页>>代码示例>>PHP>>正文


PHP TS_VCSC_GetResourceURL函数代码示例

本文整理汇总了PHP中TS_VCSC_GetResourceURL函数的典型用法代码示例。如果您正苦于以下问题:PHP TS_VCSC_GetResourceURL函数的具体用法?PHP TS_VCSC_GetResourceURL怎么用?PHP TS_VCSC_GetResourceURL使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了TS_VCSC_GetResourceURL函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: mapmarker_settings_field

 function mapmarker_settings_field($settings, $value)
 {
     global $VISUAL_COMPOSER_EXTENSIONS;
     $dependency = vc_generate_dependencies_attributes($settings);
     $param_name = isset($settings['param_name']) ? $settings['param_name'] : '';
     $type = isset($settings['type']) ? $settings['type'] : '';
     $pattern_select = isset($settings['value']) ? $settings['value'] : '';
     $encoding = isset($settings['encoding']) ? $settings['encoding'] : '';
     $url = $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_PluginPath;
     $dir = $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_PluginDir;
     $output = '';
     $counter = 0;
     $output .= __("Search for Marker:", "ts_visual_composer_extend");
     $output .= '<input name="ts-font-marker-search" id="ts-font-marker-search" class="ts-font-marker-search" type="text" placeholder="Search ..." />';
     $output .= '<div class="ts-visual-selector ts-font-marker-wrapper">';
     $output .= '<input name="' . $param_name . '" id="' . $param_name . '" class="wpb_vc_param_value ' . $param_name . ' ' . $type . '" type="hidden" value="' . $value . '"/>';
     $markerpath = $dir . 'images/marker/';
     $images = glob($markerpath . "*.png");
     foreach ($images as $img) {
         $markername = basename($img);
         $counter++;
         if ($value == '' && $counter == 1) {
             $output .= '<a class="TS_VCSC_Marker_Link current" href="#" title="' . __("Marker Name:", "ts_visual_composer_extend") . ': ' . $markername . '" rel="' . $markername . '"><img src="' . TS_VCSC_GetResourceURL('images/marker/') . $markername . '" style="height: 37px; width: 32px;"><div class="selector-tick"></div></a>';
         } else {
             if ($value == $markername) {
                 $output .= '<a class="TS_VCSC_Marker_Link current" href="#" title="' . __("Marker Name:", "ts_visual_composer_extend") . ': ' . $markername . '" rel="' . $markername . '"><img src="' . TS_VCSC_GetResourceURL('images/marker/') . $markername . '" style="height: 37px; width: 32px;"><div class="selector-tick"></div></a>';
             } else {
                 $output .= '<a class="TS_VCSC_Marker_Link" href="#" title="' . __("Marker Name:", "ts_visual_composer_extend") . ': ' . $markername . '" rel="' . $markername . '"><img src="' . TS_VCSC_GetResourceURL('images/marker/') . $markername . '" style="height: 37px; width: 32px;"></a>';
             }
         }
     }
     $output .= '</div>';
     return $output;
 }
开发者ID:Telemedellin,项目名称:fonvalmed,代码行数:34,代码来源:ts_vcsc_parameter_markerpanel.php

示例2: audioselect_settings_field

 function audioselect_settings_field($settings, $value)
 {
     global $VISUAL_COMPOSER_EXTENSIONS;
     $dependency = vc_generate_dependencies_attributes($settings);
     $param_name = isset($settings['param_name']) ? $settings['param_name'] : '';
     $type = isset($settings['type']) ? $settings['type'] : '';
     $audio_format = isset($settings['audio_format']) ? $settings['audio_format'] : 'mpeg';
     $audio_format = explode(',', $audio_format);
     $url = $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_PluginPath;
     $output = '';
     $args = array('post_type' => 'attachment', 'post_mime_type' => 'audio', 'post_status' => 'inherit', 'posts_per_page' => -1);
     if ($value != '') {
         $metadata = wp_get_attachment_metadata($value);
         $disabled = '';
         $visible = 'display: block;';
         $query_audios = new WP_Query($args);
         if ($query_audios->have_posts()) {
             foreach ($query_audios->posts as $audio) {
                 if ($audio->ID == $value) {
                     $audio_id = $value;
                     $audio_title = $audio->post_title;
                     $audio_length = isset($metadata['length_formatted']) ? $metadata['length_formatted'] : 'N/A';
                     break;
                 }
             }
         }
         wp_reset_postdata();
     } else {
         $metadata = array();
         $disabled = 'disabled="disabled"';
         $visible = 'display: none;';
         $audio_id = '';
         $audio_title = '';
         $audio_url = '';
         $audio_length = '';
     }
     $output .= '<div class="ts_vcsc_audio_select_block" data-format="' . implode(',', $audio_format) . '">';
     $output .= '<input style="display: none;" name="' . $settings['param_name'] . '" class="wpb_vc_param_value wpb-textinput audio_value ' . $param_name . ' ' . $type . '_field" type="text" value="' . $value . '" ' . $dependency . '/>';
     $output .= '<input type="button" class="audio_select button" value="' . __('Select Audio', 'ts_visual_composer_extend') . '" style="width: 150px; text-align: center;">';
     $output .= '<input type="button" class="audio_remove button" value="' . __('Remove Audio', 'ts_visual_composer_extend') . '" style="width: 150px; text-align: center; color: red; margin-left: 20px;" ' . $disabled . '>';
     $output .= '<div class="audio_metadata_frame" style="width: 100%; margin-top: 20px; ' . $visible . '">';
     $output .= '<div style="float: left; width: 92px; margin-right: 10px;">';
     if (in_array("mp3", $audio_format) || in_array("mpeg", $audio_format)) {
         $output .= '<img src="' . TS_VCSC_GetResourceURL('images/mediatypes/mp3_audio.jpg') . '" style="width: 90px; height: auto; border: 1px solid #ededed;">';
     } else {
         if (in_array("ogg", $audio_format) || in_array("ogv", $audio_format)) {
             $output .= '<img src="' . TS_VCSC_GetResourceURL('images/mediatypes/ogg_audio.jpg') . '" style="width: 90px; height: auto; border: 1px solid #ededed;">';
         }
     }
     $output .= '</div>';
     $output .= '<div style="float: left;">';
     $output .= '<div style=""><span style="">' . __('Audio ID', 'ts_visual_composer_extend') . ': </span><span class="audio_metadata audio_id">' . $audio_id . '</span></div>';
     $output .= '<div style=""><span style="">' . __('Audio Name', 'ts_visual_composer_extend') . ': </span><span class="audio_metadata audio_name">' . $audio_title . '</span></div>';
     $output .= '<div style=""><span style="">' . __('Audio Duration', 'ts_visual_composer_extend') . ': </span><span class="audio_metadata audio_duration">' . ($audio_length != '' ? $audio_length : 'N/A') . '</span></div>';
     $output .= '</div>';
     $output .= '</div>';
     $output .= '</div>';
     return $output;
 }
开发者ID:Telemedellin,项目名称:fonvalmed,代码行数:59,代码来源:ts_vcsc_parameter_audioselect.php

示例3: imagehotspot_settings_field

 function imagehotspot_settings_field($settings, $value)
 {
     global $VISUAL_COMPOSER_EXTENSIONS;
     $dependency = vc_generate_dependencies_attributes($settings);
     $param_name = isset($settings['param_name']) ? $settings['param_name'] : '';
     $type = isset($settings['type']) ? $settings['type'] : '';
     $min = isset($settings['min']) ? $settings['min'] : '';
     $max = isset($settings['max']) ? $settings['max'] : '';
     $step = isset($settings['step']) ? $settings['step'] : '';
     $unit = isset($settings['unit']) ? $settings['unit'] : '';
     $decimals = isset($settings['decimals']) ? $settings['decimals'] : 0;
     $suffix = isset($settings['suffix']) ? $settings['suffix'] : '';
     $class = isset($settings['class']) ? $settings['class'] : '';
     $url = $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_PluginPath;
     $coordinates = explode(",", $value);
     $output = '';
     $required_vc = '4.3.0';
     if (defined('WPB_VC_VERSION')) {
         if (version_compare(WPB_VC_VERSION, $required_vc) >= 0) {
             // Hotspot Image Preview
             $output .= '<div class="ts-image-hotspot-container-preview" style="margin-top: 30px;">';
             $output .= '<img class="ts-image-hotspot-image-preview" data-default="' . TS_VCSC_GetResourceURL('images/other/hotspot_raster.jpg') . '" src="">';
             $output .= '<div class="ts-image-hotspot-holder-preview">';
             $output .= '<div class="ts-image-hotspot-single-preview" style="left: ' . $coordinates[0] . '%; top: ' . $coordinates[1] . '%;">';
             $output .= '<div class="ts-image-hotspot-trigger-preview"><div class="ts-image-hotspot-trigger-pulse"></div><div class="ts-image-hotspot-trigger-dot"></div></div>';
             $output .= '</div>';
             $output .= '</div>';
             $output .= '</div>';
             $output .= '<div class="vc_clearfix"></div>';
             // Message
             $output .= '<div class="" style="text-align: justify; margin-top: 30px; font-size: 13px; font-style: italic; color: #999999;">' . __("Use the sliders below or use your mouse to drag the hotspot to its desired spot on the image.", "ts_visual_composer_extend") . '</div>';
         } else {
             // Message
             $output .= '<div class="" style="text-align: justify; margin-top: 0px; font-size: 13px; font-style: italic; color: #999999;">' . __("Use the sliders below to position the hotspot on its desired spot on the image.", "ts_visual_composer_extend") . '</div>';
         }
     } else {
         // Message
         $output .= '<div class="" style="text-align: justify; margin-top: 0px; font-size: 13px; font-style: italic; color: #999999;">' . __("Use the sliders below to position the hotspot on its desired spot on the image.", "ts_visual_composer_extend") . '</div>';
     }
     // Hidden Input
     $output .= '<input name="' . $param_name . '" id="' . $param_name . '" class="ts-nouislider-hotspot-value wpb_vc_param_value ' . $param_name . ' ' . $type . '" type="hidden" value="' . $value . '"/>';
     // X-Position Slider
     $output .= '<div class="ts-nouislider-hotspot-slider" style="width: 100%; margin-top: 20px;">';
     $output .= '<div class="" style="font-weight: bold;">' . __("Horizontal Position (X)", "ts_visual_composer_extend") . '</div>';
     $output .= '<input id="ts-input-hotspot-horizontal" style="width: 100px; float: left; margin-left: 0px; margin-right: 10px;" name="" class="ts-nouislider-serial nouislider-input-selector nouislider-input-composer" type="text" value="' . $coordinates[0] . '"/>';
     $output .= '<span style="float: left; margin-right: 30px; margin-top: 10px;" class="unit">' . $unit . '</span>';
     $output .= '<div id="ts-nouislider-hotspot-horizontal" class="ts-nouislider-input ts-nouislider-hotspot-element" data-position="horizontal" data-value="' . $coordinates[0] . '" data-min="' . $min . '" data-max="' . $max . '" data-decimals="' . $decimals . '" data-step="' . $step . '" style="width: 250px; float: left; margin-top: 10px;"></div>';
     $output .= '</div>';
     $output .= '<div class="vc_clearfix"></div>';
     // Y-Position Slider
     $output .= '<div class="ts-nouislider-hotspot-slider" style="width: 100%; margin-top: 20px;">';
     $output .= '<div class="" style="font-weight: bold;">' . __("Vertical Position (Y)", "ts_visual_composer_extend") . '</div>';
     $output .= '<input id="ts-input-hotspot-vertical" style="width: 100px; float: left; margin-left: 0px; margin-right: 10px;" name="" class="ts-nouislider-serial nouislider-input-selector nouislider-input-composer" type="text" value="' . $coordinates[1] . '"/>';
     $output .= '<span style="float: left; margin-right: 30px; margin-top: 10px;" class="unit">' . $unit . '</span>';
     $output .= '<div id="ts-nouislider-hotspot-vertical" class="ts-nouislider-input ts-nouislider-hotspot-element" data-position="vertical" data-value="' . $coordinates[1] . '" data-min="' . $min . '" data-max="' . $max . '" data-decimals="' . $decimals . '" data-step="' . $step . '" style="width: 250px; float: left; margin-top: 10px;"></div>';
     $output .= '</div>';
     return $output;
 }
开发者ID:ryansm,项目名称:saud,代码行数:58,代码来源:ts_vcsc_parameter_imagehotspot.php

示例4: TS_VCSC_Title_Flipboard_Function

function TS_VCSC_Title_Flipboard_Function($atts)
{
    global $VISUAL_COMPOSER_EXTENSIONS;
    ob_start();
    if ($VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_LoadFrontEndWaypoints == "true") {
        if (wp_script_is('waypoints', $list = 'registered')) {
            wp_enqueue_script('waypoints');
        } else {
            wp_enqueue_script('ts-extend-waypoints');
        }
    }
    wp_enqueue_script('ts-extend-flipflap');
    wp_enqueue_style('ts-visual-composer-extend-front');
    wp_enqueue_script('ts-visual-composer-extend-front');
    extract(shortcode_atts(array('language' => 'latin', 'title' => '', 'start' => '', 'equalize' => 'true', 'dotted' => 'true', 'size' => 'large', 'style' => 'dark', 'speed' => 3, 'restart' => 'false', 'mobile' => 'false', 'wrapper' => 'h1', 'viewport' => 'false', 'delay' => 0, 'margin_top' => 20, 'margin_bottom' => 20, 'el_id' => '', 'el_class' => '', 'css' => ''), $atts));
    $output = '';
    if ($language == "latin") {
        $title = preg_replace('/[^ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz 0123456789.,!?#@()+-=\\s]/', '', $title);
        $start = preg_replace('/[^ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz 0123456789.,!?#@()+-=\\s]/', '', $start);
        $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789.,!?#@()+-=';
    } else {
        if ($language == "greek") {
            $title = preg_replace('/[^ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩΆΈΊΎΏΌαβγδεζηθικλμνξοπρστυφχψωάέίύόώϊϋ 0123456789.,!?#@()+-=\\s]/', '', $title);
            $start = preg_replace('/[^ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩΆΈΊΎΏΌαβγδεζηθικλμνξοπρστυφχψωάέίύόώϊϋ 0123456789.,!?#@()+-=\\s]/', '', $start);
            $chars = 'ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩΆΈΊΎΏΌάέίύόώϊϋ 0123456789.,!?#@()+-=';
        } else {
            if ($language == "russian") {
                $title = preg_replace('/[^АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдеёжзийклмнопрстуфхцчшщъыьэюя 0123456789.,!?#@()+-=\\s]/', '', $title);
                $start = preg_replace('/[^АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдеёжзийклмнопрстуфхцчшщъыьэюя 0123456789.,!?#@()+-=\\s]/', '', $start);
                $chars = 'АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ 0123456789.,!?#@()+-=';
            }
        }
    }
    $background_image = TS_VCSC_GetResourceURL('images/flipboard/ts_flipflap_' . $language . '_' . $style . '_' . $size . '.png');
    // Flipboard Size
    if ($size == 'large') {
        $char_height = 100;
        $char_width = 50;
    } else {
        if ($size == 'medium') {
            $char_height = 70;
            $char_width = 35;
        } else {
            if ($size == 'small') {
                $char_height = 40;
                $char_width = 20;
            }
        }
    }
    if (function_exists('vc_shortcode_custom_css_class')) {
        $css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, ' ' . vc_shortcode_custom_css_class($css, ' '), 'TS_VCSC_Title_Flipboard', $atts);
    } else {
        $css_class = '';
    }
    $output .= '<div class="ts-splitflap-container clearFixMe ' . $css_class . '" style="margin-top: ' . $margin_top . 'px; margin-bottom: ' . $margin_bottom . 'px;">';
    if ($VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_VCFrontEditMode == "true") {
        $output .= '<img class="ts-splitflap-image" src="' . TS_VCSC_GetResourceURL('images/other/ts_flipboard_title_' . $style . '.png') . '">';
        $output .= '<div class="ts-splitflap-info">' . __("Title Text", "ts_visual_composer_extend") . ': ' . $title . '</div>';
        $output .= '<div class="ts-splitflap-info">' . __("Flipboard Size", "ts_visual_composer_extend") . ': ' . $size . '</div>';
        $output .= '<div class="ts-splitflap-info">' . __("Trigger on Viewport", "ts_visual_composer_extend") . ': ' . $viewport . '</div>';
    } else {
        $output .= '<div class="ts-splitflap-wrapper" data-frontend="' . $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_VCFrontEditMode . '" data-restart="' . $restart . '" data-mobile="' . $mobile . '" data-wrapper="' . $wrapper . '" data-text="' . strtoupper($title) . '" data-start="' . strtoupper($start) . '" data-equalize="' . $equalize . '" data-dotted="' . $dotted . '" data-chars="' . $chars . '" data-speed="' . $speed . '" data-size="' . $size . '" data-height="' . $char_height . '" data-width="' . $char_width . '" data-image="' . $background_image . '" data-viewport="' . $viewport . '" data-delay="' . $delay . '">';
        $output .= '' . $title . '';
        $output .= '</div>';
    }
    $output .= '</div>';
    echo $output;
    $myvariable = ob_get_clean();
    return $myvariable;
}
开发者ID:Telemedellin,项目名称:fonvalmed,代码行数:70,代码来源:ts_vcsc_shortcode_title_flipboard.php

示例5: TS_VCSC_Quick_Testimonial_Function

function TS_VCSC_Quick_Testimonial_Function($atts, $content = null)
{
    global $VISUAL_COMPOSER_EXTENSIONS;
    ob_start();
    wp_enqueue_style('ts-visual-composer-extend-front');
    extract(shortcode_atts(array('avatar' => '', 'author' => '', 'position' => '', 'style' => 'style1', 'show_author' => 'true', 'show_avatar' => 'true', 'margin_top' => 0, 'margin_bottom' => 0, 'el_id' => '', 'el_class' => '', 'css' => ''), $atts));
    $output = '';
    if (!empty($el_id)) {
        $testimonial_block_id = $el_id;
    } else {
        $testimonial_block_id = 'ts-vcsc-quick-testimonial-' . mt_rand(999999, 9999999);
    }
    if ($avatar != '') {
        $testimonial_avatar = wp_get_attachment_image_src($avatar, 'full');
        $testimonial_avatar = $testimonial_avatar[0];
    } else {
        $testimonial_avatar = TS_VCSC_GetResourceURL('images/defaults/default_person.jpg');
    }
    if (function_exists('vc_shortcode_custom_css_class')) {
        $css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'ts-testimonial-main clearFixMe ' . $style . ' ' . $el_class . ' ' . vc_shortcode_custom_css_class($css, ' '), 'TS_VCSC_Quick_Testimonial', $atts);
    } else {
        $css_class = 'ts-testimonial-main clearFixMe ' . $style . ' ' . $el_class;
    }
    if ($style == "style1") {
        $output .= '<div id="' . $testimonial_block_id . '" class="' . $css_class . '" style="margin-top: ' . $margin_top . 'px; margin-bottom: ' . $margin_bottom . 'px;">';
        $output .= '<div class="ts-testimonial-content">';
        if ($show_avatar == "true" || $show_author == "true") {
            $output .= '<span class="ts-testimonial-arrow"></span>';
        }
        if (function_exists('wpb_js_remove_wpautop')) {
            $output .= '' . wpb_js_remove_wpautop(do_shortcode($content), true) . '';
        } else {
            $output .= '' . do_shortcode($content) . '';
        }
        $output .= '</div>';
        if ($show_avatar == "true" || $show_author == "true") {
            $output .= '<div class="ts-testimonial-user">';
            if ($show_avatar == "true") {
                $output .= '<div class="ts-testimonial-user-thumb"><img src="' . $testimonial_avatar . '" alt=""></div>';
            }
            if ($show_author == "true") {
                $output .= '<div class="ts-testimonial-user-name">' . $author . '</div>';
                $output .= '<div class="ts-testimonial-user-meta">' . $position . '</div>';
            }
            $output .= '</div>';
        }
        $output .= '</div>';
    }
    if ($style == "style2") {
        $output .= '<div id="' . $testimonial_block_id . '" class="' . $css_class . '" style="margin-top: ' . $margin_top . 'px; margin-bottom: ' . $margin_bottom . 'px;">';
        $output .= '<div class="blockquote">';
        $output .= '<span class="leftq quotes"></span>';
        if (function_exists('wpb_js_remove_wpautop')) {
            $output .= '' . wpb_js_remove_wpautop(do_shortcode($content), true) . '';
        } else {
            $output .= '' . do_shortcode($content) . '';
        }
        $output .= '<span class="rightq quotes"></span>';
        $output .= '</div>';
        if ($show_avatar == "true" || $show_author == "true") {
            $output .= '<div class="information">';
            if ($show_avatar == "true") {
                $output .= '<img src="' . $testimonial_avatar . '" style="width: 150px; height: auto; " width="150" height="auto" />';
            }
            if ($show_author == "true") {
                $output .= '<div class="author" style="' . ($show_avatar == "false" ? "margin-left: 15px;" : "") . '">' . $author . '</div>';
                $output .= '<div class="metadata">' . $position . '</div>';
            }
            $output .= '</div>';
        }
        $output .= '</div>';
    }
    if ($style == "style3") {
        $output .= '<div id="' . $testimonial_block_id . '" class="' . $css_class . '" style="margin-top: ' . $margin_top . 'px; margin-bottom: ' . $margin_bottom . 'px;">';
        if ($show_avatar == "true") {
            $output .= '<div class="photo">';
            $output .= '<img src="' . $testimonial_avatar . '" alt=""/>';
            $output .= '</div>';
        }
        $output .= '<div class="content" style="' . ($show_avatar == "false" ? "margin-left: 0;" : "") . '">';
        $output .= '<span class="laquo"></span>';
        if (function_exists('wpb_js_remove_wpautop')) {
            $output .= '' . wpb_js_remove_wpautop(do_shortcode($content), true) . '';
        } else {
            $output .= '' . do_shortcode($content) . '';
        }
        $output .= '<span class="raquo"></span>';
        $output .= '</div>';
        if ($show_author == "true") {
            $output .= '<div class="sign">';
            $output .= '<span class="author">' . $author . '</span>';
            $output .= '<span class="metadata">' . $position . '</span>';
            $output .= '</div>';
        }
        $output .= '</div>';
    }
    if ($style == "style4") {
        $output .= '<div id="' . $testimonial_block_id . '" class="' . $css_class . '" style="margin-top: ' . $margin_top . 'px; margin-bottom: ' . ($margin_bottom + 32) . 'px;">';
        if ($show_avatar == "true" || $show_author == "true") {
            $output .= '<div class="ts-testimonial-author-info clearfix">';
//.........这里部分代码省略.........
开发者ID:Telemedellin,项目名称:fonvalmed,代码行数:101,代码来源:ts_vcsc_shortcode_quick_testimonial.php

示例6: TS_VCSC_Timeline_CSS_Function_Section


//.........这里部分代码省略.........
                     }
                     if (isset($Timeline_Attributetitle)) {
                         $media_title = $Timeline_Attributetitle;
                     } else {
                         if (isset($Timeline_Eventtitletext)) {
                             $media_title = $Timeline_Eventtitletext;
                         } else {
                             $media_title = '';
                         }
                     }
                     if ($Timeline_Featuredmedia == 'youtube_default') {
                         $media_image = TS_VCSC_VideoImage_Youtube($featured_youtube_url);
                         $media_string .= '<div class="nch-holder nchgrid-item nchgrid-tile nch-lightbox-youtube" style="' . $parent_dimensions . '; ' . $image_alignment . '">';
                         $media_string .= '<a href="' . $featured_youtube_url . '" class="nch-lightbox-media no-ajaxy" data-thumbnail="' . $media_image . '" data-title="' . $media_title . '" data-related="' . $video_related . '" data-videoplay="' . $video_autoplay . '" data-type="youtube" rel="' . ($Timeline_Lightboxgroup == "true" ? "timelinegroup" : (isset($Timeline_Lightboxgroupname) ? $Timeline_Lightboxgroupname : "")) . '" data-share="0" data-effect="' . (isset($Timeline_Lightboxeffect) ? $Timeline_Lightboxeffect : 'random') . '" data-duration="5000" ' . $nacho_color . '>';
                         $media_string .= '<img src="' . $media_image . '" title="" style="display: block; ' . $image_dimensions . '">';
                         $media_string .= '<div class="nchgrid-caption"></div>';
                         if ($media_title != '') {
                             $media_string .= '<div class="nchgrid-caption-text">' . $media_title . '</div>';
                         }
                         $media_string .= '</a>';
                         $media_string .= '</div>';
                     } else {
                         if ($Timeline_Featuredmedia == 'youtube_custom') {
                             if (isset($Timeline_Featuredimageid)) {
                                 $media_image = wp_get_attachment_image_src($Timeline_Featuredimageid, 'full');
                                 $media_image = $media_image[0];
                                 $image_extension = pathinfo($media_image, PATHINFO_EXTENSION);
                                 if (isset($Timeline_Attributealtvalue)) {
                                     $alt_attribute = $Timeline_Attributealtvalue;
                                 } else {
                                     $alt_attribute = basename($Timeline_Featuredimage, "." . $image_extension);
                                 }
                             } else {
                                 $media_image = TS_VCSC_GetResourceURL('images/defaults/default_youtube.jpg');
                                 $image_extension = pathinfo($media_image, PATHINFO_EXTENSION);
                                 if (isset($Timeline_Attributealtvalue)) {
                                     $alt_attribute = $Timeline_Attributealtvalue;
                                 } else {
                                     $alt_attribute = basename($media_image, "." . $image_extension);
                                 }
                             }
                             $media_string .= '<div class="nch-holder nchgrid-item nchgrid-tile nch-lightbox-youtube" style="' . $parent_dimensions . '; ' . $image_alignment . '">';
                             $media_string .= '<a href="' . $featured_youtube_url . '" class="nch-lightbox-media no-ajaxy" data-thumbnail="' . $media_image . '" data-title="' . $media_title . '" data-related="' . $video_related . '" data-videoplay="' . $video_autoplay . '" data-type="youtube" rel="' . ($Timeline_Lightboxgroup == "true" ? "timelinegroup" : (isset($Timeline_Lightboxgroupname) ? $Timeline_Lightboxgroupname : "")) . '" data-share="0" data-effect="' . (isset($Timeline_Lightboxeffect) ? $Timeline_Lightboxeffect : 'random') . '" data-duration="5000" ' . $nacho_color . '>';
                             $media_string .= '<img src="' . $media_image . '" title="" style="display: block; ' . $image_dimensions . '">';
                             $media_string .= '<div class="nchgrid-caption"></div>';
                             if ($media_title != '') {
                                 $media_string .= '<div class="nchgrid-caption-text">' . $media_title . '</div>';
                             }
                             $media_string .= '</a>';
                             $media_string .= '</div>';
                         } else {
                             if ($Timeline_Featuredmedia == 'youtube_embed') {
                                 $video_id = TS_VCSC_VideoID_Youtube($featured_youtube_url);
                                 if ($video_autoplay == "true") {
                                     $video_autoplay = '?autoplay=1';
                                 } else {
                                     $video_autoplay = '?autoplay=0';
                                 }
                                 $media_string .= '<div class="ts-video-container" style="' . $parent_dimensions . '; ' . $image_alignment . '">';
                                 $media_string .= '<iframe width="100%" height="auto" src="//www.youtube.com/embed/' . $video_id . $video_autoplay . $video_related . '&wmode=opaque" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
                                 $media_string .= '</div>';
                             }
                         }
                     }
                 }
                 // Featured Media: DailyMotion
开发者ID:Telemedellin,项目名称:fonvalmed,代码行数:67,代码来源:ts_vcsc_class_timeline_css.php

示例7: TS_VCSC_Logos_Post_Type

 function TS_VCSC_Logos_Post_Type()
 {
     global $VISUAL_COMPOSER_EXTENSIONS;
     $MenuPosition_Logos = is_array($VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_CustomPostTypesPositions) && array_key_exists('ts_logos', $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_CustomPostTypesPositions) ? $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_CustomPostTypesPositions['ts_logos'] : $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Menu_Positions_Defaults['ts_logos'];
     $labels = array('name' => __('Logos', 'ts_visual_composer_extend'), 'singular_name' => __('Logo', 'ts_visual_composer_extend'), 'add_new' => __('Add New', 'ts_visual_composer_extend'), 'add_new_item' => __('Add New Logo', 'ts_visual_composer_extend'), 'edit_item' => __('Edit Logo', 'ts_visual_composer_extend'), 'new_item' => __('New Logo', 'ts_visual_composer_extend'), 'view_item' => __('View Logo', 'ts_visual_composer_extend'), 'search_items' => __('Search Logos', 'ts_visual_composer_extend'), 'not_found' => __('No Logo(s) found', 'ts_visual_composer_extend'), 'not_found_in_trash' => __('No Logo(s) found in the Trash', 'ts_visual_composer_extend'), 'parent_item_colon' => '', 'menu_name' => 'VC Logos');
     $args = array('labels' => $labels, 'description' => __('Add Logos to be used with the "Composium - Visual Composer Extensions" plugin.', 'ts_visual_composer_extend'), 'public' => false, 'menu_icon' => TS_VCSC_GetResourceURL("css/other/ts_logo_admin.png"), 'rewrite' => true, 'exclude_from_search' => true, 'publicly_queryable' => false, 'show_ui' => true, 'show_in_menu' => true, 'query_var' => true, 'capability_type' => 'post', 'has_archive' => false, 'hierarchical' => false, 'menu_position' => $MenuPosition_Logos, 'supports' => array('title', 'thumbnail'));
     register_post_type('ts_logos', $args);
     $labels = array('name' => __('Categories', 'ts_visual_composer_extend'), 'singular_name' => __('Category', 'ts_visual_composer_extend'), 'search_items' => __('Search in Categories', 'ts_visual_composer_extend'), 'all_items' => __('Categories', 'ts_visual_composer_extend'), 'parent_item' => __('Parent Category', 'ts_visual_composer_extend'), 'parent_item_colon' => __('Parent Category:', 'ts_visual_composer_extend'), 'edit_item' => __('Edit Category', 'ts_visual_composer_extend'), 'update_item' => __('Update Category', 'ts_visual_composer_extend'), 'add_new_item' => __('Add New Category', 'ts_visual_composer_extend'), 'new_item_name' => __('New Category', 'ts_visual_composer_extend'), 'menu_name' => __('Categories', 'ts_visual_composer_extend'));
     register_taxonomy('ts_logos_category', array('ts_logos'), array('hierarchical' => true, 'public' => false, 'labels' => $labels, 'show_ui' => true, 'rewrite' => true, 'show_admin_column' => true));
     new TS_VCSC_Tax_CTP_Filter(array('ts_logos' => array('ts_logos_category')));
 }
开发者ID:Telemedellin,项目名称:fonvalmed,代码行数:11,代码来源:ts_vcsc_custom_post_registration.php

示例8: TS_VCSC_GetResourceURL

echo $VISUAL_COMPOSER_EXTENSIONS->settingsLink;
?>
" target="_parent"><img src="<?php 
echo TS_VCSC_GetResourceURL('images/logos/ts_vcsc_menu_icon_16x16.png');
?>
" style="width: 16px; height: 16px; margin-right: 10px;">Back to Plugin Settings</a>
						<a class="button-secondary" style="width: 200px; margin: 0 5px 0 0; text-align: center;" href="http://tekanewascripts.com/vcextensions/documentation/" target="_blank"><img src="<?php 
echo TS_VCSC_GetResourceURL('images/other/ts_vcsc_manual_icon_16x16.png');
?>
" style="width: 16px; height: 16px; margin-right: 10px;">Manual</a>
						<a class="button-secondary" style="width: 200px; margin: 0 5px 0 0; text-align: center;" href="http://helpdesk.tekanewascripts.com/forums/forum/wordpress-plugins/visual-composer-extensions/" target="_blank"><img src="<?php 
echo TS_VCSC_GetResourceURL('images/other/ts_vcsc_support_icon_16x16.png');
?>
" style="width: 16px; height: 16px; margin-right: 10px;">Support Forum</a>
						<a class="button-secondary" style="width: 200px; margin: 0 5px 0 0; text-align: center;" href="http://helpdesk.tekanewascripts.com/category/visual-composer-extensions/" target="_blank"><img src="<?php 
echo TS_VCSC_GetResourceURL('images/other/ts_vcsc_knowledge_icon_16x16.png');
?>
" style="width: 16px; height: 16px; margin-right: 10px;">Knowledge Base</a>
					</div>
					<p>The options below allow you to export your current plugin settings and to import previously exported settings back into the plugin.</p>
					<p>The exported file will be created on the fly as .json file and must not be edited as the plugin requires a specific syntax in order to process an import request.</p>
				</div>
			</div>
			<div class="ts-vcsc-section-main">
				<div class="ts-vcsc-section-title ts-vcsc-section-show"><i class="dashicons-download"></i>Export Settings</div>
				<div class="ts-vcsc-section-content">
					<div class="ts-vcsc-notice-field ts-vcsc-success" style="margin-top: 10px; font-size: 13px; text-align: justify;">Here you can export the plugin settings in order to import them into another site.</div>
					<?php 
$secret = md5(md5(AUTH_KEY . SECURE_AUTH_KEY) . '-' . 'ts-vcsc-extend');
$link = admin_url('admin-ajax.php?action=ts_export_settings&secret=' . $secret);
?>
开发者ID:Telemedellin,项目名称:fonvalmed,代码行数:31,代码来源:ts_vcsc_transfers.php

示例9: TS_VCSC_Team_Mates_Slider_Category


//.........这里部分代码省略.........
         $css_class = 'ts-teammates-slider ' . $slider_class . ' ' . $el_class;
     }
     $output .= '<div id="' . $teammate_slider_id . '-container" class="ts-teammates-slider-container" style="margin-top: ' . $margin_top . 'px; margin-bottom: ' . $margin_bottom . 'px;">';
     // Front-Edit Message
     if ($frontend_edit == "true") {
         $output .= $slider_message;
     }
     // Add Progressbar
     if ($auto_play == "true" && $show_bar == "true" && $frontend_edit == "false") {
         $output .= '<div id="ts-owlslider-progressbar-' . $teammate_random . '" class="ts-owlslider-progressbar-holder" style=""><div class="ts-owlslider-progressbar" style="background: ' . $bar_color . '; height: 100%; width: 0%;"></div></div>';
     }
     // Add Navigation Controls
     if ($frontend_edit == "false") {
         $output .= '<div id="ts-owlslider-controls-' . $teammate_random . '" class="ts-owlslider-controls" style="' . ($auto_play == "true" && $show_playpause == "true" || $show_navigation == "true" ? "display: block;" : "display: none;") . '">';
         $output .= '<div id="ts-owlslider-controls-next-' . $teammate_random . '" style="' . ($show_navigation == "true" ? "display: block;" : "display: none;") . '" class="ts-owlslider-controls-next"><span class="ts-ecommerce-arrowright5"></span></div>';
         $output .= '<div id="ts-owlslider-controls-prev-' . $teammate_random . '" style="' . ($show_navigation == "true" ? "display: block;" : "display: none;") . '" class="ts-owlslider-controls-prev"><span class="ts-ecommerce-arrowleft5"></span></div>';
         if ($auto_play == "true" && $show_playpause == "true") {
             $output .= '<div id="ts-owlslider-controls-play-' . $teammate_random . '" class="ts-owlslider-controls-play active"><span class="ts-ecommerce-pause"></span></div>';
         }
         $output .= '</div>';
     }
     // Add Slider
     $output .= '<div id="' . $teammate_slider_id . '" class="' . $css_class . '" data-id="' . $teammate_random . '" data-items="' . $teammates_slide . '" data-rtl="' . $page_rtl . '" data-loop="' . $items_loop . '" data-navigation="' . $show_navigation . '" data-dots="' . $show_dots . '" data-mobile="' . $animation_mobile . '" data-animationin="' . $animation_in . '" data-animationout="' . $animation_out . '" data-height="' . $auto_height . '" data-play="' . $auto_play . '" data-bar="' . $show_bar . '" data-color="' . $bar_color . '" data-speed="' . $show_speed . '" data-hover="' . $stop_hover . '">';
     // Build Teammate Post Main Content
     foreach ($teammate_array as $index => $array) {
         $Team_Author = $teammate_array[$index]['author'];
         $Team_Name = $teammate_array[$index]['name'];
         $Team_Title = $teammate_array[$index]['title'];
         $Team_ID = $teammate_array[$index]['id'];
         $Team_Content = $teammate_array[$index]['content'];
         $Team_Category = $teammate_array[$index]['categories'];
         $Team_Image = wp_get_attachment_image_src(get_post_thumbnail_id($Team_ID), 'full');
         if ($Team_Image == false) {
             $Team_Image = TS_VCSC_GetResourceURL('images/defaults/default_person.jpg');
         } else {
             $Team_Image = $Team_Image[0];
         }
         // Retrieve Teammate Post Meta Content
         $custom_fields = get_post_custom($Team_ID);
         $custom_fields_array = array();
         foreach ($custom_fields as $field_key => $field_values) {
             if (!isset($field_values[0])) {
                 continue;
             }
             if (in_array($field_key, array("_edit_lock", "_edit_last"))) {
                 continue;
             }
             if (strpos($field_key, 'ts_vcsc_team_') !== false) {
                 $field_key_split = explode("_", $field_key);
                 $field_key_length = count($field_key_split) - 1;
                 $custom_data = array('group' => $field_key_split[$field_key_length - 1], 'name' => 'Team_' . ucfirst($field_key_split[$field_key_length]), 'value' => $field_values[0]);
                 $custom_fields_array[] = $custom_data;
             }
         }
         foreach ($custom_fields_array as $index => $array) {
             ${$custom_fields_array[$index]['name']} = $custom_fields_array[$index]['value'];
         }
         if (isset($Team_Position)) {
             $Team_Position = $Team_Position;
         } else {
             $Team_Position = '';
         }
         if (isset($Team_Buttonlabel)) {
             $Team_Buttonlabel = $Team_Buttonlabel;
         } else {
             $Team_Buttonlabel = '';
开发者ID:baochung26,项目名称:happy-c,代码行数:67,代码来源:ts_vcsc_class_teammates.php

示例10: fonts_setting_field

 function fonts_setting_field($settings, $value)
 {
     global $VISUAL_COMPOSER_EXTENSIONS;
     // Main Settings
     $dependency = vc_generate_dependencies_attributes($settings);
     $param_name = isset($settings['param_name']) ? $settings['param_name'] : '';
     $type = isset($settings['type']) ? $settings['type'] : '';
     $preview = isset($settings['preview']) ? $settings['preview'] : 'true';
     $search = isset($settings['search']) ? $settings['search'] : 'true';
     $filter = isset($settings['filter']) ? $settings['filter'] : 'true';
     $manager = isset($settings['manager']) ? $settings['manager'] : 'false';
     $default = isset($settings['default']) ? $settings['default'] : 'true';
     $connector = isset($settings['connector']) ? $settings['connector'] : 'font_type';
     // Text Strings
     $textswitch = isset($settings['textswitch']) ? $settings['textswitch'] : __("Show Font Manager:", "ts_visual_composer_extend");
     $textholder = isset($settings['textholder']) ? $settings['textholder'] : __("Select a Font", "ts_visual_composer_extend");
     $textsearch = isset($settings['textsearch']) ? $settings['textsearch'] : __("Search Fonts:", "ts_visual_composer_extend");
     $textfilter = isset($settings['textfilter']) ? $settings['textfilter'] : __("Filter Fonts:", "ts_visual_composer_extend");
     $textvariants = isset($settings['textvariants']) ? $settings['textvariants'] : __("Select Font Variant:", "ts_visual_composer_extend");
     $textfavorite = isset($settings['textfavorite']) ? $settings['textfavorite'] : __("Favorite Fonts", "ts_visual_composer_extend");
     $textdefault = isset($settings['textdefault']) ? $settings['textdefault'] : __("Default Font", "ts_visual_composer_extend");
     $textstandard = isset($settings['textstandard']) ? $settings['textstandard'] : __("Websave Fonts", "ts_visual_composer_extend");
     $textgoogle = isset($settings['textgoogle']) ? $settings['textgoogle'] : __("Google Fonts", "ts_visual_composer_extend");
     $textpreviewer = isset($settings['textpreviewer']) ? $settings['textpreviewer'] : __("Autoload CSS font files for live preview while scrolling list.", "ts_visual_composer_extend");
     // Switch Settings
     $on = isset($settings['on']) ? $settings['on'] : __("Yes", "ts_visual_composer_extend");
     $off = isset($settings['off']) ? $settings['off'] : __("No", "ts_visual_composer_extend");
     $style = isset($settings['style']) ? $settings['style'] : 'select';
     $design = isset($settings['design']) ? $settings['design'] : 'toggle-light';
     $width = isset($settings['width']) ? $settings['width'] : '80';
     // Other Variables
     $identifier = mt_rand(999999, 9999999);
     $url = $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_PluginPath;
     $image = TS_VCSC_GetResourceURL('images/other/google_fonts.jpg');
     /*if (($value != '') && ($value != 'Default:regular')) {
           $toggle     = 'true';
           $display    = 'block';
       } else {*/
     $toggle = 'false';
     $display = 'none';
     //}
     $output = '';
     $output .= '<div id="ts-font-selector-' . $identifier . '" class="ts-font-selector" data-manager="' . $manager . '" data-identifier="' . $identifier . '" data-toggle="ts-font-selector-toggle-' . $identifier . '" data-fontello="ts-font-selector-fontello-' . $identifier . '" data-connector="' . $connector . '" data-text-holder="' . $textholder . '" data-text-search="' . $textsearch . '" data-text-filter="' . $textfilter . '" data-text-favorite="' . $textfavorite . '" data-text-default="' . $textdefault . '" data-text-standard="' . $textstandard . '" data-text-google="' . $textgoogle . '" data-text-variants="' . $textvariants . '" data-text-previewer="' . $textpreviewer . '" data-preview="' . $preview . '" data-search="' . $search . '" data-filter="' . $filter . '">';
     $output .= '<div id="ts-font-selector-switcheroo-' . $identifier . '" class="ts-font-selector-switcheroo">';
     $output .= '<label for="ts-font-selector-toggle-' . $identifier . '">' . $textswitch . '</label>';
     $output .= '<div id="ts-font-selector-toggle-' . $identifier . '" class="ts-switch-button ts-font-selector-toggle" data-value="' . $toggle . '" data-width="' . $width . '" data-style="' . $style . '" data-on="' . $on . '" data-off="' . $off . '">';
     $output .= '<input type="hidden" style="display: none; " class="toggle-input" value="' . $toggle . '" name="ts-font-selector-toggle"/>';
     $output .= '<div class="toggle ' . $design . '" style="width: ' . $width . 'px; height: 20px;">';
     $output .= '<div class="toggle-slide">';
     $output .= '<div class="toggle-inner">';
     $output .= '<div class="toggle-on ' . ($toggle == 'true' ? 'active' : '') . '">' . $on . '</div>';
     $output .= '<div class="toggle-blob"></div>';
     $output .= '<div class="toggle-off ' . ($toggle == 'false' ? 'active' : '') . '">' . $off . '</div>';
     $output .= '</div>';
     $output .= '</div>';
     $output .= '</div>';
     $output .= '</div>';
     $output .= '</div>';
     $output .= '<div id="ts-font-selector-fontello-' . $identifier . '" class="ts-font-selector-fontello" style="display: ' . $display . ';">';
     $output .= '<div class="ts-font-selector-block"><img src="' . $image . '" class="ts-font-selector-image"></div>';
     $output .= '<input name="' . $param_name . '" id="' . $param_name . '" class="ts-font-selector-list wpb-select wpb_vc_param_value ' . $param_name . ' ' . $type . '" type="text" value="' . $value . '"/>';
     $output .= '</div>';
     $output .= '</div>';
     return $output;
 }
开发者ID:Telemedellin,项目名称:fonvalmed,代码行数:65,代码来源:ts_vcsc_parameter_googlefonts.php

示例11: TS_VCSC_checkEnvatoAPI

 function TS_VCSC_checkEnvatoAPI()
 {
     global $VISUAL_COMPOSER_EXTENSIONS;
     if ($VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_PluginIsMultiSiteActive == "true") {
         if (strlen(get_site_option('ts_vcsc_extend_settings_license')) != 0) {
             $envato_code = get_site_option('ts_vcsc_extend_settings_license');
         } else {
             $envato_code = "";
         }
         $ts_vcsc_extend_settings_licenseKeyed = get_site_option('ts_vcsc_extend_settings_licenseKeyed', 'emptydelimiterfix');
     } else {
         if (strlen(get_option('ts_vcsc_extend_settings_license')) != 0) {
             $envato_code = get_option('ts_vcsc_extend_settings_license');
         } else {
             $envato_code = "";
         }
         $ts_vcsc_extend_settings_licenseKeyed = get_option('ts_vcsc_extend_settings_licenseKeyed', 'emptydelimiterfix');
     }
     if (!in_array(base64_encode($envato_code), $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Avoid_Duplications)) {
         if (function_exists('wp_remote_get') && strlen($envato_code) != 0) {
             $remoteResponse = wp_remote_get($VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_External_URL . $envato_code . '&protocol=' . TS_VCSC_SiteProtocol() . '&clienturl=' . preg_replace('#^https?://#', '', site_url()), array('timeout' => 120, 'user-agent' => 'Composium - Visual Composer Extensions', 'httpversion' => '1.1'));
             $responseText = wp_remote_retrieve_body($remoteResponse);
             $responseCode = wp_remote_retrieve_response_code($remoteResponse);
         } else {
             if (function_exists('wp_remote_post') && strlen($envato_code) != 0) {
                 $remoteResponse = wp_remote_post($VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_External_URL . $envato_code . '&protocol=' . TS_VCSC_SiteProtocol() . '&clienturl=' . preg_replace('#^https?://#', '', site_url()), array('timeout' => 120, 'user-agent' => 'Composium - Visual Composer Extensions', 'httpversion' => '1.1'));
                 $responseText = wp_remote_retrieve_body($remoteResponse);
                 $responseCode = wp_remote_retrieve_response_code($remoteResponse);
             } else {
                 $remoteResponse = "";
                 $responseText = "";
                 $responseCode = "";
             }
         }
     } else {
         $remoteResponse = "";
         $responseText = "";
         $responseCode = "";
     }
     if ($responseCode == 200 && strlen($responseText) != 0) {
         if (strlen($envato_code) == 0 || strpos($responseText, $envato_code) === FALSE) {
             if ($VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_PluginIsMultiSiteActive == "true") {
                 update_site_option('ts_vcsc_extend_settings_licenseValid', 0);
                 update_site_option('ts_vcsc_extend_settings_licenseKeyed', 'emptydelimiterfix');
                 update_site_option('ts_vcsc_extend_settings_licenseInfo', strlen($envato_code) != 0 ? $responseText : '');
                 update_site_option('ts_vcsc_extend_settings_demo', 1);
             } else {
                 update_option('ts_vcsc_extend_settings_licenseValid', 0);
                 update_option('ts_vcsc_extend_settings_licenseKeyed', 'emptydelimiterfix');
                 update_option('ts_vcsc_extend_settings_licenseInfo', strlen($envato_code) != 0 ? $responseText : '');
                 update_option('ts_vcsc_extend_settings_demo', 1);
             }
             $LicenseCheckStatus = '<div class="clearFixMe" style="color: red; font-weight: bold; padding-bottom: 10px;">License Check has been initiated but was unsuccessful!</div>';
             $LicenseCheckSuccess = 0;
         } else {
             if (strlen($envato_code) != 0 && strpos($responseText, $envato_code) != FALSE) {
                 if ($VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_PluginIsMultiSiteActive == "true") {
                     update_site_option('ts_vcsc_extend_settings_licenseValid', 1);
                     update_site_option('ts_vcsc_extend_settings_licenseKeyed', $envato_code);
                     update_site_option('ts_vcsc_extend_settings_licenseInfo', str_replace("Link_To_Envato_Image", TS_VCSC_GetResourceURL('images/envato/envato_logo.png'), $responseText));
                     update_site_option('ts_vcsc_extend_settings_demo', 0);
                 } else {
                     update_option('ts_vcsc_extend_settings_licenseValid', 1);
                     update_option('ts_vcsc_extend_settings_licenseKeyed', $envato_code);
                     update_option('ts_vcsc_extend_settings_licenseInfo', str_replace("Link_To_Envato_Image", TS_VCSC_GetResourceURL('images/envato/envato_logo.png'), $responseText));
                     update_option('ts_vcsc_extend_settings_demo', 0);
                 }
                 $LicenseCheckStatus = '<div class="clearFixMe" style="color: green; font-weight: bold; padding-bottom: 10px;">License Check has been succesfully completed!</div>';
                 $LicenseCheckSuccess = 1;
             } else {
                 if ($VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_PluginIsMultiSiteActive == "true") {
                     update_site_option('ts_vcsc_extend_settings_licenseValid', 0);
                     update_site_option('ts_vcsc_extend_settings_licenseKeyed', 'emptydelimiterfix');
                     update_site_option('ts_vcsc_extend_settings_licenseInfo', strlen($envato_code) != 0 ? $responseText : '');
                     update_site_option('ts_vcsc_extend_settings_demo', 1);
                 } else {
                     update_option('ts_vcsc_extend_settings_licenseValid', 0);
                     update_option('ts_vcsc_extend_settings_licenseKeyed', 'emptydelimiterfix');
                     update_option('ts_vcsc_extend_settings_licenseInfo', strlen($envato_code) != 0 ? $responseText : '');
                     update_option('ts_vcsc_extend_settings_demo', 1);
                 }
                 $LicenseCheckStatus = '<div class="clearFixMe" style="color: red; font-weight: bold; padding-bottom: 10px;">License Check has been initiated but was unsuccessful!</div>';
                 $LicenseCheckSuccess = 0;
             }
         }
     } else {
         if ($VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_PluginIsMultiSiteActive == "true") {
             update_site_option('ts_vcsc_extend_settings_licenseValid', 0);
             update_site_option('ts_vcsc_extend_settings_licenseKeyed', 'emptydelimiterfix');
             update_site_option('ts_vcsc_extend_settings_licenseInfo', '');
             update_site_option('ts_vcsc_extend_settings_demo', 1);
         } else {
             update_option('ts_vcsc_extend_settings_licenseValid', 0);
             update_option('ts_vcsc_extend_settings_licenseKeyed', 'emptydelimiterfix');
             update_option('ts_vcsc_extend_settings_licenseInfo', '');
             update_option('ts_vcsc_extend_settings_demo', 1);
         }
         if (in_array(base64_encode($envato_code), $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Avoid_Duplications)) {
             $LicenseCheckStatus = '<div class="clearFixMe" style="color: red; font-weight: bold; padding-bottom: 10px;">The License Key has been revoked by Envato due to a full refund of the purchase price!</div>';
         } else {
//.........这里部分代码省略.........
开发者ID:Telemedellin,项目名称:fonvalmed,代码行数:101,代码来源:ts_vcsc_license.php

示例12: TS_VCSC_HTML5_Audio_Function

function TS_VCSC_HTML5_Audio_Function($atts, $content = null)
{
    global $VISUAL_COMPOSER_EXTENSIONS;
    ob_start();
    wp_enqueue_style('ts-extend-tooltipster');
    wp_enqueue_script('ts-extend-tooltipster');
    if (get_option('ts_vcsc_extend_settings_loadForcable', 0) == 0) {
        wp_enqueue_style('ts-extend-animations');
        wp_enqueue_style('ts-visual-composer-extend-front');
        wp_enqueue_script('ts-visual-composer-extend-front');
    }
    extract(shortcode_atts(array('audio_mp3_source' => 'true', 'audio_mp3_remote' => '', 'audio_mp3_local' => '', 'audio_ogg_source' => 'true', 'audio_ogg_remote' => '', 'audio_ogg_local' => '', 'audio_bar_only' => 'true', 'audio_fixed' => 'false', 'audio_fixed_show' => 'true', 'audio_fixed_width' => 250, 'audio_fixed_height' => 140, 'audio_fixed_adjust' => 0, 'audio_fixed_switch' => 'toggle', 'audio_fixed_position' => 'bottomleft', 'audio_poster' => '', 'audio_logo_show' => 'logonone', 'audio_logo_image' => '', 'audio_logo_height' => 50, 'audio_logo_opacity' => 50, 'audio_logo_position' => 'left', 'audio_logo_link' => '', 'audio_theme' => 'maccaco', 'audio_title' => '', 'audio_iframe' => 'true', 'audio_auto' => 'false', 'audio_stop' => 'true', 'audio_loop' => 'false', 'audio_fullscreen' => 'true', 'audio_share' => 'true', 'audio_volume' => 50, 'content_image_responsive' => 'true', 'content_image_height' => 'height: 100%;', 'content_image_width_r' => 100, 'content_image_width_f' => 300, 'content_image_size' => 'large', 'content_tooltip_css' => 'false', 'content_tooltip_title' => '', 'content_tooltip_content' => '', 'content_tooltip_position' => 'ts-simptip-position-top', 'tooltipster_offsetx' => 0, 'tooltipster_offsety' => 0, 'margin_top' => 0, 'margin_bottom' => 0, 'el_id' => '', 'el_class' => '', 'css' => ''), $atts));
    $randomizer = mt_rand(999999, 9999999);
    if (!empty($el_id)) {
        $modal_id = $el_id;
    } else {
        $modal_id = 'ts-vcsc-modal-' . $randomizer;
    }
    // Audio Data
    if ($audio_mp3_source == "true") {
        $audio_url = wp_get_attachment_url($audio_mp3_local);
    } else {
        $audio_url = $audio_mp3_remote;
    }
    $audio_mp3 = $audio_url;
    if ($audio_ogg_source == "true") {
        $audio_url = wp_get_attachment_url($audio_ogg_local);
    } else {
        $audio_url = $audio_ogg_remote;
    }
    $audio_ogg = $audio_url;
    // Poster + Logo
    $poster_image = wp_get_attachment_image_src($audio_poster, 'full');
    if ($poster_image != false) {
        $poster_image = $poster_image[0];
    } else {
        $poster_image = TS_VCSC_GetResourceURL("images/defaults/default_html5.jpg");
    }
    if ($audio_logo_show != "logonone") {
        $logo_image = wp_get_attachment_image_src($audio_logo_image, 'full');
        $logo_image = $logo_image[0];
        $audio_logo_link = $audio_logo_link == '||' ? '' : $audio_logo_link;
        $audio_logo_link = vc_build_link($audio_logo_link);
        $logo_link_href = $audio_logo_link['url'];
        $logo_link_title = $audio_logo_link['title'];
        $logo_link_target = $audio_logo_link['target'];
    } else {
        $logo_image = '';
        $video_logo_link = '';
        $logo_link_href = '';
        $logo_link_title = '';
        $logo_link_target = '';
    }
    // Adjustment for Inline Edit Mode of VC
    if ($VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_VCFrontEditMode == "true") {
        $audio_fixed = 'false';
    } else {
        $audio_fixed = $audio_fixed;
    }
    // Tooltip
    if ($content_tooltip_content != '') {
        if ($content_tooltip_position == "ts-simptip-position-top" || $content_tooltip_position == "top") {
            $content_tooltip_position = "top";
        }
        if ($content_tooltip_position == "ts-simptip-position-left" || $content_tooltip_position == "left") {
            $content_tooltip_position = "left";
        }
        if ($content_tooltip_position == "ts-simptip-position-right" || $content_tooltip_position == "right") {
            $content_tooltip_position = "right";
        }
        if ($content_tooltip_position == "ts-simptip-position-bottom" || $content_tooltip_position == "bottom") {
            $content_tooltip_position = "bottom";
        }
        $tooltip_content = 'data-tooltipster-title="' . $content_tooltip_title . '" data-tooltipster-text="' . $content_tooltip_content . '" data-tooltipster-image="" data-tooltipster-position="' . $content_tooltip_position . '" data-tooltipster-touch="false" data-tooltipster-arrow="true" data-tooltipster-theme="tooltipster-black" data-tooltipster-animation="swing" data-tooltipster-trigger="hover" data-tooltipster-offsetx="' . $tooltipster_offsetx . '" data-tooltipster-offsety="' . $tooltipster_offsety . '"';
        $tooltip_class = 'ts-has-tooltipster-tooltip';
        if ($audio_fixed_switch != "none") {
            $container_addition = 40;
        } else {
            $container_addition = 0;
        }
    } else {
        $tooltip_content = '';
        $tooltip_class = '';
        $container_addition = 0;
    }
    if ($audio_bar_only == "true") {
        if ($audio_fixed == "true") {
            $container_adjust = 'height: 38px; width: ' . $audio_fixed_width . 'px; padding-bottom: 0; padding-top: 0;';
            $iframe_adjust = 'height: 38px; width: ' . $audio_fixed_width . 'px;';
        } else {
            $container_adjust = 'height: 38px; padding-bottom: 0; padding-top: 0;';
            $iframe_adjust = 'height: 38px;';
        }
    } else {
        if ($audio_fixed == "true") {
            $container_adjust = 'margin-top: 0px; margin-bottom: 0px; height: ' . $audio_fixed_height . 'px; width: ' . $audio_fixed_width . 'px; padding-bottom: 0; padding-top: 0;';
            $iframe_adjust = 'height: ' . $audio_fixed_height . 'px; width: ' . $audio_fixed_width . 'px; padding-bottom: 0; padding-top: 0;';
        } else {
            $container_adjust = 'margin-top: ' . $margin_top . 'px; margin-bottom: ' . $margin_bottom . 'px;';
            $iframe_adjust = '';
//.........这里部分代码省略.........
开发者ID:ryansm,项目名称:saud,代码行数:101,代码来源:ts_vcsc_shortcode_html5audio.php

示例13: TS_VCSC_Timeline_Function_Single


//.........这里部分代码省略.........
         if ($featured_youtube_play == "true") {
             $video_autoplay = '?autoplay=1';
         } else {
             $video_autoplay = '?autoplay=0';
         }
         if ($featured_youtube_related == "true") {
             $video_related = '&rel=1';
         } else {
             $video_related = '&rel=0';
         }
         if ($featured_media == 'youtube_default') {
             $media_image = TS_VCSC_VideoImage_Youtube($featured_youtube_url);
             $media_string .= '<div class="nch-holder nchgrid-item nchgrid-tile nch-lightbox-youtube" style="' . $parent_dimensions . '; ' . $image_alignment . '">';
             $media_string .= '<a href="' . $featured_youtube_url . '" class="nch-lightbox-media" data-title="' . $title_text . '" data-related="' . $video_related . '" data-videoplay="' . $video_autoplay . '" data-type="youtube" rel="' . ($lightbox_group == "true" ? "timelinegroup" : $lightbox_group_name) . '" data-effect="' . $lightbox_effect . '" data-duration="' . $lightbox_speed . '" ' . $nacho_color . '>';
             $media_string .= '<img src="' . $media_image . '" title="" style="display: block; ' . $image_dimensions . '">';
             $media_string .= '<div class="nchgrid-caption"></div>';
             if (!empty($title_text)) {
                 $media_string .= '<div class="nchgrid-caption-text">' . $title_text . '</div>';
             }
             $media_string .= '</a>';
             $media_string .= '</div>';
         } else {
             if ($featured_media == 'youtube_custom') {
                 if (!empty($featured_image)) {
                     $media_image = wp_get_attachment_image_src($featured_image, 'full');
                     $media_image = $media_image[0];
                     $image_extension = pathinfo($media_image, PATHINFO_EXTENSION);
                     if ($featured_image_alt != "") {
                         $alt_attribute = $featured_image_alt;
                     } else {
                         $alt_attribute = basename($media_image, "." . $image_extension);
                     }
                 } else {
                     $media_image = TS_VCSC_GetResourceURL('images/defaults/default_youtube.jpg');
                     $image_extension = pathinfo($media_image, PATHINFO_EXTENSION);
                     if ($featured_image_alt != "") {
                         $alt_attribute = $featured_image_alt;
                     } else {
                         $alt_attribute = basename($media_image, "." . $image_extension);
                     }
                 }
                 $media_string .= '<div class="nch-holder nchgrid-item nchgrid-tile nch-lightbox-youtube" style="' . $parent_dimensions . '; ' . $image_alignment . '">';
                 $media_string .= '<a href="' . $featured_youtube_url . '" class="nch-lightbox-media" data-title="' . $title_text . '" data-related="' . $video_related . '" data-videoplay="' . $video_autoplay . '" data-type="youtube" rel="' . ($lightbox_group == "true" ? "timelinegroup" : $lightbox_group_name) . '" data-effect="' . $lightbox_effect . '" data-duration="' . $lightbox_speed . '" ' . $nacho_color . '>';
                 $media_string .= '<img src="' . $media_image . '" title="" style="display: block; ' . $image_dimensions . '">';
                 $media_string .= '<div class="nchgrid-caption"></div>';
                 if (!empty($title_text)) {
                     $media_string .= '<div class="nchgrid-caption-text">' . $title_text . '</div>';
                 }
                 $media_string .= '</a>';
                 $media_string .= '</div>';
             } else {
                 if ($featured_media == 'youtube_embed') {
                     $video_id = TS_VCSC_VideoID_Youtube($featured_youtube_url);
                     $media_string .= '<div class="ts-video-container" style="' . $parent_dimensions . '; ' . $image_alignment . '">';
                     $media_string .= '<iframe width="100%" height="auto" src="//www.youtube.com/embed/' . $video_id . $video_autoplay . $video_related . '&wmode=opaque" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
                     $media_string .= '</div>';
                 }
             }
         }
     }
     // Featured Media: DailyMotion
     if ($featured_media == 'dailymotion_default' || $featured_media == 'dailymotion_custom' || $featured_media == 'dailymotion_embed') {
         if (preg_match('~((http|https|ftp|ftps)://|www.)(.+?)~', $featured_dailymotion_url)) {
             $featured_dailymotion_url = $featured_dailymotion_url;
         } else {
             $featured_dailymotion_url = 'http://www.dailymotion.com/video/' . $featured_dailymotion_url;
开发者ID:baochung26,项目名称:happy-c,代码行数:67,代码来源:ts_vcsc_class_timelines.php

示例14: TS_VCSC_Vimeo_Function


//.........这里部分代码省略.........
    }
    if ($lightbox_backlight_auto == "false") {
        $nacho_color = 'data-backlight="' . $lightbox_backlight_color . '"';
    } else {
        $nacho_color = '';
    }
    if ($content_image_responsive == "true") {
        $image_dimensions = 'width: 100%; height: auto;';
        $parent_dimensions = 'width: ' . $content_image_width_r . '%; ' . $content_image_height . '';
    } else {
        $image_dimensions = 'width: 100%; height: auto;';
        $parent_dimensions = 'width: ' . $content_image_width_f . 'px; ' . $content_image_height . '';
    }
    if (preg_match('~((http|https|ftp|ftps)://|www.)(.+?)~', $content_vimeo)) {
        $content_vimeo = $content_vimeo;
    } else {
        $content_vimeo = $content_vimeo;
    }
    if ($lightbox_play == "true") {
        $video_autoplay = '?autoplay=1';
    } else {
        $video_autoplay = '?autoplay=0';
    }
    if (function_exists('vc_shortcode_custom_css_class')) {
        $css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, ' ' . vc_shortcode_custom_css_class($css, ' '), 'TS-VCSC-Vimeo', $atts);
    } else {
        $css_class = '';
    }
    $output = '';
    if ($content_lightbox == "true") {
        if ($content_vimeo_trigger == "preview") {
            $modal_image = TS_VCSC_VideoImage_Vimeo($content_vimeo);
            if ($modal_image == '') {
                $modal_image = TS_VCSC_GetResourceURL('images/defaults/default_vimeo.jpg');
            }
            if ($vimeo_tooltipcontent != '') {
                $output .= '<div class="' . $modal_id . '-parent nch-holder ' . $vimeo_tooltipclasses . '" ' . $vimeo_tooltipcontent . ' style="margin-top: ' . $margin_top . 'px; margin-bottom: ' . $margin_bottom . 'px; ' . $parent_dimensions . '">';
                $output .= '<div id="' . $modal_id . '" class="' . $el_class . ' nchgrid-item nchgrid-tile nch-lightbox-vimeo ' . $css_class . '" style="width: 100%; height: 100%;">';
            } else {
                $output .= '<div id="' . $modal_id . '" class="' . $modal_id . '-parent nch-holder ' . $el_class . ' nchgrid-item nchgrid-tile nch-lightbox-vimeo ' . $css_class . '" style="margin-top: ' . $margin_top . 'px; margin-bottom: ' . $margin_bottom . 'px; ' . $parent_dimensions . '">';
            }
            $output .= '<a href="' . $content_vimeo . '" class="nch-lightbox-media" data-title="' . $content_vimeo_title . '" data-videoplay="' . $lightbox_play . '" data-type="vimeo" rel="' . $lightbox_group_name . '" data-effect="' . $lightbox_effect . '" data-share="0" data-duration="' . $lightbox_speed . '" ' . $nacho_color . '>';
            $output .= '<img src="' . $modal_image . '" title="" style="display: block; ' . $image_dimensions . '">';
            $output .= '<div class="nchgrid-caption"></div>';
            if (!empty($content_vimeo_title)) {
                $output .= '<div class="nchgrid-caption-text">' . $content_vimeo_title . '</div>';
            }
            $output .= '</a>';
            $output .= '</div>';
            if ($vimeo_tooltipcontent != '') {
                $output .= '</div>';
            }
        }
        if ($content_vimeo_trigger == "default") {
            $modal_image = TS_VCSC_GetResourceURL('images/defaults/default_vimeo.jpg');
            if ($vimeo_tooltipcontent != '') {
                $output .= '<div class="' . $modal_id . '-parent nch-holder ' . $vimeo_tooltipclasses . '" ' . $vimeo_tooltipcontent . ' style="margin-top: ' . $margin_top . 'px; margin-bottom: ' . $margin_bottom . 'px; ' . $parent_dimensions . '">';
                $output .= '<div id="' . $modal_id . '" class="' . $el_class . ' nchgrid-item nchgrid-tile nch-lightbox-vimeo ' . $css_class . '" style="width: 100%; height: 100%;">';
            } else {
                $output .= '<div id="' . $modal_id . '" class="' . $modal_id . '-parent nch-holder ' . $el_class . ' nchgrid-item nchgrid-tile nch-lightbox-vimeo ' . $css_class . '" style="margin-top: ' . $margin_top . 'px; margin-bottom: ' . $margin_bottom . 'px; ' . $parent_dimensions . '">';
            }
            $output .= '<a href="' . $content_vimeo . '" class="nch-lightbox-media" data-title="' . $content_vimeo_title . '" data-videoplay="' . $lightbox_play . '" data-type="vimeo" rel="' . $lightbox_group_name . '" data-effect="' . $lightbox_effect . '" data-share="0" data-duration="' . $lightbox_speed . '" ' . $nacho_color . '>';
            $output .= '<img src="' . $modal_image . '" title="" style="display: block; ' . $image_dimensions . '">';
            $output .= '<div class="nchgrid-caption"></div>';
            if (!empty($content_vimeo_title)) {
                $output .= '<div class="nchgrid-caption-text">' . $content_vimeo_title . '</div>';
开发者ID:ryansm,项目名称:saud,代码行数:67,代码来源:ts_vcsc_shortcode_vimeo.php

示例15: TS_VCSC_Teaser_Block_Single

 function TS_VCSC_Teaser_Block_Single($atts)
 {
     global $VISUAL_COMPOSER_EXTENSIONS;
     ob_start();
     if ($VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_LoadFrontEndForcable == "false") {
         wp_enqueue_style('ts-extend-simptip');
         wp_enqueue_style('ts-extend-animations');
         wp_enqueue_style('ts-extend-buttons');
         wp_enqueue_style('ts-visual-composer-extend-front');
         wp_enqueue_script('ts-visual-composer-extend-front');
     }
     extract(shortcode_atts(array('image' => '', 'image_responsive' => 'true', 'image_width' => 300, 'image_height' => 200, 'attribute_alt' => 'false', 'attribute_alt_value' => '', 'overlay' => '#0094FF', 'title' => '', 'info_position' => 'bottom', 'icon_position' => '', 'icon' => '', 'icon_size' => 18, 'icon_color' => '#aaaaaa', 'subtitle' => '', 'link' => '', 'button_type' => '', 'button_square' => 'ts-button-3d', 'button_rounded' => 'ts-button-3d ts-button-rounded', 'button_pill' => 'ts-button-3d ts-button-pill', 'button_circle' => 'ts-button-3d ts-button-circle', 'button_flat' => 'ts-dual-buttons-sun-flower', 'button_hover' => 'ts-dual-buttons-preview-default ts-dual-buttons-hover-default', 'button_wrapper' => 'false', 'button_text' => 'Read More', 'button_font' => 14, 'el_id' => '', 'el_class' => '', 'css' => ''), $atts));
     // Teaser Link
     $link = $link == '||' ? '' : $link;
     $link = vc_build_link($link);
     $a_href = $link['url'];
     $a_title = $link['title'];
     $a_target = $link['target'];
     // Check for Front End Editor
     if ($VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_VCFrontEditMode == "true") {
         $frontend_edit = 'true';
     } else {
         $frontend_edit = 'false';
     }
     // Teaser Image
     if ($image_responsive == "true") {
         $teaser_image = wp_get_attachment_image_src($image, 'full');
     } else {
         $teaser_image = wp_get_attachment_image_src($image, array($image_width, $image_height));
     }
     if ($teaser_image == false) {
         $teaser_image = TS_VCSC_GetResourceURL('images/defaults/no_image.jpg');
     } else {
         $teaser_image = $teaser_image[0];
     }
     $image_extension = pathinfo($teaser_image, PATHINFO_EXTENSION);
     if ($attribute_alt == "true") {
         $alt_attribute = $attribute_alt_value;
     } else {
         $alt_attribute = basename($teaser_image, "." . $image_extension);
     }
     // Teaser Button Type
     if ($button_type == "square") {
         $button_style = 'ts-button ' . $button_square;
         $button_font = '';
         $button_padding = '';
     } else {
         if ($button_type == "rounded") {
             $button_style = 'ts-button ' . $button_rounded;
             $button_font = '';
             $button_padding = '';
         } else {
             if ($button_type == "pill") {
                 $button_style = 'ts-button ' . $button_pill;
                 $button_font = '';
                 $button_padding = '';
             } else {
                 if ($button_type == "circle") {
                     $button_style = 'ts-button ' . $button_circle;
                     $button_font = 'font-size: ' . $button_font . 'px;';
                     $button_padding = '';
                 } else {
                     if ($button_type == "flat") {
                         $button_flat = str_replace("ts-color-button", "ts-dual-buttons", $button_flat);
                         $button_style = $button_flat . ' ' . $button_hover;
                         $button_font = 'font-size: ' . $button_font . 'px;';
                         $button_padding = 'padding: 10px 5px;';
                     } else {
                         $button_style = '';
                         $button_font = '';
                         $button_padding = '';
                     }
                 }
             }
         }
     }
     // Teaser Icon Settings
     if (!empty($icon) && $icon != "transparent" && $icon_position != "") {
         $icon_style = 'color: ' . $icon_color . '; width:' . $icon_size . 'px; height:' . $icon_size . 'px; font-size:' . $icon_size . 'px; line-height:' . $icon_size . 'px;';
     } else {
         $icon_style = '';
     }
     $output = '';
     if (function_exists('vc_shortcode_custom_css_class')) {
         $css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'ts-teaser ' . $el_class . ' ' . vc_shortcode_custom_css_class($css, ' '), 'TS_VCSC_Teaser_Block_Single', $atts);
     } else {
         $css_class = 'ts-teaser ' . $el_class;
     }
     $output .= '<div class="' . $css_class . '" style="width: 100%; margin: 0px auto; padding: 0px;">';
     $output .= '<div class="ts-teaser-item">';
     $output .= '<div class="ts-teaser-padding">';
     if ($info_position == "top") {
         $output .= '<div class="ts-teaser-head">';
         $output .= '<h2 class="ts-teaser-title" style="border-top: none; margin-top: 0;">';
         if (!empty($icon) && $icon != "transparent" && $icon_position == "top") {
             $output .= '<span style="display: block; width: 100%; text-align: center; margin-top: 0px; margin-bottom: 5px;"><i style="' . $icon_style . '" class="' . $icon . '"></i></span>';
         } else {
             if (!empty($icon) && $icon != "transparent" && $icon_position == "left") {
                 $output .= '<i style="margin-right: 5px; ' . $icon_style . '" class="' . $icon . '"></i>';
             }
//.........这里部分代码省略.........
开发者ID:baochung26,项目名称:happy-c,代码行数:101,代码来源:ts_vcsc_class_teaser_block.php


注:本文中的TS_VCSC_GetResourceURL函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。