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


PHP biz_vektor_get_theme_options函数代码示例

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


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

示例1: biz_vektor_footerCopyRight

function biz_vektor_footerCopyRight()
{
    $options = biz_vektor_get_theme_options();
    $subSiteName = $options['sub_sitename'];
    print '<div id="copy">Copyright &copy; <a href="' . home_url('/') . '" rel="home">';
    if ($subSiteName) {
        print $subSiteName;
    } else {
        bloginfo('name');
    }
    print '</a> All Rights Reserved.</div>';
    $wordpressUrl = 'https://ja.wordpress.org/';
    $bizvektorUrl = 'http://bizvektor.com';
    //links for Global version
    if ('ja' != get_locale()) {
        $wordpressUrl = 'https://wordpress.org/';
        $bizvektorUrl = 'http://bizvektor.com/en/';
    }
    // **** Don't change id name!
    $footerPowerd = '<div id="powerd">Powered by <a href="' . $wordpressUrl . '">WordPress</a> &amp; ';
    $footerPowerd .= '<a href="' . $bizvektorUrl . '" target="_blank" title="' . __('Free WordPress Theme BizVektor for business', 'biz-vektor') . '">';
    $footerPowerd .= ' BizVektor Theme</a> by <a href="http://www.vektor-inc.co.jp" target="_blank" title="' . _x('Vektor,Inc.', 'footer', 'biz-vektor') . '">Vektor,Inc.</a> technology.</div>';
    // **** Dont change filter name! Oh I already know 'Powerd' id miss spell !!!!!
    $footerPowerd = apply_filters('footerPowerdCustom', $footerPowerd);
    echo $footerPowerd;
}
开发者ID:aim-web-projects,项目名称:kobe-chuoh,代码行数:26,代码来源:plugins.php

示例2: widget

 function widget($args, $instance)
 {
     $options = biz_vektor_get_theme_options();
     if (preg_match('/^http.*$/', $instance['url'])) {
         echo '<div id="rss_widget">';
         biz_vektor_blogList($instance);
         echo '</div>';
     }
 }
开发者ID:hinaloe,项目名称:VK-All-in-One-Expansion-Unit,代码行数:9,代码来源:widget-rss-widget.php

示例3: is_bizvektor_default_design

function is_bizvektor_default_design()
{
    if (function_exists('biz_vektor_theme_styleSetting')) {
        $options = biz_vektor_get_theme_options();
        if ($options['theme_style'] == 'default' || $options['theme_style'] == '') {
            return true;
        }
    }
}
开发者ID:liuminhan,项目名称:wordpress,代码行数:9,代码来源:001_custom.php

示例4: is_neat

function is_neat()
{
    if (function_exists('biz_vektor_theme_styleSetting')) {
        $options = biz_vektor_get_theme_options();
        if ($options['theme_style'] == 'neat') {
            return true;
        }
    }
}
开发者ID:aim-web-projects,项目名称:kobe-chuoh,代码行数:9,代码来源:biz-vektor-neat.php

示例5: biz_vektor_exmodule_anti_ie8

function biz_vektor_exmodule_anti_ie8()
{
    global $biz_vektor_theme_styles;
    $options = biz_vektor_get_theme_options();
    $theme_style = $options['theme_style'];
    $themePathOldIe = $biz_vektor_theme_styles[$theme_style]['cssPathOldIe'];
    if ($themePathOldIe) {
        print '<!--[if lte IE 8]>' . "\n";
        print '<link rel="stylesheet" type="text/css" media="all" href="' . $themePathOldIe . '" />' . "\n";
        print '<![endif]-->' . "\n";
    }
}
开发者ID:aim-web-projects,项目名称:kobe-chuoh,代码行数:12,代码来源:extra_module.php

示例6: is_calmly

function is_calmly()
{
    if (function_exists('biz_vektor_theme_styleSetting')) {
        $options = biz_vektor_get_theme_options();
        $calmlyLabels = array('calmly', 'calmlyBrace', 'calmlyFlat', 'calmlyBraceFlat');
        $calmlyLabels = apply_filters('addCalmlyLabels', $calmlyLabels);
        foreach ($calmlyLabels as $themeLabel) {
            if ($options['theme_style'] == $themeLabel) {
                return true;
                break;
            }
        }
    }
}
开发者ID:liuminhan,项目名称:wordpress,代码行数:14,代码来源:002_custom.php

示例7: is_rebuild

function is_rebuild()
{
    if (function_exists('biz_vektor_theme_styleSetting')) {
        $options = biz_vektor_get_theme_options();
        if ($options['theme_style'] == 'rebuild' || $options['theme_style'] == '') {
            return true;
            break;
        } else {
            global $biz_vektor_theme_styles;
            biz_vektor_theme_styleSetting();
            if (isset($biz_vektor_theme_styles[$options['theme_style']])) {
                return false;
            } else {
                return true;
            }
        }
    }
}
开发者ID:liuminhan,项目名称:wordpress,代码行数:18,代码来源:003_custom.php

示例8: is_rebuild

function is_rebuild()
{
    if (function_exists('biz_vektor_theme_styleSetting')) {
        $options = biz_vektor_get_theme_options();
        if ($options['theme_style'] == 'rebuild' || $options['theme_style'] == '') {
            return true;
        } else {
            /*
            一度保存されているラベルのスキンプラグインが停止またはアンインストールされている事があるので、
            保存されているスキンが使用出来るか判別するために変数の配列を確認。なければ変わりにrebuildを適用するのでtrueとする
            */
            global $biz_vektor_theme_styles;
            biz_vektor_theme_styleSetting();
            if (isset($biz_vektor_theme_styles[$options['theme_style']])) {
                return false;
            } else {
                return true;
            }
            // print '<pre>';print_r($biz_vektor_theme_styles[$options['theme_style']]);print '</pre>';
        }
    }
}
开发者ID:aim-web-projects,项目名称:kobe-chuoh,代码行数:22,代码来源:003_custom.php

示例9: get_template_part

				<?php 
            get_template_part('module_loop_post');
            ?>
			<?php 
        }
        ?>
			</ul>
		<?php 
    }
    //$options['listInfoArchive']
    ?>
	<?php 
} else {
    ?>
		<?php 
    $options = biz_vektor_get_theme_options();
    if ($options['listBlogArchive'] == 'listType_set') {
        ?>
			<?php 
        while (have_posts()) {
            the_post();
            ?>
				<?php 
            get_template_part('module_loop_post2');
            ?>
			<?php 
        }
        ?>
		<?php 
    } else {
        ?>
开发者ID:aim-web-projects,项目名称:kobe-chuoh,代码行数:31,代码来源:archive.php

示例10: biz_vektor_pre_get_posts_front_page

function biz_vektor_pre_get_posts_front_page($query)
{
    $options = biz_vektor_get_theme_options();
    if (!isset($options['postTopCount'])) {
        $options['postTopCount'] = 0;
    }
    if (is_admin() || !$query->is_main_query()) {
        return;
    }
    if (!is_page() && is_front_page()) {
        $query->set('posts_per_page', $options['postTopCount']);
        return;
    }
}
开发者ID:liuminhan,项目名称:wordpress,代码行数:14,代码来源:functions.php

示例11: biz_vektor_snsBnrs

function biz_vektor_snsBnrs()
{
    $options = biz_vektor_get_theme_options();
    $facebook = $options['facebook'];
    $twitter = $options['twitter'];
    if ($facebook || $twitter) {
        $snsBnrs = '<ul id="snsBnr">';
        if ($facebook) {
            $snsBnrs .= '<li><a href="' . esc_url($facebook) . '" target="_blank"><img src="' . get_template_directory_uri() . '/images/bnr_facebook.png" alt="facebook" /></a></li>' . "\n";
        }
        if ($twitter) {
            $snsBnrs .= '<li><a href="https://twitter.com/#!/' . esc_url($twitter) . '" target="_blank"><img src="' . get_template_directory_uri() . '/images/bnr_twitter.png" alt="twitter" /></a></li>' . "\n";
        }
        $snsBnrs .= '</ul>';
        echo $snsBnrs;
    }
}
开发者ID:aim-web-projects,项目名称:kobe-chuoh,代码行数:17,代码来源:sns.php

示例12: biz_vektor_theme_options_render_page

function biz_vektor_theme_options_render_page()
{
    ?>
	<div class="wrap" id="biz_vektor_options">
		<?php 
    screen_icon();
    ?>
		<h2><?php 
    printf(__('%s Theme Options', 'biz-vektor'), wp_get_theme());
    ?>
</h2>
		<?php 
    settings_errors();
    ?>

		<?php 
    if (function_exists('biz_vektor_activation')) {
        biz_vektor_activation_information();
    } else {
        ?>
		<div id="sub-content">

		<iframe frameborder="0" height="200" marginheight="0" marginwidth="0" scrolling="auto" src="http://bizvektor.com/info-admin/"></iframe>

		</div>
		<?php 
    }
    ?>
		
		<div id="main-content">
		<p class="message_intro">
	<?php 
    $customizer_link = '<a href="' . get_admin_url() . 'customize.php">' . __('Theme customizer', 'biz-vektor') . '</a>';
    ?>
	<?php 
    _e('Thank you for using BizVektor.', 'biz-vektor');
    ?>
 
	<?php 
    printf(__('You can change basic design settings from %s', 'biz-vektor'), $customizer_link);
    ?>
 <br />
	<?php 
    _e('Here you can change social media settings.', 'biz-vektor');
    ?>
		</p>
		<form method="post" action="options.php">
			<?php 
    settings_fields('biz_vektor_options');
    $options = biz_vektor_get_theme_options();
    $default_options = biz_vektor_get_default_theme_options();
    /*-------------------------------------------*/
    /*	Design setting
    /*-------------------------------------------*/
    ?>
<div id="design" class="sectionBox">
<?php 
    get_template_part('inc/theme-options-nav');
    ?>
<h3><?php 
    _ex('Design settings', 'biz-vektor theme-options-edit', 'biz-vektor');
    ?>
	<span class="message_box">
		<?php 
    printf(__('You can change settings for this section also from %s', 'biz-vektor'), $customizer_link);
    ?>
	</span>
</h3>
	<table class="form-table">
	<tr>
	<th><?php 
    _e('Design skin', 'biz-vektor');
    ?>
</th>
	<td>
	<select name="biz_vektor_theme_options[theme_style]" id="<?php 
    echo esc_attr($options['theme_style']);
    ?>
">
	<option value="">[ <?php 
    _e('Select', 'biz-vektor');
    ?>
 ]</option>
	<?php 
    // Read biz_vektor_theme_styles
    global $biz_vektor_theme_styles;
    biz_vektor_theme_styleSetting();
    // Create pulldown item
    foreach ($biz_vektor_theme_styles as $biz_vektor_theme_styleKey => $biz_vektor_theme_styleValues) {
        if ($biz_vektor_theme_styleKey == $options['theme_style']) {
            print '<option value="' . $biz_vektor_theme_styleKey . '" selected>' . $biz_vektor_theme_styleValues['label'] . '</option>';
        } else {
            print '<option value="' . $biz_vektor_theme_styleKey . '">' . $biz_vektor_theme_styleValues['label'] . '</option>';
        }
    }
    ?>
	</select>
	<?php 
    global $themePlusSettingNavi;
    $themePlusSettingNavi = '<p>' . __('* If there are settings for the particular design skin, after you save your changes, you can update them from theme customizer.', 'biz-vektor') . '</p>';
//.........这里部分代码省略.........
开发者ID:aim-web-projects,项目名称:kobe-chuoh,代码行数:101,代码来源:theme-options-edit.php

示例13: biz_vektor_sideChildDisplay

function biz_vektor_sideChildDisplay()
{
    $options = biz_vektor_get_theme_options();
    if (isset($options['side_child_display']) && $options['side_child_display'] == 'side_child_hidden') {
        ?>
<style type="text/css">
/*-------------------------------------------*/
/*	sidebar child menu display
/*-------------------------------------------*/
#sideTower	ul.localNavi ul.children	{ display:none; }
#sideTower	ul.localNavi li.current_page_ancestor	ul.children,
#sideTower	ul.localNavi li.current_page_item		ul.children,
#sideTower	ul.localNavi li.current-cat				ul.children{ display:block; }
</style>
	<?php 
    }
}
开发者ID:kanipon,项目名称:BizVektor360,代码行数:17,代码来源:theme-options.php

示例14: biz_vektor_seo_render_edit

function biz_vektor_seo_render_edit()
{
    $options = biz_vektor_get_theme_options();
    $biz_vektor_name = get_biz_vektor_name();
    ?>
<div id="seoSetting" class="sectionBox">
<?php 
    get_template_part('inc/theme-options-nav');
    ?>
<h3><?php 
    _e('SEO and Google Analytics Settings', 'biz-vektor');
    ?>
</h3>
<table class="form-table">
<tr>
<th><?php 
    _e('&lt;title&gt; tag of homepage', 'biz-vektor');
    ?>
</th>
<td>
<p>
<?php 
    $sitetitle_link = '<a href="' . get_admin_url() . 'options-general.php" target="_blank">' . __('title of the site', 'biz-vektor') . '</a>';
    printf(__('Normally, %1$s will include the %2$s in the title tag.', 'biz-vektor'), $biz_vektor_name, $sitetitle_link);
    ?>
<br />
<?php 
    _e('For example, it appears in the form of <br />&lt;title&gt;page title | site title&lt;/title&gt;<br /> if using a static page.', 'biz-vektor');
    printf(__('However, it might have negative impact on search engine rankings if the &lt;title&gt; is too long, <strong>therefore please include the most popular keywords in a summarized manner, keeping the %s as short as possible.</strong>', 'biz-vektor'), $sitetitle_link);
    _e('However, in the home page, as described above, other title will not be added, it is possible to make the &lt;title&gt; little longer, which can be set separately here.', 'biz-vektor');
    ?>
</p>
<input type="text" name="biz_vektor_theme_options[topTitle]" id="topTitle" value="<?php 
    echo esc_attr($options['topTitle']);
    ?>
" style="width:90%;" />
<p>* <?php 
    _e('Site title will be used if this field is blank.', 'biz-vektor');
    ?>
</p>
</td>
</tr>
<tr>
<th><?php 
    _e('Common keywords', 'biz-vektor');
    ?>
</th>
<td><?php 
    _e('For the keywords meta tag, please enter the keywords to be used throughout the site, comma separated.', 'biz-vektor');
    ?>
<br />
<input type="text" name="biz_vektor_theme_options[commonKeyWords]" id="commonKeyWords" value="<?php 
    echo esc_attr($options['commonKeyWords']);
    ?>
" style="width:90%;" /><br />
<?php 
    _e('* You do not have to take keywords very seriously, because it does not affect the search engine rankings anymore.', 'biz-vektor');
    ?>
<br />
<?php 
    _e('* The keywords for each particular page are entered from that page\'s edit screen. About up to 10 keywords in conjunction with the number of common keywords is desirable.', 'biz-vektor');
    ?>
<br />
<?php 
    _e('* Not required , at the end of the last keyword.', 'biz-vektor');
    ?>
<br />
<?php 
    _e('ex) WordPress,Template,Theme,Free,GPL', 'biz-vektor');
    ?>
</td>
</tr>
<tr>
<th><?php 
    _ex('Description', 'Description settings', 'biz-vektor');
    ?>
</th>
<td>
<?php 
    _e("Content from the particular page's \"excerpt\" field will be reflected in the description meta tag.", 'biz-vektor');
    ?>
<br />
<?php 
    _e('In the Google and other search engine results pages (SERPs), part of the meta tag description appears under the site title.', 'biz-vektor');
    ?>
<br />
<?php 
    _e('If the excerpt field is blank, the first 240 characters from the page\'s content are used.', 'biz-vektor');
    ?>
<br />
<?php 
    _e("Description of the site will be applied to the meta description of the top page.However, the content will be reflected if the excerpt is fill in the page that is set on the home.", 'biz-vektor');
    ?>
<br />
<?php 
    _e("* If the excerpt field is not visible, in the tab called \"View\" in the upper right corner of the edit page, please check the box to display the \"excerpt\" field.", 'biz-vektor');
    ?>
<br />
</td>
</tr>
//.........这里部分代码省略.........
开发者ID:aim-web-projects,项目名称:kobe-chuoh,代码行数:101,代码来源:seo_and_ga_edit.php

示例15: biz_vektor_theme_options_render_page

function biz_vektor_theme_options_render_page()
{
    if (isset($_POST['bizvektor_action_mode'])) {
        biz_vektor_them_edit_function($_POST);
    }
    global $options_bizvektor;
    $options_bizvektor = $options = biz_vektor_get_theme_options();
    $biz_vektor_name = get_biz_vektor_name();
    ?>
	<div class="wrap biz_vektor_options">
		<?php 
    screen_icon();
    ?>
		<h2>
			<?php 
    if (function_exists('biz_vektor_obu_get_options')) {
        $obu_options = biz_vektor_obu_get_options();
        if ($obu_options['system_logo']) {
            echo '<img src="' . $obu_options['system_logo'] . '" alt="' . $biz_vektor_name . '" />';
        } else {
            printf(__('%s Theme Options', 'biz-vektor'), $biz_vektor_name);
        }
    } else {
        printf(__('%s Theme Options', 'biz-vektor'), $biz_vektor_name);
    }
    ?>
		</h2>
		<div class="bv_version">Version <?php 
    echo BizVektor_Theme_Version;
    ?>
</div>
		<?php 
    settings_errors();
    ?>
		
		<?php 
    if (function_exists('biz_vektor_activation_information')) {
        biz_vektor_activation_information();
    } else {
        $iframeUrl = 'http://bizvektor.com/info-admin/';
        //global edition
        if ('ja' != get_locale()) {
            $iframeUrl = 'http://bizvektor.com/en/info-admin/';
        }
        ?>
		<div id="sub-content">
			<iframe frameborder="0" height="200" marginheight="0" marginwidth="0" scrolling="auto" src="<?php 
        echo $iframeUrl;
        ?>
"></iframe>
		</div>
		<?php 
    }
    ?>

<?php 
    global $biz_vektor_options;
    $biz_vektor_options = biz_vektor_get_theme_options();
    ?>
		<div id="main-content">
		<div class="message_intro">
	<?php 
    $customizer_link = '<a href="' . get_admin_url() . 'customize.php">' . __('Theme customizer', 'biz-vektor') . '</a>';
    ?>
	<?php 
    printf(__('Thank you for using %s.', 'biz-vektor'), $biz_vektor_name);
    ?>
 
	<?php 
    printf(__('You can change basic design settings from %s', 'biz-vektor'), $customizer_link);
    ?>
 <br />
	<?php 
    _e('Here you can change social media settings.', 'biz-vektor');
    ?>
		</div>
		<form method="post" action="options.php">
		<input type="hidden" name="post_status" value="bvo" />
			<?php 
    settings_fields('biz_vektor_options');
    /*-------------------------------------------*/
    /*	Design setting
    /*-------------------------------------------*/
    ?>
<div id="design" class="sectionBox">
<?php 
    get_template_part('inc/theme-options-nav');
    ?>
<h3><?php 
    _ex('Design settings', 'biz-vektor theme-options-edit', 'biz-vektor');
    ?>
	<span class="message_box">
		<?php 
    printf(__('You can change settings for this section also from %s', 'biz-vektor'), $customizer_link);
    ?>
	</span>
</h3>
	<table class="form-table">
	<tr>
	<th><?php 
//.........这里部分代码省略.........
开发者ID:aim-web-projects,项目名称:kobe-chuoh,代码行数:101,代码来源:theme-options-edit.php


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