本文整理汇总了PHP中zget_option函数的典型用法代码示例。如果您正苦于以下问题:PHP zget_option函数的具体用法?PHP zget_option怎么用?PHP zget_option使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了zget_option函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: element
/**
* This method is used to display the output of the element.
* @return void
*/
function element()
{
$options = $this->data['options'];
if (empty($options)) {
return;
}
$iconHolder = $this->opt('vts_tab_icon');
$tabIcon = !empty($iconHolder['family']) ? '<span class="kl-icon-dark statsboxes-elm-titleicon" ' . zn_generate_icon($this->opt('vts_tab_icon')) . '></span>' : '';
//$tabIcon = (isset($options['vts_tab_icon']) && !empty($options['vts_tab_icon']) ? $options['vts_tab_icon'] : '');
$tabTitle = isset($options['stb_title']) && !empty($options['stb_title']) ? $options['stb_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[] = 'stsbx--' . $color_scheme;
$elm_classes[] = 'element-scheme--' . $color_scheme;
echo '<div class="zn_stats_box statsboxes ' . implode(' ', $elm_classes) . '">';
if (!empty($tabTitle)) {
echo '<h3 class="mb_title statsboxes-elm-title">' . $tabIcon . $tabTitle . '</h3>';
}
if (!empty($options['single_stats']) && is_array($options['single_stats'])) {
echo '<div class="row u-mb-0 statsboxes-row">';
foreach ($options['single_stats'] as $stat) {
echo '<div class="col-sm-6 col-md-3">';
echo '<div class="statbox statsboxes-item clearfix">';
$sb_type = isset($stat['sb_type']) && !empty($stat['sb_type']) ? $stat['sb_type'] : 'img';
if (!empty($stat['sb_icon']) && $sb_type == 'img') {
echo '<img class="statsboxes-img" src="' . $stat['sb_icon'] . '" alt="">';
}
// Fonticon
if (isset($stat['sb_iconfont']) && !empty($stat['sb_iconfont']) && $sb_type == 'icon') {
$iconsize = isset($stat['sb_size']) && $stat['sb_size'] != 22 ? 'font-size:' . $stat['sb_size'] . 'px;' : '';
$sb_iconcolor = isset($stat['sb_iconcolor']) && $stat['sb_iconcolor'] != '#8f8f8f' ? 'color:' . $stat['sb_size'] . ';' : '';
echo '<span ' . zn_generate_icon($stat['sb_iconfont']) . ' style="' . $iconsize . $sb_iconcolor . '" class="statbox__fonticon statsboxes-icon"></span>';
}
echo '<h4 class="statsboxes-title text-custom">' . $stat['sb_title'] . '</h4>';
echo '<h6 class="statsboxes-content">' . $stat['sb_content'] . '</h6>';
echo '</div>';
echo '</div>';
}
echo '</div>';
}
echo '</div>';
}
开发者ID:rock1media,项目名称:wordpress,代码行数:48,代码来源:TH_StatsBox.php
示例17: 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[] = 'tstsld--' . $color_scheme;
$elm_classes[] = 'element-scheme--' . $color_scheme;
echo '<div class="testimonials-carousel tst-carousel ' . implode(' ', $elm_classes) . '">';
if (!empty($options['tf_title'])) {
echo '<h3 class="m_title m_title_ext text-custom tst-carousel-elm-title">' . $options['tf_title'] . '</h3>';
}
echo '<div class="controls tst-carousel-controls">';
echo '<a href="#" class="prev tst-carousel-controls-arr"><span class="glyphicon glyphicon-chevron-left"></span></a>';
echo '<a href="#" class="next tst-carousel-controls-arr"><span class="glyphicon glyphicon-chevron-right"></span></a>';
echo '</div>';
if (!empty($options['testimonials_slider_single']) && is_array($options['testimonials_slider_single'])) {
// Speed
$speed = 5000;
if (!empty($options['tf_speed'])) {
$speed = intval($options['tf_speed']);
}
echo '<ul class="zn_testimonials_carousel tst-carousel-list fixclear" data-speed="' . $speed . '" data-autoplay="' . $this->opt('tf_autoplay', 1) . '">';
foreach ($options['testimonials_slider_single'] as $test) {
if (!empty($test['tf_single_test'])) {
echo '<li class="tst-carousel-item">';
echo '<blockquote class="tst-carousel-bqt">' . do_shortcode($test['tf_single_test']) . '</blockquote>';
echo '<div class="testimonial-author tst-carousel-author">';
if (isset($test['ts_author_photo']) && !empty($test['ts_author_photo'])) {
echo '<div class="testimonial-author--photo tst-carousel-photo">';
$image = vt_resize('', $test['ts_author_photo'], '40', '40', true);
echo '<img class="tst-carousel-img" src="' . $image['url'] . '" width="' . $image['width'] . '" height="' . $image['height'] . '" alt="">';
echo '</div>';
}
echo '<h5 class="tst-carousel-title">' . $test['tf_single_author'] . '</h5>';
echo '</div>';
echo '</li>';
}
}
echo '</ul>';
}
echo '</div>';
}
开发者ID:rock1media,项目名称:wordpress,代码行数:48,代码来源:TH_TestimonialSlider.php
示例18: widget
function widget($args, $instance)
{
ob_start();
extract($args);
$title = !empty($instance['title']) ? esc_attr($instance['title']) : '';
$title = apply_filters('widget_title', $title, $instance, $this->id_base);
echo $before_widget;
if ($title) {
echo $before_title . $title . $after_title;
}
if (empty($instance['mailchimp_list'])) {
echo '<div class="zn-pb-notification">It seems that you didn\'t selected any mailchimp list. Please go to the widget settings and select at least one mailchimp list.</div>';
echo $after_widget;
return;
}
if (!empty($instance['mailchimp_list']) && zget_option('mailchimp_api', 'general_options')) {
?>
<div class="cs_newsletter">
<?php
if (!empty($instance['description_above'])) {
echo '<div class="zn_mc_above">' . $instance['description_above'] . '</div>';
}
?>
<form method="post" class="zn_newsletter newsletter-signup" name="newsletter_form">
<input type="text" name="zn_mc_email" class="nl-email" value="" placeholder="<?php
_e('Enter your email address', 'zn_framework');
?>
" autocomplete="off">
<input type="hidden" name="zn_mailchimp_list_id" class="zn_mailchimp_list_id" value="<?php
echo $instance['mailchimp_list'];
?>
">
<input type="submit" name="submit" class="nl-submit arrowLink descriptionColor zn_icon" value="">
</form>
<div class="zn_mailchimp_message"></div>
</div>
<?php
}
echo $after_widget;
}
开发者ID:fjbeteiligung,项目名称:development,代码行数:43,代码来源:mailchimp_subscribe.php
示例19: element
function element()
{
$data_clientid = zget_option('instagram_client_id', 'general_options');
if (empty($data_clientid)) {
echo '<div class="zn-pb-notification">Please set your Instagram Client ID into the theme options.</div>';
return;
}
$title = $this->opt('title') ? $this->opt('title') : '';
$show_instagram_text = $this->opt('show_instagram_text') ? $this->opt('show_instagram_text') : true;
$titleAlignment = $this->opt('title_alignment') ? $this->opt('title_alignment') : 'text-left';
$titleStyle = $this->opt('title_style') ? $this->opt('title_style') : '';
$data_get = $this->opt('data_get') ? $this->opt('data_get') : 'popular';
$data_tagname = $this->opt('data_tagname') ? $this->opt('data_tagname') : '';
$data_locationid = $this->opt('data_locationid') ? $this->opt('data_locationid') : '';
$data_userid = $this->opt('data_userid') ? $this->opt('data_userid') : '';
$data_accesstoken = $this->opt('data_accesstoken') ? $this->opt('data_accesstoken') : '';
$data_sortby = $this->opt('data_sortby') ? $this->opt('data_sortby') : 'most-recent';
$data_limit = $this->opt('data_limit') ? $this->opt('data_limit') : '6';
$size = $this->opt('img_size') ? $this->opt('img_size') : 150;
$data_resolution = $size <= 150 ? 'thumbnail' : ($size <= 306 ? 'low_resolution' : 'standard_resolution');
//** Appear animation
$appear = $this->opt('appear_animation') ? ' data-appear="fade-in" data-appear-direction="' . $this->opt('appear_animation') . '" data-appear-delay="' . ($this->opt('appear_delay') ? $this->opt('appear_delay') : '0') . '"' : '';
$atInstagram = '';
if ($show_instagram_text) {
$atInstagram = '<span class="baseColor">@instagram</span>';
}
echo '<div class="instagramFeed ' . $this->data['uid'] . '"' . $appear . '>';
echo ' <h2 class="zn_title ' . $titleStyle . ' ' . $titleAlignment . '">' . $title . $atInstagram . '</h2>';
echo ' <div id="' . $this->data['uid'] . '" class="instagramList" ';
echo 'data-clientid="' . $data_clientid . '"';
echo !empty($data_limit) ? ' data-limit="' . $data_limit . '"' : '';
echo !empty($data_get) ? ' data-get="' . $data_get . '"' : '';
echo !empty($data_tagname) ? ' data-tagname="' . $data_tagname . '"' : '';
echo !empty($data_locationid) ? ' data-locationid="' . $data_locationid . '"' : '';
echo !empty($data_userid) ? ' data-userid="' . $data_userid . '"' : '';
echo !empty($data_accesstoken) ? ' data-accesstoken="' . $data_accesstoken . '"' : '';
echo !empty($data_sortby) ? ' data-sortby="' . $data_sortby . '"' : '';
echo !empty($size) ? ' data-imgsize="' . $size . '"' : '';
echo !empty($data_resolution) ? ' data-resolution="' . $data_resolution . '"' : '';
//echo ( !empty( $data_itemclass ) ? ' data-itemclass="'.$data_itemclass.'"' : ''); //** Removed the option for a custom class
echo '></div>';
echo '</div>';
}
开发者ID:fjbeteiligung,项目名称:development,代码行数:43,代码来源:instagram_feed.php
-
程序IT圈
学习编程技术,关注这个公众号足够了
前几天,小程序“功能直达”功能正
阅读:609|2022-07-18
-
The meerstein/rbtm repository through 1.5 on GitHub allows absolute path travers
阅读:534|2022-07-29
-
librespeed/speedtest: Self-hosted Speedtest for HTML5 and more. Easy setup, exam
阅读:1222|2022-08-30
-
avehtari/BDA_m_demos: Bayesian Data Analysis demos for Matlab/Octave
阅读:1134|2022-08-17
-
女人怀孕后,为了有一个健康聪明的宝宝,经历各种体检、筛查。其实这些体检和筛查中的
阅读:945|2022-11-06
-
medfreeman/markdown-it-toc-and-anchor: markdown-it plugin to add a toc and ancho
阅读:1343|2022-08-18
-
sydney0zq/covid-19-detection: The implementation of A Weakly-supervised Framewor
阅读:490|2022-08-16
-
秉的部首是什么?秉公办事的秉的部首偏旁咋写?还有秉的笔顺笔画顺序写?好多初学练字
阅读:898|2022-07-30
-
0voice/learning_mind_map: 2021年【思维导图】盒子,C/C++,Golang,Linux,云原生,
阅读:727|2022-08-15
-
离中国最远的国家是阿根廷。从太平洋直线计算,即往东线走,北京到阿根廷的布宜诺斯艾
阅读:643|2022-11-06
|
请发表评论