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


PHP onetone_option函数代码示例

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


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

示例1: do_shortcode

        echo do_shortcode($section_subtitle);
        ?>
</div>
         <?php 
    }
    ?>
         
             <?php 
    $testimonial_item = '';
    $testimonial_str = '';
    $m = 0;
    for ($j = 0; $j < 8; $j++) {
        $avatar = esc_url(onetone_option('section_avatar_' . $i . '_' . $j));
        $name = esc_attr(onetone_option('section_name_' . $i . '_' . $j));
        $byline = esc_attr(onetone_option('section_byline_' . $i . '_' . $j));
        $description = onetone_option('section_desc_' . $i . '_' . $j);
        if ($avatar != '') {
            $avatar = '<img src="' . esc_url($avatar) . '" class="img-circle">';
        }
        if ($description != '') {
            $testimonial_item .= '<div class="col-md-' . $col . '">
	  <div class="' . $onetone_animated . '" data-animationduration="0.9" data-animationtype="fadeInUp" data-imageanimation="no">
						  <div class="magee-testimonial-box">
    <div class="testimonial-content">
      <div class="testimonial-quote">' . do_shortcode($description) . '</div>
    </div>
    <div class="testimonial-vcard style1">
      <div class="testimonial-avatar">' . $avatar . '</div>
      <div class="testimonial-author">
        <h4 class="name" style="text-transform: uppercase;">' . $name . '</h4>
        <div class="title">' . $byline . '</div>
开发者ID:JasonAJames,项目名称:jasonajamescom,代码行数:31,代码来源:section-8.php

示例2: esc_attr

<?php

$enable_footer_widget_area = esc_attr(onetone_option('enable_footer_widget_area', ''));
?>
<!--Footer-->
		<footer>
        <?php 
if ($enable_footer_widget_area == '1') {
    ?>
			<div class="footer-widget-area">
				<div class="container">
					<div class="row">
							<div class="col-md-3 col-md-6">
							<?php 
    if (is_active_sidebar("footer_widget_1")) {
        dynamic_sidebar("footer_widget_1");
    }
    ?>
						</div>
						<div class="col-md-3 col-md-6">
				        <?php 
    if (is_active_sidebar("footer_widget_2")) {
        dynamic_sidebar("footer_widget_2");
    }
    ?>
						</div>
						<div class="col-md-3 col-md-6">
							<?php 
    if (is_active_sidebar("footer_widget_3")) {
        dynamic_sidebar("footer_widget_3");
    }
开发者ID:dparks-seattletimes,项目名称:openworldstudios,代码行数:31,代码来源:footer.php

示例3: the_author_meta

    ?>
                                    </div>
                                    <div class="author-description">
                                        <?php 
    the_author_meta('description');
    ?>
                                    </div>
                                </div>
                                
                                <?php 
    $related_number = onetone_option('related_number', 8);
    $related = onetone_get_related_posts($post->ID, $related_number, 'post');
    ?>
			                        <?php 
    if ($related->have_posts()) {
        $date_format = onetone_option('date_format', 'M d, Y');
        ?>
                                <!--About Author End-->
                                <!--Related Posts-->
                                <div class="related-posts">
                                        <h3><?php 
        _e('Related Posts', 'onetone');
        ?>
</h3>
                                        <div class="multi-carousel onetone-related-posts owl-carousel owl-theme">
                                        
                                            <?php 
        while ($related->have_posts()) {
            $related->the_post();
            ?>
							<?php 
开发者ID:alexandrinos,项目名称:wp-api-rest,代码行数:31,代码来源:single.php

示例4: onetone_custom_scripts

function onetone_custom_scripts()
{
    global $page_meta, $post, $active_magee_shortcodes;
    if ($post) {
        $page_meta = get_post_meta($post->ID, '_onetone_post_meta');
    }
    if (isset($page_meta[0]) && $page_meta[0] != '') {
        $page_meta = @json_decode($page_meta[0], true);
    }
    $theme_info = wp_get_theme();
    $detect = new Mobile_Detect();
    wp_enqueue_style('Yanone-Kaffeesatz', esc_url('//fonts.googleapis.com/css?family=Open+Sans:300,400,700|Yanone+Kaffeesatz'), false, '', false);
    wp_enqueue_style('onetone-font-awesome', get_template_directory_uri() . '/plugins/font-awesome/css/font-awesome.min.css', false, '4.3.0', false);
    wp_enqueue_style('onetone-bootstrap', get_template_directory_uri() . '/plugins/bootstrap/css/bootstrap.min.css', false, '3.3.4', false);
    wp_enqueue_style('onetone-owl-carousel', get_template_directory_uri() . '/css/owl.carousel.css', false, '1.3.3', false);
    wp_enqueue_style('onetone-owl-theme', get_template_directory_uri() . '/css/owl.theme.css', false, '1.3.3', false);
    wp_enqueue_style('prettyPhoto', get_template_directory_uri() . '/css/prettyPhoto.css', false, '3.1.5', false);
    if (!onetone_is_plugin_active('magee-shortcodes/Magee.php')) {
        wp_enqueue_style('onetone-shortcodes', get_template_directory_uri() . '/css/shortcode.css', false, $theme_info->get('Version'), false);
    }
    wp_enqueue_style('onetone-main', get_stylesheet_uri(), array(), $theme_info->get('Version'));
    wp_enqueue_style('onetone-onetone', get_template_directory_uri() . '/css/onetone.css', false, $theme_info->get('Version'), false);
    wp_enqueue_style('onetone-ms', get_template_directory_uri() . '/css/onetone-ms.css', false, $theme_info->get('Version'), false);
    wp_enqueue_style('onetone-scheme', get_template_directory_uri() . '/css/scheme.less', false, $theme_info->get('Version'), false);
    $background_array = onetone_option("page_background");
    $background = onetone_get_background($background_array);
    $header_image = get_header_image();
    $onetone_custom_css = "";
    if (isset($header_image) && !empty($header_image)) {
        $onetone_custom_css .= ".home-header{background:url(" . $header_image . ") repeat;}\n";
    }
    if ('blank' != get_header_textcolor() && '' != get_header_textcolor()) {
        $header_color = ' color:#' . get_header_textcolor() . ';';
        $onetone_custom_css .= 'header .site-name,header .site-description,header .site-tagline{' . $header_color . '}';
    } else {
        $onetone_custom_css .= 'header .site-name,header .site-description,header .site-tagline{display:none;}';
    }
    $custom_css = onetone_option("custom_css");
    $onetone_custom_css .= '.site{' . $background . '}';
    $links_color = onetone_option('links_color', '#963');
    //scheme
    $primary_color = esc_attr(onetone_option('primary_color', $links_color));
    $links_color = onetone_option('links_color');
    //if($links_color == "" || $links_color == null)
    //$links_color = "#963";
    if ($links_color) {
        $onetone_custom_css .= 'a{color:' . $links_color . ';}';
    }
    $top_menu_font_color = onetone_option('font_color');
    if ($top_menu_font_color != "" && $top_menu_font_color != null) {
        $onetone_custom_css .= 'header .site-nav > ul > li > a {color:' . $top_menu_font_color . '}';
    }
    // header
    $sticky_header_background_color = esc_attr(onetone_option('sticky_header_background_color', ''));
    $sticky_header_background_opacity = esc_attr(onetone_option('sticky_header_background_opacity', '1'));
    $header_background_color = esc_attr(onetone_option('header_background_color', ''));
    $header_background_opacity = esc_attr(onetone_option('header_background_opacity', '1'));
    $header_border_color = esc_attr(onetone_option('header_border_color', ''));
    $page_title_bar_background_color = esc_attr(onetone_option('page_title_bar_background_color', ''));
    $page_title_bar_borders_color = esc_attr(onetone_option('page_title_bar_borders_color', ''));
    // sticky header background
    if ($sticky_header_background_color) {
        $rgb = onetone_hex2rgb($sticky_header_background_color);
        $onetone_custom_css .= ".fxd-header {\r\r\n\t\tbackground-color: rgba(" . $rgb[0] . "," . $rgb[1] . "," . $rgb[2] . "," . $sticky_header_background_opacity . ");\r\r\n\t\t}";
    }
    // main header background
    if ($header_background_color) {
        $rgb = onetone_hex2rgb($header_background_color);
        $onetone_custom_css .= ".main-header {\r\r\n\t\tbackground-color: rgba(" . $rgb[0] . "," . $rgb[1] . "," . $rgb[2] . "," . $header_background_opacity . ");\r\r\n\t\t}";
    }
    // sticky header
    $sticky_header_opacity = onetone_option('sticky_header_background_opacity', '1');
    $sticky_header_menu_item_padding = onetone_option('sticky_header_menu_item_padding', '');
    $sticky_header_navigation_font_size = onetone_option('sticky_header_navigation_font_size', '');
    $sticky_header_logo_width = onetone_option('sticky_header_logo_width', '');
    $logo_left_margin = onetone_option('logo_left_margin', '');
    $logo_right_margin = onetone_option('logo_right_margin', '');
    $logo_top_margin = onetone_option('logo_top_margin', '');
    $logo_bottom_margin = onetone_option('logo_bottom_margin', '');
    if ($sticky_header_background_color) {
        $rgb = onetone_hex2rgb($sticky_header_background_color);
        $onetone_custom_css .= ".fxd-header{background-color: rgba(" . $rgb[0] . "," . $rgb[1] . "," . $rgb[2] . "," . esc_attr($sticky_header_opacity) . ");}\r\n";
    }
    if ($sticky_header_menu_item_padding) {
        $onetone_custom_css .= ".fxd-header .site-nav > ul > li > a {padding:" . absint($sticky_header_menu_item_padding) . "px;}\r\n";
    }
    if ($sticky_header_navigation_font_size) {
        $onetone_custom_css .= ".fxd-header .site-nav > ul > li > a {font-size:" . absint($sticky_header_navigation_font_size) . "px;}\r\n";
    }
    if ($sticky_header_logo_width) {
        $onetone_custom_css .= ".fxd-header img.site-logo{ width:" . absint($sticky_header_logo_width) . "px;}\r\n";
    }
    if ($logo_left_margin) {
        $onetone_custom_css .= ".fxd-header img.site-logo{ margin-left:" . absint($logo_left_margin) . "px;}\r\n";
    }
    if ($logo_right_margin) {
        $onetone_custom_css .= ".fxd-header img.site-logo{ margin-right:" . absint($logo_right_margin) . "px;}\r\n";
    }
    if ($logo_top_margin) {
        $onetone_custom_css .= ".fxd-header img.site-logo{ margin-top:" . absint($logo_top_margin) . "px;}\r\n";
//.........这里部分代码省略.........
开发者ID:sonvq,项目名称:passioninvestment,代码行数:101,代码来源:theme-setup.php

示例5: esc_attr

<?php

$right_sidebar = esc_attr(onetone_option('right_sidebar_search', ''));
if ($right_sidebar && is_active_sidebar($right_sidebar)) {
    dynamic_sidebar($right_sidebar);
} elseif (is_active_sidebar('default_sidebar')) {
    dynamic_sidebar('default_sidebar');
}
开发者ID:sonvq,项目名称:passioninvestment,代码行数:8,代码来源:sidebar-searchright.php

示例6: onetone_get_default_slider

 for ($i = 0; $i < $section_num; $i++) {
     if ($section_1_content == 'slider' && $i == 0) {
         echo onetone_get_default_slider();
     } else {
         $section_title = onetone_option('section_title_' . $i, isset($default_options[$i]['section_title']) ? $default_options[$i]['section_title'] : '');
         $section_menu = onetone_option('menu_title_' . $i, isset($default_options[$i]['menu_title']) ? $default_options[$i]['menu_title'] : '');
         $section_background = onetone_option('section_background_' . $i, isset($default_options[$i]['section_background']) ? $default_options[$i]['section_background'] : '');
         $parallax_scrolling = onetone_option('parallax_scrolling_' . $i, isset($default_options[$i]['parallax_scrolling']) ? $default_options[$i]['parallax_scrolling'] : '');
         $section_css_class = onetone_option('section_css_class_' . $i, isset($default_options[$i]['section_css_class']) ? $default_options[$i]['section_css_class'] : '');
         $section_content = onetone_option('section_content_' . $i, isset($default_options[$i]['section_content']) ? $default_options[$i]['section_content'] : onetone_option('sction_content_' . $i));
         $section_slug = onetone_option('menu_slug_' . $i, isset($default_options[$i]['menu_slug']) ? $default_options[$i]['menu_slug'] : '');
         $section_padding = onetone_option('section_padding_' . $i, isset($default_options[$i]['section_padding']) ? $default_options[$i]['section_padding'] : '50px 0');
         $text_align = onetone_option('text_align_' . $i, isset($default_options[$i]['text_align']) ? $default_options[$i]['text_align'] : '');
         $section_title_typography = onetone_option('section_title_typography_' . $i, isset($default_options[$i]['section_title_typography']) ? $default_options[$i]['section_title_typography'] : '');
         $title_typography = onetone_get_typography($section_title_typography);
         $section_content_typography = onetone_option('section_content_typography_' . $i, isset($default_options[$i]['section_content_typography']) ? $default_options[$i]['section_content_typography'] : '');
         $content_typography = onetone_get_typography($section_content_typography);
         if ($section_slug) {
             $section_slug = sanitize_title($section_slug);
         } else {
             $section_slug = 'section-' . ($i + 1);
         }
         $section_css = '';
         $background = onetone_get_background($section_background);
         $sanitize_title = $section_slug;
         $css_class = isset($section_css_class) ? $section_css_class : "";
         $background_video = '';
         $video_wrap = '';
         $video_enable = 0;
         $detect = new Mobile_Detect();
         if ($section_background_video != "" && $video_background_section == $i + 1 && !$detect->isMobile() && !$detect->isTablet()) {
开发者ID:loudandproud,项目名称:minitest,代码行数:31,代码来源:index.php

示例7: esc_attr

<?php

$enable_footer_widget_area = esc_attr(onetone_option('enable_footer_widget_area'));
$footer_columns = onetone_option('footer_columns', '4');
$copyright_text = onetone_option('copyright', '');
$display_copyright_bar = onetone_option('display_copyright_bar', 'yes');
?>
<!--Footer-->
		<footer>
        <?php 
if ($enable_footer_widget_area == '1') {
    ?>
			<div class="footer-widget-area">
                <div class="container">
                    <div class="row">
                    <?php 
    for ($i = 1; $i <= $footer_columns; $i++) {
        ?>
                    <div class="col-md-<?php 
        echo 12 / $footer_columns;
        ?>
">
                    <?php 
        if (is_active_sidebar("footer_widget_" . $i)) {
            dynamic_sidebar("footer_widget_" . $i);
        }
        ?>
                    </div>
                    
                    <?php 
    }
开发者ID:JasonAJames,项目名称:jasonajamescom,代码行数:31,代码来源:footer.php

示例8: onetone_option

<?php

$video_background_section = onetone_option('video_background_section');
$i = $video_background_section - 1;
$video_controls = onetone_option('video_controls');
$section_background_video = onetone_option('section_background_video_0');
$youtube_bg_type = onetone_option("youtube_bg_type");
$youtube_bg_type = is_numeric($youtube_bg_type) ? $youtube_bg_type : "1";
$display_video_mobile = onetone_option("display_video_mobile", "no");
$start_play = onetone_option("section_youtube_start", 3);
$youtube_autoplay = onetone_option("youtube_autoplay");
$youtube_loop = onetone_option("youtube_loop");
$youtube_mute = onetone_option("youtube_mute");
if ($youtube_autoplay == '1') {
    $youtube_autoplay = 'true';
} else {
    $youtube_autoplay = 'false';
}
if ($youtube_loop == '1') {
    $youtube_loop = 'true';
} else {
    $youtube_loop = 'false';
}
if ($youtube_mute == '1') {
    $youtube_mute = 'true';
} else {
    $youtube_mute = 'false';
}
$containment = '.onetone-youtube-section';
if ($youtube_bg_type == '1') {
    $containment = 'body';
开发者ID:JasonAJames,项目名称:jasonajamescom,代码行数:31,代码来源:section-youtube-video.php

示例9: onetone_option

</div>
         <?php 
    }
    ?>
         
        <?php 
    $services = '';
    $service = '';
    $d = 0;
    for ($c = 0; $c < 6; $c++) {
        $image = onetone_option("section_image_" . $i . "_" . $c);
        $icon = onetone_option("section_icon_" . $i . "_" . $c);
        $title = onetone_option("section_title_" . $i . "_" . $c);
        $desc = onetone_option("section_desc_" . $i . "_" . $c);
        $link = esc_url(onetone_option("section_link_" . $i . "_" . $c));
        $target = esc_attr(onetone_option("section_target_" . $i . "_" . $c));
        if (!($icon == '' && $title == '' && $desc == '')) {
            if ($link == "") {
                $title = $title;
            } else {
                $title = '<a href="' . $link . '" target="' . $target . '">' . $title . '</a>';
            }
            if ($image != '') {
                $service_icon = '<img src="' . esc_url($image) . '" alt="" />';
            } else {
                $service_icon = '<div class="icon-box" data-animation=""><i class="feature-box-icon fa ' . esc_attr($icon) . '"></i></div>';
            }
            $service .= '<div class="col-md-4">
	<div class="' . $onetone_animated . '" data-animationduration="0.9" data-animationtype="zoomIn" data-imageanimation="no" id="">
  <div class="magee-feature-box style1" id="" data-os-animation="fadeOut">
     ' . $service_icon . '
开发者ID:JasonAJames,项目名称:jasonajamescom,代码行数:31,代码来源:section-3.php

示例10: onetone_option

 $video_background_type = onetone_option('video_background_type');
 $video_background_type = $video_background_type == "" ? "youtube" : $video_background_type;
 $section_1_content = onetone_option('section_1_content');
 $animated = onetone_option('home_animated');
 $section_1_content = $section_1_content == 'slider' ? 1 : $section_1_content;
 if ($animated == '1') {
     $onetone_animated = 'magee-animated';
 }
 $sections_num = 15;
 $new_homepage_section = array();
 for ($i = 1; $i <= $sections_num; $i++) {
     $new_homepage_section[] = $i;
 }
 $i = 0;
 foreach ($new_homepage_section as $section_part) {
     $hide_section = onetone_option('section_hide_' . ($section_part - 1));
     if ($hide_section != '1') {
         if ($section_part == 1 && $section_1_content == '1') {
             get_template_part('home-sections/section', 'slider');
         } else {
             if ($video_background_section > 0 && $video_background_section == $section_part && !$detect->isMobile() && !$detect->isTablet()) {
                 get_template_part('home-sections/section', $video_background_type . '-video');
             } else {
                 get_template_part('home-sections/section', $section_part);
             }
         }
     }
     $i++;
 }
 ?>
         <div class="clear"></div>
开发者ID:JasonAJames,项目名称:jasonajamescom,代码行数:31,代码来源:index.php

示例11: esc_attr

        echo esc_attr($btn_target);
        ?>
" class=" magee-btn-normal btn-lg btn-line btn-light" style="text-decoration: none;"><?php 
        echo do_shortcode($btn_text);
        ?>
</a> 
            <?php 
    }
    ?>
            </div>
          <div class="banner-sns" style="margin-top: 50px;">
           <ul>
           <?php 
    for ($s = 0; $s < 6; $s++) {
        $icon = onetone_option("section_social_icon_" . $i . "_" . $s);
        $link = onetone_option("section_icon_link_" . $i . "_" . $s);
        echo ' <li><a href="' . esc_url($link) . '" target="_blank"><i class="fa fa-2 ' . esc_attr($icon) . '">&nbsp;</i></a></li>';
    }
    ?>
           </ul>
          </div>
        </div>
      </div>
        <?php 
} else {
    ?>
        <?php 
    if ($section_title != '') {
        ?>
        <div class="section-title"><?php 
        echo do_shortcode($section_title);
开发者ID:JasonAJames,项目名称:jasonajamescom,代码行数:31,代码来源:section-1.php

示例12: esc_attr

<?php

$right_sidebar_blog_posts = esc_attr(onetone_option('right_sidebar_blog_posts', ''));
if ($right_sidebar_blog_posts && is_active_sidebar($right_sidebar_blog_posts)) {
    dynamic_sidebar($right_sidebar_blog_posts);
} elseif (is_active_sidebar('default_sidebar')) {
    dynamic_sidebar('default_sidebar');
}
开发者ID:dparks-seattletimes,项目名称:openworldstudios,代码行数:8,代码来源:sidebar-postright.php

示例13: str_replace

        if ($avatar != '') {
            if ($link != '') {
                $image = '<a href="' . $link . '" target="_blank"><img src="' . $avatar . '" alt="' . $name . '" style="border-radius: 0; display: inline-block;border-style: solid;" />
        <div class="img-overlay primary">
          <div class="img-overlay-container">
            <div class="img-overlay-content"><i class="fa fa-link"></i></div>
          </div>
        </div>
        </a>';
            } else {
                $image = '<img src="' . $avatar . '" alt="" />';
            }
            $icons = '';
            for ($k = 0; $k < 4; $k++) {
                $icon = str_replace('fa-', '', esc_attr(onetone_option('section_icon_' . $i . '_' . $j . '_' . $k)));
                $link = esc_url(onetone_option('section_icon_link_' . $i . '_' . $j . '_' . $k));
                if ($icon != '') {
                    $icons .= '<li><a href="' . $link . '"><i class="fa fa-' . $icon . '"></i></a></li>';
                }
            }
            $team_item .= '<div class="col-md-' . $col . '">
	  <div class="' . $onetone_animated . '" data-animationduration="0.9" data-animationtype="fadeInDown" data-imageanimation="no">
						<div class="magee-person-box" id="">
						  <div class="person-img-box">
							<div class="img-box figcaption-middle text-center fade-in">' . $image . '</div>
						  </div>
						  <div class="person-vcard text-center">
							<h3 class="person-name" style="text-transform: uppercase;">' . $name . '</h3>
							<h4 class="person-title" style="text-transform: uppercase;">' . $byline . '</h4>
							<p class="person-desc">' . do_shortcode($description) . '</p>
							<ul class="person-social">
开发者ID:JasonAJames,项目名称:jasonajamescom,代码行数:31,代码来源:section-5.php

示例14: get_header

<?php

get_header();
$left_sidebar = onetone_option('left_sidebar_search');
$right_sidebar = onetone_option('right_sidebar_search');
$sidebar = 'none';
if ($left_sidebar) {
    $sidebar = 'left';
}
if ($right_sidebar) {
    $sidebar = 'right';
}
if ($left_sidebar && $right_sidebar) {
    $sidebar = 'both';
}
$container = 'container';
?>
<!--Main Area-->

<section class="page-title-bar title-left no-subtitle" style="">
  <div class="container">
    <?php 
onetone_get_breadcrumb(array("before" => "<div class=''>", "after" => "</div>", "show_browse" => false, "separator" => '', 'container' => 'div'));
?>
    <div class="clearfix"></div>
  </div>
</section>
<div class="page-wrap">
  <div class="<?php 
echo $container;
?>
开发者ID:alexandrinos,项目名称:wp-api-rest,代码行数:31,代码来源:search.php

示例15: esc_attr

<?php

$left_sidebar = esc_attr(onetone_option('left_sidebar_search', ''));
if ($left_sidebar && is_active_sidebar($left_sidebar)) {
    dynamic_sidebar($left_sidebar);
} elseif (is_active_sidebar('default_sidebar')) {
    dynamic_sidebar('default_sidebar');
}
开发者ID:dparks-seattletimes,项目名称:openworldstudios,代码行数:8,代码来源:sidebar-searchleft.php


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