當前位置: 首頁>>代碼示例>>PHP>>正文


PHP sketch_get_option函數代碼示例

本文整理匯總了PHP中sketch_get_option函數的典型用法代碼示例。如果您正苦於以下問題:PHP sketch_get_option函數的具體用法?PHP sketch_get_option怎麽用?PHP sketch_get_option使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了sketch_get_option函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: advertica_bg_style

function advertica_bg_style($option)
{
    $background = sketch_get_option($option);
    $bg_style = NULL;
    if ($background) {
        if ($background['image']) {
            $bg_style = 'background:';
            if ($background['color']) {
                $bg_style .= $background['color'];
            }
            if ($background['image']) {
                $bg_style .= ' url(' . $background['image'] . ')';
            }
            if ($background['repeat']) {
                $bg_style .= ' ' . $background['repeat'];
            }
            if ($background['attachment']) {
                $bg_style .= ' ' . $background['attachment'];
            }
            if ($background['position']) {
                $bg_style .= ' ' . $background['position'] . ';';
            }
        } else {
            if ($background['color']) {
                $bg_style .= 'background:' . $background['color'];
            }
        }
    }
    return $bg_style;
}
開發者ID:nvvetal,項目名稱:water,代碼行數:30,代碼來源:sketch-functions.php

示例2: custom_breadcrumb

 function custom_breadcrumb()
 {
     global $shortname;
     global $themename;
     $ske_bdcrumb_stype = sketch_get_option($shortname . '_bdcrumb_stype');
     if ($ske_bdcrumb_stype === "bimage") {
         $ske_bstype = "<span class='brd_arr'></span>";
     } elseif ($ske_bdcrumb_stype === "btext") {
         $ske_bstype = " " . sketch_get_option($shortname . '_bdcrumb_stxt');
     }
     $this->opts = array('before' => '&nbsp;', 'after' => '&nbsp; ', 'delimiter' => $ske_bstype);
     $markup = $this->opts['before'] . $this->opts['delimiter'] . $this->opts['after'];
     global $post, $options;
     echo '<section class="cont_nav"><div class="cont_nav_inner"><p><a href="' . esc_url(home_url('/')) . '">' . __('Home', 'biznez-lite') . '</a>';
     if (!is_home()) {
         echo $markup;
     }
     $output = $this->simple_breadcrumb_case($post);
     if (is_page() || is_single()) {
         the_title('<span>', '</span>');
     } else {
         echo $output;
     }
     echo "</p></div></section>";
 }
開發者ID:xxf1995,項目名稱:alphaV,代碼行數:25,代碼來源:sketch-breadcrumb.php

示例3: biznez_head

function biznez_head()
{
    global $shortname;
    $skt_favicon = "";
    $skt_meta = '<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />' . "\n";
    if (sketch_get_option($shortname . '_favicon')) {
        $skt_favicon = sketch_get_option($shortname . '_favicon', 'biznez-lite');
        $skt_meta .= "<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"{$skt_favicon}\"/>\n";
    }
    echo $skt_meta;
}
開發者ID:xxf1995,項目名稱:alphaV,代碼行數:11,代碼來源:sketch-enqueue.php

示例4: advertica_head

function advertica_head()
{
    global $advertica_shortname;
    $advertica_favicon = "";
    $advertica_meta = '<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">' . "\n";
    if (sketch_get_option($advertica_shortname . '_favicon')) {
        $advertica_favicon = sketch_get_option($advertica_shortname . '_favicon', 'bizstudio');
        $advertica_meta .= "<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"{$advertica_favicon}\"/>\n";
    }
    echo $advertica_meta;
    if (!is_admin()) {
        require_once get_template_directory() . '/includes/advertica-custom-css.php';
    }
}
開發者ID:nvvetal,項目名稱:water,代碼行數:14,代碼來源:sketch-enqueue.php

示例5: incart_head

function incart_head()
{
    global $incart_lite_shortname;
    $incart_favicon = "";
    $incart_meta = '<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">' . "\n";
    if (sketch_get_option($incart_lite_shortname . '_favicon')) {
        $incart_favicon = esc_url(sketch_get_option($incart_lite_shortname . '_favicon', 'incart-lite'));
        $incart_meta .= "<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"{$incart_favicon}\"/>\n";
    }
    echo $incart_meta;
    if (!is_admin()) {
        require_once get_template_directory() . '/includes/incart-custom-css.php';
    }
}
開發者ID:Arkon13,項目名稱:magazin2,代碼行數:14,代碼來源:sketch-enqueue.php

示例6: optionsframework_option_name

/**
 * A unique identifier is defined to store the options in the database and reference them from the theme.
 * By default it uses the theme name, in lowercase and without spaces, but this can be changed if needed.
 * If the identifier changes, it'll appear as if the options have been reset.
 */
function optionsframework_option_name()
{
    global $shortname;
    global $themename;
    // This gets the theme name from the stylesheet
    $themename = get_option('stylesheet');
    $themename = preg_replace("/\\W/", "_", strtolower($themename));
    $optionsframework_settings = get_option('optionsframework');
    $optionsframework_settings['id'] = $themename;
    update_option('optionsframework', $optionsframework_settings);
    //setting contact us page
    if (sketch_get_option($shortname . '_contact_page')) {
        select_template(sketch_get_option($shortname . '_contact_page'));
    }
}
開發者ID:xxf1995,項目名稱:alphaV,代碼行數:20,代碼來源:options.php

示例7: invert_nav

						<!-- #logo -->
						
						<!-- navigation-->
						<div class="top-nav-menu span9">
							<?php 
invert_nav();
?>
						</div>
						<!-- #navigation --> 
					</div>
				</div>
			</div>
			<!-- #skehead -->
		</div>
		<!-- .glow --> 
	</div>
	<!-- #header -->
	
	<!-- header image section -->
		<!-- Header image -->
		<div class="flexslider">
			<div class="post"><img alt="invert-default-slider-image" class="default-slider-image"  src="<?php 
if (sketch_get_option($invert_shortname . '_frontslider_stype')) {
    echo sketch_get_option($invert_shortname . '_frontslider_stype');
} else {
    echo esc_url(get_template_directory_uri() . '/images/invert.jpg');
}
?>
" ></div>
		</div>
<div id="main" class="clearfix">
開發者ID:neetudave,項目名稱:heartfulness-uk,代碼行數:31,代碼來源:header.php

示例8: sketch_get_option

    }
    ?>
">				
							<i class="fa fa-sitemap"></i>
						</a>
					  <?php 
}
?>
	
					</div>			
					<div class="iconbox-content">			
						<h4><?php 
if (sketch_get_option($advertica_shortname . "_fb3_third_part_heading")) {
    echo sketch_get_option($advertica_shortname . "_fb3_third_part_heading");
}
?>
</h4>				
						<p><?php 
if (sketch_get_option($advertica_shortname . "_fb3_third_part_content")) {
    echo sketch_get_option($advertica_shortname . "_fb3_third_part_content");
}
?>
</p>		
					</div>		
					<div class="clearfix"></div>	
				</div>
			</div>
			<div class="clearfix"></div>
		</div>
	</div>
</div>
開發者ID:nvvetal,項目名稱:water,代碼行數:31,代碼來源:front-featured-boxes-section.php

示例9: esc_url

</p>
						<ul class="teamsocial">
						
							<?php 
if (sketch_get_option($shortname . '_tm_fb3')) {
    $fb_url3 = esc_url(sketch_get_option($shortname . '_tm_fb3', 'biznez-lite'));
}
?>
							<?php 
if (sketch_get_option($shortname . '_tm_tw3')) {
    $tw_url3 = esc_url(sketch_get_option($shortname . '_tm_tw3', 'biznez-lite'));
}
?>
							<?php 
if (sketch_get_option($shortname . '_tm_drd3')) {
    $drb_url3 = esc_url(sketch_get_option($shortname . '_tm_drd3', 'biznez-lite'));
}
?>
							<?php 
if ($fb_url3) {
    ?>
<li><a class="tooltip" title="Facebook" href="<?php 
    echo $fb_url3;
    ?>
"><span class="team-fb"></span></a></li><?php 
}
?>
							<?php 
if ($tw_url3) {
    ?>
<li><a class="tooltip" title="Twitter" href="<?php 
開發者ID:xxf1995,項目名稱:alphaV,代碼行數:31,代碼來源:template-about-page.php

示例10: esc_url

    }
    if (sketch_get_option($invert_shortname . '_img5_icon')) {
        ?>
					<li class="span2"><a href="<?php 
        if (sketch_get_option($invert_shortname . '_img5_link')) {
            echo esc_url(sketch_get_option($invert_shortname . '_img5_link', 'invert'));
        }
        ?>
" title="<?php 
        if (sketch_get_option($invert_shortname . '_img5_title')) {
            echo sketch_get_option($invert_shortname . '_img5_title', 'invert');
        }
        ?>
"><img alt="client-logo" src="<?php 
        if (sketch_get_option($invert_shortname . '_img5_icon')) {
            echo sketch_get_option($invert_shortname . '_img5_icon', 'invert');
        }
        ?>
"></a></li>
				<?php 
    } else {
        ?>
					<li class="span2"><a href="#" title="<?php 
        _e('Client Title', 'invert');
        ?>
"><img alt="client-logo" src="<?php 
        echo $clientimage4;
        ?>
"></a></li>
				<?php 
    }
開發者ID:neetudave,項目名稱:heartfulness-uk,代碼行數:31,代碼來源:invert-front-page.php

示例11: get_permalink

        echo get_permalink($post->ID);
        ?>
"><?php 
        _e('Read More &rarr;', 'biznez-lite');
        ?>
</a></div>
					</div>
					</div>
					<div class="clearfix"></div>
					<?php 
    }
    ?>

					<div class="navigation">
						<?php 
    if (function_exists('biznez_pagenavi') && sketch_get_option($shortname . '_show_pagenavi')) {
        biznez_pagenavi();
    } else {
        ?>

						<div class="alignleft"><?php 
        previous_posts_link('&larr;Previous');
        ?>
</div>
						<div class="alignright"><?php 
        next_posts_link('Next&rarr;', '');
        ?>
</div>
						<?php 
    }
    ?>
開發者ID:xxf1995,項目名稱:alphaV,代碼行數:31,代碼來源:home.php

示例12: while

    while (have_posts()) {
        the_post();
        ?>

	<div class="bread-title-holder">
		<div class="bread-title-bg-image full-bg-breadimage-fixed"></div>
		<div class="container">
			<div class="row-fluid">
				<div class="container_inner clearfix">
				<h1 class="title">
					<?php 
        the_title();
        ?>
				</h1>
				<?php 
        if (sketch_get_option($invert_shortname . "_hide_bread") == 'true') {
            if (class_exists('invert_breadcrumb_class')) {
                $invert_breadcumb->custom_breadcrumb();
            }
        }
        ?>
				</div>
			</div>
		</div>
	</div>

	<div class="container post-wrap">
		<div class="row-fluid">
			<div id="container" class="span8">
				<div id="content">  
					<div class="post" id="post-<?php 
開發者ID:neetudave,項目名稱:heartfulness-uk,代碼行數:31,代碼來源:single.php

示例13: sketch_get_option

?>
,
			'slides':'4',
			'delay':  <?php 
if (sketch_get_option($shortname . '_janimation')) {
    echo sketch_get_option($shortname . '_janimation');
} else {
    echo '1000';
}
?>
,
			'tspeed'    : <?php 
if (sketch_get_option($shortname . '_tspeed')) {
    echo sketch_get_option($shortname . '_tspeed');
} else {
    echo '1000';
}
?>
,
			'hoverpause': <?php 
if (sketch_get_option($shortname . '_hide_jcnavigation')) {
    echo sketch_get_option($shortname . '_hide_jcnavigation');
} else {
    echo '0';
}
?>
		});	

});

</script>
開發者ID:xxf1995,項目名稱:alphaV,代碼行數:31,代碼來源:jquery-jcarousel-config.php

示例14: jQuery

?>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery(window).load(function() {
       jQuery('#featuredslider,#featuredfullslider').orbit({
			 animation: '<?php 
if (sketch_get_option($shortname . '_effect_select')) {
    echo sketch_get_option($shortname . '_effect_select');
} else {
    echo 'fade';
}
?>
',                  // fade, horizontal-slide, vertical-slide, horizontal-push
			 animationSpeed:<?php 
if (sketch_get_option($shortname . '_animation_speed')) {
    echo sketch_get_option($shortname . '_animation_speed');
} else {
    echo '800';
}
?>
,                // how fast animtions are
			 timer: true, 			 // true or false to have the timer
			 advanceSpeed:4000, 		 // if timer is enabled, time between transitions 
			 pauseOnHover: false, 		 // if you hover pauses the slider
			 startClockOnMouseOut: false, 	 // if clock should start on MouseOut
			 startClockOnMouseOutAfter:1000, 	 // how long after MouseOut should the timer start again
			 directionalNav:true, 		 // manual advancing directional navs
			 captions: true, 			 // do you want captions?
			 captionAnimation: 'fade', 		 // fade, slideOpen, none
			 captionAnimationSpeed: 800, 	 // if so how quickly should they animate in
			 bullets:true,			 // true or false to activate the bullet navigation
開發者ID:xxf1995,項目名稱:alphaV,代碼行數:31,代碼來源:orbit-slider-config.php

示例15: biznez_circular_latestwork

function biznez_circular_latestwork()
{
    global $shortname;
    // Circular Latest Work
    if (sketch_get_option($shortname . '_circal_work', 'biznez-lite')) {
        ?>
<script type="text/javascript">
			jQuery(document).ready(function() {
				if ( jQuery('.front_clients').hasClass('jsquare') ) {
					jQuery('.front_clients').removeClass('jsquare');
					jQuery('.front_clients').addClass('jcircal');
				} else {
					jQuery('.front_clients').addClass('jsquare');
				}
			});
		</script>
<?php 
    }
}
開發者ID:xxf1995,項目名稱:alphaV,代碼行數:19,代碼來源:sketch-functions.php


注:本文中的sketch_get_option函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。