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


PHP zget_option函数代码示例

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


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

示例1: element

 /**
  * This method is used to display the output of the element.
  * @return void
  */
 function element()
 {
     $options = $this->data['options'];
     $elm_classes = array();
     $elm_classes[] = $this->data['uid'];
     $elm_classes[] = $this->opt('css_class', '');
     $color_scheme = $this->opt('element_scheme', '') == '' ? zget_option('zn_main_style', 'color_options', false, 'light') : $this->opt('element_scheme', '');
     $elm_classes[] = 'stepsbox2--' . $color_scheme;
     echo '<div class="elm-stepsbox2 stepbox2 row ' . implode(' ', $elm_classes) . '">';
     if (!empty($options['stp_title'])) {
         echo '<div class="col-sm-12">';
         echo '<h3 class="m_title m_title_ext text-custom stepbox2-el-title">' . $options['stp_title'] . '</h3>';
         echo '</div>';
     }
     if (!empty($options['steps_single2']) && is_array($options['steps_single2'])) {
         $i = 1;
         $count = count($options['steps_single2']);
         echo '<div class="col-sm-12">';
         foreach ($options['steps_single2'] as $step) {
             if ($i % 3 == 1) {
                 echo '<div class="row gutter-md">';
             }
             $ok = '';
             $image = '';
             if ($step['stp_single_ok'] == 'yes') {
                 $ok = 'ok';
                 $image = '<span class="stepbox2-okicon glyphicon glyphicon-ok-circle"></span>';
             }
             $goboxfirst = '';
             if ($i == 1) {
                 $goboxfirst = 'gobox-first stepbox2-first';
             }
             $goboxlast = '';
             if ($i == $count) {
                 $goboxlast = 'gobox-last stepbox2-last';
             }
             echo '<div class="col-sm-4">';
             echo '<div class="gobox stepbox2-box u-trans-all-2s stepbox2-box--' . $ok . ' ' . $goboxfirst . ' ' . $goboxlast . '">';
             echo $image;
             echo '<div class="gobox-content stepbox2-content">';
             if (!empty($step['stp_single_title'])) {
                 echo '<h4 class="stepbox2-title">' . $step['stp_single_title'] . '</h4>';
             }
             $stp_single_link = zn_extract_link($step['stp_single_link'], 'zn_step_link stepbox2-link');
             echo $stp_single_link['start'] . $stp_single_link['end'];
             if (!empty($step['stp_single_desc'])) {
                 echo '<div class="stepbox2-desc">' . $step['stp_single_desc'] . '</div>';
             }
             echo '</div>';
             echo '</div>';
             echo '</div>';
             if ($i % 3 == 0 || $i == $count) {
                 echo '</div>';
             }
             $i++;
         }
         echo '</div>';
     }
     echo '</div>';
 }
开发者ID:rock1media,项目名称:wordpress,代码行数:64,代码来源:TH_StepsBox2.php

示例2: get_all_options

 function get_all_options()
 {
     $options = zget_option(false, false, true);
     unset($options['general_options']['mailchimp_api']);
     unset($options['general_options']['google_analytics']);
     return $options;
 }
开发者ID:rock1media,项目名称:wordpress,代码行数:7,代码来源:export_theme_options.php

示例3: element

 /**
  * This method is used to display the output of the element.
  *
  * @return void
  */
 function element()
 {
     $options = $this->data['options'];
     $elm_classes = array();
     $elm_classes[] = $this->data['uid'];
     $elm_classes[] = $this->opt('css_class', '');
     $color_scheme = $this->opt('element_scheme', '') == '' ? zget_option('zn_main_style', 'color_options', false, 'light') : $this->opt('element_scheme', '');
     $elm_classes[] = 'kwd--' . $color_scheme;
     $elm_classes[] = 'element-scheme--' . $color_scheme;
     $kbStyle = $this->opt('keywordbox_style', 'style1');
     $cssRules = '';
     $useBgImage = false;
     $useBgColor = false;
     if ('style2' == $kbStyle) {
         $elm_classes[] = 'keywordbox-2';
         $useBgImage = true;
     } elseif ('style3' == $kbStyle) {
         $elm_classes[] = 'keywordbox-3';
         $useBgImage = true;
     } elseif ('style4' == $kbStyle) {
         $elm_classes[] = 'keywordbox-4';
         $useBgColor = true;
     }
     if ($useBgImage) {
         $cssRules .= "background-image: url({$options['kb_bg_image']});";
     }
     if ($useBgColor) {
         $cssRules .= "background-color: {$options['kb_bg_color']};";
     }
     if (!empty($options['kw_content'])) {
         echo '<div class="keywordbox ' . implode(' ', $elm_classes) . '" style="' . $cssRules . '">' . $options['kw_content'] . '</div>';
     }
 }
开发者ID:rock1media,项目名称:wordpress,代码行数:38,代码来源:TH_KeywordsElement.php

示例4: element

 /**
  * This method is used to display the output of the element.
  * @return void
  */
 function element()
 {
     $options = $this->data['options'];
     $stb_title_heading = $this->opt('stb_title_heading', 'h3');
     if (empty($options)) {
         return;
     }
     $elm_classes = array();
     $elm_classes[] = $this->data['uid'];
     $elm_classes[] = $this->opt('css_class', '');
     $color_scheme = $this->opt('element_scheme', '') == '' ? zget_option('zn_main_style', 'color_options', false, 'light') : $this->opt('element_scheme', '');
     $elm_classes[] = 'zn_text_box-' . $color_scheme;
     $elm_classes[] = 'element-scheme--' . $color_scheme;
     echo '<div class="zn_text_box ' . implode(' ', $elm_classes) . '">';
     $style = !empty($options['stb_style']) ? $options['stb_style'] : '';
     if (!empty($options['stb_title'])) {
         $text_custom = $style == 'style1' ? 'text-custom' : '';
         echo '<' . $stb_title_heading . ' class="zn_text_box-title zn_text_box-title--' . $style . ' ' . $text_custom . '">' . $options['stb_title'] . '</' . $stb_title_heading . '>';
     }
     $stb_content = $this->opt('stb_content', '');
     $content = wpautop($stb_content);
     if (!empty($stb_content)) {
         echo $content;
     }
     echo '</div>';
 }
开发者ID:rock1media,项目名称:wordpress,代码行数:30,代码来源:TH_TextBox.php

示例5: zn_mailchimp_subscribe

function zn_mailchimp_subscribe()
{
    $return = array();
    if (isset($_POST['email']) && isset($_POST['mailchimp_list'])) {
        if ($mailchimp_api = zget_option('mailchimp_api', 'general_options')) {
            if (is_email($_POST['email'])) {
                require_once THEME_BASE . '/framework/classes/class-mailchimp.php';
                $mailchimp = new ZnMailChimp($mailchimp_api);
                $email = $_POST['email'];
                $mailchimp_data = array('id' => $_POST['mailchimp_list'], 'email' => array('email' => $_POST['email']));
                // NAME FIELD
                if (isset($_POST['name'])) {
                    $mailchimp_data['merge_vars']['NAME'] = $_POST['name'];
                }
                // WEBSITE FIELD
                if (isset($_POST['website'])) {
                    $mailchimp_data['merge_vars']['WEBSITE'] = $_POST['website'];
                }
                $message = $mailchimp->call('lists/subscribe', $mailchimp_data);
                if (!empty($message['error'])) {
                    $return['error'] = true;
                    $return['message'] = '<div class="alert alert-success alert-dismissable">' . $message['error'] . '</div>';
                } else {
                    //print_z($mailchimp_data);
                    $return['message'] = '<div class="alert alert-success alert-dismissable">' . __('Thank you for subscribing !', 'zn_framework') . '</div>';
                }
            } else {
                $return['error'] = true;
                $return['message'] = '<div class="alert alert-danger alert-dismissable">' . __('Please enter a valid email address !', 'zn_framework') . '</div>';
            }
        }
    }
    wp_send_json($return);
}
开发者ID:fjbeteiligung,项目名称:development,代码行数:34,代码来源:theme_ajax.php

示例6: element

 /**
  * This method is used to display the output of the element.
  * @return void
  */
 function element()
 {
     $options = $this->data['options'];
     $c_title = '';
     $elm_classes = array();
     $elm_classes[] = $this->data['uid'];
     $elm_classes[] = $this->opt('css_class', '');
     $color_scheme = $this->opt('element_scheme', '') == '' ? zget_option('zn_main_style', 'color_options', false, 'light') : $this->opt('element_scheme', '');
     $elm_classes[] = 'circletitlebox--' . $color_scheme;
     $elm_classes[] = 'element-scheme--' . $color_scheme;
     $elm_classes[] = $this->opt('cttb_style', 'style1');
     echo '<div class="circle-text-box ' . implode(' ', $elm_classes) . '">';
     echo '<div class="circle-headline">';
     // TITLE 1
     if (!empty($options['ctb_circle_title'])) {
         $c_title = '<span class="wpk-circle-span"><span>' . $options['ctb_circle_title'] . '</span></span> ';
     }
     // TITLE 2
     if (!empty($options['ctb_main_title'])) {
         echo $c_title . '<h4 class="wpk-circle-title text-custom">' . $options['ctb_main_title'] . '</h4>';
     }
     echo '</div>';
     // CONTENT
     if (!empty($options['ctb_content'])) {
         echo wpautop(do_shortcode($options['ctb_content']));
     }
     echo '</div>';
 }
开发者ID:rock1media,项目名称:wordpress,代码行数:32,代码来源:TH_CircleTitleTextBox.php

示例7: znpb_add_kallyas_template

function znpb_add_kallyas_template($current_layout, $post, $post_id)
{
    if (!is_page($post_id)) {
        return $current_layout;
    }
    $sidebar_pos = get_post_meta($post_id, 'zn_page_layout', true);
    $sidebar_to_use = get_post_meta($post_id, 'zn_sidebar_select', true);
    $subheader_style = get_post_meta($post_id, 'zn_subheader_style', true) !== '0' ? get_post_meta($post_id, 'zn_subheader_style', true) : 'zn_def_header_style';
    $sidebar_saved_data = zget_option('page_sidebar', 'unlimited_sidebars', false, array('layout' => 'right_sidebar', 'sidebar' => 'defaultsidebar'));
    if ($sidebar_pos == 'default' || empty($sidebar_pos)) {
        $sidebar_pos = $sidebar_saved_data['layout'];
    }
    if ($sidebar_to_use == 'default' || empty($sidebar_to_use)) {
        $sidebar_to_use = $sidebar_saved_data['sidebar'];
    }
    // We will add the new elements here
    $sidebar = ZNPB()->add_module_to_layout('TH_Sidebar', array('sidebar_select' => $sidebar_to_use));
    $sidebar_column = ZNPB()->add_module_to_layout('ZnColumn', array(), array($sidebar), 'col-sm-3');
    $sections[] = ZNPB()->add_module_to_layout('TH_CustomSubHeaderLayout', array('hm_header_style' => $subheader_style));
    // If the sidebar was saved as left sidebar
    if ($sidebar_pos == 'left_sidebar') {
        $columns[] = $sidebar_column;
    }
    // Add the main shop content
    $archive_columns = $sidebar_pos == 'no_sidebar' ? 4 : 3;
    $textbox = ZNPB()->add_module_to_layout('TH_TextBox', array('stb_title' => $post->post_title, 'stb_content' => $post->post_content));
    $columns[] = ZNPB()->add_module_to_layout('ZnColumn', array(), array($textbox), 'col-sm-9');
    // If the sidebar was saved as right sidebar
    if ($sidebar_pos == 'right_sidebar') {
        $columns[] = $sidebar_column;
    }
    $sections[] = ZNPB()->add_module_to_layout('ZnSection', array(), $columns, 'col-sm-12');
    return $sections;
}
开发者ID:rock1media,项目名称:wordpress,代码行数:34,代码来源:functions.php

示例8: zn_check_updates

 function zn_check_updates()
 {
     $username = zget_option('zn_theme_username', $this->config['admin_parent'], false, null);
     $apikey = zget_option('zn_theme_api', $this->config['admin_parent'], false, null);
     if (!empty($username) && !empty($apikey) && !empty($this->config['author'])) {
         require_once FW_PATH . '/modules/envato_theme_updater/class-pixelentity-theme-update.php';
         PixelentityThemeUpdate::init($username, $apikey, $this->config['author']);
     }
 }
开发者ID:fjbeteiligung,项目名称:development,代码行数:9,代码来源:class-theme-updater.php

示例9: zn_get_fonts

function zn_get_fonts()
{
    $fonts = array('arial' => 'Arial', 'verdana' => 'Verdana, Geneva', 'trebuchet' => 'Trebuchet', 'georgia' => 'Georgia', 'times' => 'Times New Roman', 'tahoma' => 'Tahoma, Geneva', 'palatino' => 'Palatino', 'helvetica' => 'Helvetica');
    if ($google_fonts = zget_option('zn_google_fonts_setup', 'google_font_options')) {
        foreach ($google_fonts as $key => $font) {
            $fonts[$font['font_family']] = $font['font_family'];
        }
    }
    return $fonts;
}
开发者ID:fjbeteiligung,项目名称:development,代码行数:10,代码来源:functions-backend.php

示例10: element

 /**
  * This method is used to display the output of the element.
  * @return void
  */
 function element()
 {
     $options = $this->data['options'];
     $elm_classes = array();
     $elm_classes[] = $this->data['uid'];
     $elm_classes[] = $this->opt('css_class', '');
     $color_scheme = $this->opt('element_scheme', '') == '' ? zget_option('zn_main_style', 'color_options', false, 'light') : $this->opt('element_scheme', '');
     $elm_classes[] = 'stepsbox3--' . $color_scheme;
     $elm_classes[] = 'element-scheme--' . $color_scheme;
     if (!empty($options['stp_title'])) {
         echo '<h3 class="m_title m_title_ext text-custom stepbox3-elm-title">' . $options['stp_title'] . '</h3>';
     }
     echo '<div class="step-boxes-3 stepbox3 ' . implode(' ', $elm_classes) . '">';
     if (!empty($options['steps_single3']) && is_array($options['steps_single3'])) {
         $i = 1;
         $all = count($options['steps_single3']);
         $cls = '';
         foreach ($options['steps_single3'] as $step) {
             if ($i % 2 != 0) {
                 $align = 'left';
             } else {
                 $align = 'right';
             }
             if ($i == $all) {
                 $cls = 'last';
             }
             echo '<div class="process_box stepbox3-box u-trans-all-2s ' . $cls . '" data-align="' . $align . '">';
             echo '<div class="number stepbox3-number kl-font-alt"><span class="stepbox3-number-sp">';
             if ($i < 10) {
                 echo '0' . $i;
             } else {
                 echo $i;
             }
             echo '</span></div>';
             echo '<div class="content stepbox3-content">';
             if (!empty($step['stp_single_title'])) {
                 echo '<h4 class="stp_title stepbox3-title">' . $step['stp_single_title'] . '</h4>';
             }
             // STEP CONTENT
             if (!empty($step['stp_single_desc'])) {
                 if (preg_match('%(<p[^>]*>.*?</p>)%i', $step['stp_single_desc'], $regs)) {
                     echo $step['stp_single_desc'];
                 } else {
                     echo '<div class="stepbox3-desc">' . $step['stp_single_desc'] . '</div>';
                 }
             }
             echo '</div>';
             echo '<div class="clearfix"></div>';
             echo '</div>';
             $i++;
         }
     }
     echo '</div>';
 }
开发者ID:rock1media,项目名称:wordpress,代码行数:58,代码来源:TH_StepsBox3.php

示例11: element

    /**
     * This method is used to display the output of the element.
     *
     * @return void
     */
    function element()
    {
        $options = $this->data['options'];
        $elm_classes = array();
        $elm_classes[] = $this->data['uid'];
        $elm_classes[] = $this->opt('css_class', '');
        // They were previously saved oddly
        $get_scheme = $this->opt('ib2_text_color', '');
        if ($get_scheme == 'ib2-text-color-light-theme') {
            $get_scheme = 'light';
        } elseif ($get_scheme == 'ib2-text-color-dark-theme') {
            $get_scheme = 'dark';
        }
        $color_scheme = $get_scheme == '' ? zget_option('zn_main_style', 'color_options', false, 'light') : $get_scheme;
        $elm_classes[] = 'infobox2--' . $color_scheme;
        $elm_classes[] = 'element-scheme--' . $color_scheme;
        $ib2_style = $this->opt('ib2_style', 'style1');
        $elm_classes[] = 'ib2-' . $ib2_style;
        // Style 2 && style 3
        if ('style2' == $ib2_style || 'style3' == $ib2_style) {
            ?>
			<div class="<?php 
            echo implode(' ', $elm_classes);
            ?>
 ib2-custom infobox2-container">
				<div class="ib2-inner infobox2-inner">
					<?php 
            if ($infoMessage = $this->opt('ib2_info_message', '')) {
                echo '<h4 class="ib2-info-message infobox2-message text-custom-before">' . $infoMessage . '</h4>';
            }
            echo '<div class="ib2-content">';
            if ($ibTitle = $this->opt('ib2_title_text', '')) {
                echo '<h3 class="ib2-content--title infobox2-title">' . $ibTitle . '</h3>';
            }
            if ($ibText = $this->opt('ib2_title', '')) {
                echo '<div class="ib2-content--text infobox2-text">' . wpautop($ibText) . '</div>';
            }
            echo '</div>';
            ?>
				</div>
			</div>
		<?php 
        } else {
            if ($ibText = $this->opt('ib2_title', '')) {
                // if no subtitle nor description use full 12 column
                echo '<div class="info-text infobox2-infotext ' . implode(' ', $elm_classes) . '">';
                echo wpautop($ibText);
                echo '</div>';
            }
        }
    }
开发者ID:rock1media,项目名称:wordpress,代码行数:56,代码来源:TH_InfoBox2.php

示例12: element

 /**
  * This method is used to display the output of the element.
  *
  * @return void
  */
 function element()
 {
     $options = $this->data['options'];
     if (empty($options)) {
         return;
     }
     // Menu Style
     $cmstyle = $this->opt('cm_style', 'normal');
     // Container
     $elm_classes = array();
     // Basic
     $elm_classes[] = 'elm-custommenu';
     $elm_classes[] = 'clearfix';
     $elm_classes[] = $uid = $this->data['uid'];
     $elm_classes[] = $this->opt('css_class', '');
     // Elm. style
     $elm_classes[] = 'elm-custommenu--' . $cmstyle;
     // List Classes
     $list_classes = array();
     $list_classes[] = 'elm-cmlist';
     $list_classes[] = 'clearfix';
     // Color Scheme
     $color_scheme = $this->opt('element_scheme', '') == '' ? zget_option('zn_main_style', 'color_options', false, 'light') : $this->opt('element_scheme', '');
     $list_classes[] = 'elm-cmlist--skin-' . $color_scheme;
     $list_classes[] = 'element-scheme--' . $color_scheme;
     // Toggle Uppercase
     $list_classes[] = $this->opt('cm_ucase', '');
     // Check Vertical Styles
     $vertical_styles = in_array($cmstyle, array('normal', 'v1', 'v2', 'v3', 'v3ext'));
     $list_classes[] = 'elm-cmlist--' . $cmstyle;
     // Add columns, but only for vertical styles
     $cmcols = $this->opt('cm_cols', 1);
     if ($vertical_styles && $cmcols != 1) {
         $list_classes[] = ' elm-cmlist-cols elm-cmlist--cols-' . $cmcols;
     }
     // Check if depth is supported
     $depth = $vertical_styles ? $this->opt('cm_depth', 1) : 1;
     // Whoa, no menus?
     $nav_menu = $this->opt('cm_menu', '');
     if (!$nav_menu) {
         return;
     }
     echo '<div class="' . implode(' ', $elm_classes) . '">';
     if ($cmstyle == 'dd') {
         echo '<div class="elm-custommenu-pick">' . $this->opt('cm_dd_text', '') . '</div>';
     }
     // Make Menu
     wp_nav_menu(array('menu' => $nav_menu, 'depth' => $depth, 'menu_class' => implode(' ', $list_classes), 'menu_id' => $uid, 'link_before' => '<span>', 'link_after' => '</span>', 'container' => false));
     echo '</div>';
 }
开发者ID:rock1media,项目名称:wordpress,代码行数:55,代码来源:TH_CustomMenu.php

示例13: options

 function options()
 {
     global $zn_framework;
     $sidebars = array('default_sidebar' => 'Default Sidebar');
     // Add the unlimited sidebars
     $unlimited_sidebars_op = zget_option('unlimited_sidebars', 'unlimited_sidebars');
     if (is_array($unlimited_sidebars_op)) {
         foreach ($unlimited_sidebars_op as $key => $value) {
             $sidebars[zn_sanitize_widget_id($value['sidebar_name'])] = $value['sidebar_name'];
         }
     }
     $options = array(array('id' => 'sidebar', 'name' => 'Select sidebar', 'description' => 'Select which sidebar you wish to use', 'type' => 'select', 'std' => 'default_sidebar', 'options' => $sidebars));
     return $options;
 }
开发者ID:fjbeteiligung,项目名称:development,代码行数:14,代码来源:sidebar.php

示例14: element

 /**
  * This method is used to display the output of the element.
  * @return void
  */
 function element()
 {
     $options = $this->data['options'];
     if (empty($options)) {
         return;
     }
     $elm_classes = array();
     $elm_classes[] = $this->data['uid'];
     $elm_classes[] = $this->opt('css_class', '');
     $color_scheme = $this->opt('element_scheme', '') == '' ? zget_option('zn_main_style', 'color_options', false, 'light') : $this->opt('element_scheme', '');
     $elm_classes[] = 'actionbox--' . $color_scheme;
     $elm_classes[] = $this->opt('ac_style', 'style1');
     echo '<div class="action_box ' . implode(' ', $elm_classes) . '" data-arrowpos="center">';
     echo '<div class="action_box_inner action_box-inner">';
     echo '<div class="action_box_content action_box-content">';
     // Title
     $hasTitle = isset($options['page_ac_title']) && !empty($options['page_ac_title']);
     $hasSubtitle = isset($options['page_ac_subtitle']) && !empty($options['page_ac_subtitle']);
     if ($hasTitle || $hasSubtitle) {
         echo '<div class="ac-content-text action_box-text">';
     }
     if ($hasTitle) {
         echo '<h4 class="text action_box-title">' . do_shortcode($options['page_ac_title']) . '</h4>';
     }
     if ($hasSubtitle) {
         echo '<h5 class="ac-subtitle action_box-subtitle">' . do_shortcode($options['page_ac_subtitle']) . '</h5>';
     }
     if ($hasTitle || $hasSubtitle) {
         echo '</div>';
     }
     // LINKS
     $page_ac_b_link = zn_extract_link($this->opt('page_ac_b_link', ''), 'btn ac-btn action_box-button action_box-button-first ' . $this->opt('page_ac_b_link_style', 'btn-lined'), '');
     $page_ac_b_link2 = zn_extract_link($this->opt('page_ac_b_link2', ''), 'btn ac-btn action_box-button action_box-button-second ' . $this->opt('page_ac_b_link2_style', 'btn-fullwhite'), '');
     if (!empty($page_ac_b_link['start']) || !empty($page_ac_b_link2['start'])) {
         echo '<div class="ac-buttons action_box-buttons">';
     }
     if (!empty($page_ac_b_link['start'])) {
         echo $page_ac_b_link['start'] . $options['page_ac_b_text'] . $page_ac_b_link['end'];
     }
     if (!empty($page_ac_b_link2['start'])) {
         echo $page_ac_b_link2['start'] . $options['page_ac_b_text2'] . $page_ac_b_link2['end'];
     }
     if (!empty($page_ac_b_link['start']) || !empty($page_ac_b_link2['start'])) {
         echo '</div>';
     }
     echo '</div>';
     echo '</div>';
     echo '</div>';
 }
开发者ID:rock1media,项目名称:wordpress,代码行数:53,代码来源:TH_ActionBox.php

示例15: element

 /**
  * This method is used to display the output of the element.
  * @return void
  */
 function element()
 {
     $options = $this->data['options'];
     if (empty($options)) {
         return;
     }
     $button = false;
     $div_size = 'col-sm-12';
     if (!empty($options['cab_button_text'])) {
         $button = true;
         $div_size = 'col-sm-10';
     }
     $elm_classes = array();
     $elm_classes[] = $this->data['uid'];
     $elm_classes[] = $this->opt('css_class', '');
     $color_scheme = $this->opt('element_scheme', '') == '' ? zget_option('zn_main_style', 'color_options', false, 'light') : $this->opt('element_scheme', '');
     $elm_classes[] = 'calloutbanner--' . $color_scheme;
     $elm_classes[] = 'element-scheme--' . $color_scheme;
     echo '<div class="callout-banner clearfix ' . implode(' ', $elm_classes) . '">';
     echo '<div class="row">';
     if (!empty($options['cab_main_title']) || !empty($options['cab_sec_title'])) {
         echo '<div class="' . $div_size . '">';
         if (!empty($options['cab_main_title'])) {
             echo '<h3 class="m_title m_title_ext text-custom callout-banner-title">' . $options['cab_main_title'] . '</h3>';
         }
         if (!empty($options['cab_sec_title'])) {
             echo '<p>' . $options['cab_sec_title'] . '</p>';
         }
         echo '</div>';
     }
     if ($button) {
         $cab_button_link = zn_extract_link($this->opt('cab_button_link', ''), 'circlehover with-symbol kl-main-bgcolor kl-main-bgcolor-before ' . $this->opt('calloutbox_style', 'style1'), 'data-size="" data-position="top-left" data-align="right"');
         echo '<div class="col-sm-2">';
         echo $cab_button_link['start'];
         echo '<span class="text circlehover-text u-trans-all-2s">' . $options['cab_button_text'] . '</span>';
         if (!empty($options['cab_button_image'])) {
             echo '<span class="symbol circlehover-symbol u-trans-all-2s"><img class="circlehover-symbol-img" src="' . $options['cab_button_image'] . '" alt=""></span>';
         } else {
             echo '<span class="symbol u-trans-all-2s"><img class="circlehover-symbol-img" src="' . THEME_BASE_URI . '/images/ok.png" alt=""></span>';
         }
         echo '<div class="triangle circlehover-symbol-trg"><span class="play-icon"></span></div>';
         echo $cab_button_link['end'];
         echo '</div>';
     }
     echo '</div>';
     echo '</div>';
 }
开发者ID:rock1media,项目名称:wordpress,代码行数:51,代码来源:TH_CallOutBanner.php


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