本文整理汇总了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;
}
示例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' => ' ', 'after' => ' ', '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>";
}
示例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;
}
示例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';
}
}
示例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';
}
}
示例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'));
}
}
示例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">
示例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>
示例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
示例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
}
示例11: get_permalink
echo get_permalink($post->ID);
?>
"><?php
_e('Read More →', '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('←Previous');
?>
</div>
<div class="alignright"><?php
next_posts_link('Next→', '');
?>
</div>
<?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
示例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>
示例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
示例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
}
}