• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP onetone_option函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



在下文中一共展示了onetone_option函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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: optionsframework_options

/**
 * Defines an array of options that will be used to generate the settings page and be saved in the database.
 * When creating the 'id' fields, make sure to use all lowercase and no spaces.
 *
 */
function optionsframework_options()
{
    global $social_icons, $sidebars;
    $os_fonts = onetone_options_typography_get_os_fonts();
    $os_fonts = array_merge(array('' => __('-- Default --', 'onetone')), $os_fonts);
    $font_color = array('color' => '');
    $section_font_color = array('color' => '');
    $section_title_typography_defaults_1 = array('size' => '36px', 'face' => '', 'style' => '700', 'color' => '#666666');
    $section_content_typography_defaults_1 = array('size' => '14px', 'face' => '', 'style' => '400', 'color' => '#666666');
    $typography_options = array('sizes' => array('10', '11', '12', '13', '14', '16', '18', '20', '24', '26', '28', '30', '35', '36', '38', '40', '46', '48', '50', '60'), 'faces' => $os_fonts, 'styles' => array('normal' => 'normal', 'italic' => 'italic', 'bold' => 'bold', 'bold italic' => 'bold italic', '100' => '100', '200' => '200', '300' => '300', '400' => '400', '500' => '500', '600' => '600', '700' => '700', '800' => '800', '900' => '900'), 'color' => true);
    $choices = array('yes' => __('Yes', 'onetone'), 'no' => __('No', 'onetone'));
    $choices2 = array('1' => __('Yes', 'onetone'), '0' => __('No', 'onetone'));
    $choices_reverse = array('no' => __('No', 'onetone'), 'yes' => __('Yes', 'onetone'));
    $align = array('' => __('Default', 'onetone'), 'left' => __('left', 'onetone'), 'right' => __('right', 'onetone'), 'center' => __('center', 'onetone'));
    $repeat = array('repeat' => __('repeat', 'onetone'), 'repeat-x' => __('repeat-x', 'onetone'), 'repeat-y' => __('repeat-y', 'onetone'), 'no-repeat' => __('no-repeat', 'onetone'));
    $position = array('top left' => __('top left', 'onetone'), 'top center' => __('top center', 'onetone'), 'top right' => __('top right', 'onetone'), 'center left' => __('center left', 'onetone'), 'center center' => __('center center', 'onetone'), 'center right' => __('center right', 'onetone'), 'bottom left' => __('bottom left', 'onetone'), 'bottom center' => __('bottom center', 'onetone'), 'bottom right' => __('bottom right', 'onetone'));
    $opacity = array_combine(range(0.1, 1, 0.1), range(0.1, 1, 0.1));
    $font_size = array_combine(range(1, 100, 1), range(1, 100, 1));
    $section_title = array("", "", "", "GALLERY", "OUR TEAM", "ABOUT", "TESTIMONIALS", "", "CONTACT");
    $section_menu = array("Home", "", "Services", "Gallery", "Team", "About", "Testimonials", "", "Contact");
    $section_slug = array('home', '', 'services', 'gallery', 'team', 'about', 'testimonials', '', 'contact');
    $section_padding = array('', '30px 0', '50px 0', '50px 0', '50px 0', '50px 0', '10px 0 50px', '50px 0', '50px 0');
    $text_align = array('center', 'left', 'center', 'center', 'center', 'left', 'center', 'left', 'center');
    $default_section_num = count($section_menu);
    $section_num = onetone_option('section_num', 9);
    $section_background = array(array('color' => '', 'image' => ONETONE_THEME_BASE_URL . '/images/home-bg01.jpg', 'repeat' => 'repeat', 'position' => 'top left', 'attachment' => 'scroll'), array('color' => '#eeeeee', 'image' => '', 'repeat' => 'repeat', 'position' => 'top left', 'attachment' => 'scroll'), array('color' => '#ffffff', 'image' => '', 'repeat' => 'repeat', 'position' => 'top left', 'attachment' => 'scroll'), array('color' => '#eeeeee', 'image' => '', 'repeat' => 'repeat', 'position' => 'top left', 'attachment' => 'scroll'), array('color' => '#ffffff', 'image' => '', 'repeat' => 'repeat', 'position' => 'top left', 'attachment' => 'scroll'), array('color' => '', 'image' => esc_url('http://www.mageewp.com/onetone/wp-content/uploads/sites/17/2015/11/banner_large.jpg'), 'repeat' => 'repeat', 'position' => 'top left', 'attachment' => 'scroll'), array('color' => '#eda869', 'image' => esc_url('http://www.mageewp.com/onetone/wp-content/uploads/sites/17/2015/11/123.jpg'), 'repeat' => 'no-repeat', 'position' => 'bottom center', 'attachment' => 'scroll'), array('color' => '#ffffff', 'image' => '', 'repeat' => 'repeat', 'position' => 'top left', 'attachment' => 'scroll'), array('color' => '', 'image' => esc_url('http://www.mageewp.com/onetone/wp-content/uploads/sites/17/2015/11/last4.jpg'), 'repeat' => 'repeat', 'position' => 'top left', 'attachment' => 'scroll'));
    $section_css_class = array("section-banner", "", "", "", "", "", "", "", "");
    $section_title_typography_defaults = array(array('size' => '48px', 'face' => '', 'style' => 'normal', 'color' => '#666666'), array('size' => '48px', 'face' => '', 'style' => 'normal', 'color' => '#666666'), array('size' => '48px', 'face' => '', 'style' => 'normal', 'color' => '#666666'), array('size' => '36px', 'face' => '', 'style' => 'bold', 'color' => '#666666'), array('size' => '36px', 'face' => '', 'style' => 'bold', 'color' => '#666666'), array('size' => '36px', 'face' => '', 'style' => 'bold', 'color' => '#ffffff'), array('size' => '36px', 'face' => '', 'style' => 'bold', 'color' => '#ffffff'), array('size' => '36px', 'face' => '', 'style' => 'bold', 'color' => '#666666'), array('size' => '36px', 'face' => '', 'style' => 'bold', 'color' => '#666666'));
    $section_content_typography_defaults = array(array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#666666'), array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#666666'), array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#666666'), array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#666666'), array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#666666'), array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#ffffff'), array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#ffffff'), array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#666666'), array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#666666'), array('size' => '14px', 'face' => '', 'style' => 'normal', 'color' => '#666666'));
    $section_content = array('<div class="banner-box">

&nbsp;
<h1>Powerful One page Theme</h1>
<div class="sub-title">Based on Bootstrap framework and Shortcodes, quick set and easy build, <br>shines one page small business website.</div>
<div class="banner-scroll"><a class="scroll" href="#about" data-section="about"><img src="' . esc_url('http://www.mageewp.com/onetone/wp-content/themes/onetone/images/down.png') . '" alt="" /></a></div>
<div class="banner-sns">
<ul class="">
	<li><a href="#"><i class="fa fa-2 fa-facebook">&nbsp;</i></a></li>
	<li><a href="#"><i class="fa fa-2 fa-skype">&nbsp;</i></a></li>
	<li><a href="#"><i class="fa fa-2 fa-twitter">&nbsp;</i></a></li>
	<li><a href="#"><i class="fa fa-2 fa-linkedin">&nbsp;</i></a></li>
	<li><a href="#"><i class="fa fa-2 fa-google-plus">&nbsp;</i></a></li>
	<li><a href="#"><i class="fa fa-2 fa-rss">&nbsp;</i></a></li>
</ul>
</div>
</div>', '[ms_promo_box style="normal" border_color="" border_width="0" background_color="" button_color="#eda869" button_link="" button_icon="" button_text="Click Me" class="" id=""]
<h4>Morbi rutrum, elit ac fermentum egestas, tortor ante vestibulum est, eget scelerisque nisl velit eget tellus.</h4>
[/ms_promo_box]', '[ms_row]
[ms_column style="1/3"]
[ms_featurebox style="1" title_font_size="18px" title_color="#666666" icon_circle="no" icon_size="46px" title="FREE PSD TEMPLATE " icon="fa-leaf" alignment="left" icon_animation_type="" icon_color="#000000" icon_background_color="" icon_border_color="" icon_border_width="" flip_icon="none" spinning_icon="no" icon_image="" icon_image_width="" icon_image_height="" link_url="" link_target="_blank" link_text= link_color="" content_color="#666666" content_box_background_color="" class="" id=""]Integer pulvinar elementum est, suscipit ornare ante finibus ac. Praesent vel ex dignissim, rhoncus eros luctus, dignissim arcu. [/ms_featurebox]
[/ms_column]
[ms_column style="1/3"]
[ms_featurebox style="1" title_font_size="18px" title_color="#666666" icon_circle="no" icon_size="46px" title="FREE PSD TEMPLATE" icon="fa-hourglass-end" alignment="left" icon_animation_type="" icon_color="#000000" icon_background_color="" icon_border_color="" icon_border_width="" flip_icon="none" spinning_icon="no" icon_image="" icon_image_width="" icon_image_height="" link_url="" link_target="_blank" link_text= link_color="" content_color="#666666" content_box_background_color="" class="" id=""]Integer pulvinar elementum est, suscipit ornare ante finibus ac. Praesent vel ex dignissim, rhoncus eros luctus, dignissim arcu.[/ms_featurebox]
[/ms_column]
[ms_column style="1/3"]
[ms_featurebox style="1" title_font_size="18px" title_color="#666666" icon_circle="no" icon_size="46px" title="FREE PSD TEMPLATE" icon="fa-signal" alignment="left" icon_animation_type="" icon_color="#000000" icon_background_color="" icon_border_color="" icon_border_width="" flip_icon="none" spinning_icon="no" icon_image="" icon_image_width="" icon_image_height="" link_url="" link_target="_blank" link_text="" link_color="" content_color="#666666" content_box_background_color="" class="" id=""]Integer pulvinar elementum est, suscipit ornare ante finibus ac. Praesent vel ex dignissim, rhoncus eros luctus, dignissim arcu. [/ms_featurebox]
[/ms_column]
[/ms_row]
[ms_row]
[ms_column style="1/3"]
[ms_featurebox style="1" title_font_size="18px" title_color="#666666" icon_circle="no" icon_size="46px" title="FREE PSD TEMPLATE" icon="fa-heart" alignment="left" icon_animation_type="" icon_color="#000000" icon_background_color="" icon_border_color="" icon_border_width="" flip_icon="none" spinning_icon="no" icon_image="" icon_image_width="" icon_image_height="" link_url="" link_target="_blank" link_text="" link_color="" content_color="#666666" content_box_background_color="" class="" id=""]Integer pulvinar elementum est, suscipit ornare ante finibus ac. Praesent vel ex dignissim, rhoncus eros luctus, dignissim arcu.[/ms_featurebox]
[/ms_column]
[ms_column style="1/3"]
[ms_featurebox style="1" title_font_size="18px" title_color="#666666" icon_circle="no" icon_size="46px" title="FREE PSD TEMPLATE " icon="fa-video-camera" alignment="left" icon_animation_type="" icon_color="#000000" icon_background_color="" icon_border_color="" icon_border_width="" flip_icon="none" spinning_icon="no" icon_image="" icon_image_width="" icon_image_height="" link_url="" link_target="_blank" link_text="" link_color="" content_color="#666666" content_box_background_color="" class="" id=""]Integer pulvinar elementum est, suscipit ornare ante finibus ac. Praesent vel ex dignissim, rhoncus eros luctus, dignissim arcu.[/ms_featurebox]
[/ms_column]
[ms_column style="1/3"]
[ms_featurebox style="1" title_font_size="18px" title_color="#666666" icon_circle="no" icon_size="46px" title="FREE PSD TEMPLATE" icon="fa-tag" alignment="left" icon_animation_type="" icon_color="#000000" icon_background_color="" icon_border_color="" icon_border_width="" flip_icon="none" spinning_icon="no" icon_image="" icon_image_width="" icon_image_height="" link_url="" link_target="_blank" link_text="" link_color="" content_color="#666666" content_box_background_color="" class="" id=""]Integer pulvinar elementum est, suscipit ornare ante finibus ac. Praesent vel ex dignissim, rhoncus eros luctus, dignissim arcu.[/ms_featurebox]
[/ms_column]
[/ms_row]', '<p>Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere ce.<br>Etiam ut dui eu nisi lobortis rhoncus ac quis nunc.</p>
[ms_divider style="blank" align="left"  width="100%"  margin_top="30px" margin_bottom="0" border_size="" border_color="" icon="" class="" id=""]
[ms_row no_padding="yes"]
[ms_column style="1/3"][ms_image_frame src="' . esc_url('http://www.mageewp.com/onetone/wp-content/uploads/sites/17/2015/11/7.jpg') . '" link="javascript:;" link_target="_self" class="" id=""][/ms_column]
[ms_column style="1/3"][ms_image_frame src="' . esc_url('http://www.mageewp.com/onetone/wp-content/uploads/sites/17/2015/11/8.jpg') . '" link="javascript:;" link_target="_self" class="" id=""][/ms_column]
[ms_column style="1/3"][ms_image_frame src="' . esc_url('http://www.mageewp.com/onetone/wp-content/uploads/sites/17/2015/11/9.jpg') . '" link="javascript:;" link_target="_self" class="" id=""][/ms_column]
[ms_column style="1/3"][ms_image_frame src="' . esc_url('http://www.mageewp.com/onetone/wp-content/uploads/sites/17/2015/11/10.jpg') . '" link="javascript:;" link_target="_self" class="" id=""][/ms_column]
[ms_column style="1/3"][ms_image_frame src="' . esc_url('http://www.mageewp.com/onetone/wp-content/uploads/sites/17/2015/11/11.jpg') . '" link="javascript:;" link_target="_self" class="" id=""][/ms_column]
[ms_column style="1/3"][ms_image_frame src="' . esc_url('http://www.mageewp.com/onetone/wp-content/uploads/sites/17/2015/11/12.jpg') . '" link="javascript:;" link_target="_self" class="" id=""][/ms_column]
[/ms_row]', '<p style="text-align: center;">Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere ce.<br>Etiam ut dui eu nisi lobortis rhoncus ac quis nunc.</p>
[ms_divider style="blank" align="left"  width="100%"  margin_top="30px" margin_bottom="0" border_size="" border_color="" icon="" class="" id=""]
[ms_row]
[ms_column style="1/4"]
[ms_person name="Kevin Perry" title="Software Developer" picture="' . esc_url('http://www.mageewp.com/onetone/wp-content/uploads/sites/17/2015/11/001.jpg') . '" piclink="" picborder="1px" picbordercolor="#eeeeee" picborderradius="0" iconboxedradius="4px"iconcolor="#000000" icon1="fa-facebook" icon2="fa-twitter" icon3="fa-google-plus" icon4="" icon5="" link1="" link2="" link3="" link4="" link5="" class="" id=""]Vivamus congue justo eget diam interdum scelerisque. In hac habitasse platea dictumst. [/ms_person]
[/ms_column]
[ms_column style="1/4"]
[ms_person name="Jennifer Lee" title="Software Engineer" picture="' . esc_url('http://www.mageewp.com/onetone/wp-content/uploads/sites/17/2015/11/002.jpg') . '" piclink="" picborder="1px" picbordercolor="#eeeeee" picborderradius="0" iconboxedradius="4px" iconcolor="#000000" icon1="fa-facebook" icon2="fa-twitter" icon3="fa-google-plus" icon4="" icon5="" link1="" link2="" link3="" link4="" link5="" class="" id=""]Vivamus congue justo eget diam interdum scelerisque. In hac habitasse platea dictumst. [/ms_person]
[/ms_column]
[ms_column style="1/4"]
[ms_person name="Brandon Ross" title="Java Developer" picture="' . esc_url('http://www.mageewp.com/onetone/wp-content/uploads/sites/17/2015/11/003.jpg') . '" piclink="" picborder="1px" picbordercolor="#eeeeee" picborderradius="0" iconboxedradius="4px" iconcolor="#000000" icon1="fa-facebook" icon2="fa-twitter" icon3="fa-google-plus" icon4="" icon5="" link1="" link2="" link3="" link4="" link5="" class="" id=""]Vivamus congue justo eget diam interdum scelerisque. In hac habitasse platea dictumst. [/ms_person]
[/ms_column]
[ms_column style="1/4"]
[ms_person name="Sara Wright" title="Systems Engineer" picture="' . esc_url('http://www.mageewp.com/onetone/wp-content/uploads/sites/17/2015/11/004.jpg') . '" piclink="" picborder="1px" picbordercolor="#eeeeee" picborderradius="0" iconboxedradius="4px" iconcolor="#000000" icon1="fa-facebook" icon2="fa-twitter" icon3="fa-google-plus" icon4="" icon5="" link1="" link2="" link3="" link4="" link5="" class="" id=""]Vivamus congue justo eget diam interdum scelerisque. In hac habitasse platea dictumst. [/ms_person]
[/ms_column]
[/ms_row]', '<p style="text-align:center;">Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cet.<br>
Etiam ut dui eu nisi lobortis rhoncus ac quis nunc.</p>
[ms_row]
//.........这里部分代码省略.........
开发者ID:sonvq,项目名称:passioninvestment,代码行数:101,代码来源:admin-options.php


示例4: 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


示例5: 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


示例6: 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


示例7: 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


示例8: 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


示例9: 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


示例10: 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


示例11: 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


示例12: 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


示例13: 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


示例14: 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


示例15: get_header

该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP onetone_options_array函数代码示例发布时间:2022-05-15
下一篇:
PHP onetone_get_breadcrumb函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap