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

PHP theme_data_setup函数代码示例

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

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



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

示例1: rambo_setup

function rambo_setup()
{
    //content width
    if (!isset($content_width)) {
        $content_width = 770;
    }
    // Load text domain for translation-ready
    load_theme_textdomain('rambo', WEBRITI_THEME_FUNCTIONS_PATH . '/lang');
    add_theme_support('woocommerce');
    add_theme_support('post-thumbnails');
    //supports featured image
    add_theme_support('automatic-feed-links');
    //feed links enabled
    add_image_size('blog1_section_img', 270, 260, true);
    add_image_size('blog2_section_img', 770, 300, true);
    // This theme uses wp_nav_menu() in one location.
    //register_nav_menu( 'primary', __( 'Primary Menu', 'rambo' ) );
    register_nav_menus(array('primary' => __('Primary Menu', 'rambo')));
    //do_action('busiprof_init');//load admin pannal file
    require_once 'theme_setup_data.php';
    require WEBRITI_THEME_FUNCTIONS_PATH . '/theme_options/option_pannel.php';
    // for Custom Menus
    // setup admin pannel defual data for index page
    $rambo_theme_options = theme_data_setup();
    add_option('rambo_theme_options', $rambo_theme_options);
}
开发者ID:wenqingyu,项目名称:enterprise-management-system,代码行数:26,代码来源:functions.php


示例2: appointment_setup

function appointment_setup()
{
    // Load text domain for translation-ready
    load_theme_textdomain('appointment', WEBRITI_THEME_FUNCTIONS_PATH . '/lang');
    add_theme_support('post-thumbnails');
    //supports featured image
    // Register primary menu
    register_nav_menu('primary', __('Primary Menu', 'appointment'));
    // Add default posts and comments RSS feed links to head.
    add_theme_support('automatic-feed-links');
    // Set the content_width with 900
    if (!isset($content_width)) {
        $content_width = 900;
    }
    require_once 'theme_setup_data.php';
    // setup admin pannel defual data for index page
    $appointment_options = theme_data_setup();
    $current_theme_options = get_option('appointment_options');
    // get existing option data
    if ($current_theme_options) {
        $appointment_options = array_merge($appointment_options, $current_theme_options);
        update_option('appointment_options', $appointment_options);
        // Set existing and new option data
    } else {
        add_option('appointment_options', $appointment_options);
    }
    require WEBRITI_THEME_FUNCTIONS_PATH . '/theme_options/option_pannel.php';
    // for Option Panel Settings
}
开发者ID:hcone5006,项目名称:privateinvestigations,代码行数:29,代码来源:functions.php


示例3: custom_scripts

function custom_scripts()
{
    $current_options = wp_parse_args(get_option('elitepress_lite_options', array()), theme_data_setup());
    ?>
	<style>
	<?php 
    echo $current_options['webrit_custom_css'];
    ?>
	</style>
	<?php 
}
开发者ID:Kemitestech,项目名称:WordPress-Skeleton,代码行数:11,代码来源:scripts.php


示例4: head_enqueue_custom_css

function head_enqueue_custom_css()
{
    $quality_pro_options = theme_data_setup();
    $current_options = wp_parse_args(get_option('quality_pro_options', array()), $quality_pro_options);
    if ($current_options['webrit_custom_css'] != '') {
        ?>
	<style>
	<?php 
        echo $current_options['webrit_custom_css'];
        ?>
	</style>
<?php 
    }
}
开发者ID:Vivekbhusal,项目名称:EnergySmartResident,代码行数:14,代码来源:scripts.php


示例5: quality_setup

function quality_setup()
{
    //content width
    if (!isset($content_width)) {
        $content_width = 700;
    }
    //In PX
    // Load text domain for translation-ready
    load_theme_textdomain('quality', QUALITY_THEME_FUNCTIONS_PATH . '/lang');
    add_theme_support('post-thumbnails');
    //supports featured image
    // This theme uses wp_nav_menu() in one location.
    register_nav_menu('primary', __('Primary Menu', 'quality'));
    //Navigation
    // theme support
    add_theme_support('automatic-feed-links');
    require_once 'theme_setup_data.php';
    // setup admin pannel defual data for index page
    $quality_pro_options = theme_data_setup();
}
开发者ID:LSYanJun,项目名称:wordpress,代码行数:20,代码来源:functions.php


示例6: bloginfo

    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    ``
    <![endif]-->
    <meta charset="<?php 
bloginfo('charset');
?>
" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title><?php 
wp_title('|', true, 'right');
?>
</title>
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <!-- Theme Css -->
	<?php 
$quality_pro_options = theme_data_setup();
$current_options = wp_parse_args(get_option('quality_pro_options', array()), $quality_pro_options);
?>
    <?php 
if ($current_options['upload_image_favicon'] != '') {
    ?>
    <link rel="shortcut icon" href="<?php 
    echo esc_url($current_options['upload_image_favicon']);
    ?>
" />
    <?php 
}
wp_head();
?>
  </head>
  <body <?php 
开发者ID:Vivekbhusal,项目名称:EnergySmartResident,代码行数:31,代码来源:header.php


示例7: wp_parse_args

<div class="block ui-tabs-panel deactive" id="option-ui-id-3" >	
	<?php 
$current_options = wp_parse_args(get_option('appointment_options', array()), theme_data_setup());
if (isset($_POST['webriti_settings_save_3'])) {
    if ($_POST['webriti_settings_save_3'] == 1) {
        if (empty($_POST) || !wp_verify_nonce($_POST['webriti_gernalsetting_nonce_customization'], 'webriti_customization_nonce_gernalsetting')) {
            printf(__('Sorry, your nonce did not verify.', 'appointment'));
            exit;
        } else {
            $current_options['service_title'] = sanitize_text_field($_POST['service_title']);
            $current_options['service_description'] = sanitize_text_field($_POST['service_description']);
            $current_options['service_one_title'] = sanitize_text_field($_POST['service_one_title']);
            $current_options['service_one_description'] = sanitize_text_field($_POST['service_one_description']);
            $current_options['service_one_icon'] = sanitize_text_field($_POST['service_one_icon']);
            $current_options['service_two_title'] = sanitize_text_field($_POST['service_two_title']);
            $current_options['service_two_description'] = sanitize_text_field($_POST['service_two_description']);
            $current_options['service_two_icon'] = sanitize_text_field($_POST['service_two_icon']);
            $current_options['service_three_title'] = sanitize_text_field($_POST['service_three_title']);
            $current_options['service_three_description'] = sanitize_text_field($_POST['service_three_description']);
            $current_options['service_three_icon'] = sanitize_text_field($_POST['service_three_icon']);
            $current_options['service_four_title'] = sanitize_text_field($_POST['service_four_title']);
            $current_options['service_four_description'] = sanitize_text_field($_POST['service_four_description']);
            $current_options['service_four_icon'] = sanitize_text_field($_POST['service_four_icon']);
            $current_options['service_five_title'] = sanitize_text_field($_POST['service_five_title']);
            $current_options['service_five_description'] = sanitize_text_field($_POST['service_five_description']);
            $current_options['service_five_icon'] = sanitize_text_field($_POST['service_five_icon']);
            $current_options['service_six_title'] = sanitize_text_field($_POST['service_six_title']);
            $current_options['service_six_description'] = sanitize_text_field($_POST['service_six_description']);
            $current_options['service_six_icon'] = sanitize_text_field($_POST['service_six_icon']);
            // service section enabled yes ya on
            if (isset($_POST['service_section_enabled'])) {
开发者ID:hcone5006,项目名称:privateinvestigations,代码行数:31,代码来源:home_service_settings.php


示例8: theme_data_setup

<?php

$elitepress_lite_options = theme_data_setup();
$current_options = wp_parse_args(get_option('elitepress_lite_options', array()), $elitepress_lite_options);
if ($current_options['header_call_out_area_enabled'] == true) {
    ?>
<!-- Top Callout Section -->
<div class="top-callout-section">
	<div class="container">
		<div class="row">
			<div class="col-md-9">
				<?php 
    if ($current_options['header_call_out_title']) {
        ?>
				<h2><?php 
        echo $current_options['header_call_out_title'];
        ?>
</h2>
				<?php 
    }
    if ($current_options['header_call_out_description']) {
        ?>
				<p><?php 
        echo $current_options['header_call_out_description'];
        ?>
</p>
				<?php 
    }
    ?>
			</div>
			<?php 
开发者ID:Kemitestech,项目名称:WordPress-Skeleton,代码行数:31,代码来源:index-top-call-out-section.php


示例9: wp_parse_args

<div class="block ui-tabs-panel active" id="option-ui-id-1" >
<?php 
$current_options = wp_parse_args(get_option('elitepress_lite_options', array()), theme_data_setup());
if (isset($_POST['webriti_settings_save_1'])) {
    if ($_POST['webriti_settings_save_1'] == 1) {
        if (empty($_POST) || !wp_verify_nonce($_POST['webriti_gernalsetting_nonce_customization'], 'webriti_customization_nonce_gernalsetting')) {
            print 'Sorry, your nonce did not verify.';
            exit;
        } else {
            $current_options['upload_image_favicon'] = esc_url($_POST['upload_image_favicon']);
            $current_options['webrit_custom_css'] = wp_strip_all_tags($_POST['webrit_custom_css']);
            if (isset($_POST['text_title'])) {
                echo $current_options['text_title'] = sanitize_text_field($_POST['text_title']);
            } else {
                echo $current_options['text_title'] = "off";
            }
            update_option('elitepress_lite_options', stripslashes_deep($current_options));
        }
    }
    if ($_POST['webriti_settings_save_1'] == 2) {
        $current_options['upload_image_favicon'] = "";
        $current_options['text_title'] = "on";
        $current_options['webrit_custom_css'] = "";
        update_option('elitepress_lite_options', $current_options);
    }
}
?>
	
	<form method="post" id="webriti_theme_options_1">
		<div id="heading">
			<table style="width:100%;"><tr>
开发者ID:Kemitestech,项目名称:WordPress-Skeleton,代码行数:31,代码来源:home_page_settings.php


示例10: theme_data_setup

<!-- AddThis Button END -->
<?php 
$wallstreet_pro_options = theme_data_setup();
$current_options = wp_parse_args(get_option('wallstreet_pro_options', array()), $wallstreet_pro_options);
if ($current_options['portfolio_section_enabled'] == true) {
    ?>
<div class="portfolio-section">
	<div class="container">

		<div class="row">
			<div class="section_heading_title">
				<?php 
    if ($current_options['portfolio_title']) {
        ?>
				<h1><?php 
        echo esc_html($current_options['portfolio_title']);
        ?>
</h1>
				<div class="pagetitle-separator">
					<div class="pagetitle-separator-border">
						<div class="pagetitle-separator-box"></div>
					</div>
				</div>
			<?php 
    }
    ?>
			<?php 
    if ($current_options['portfolio_description']) {
        ?>
				<p><?php 
        echo esc_html($current_options['portfolio_description']);
开发者ID:wenqingyu,项目名称:enterprise-management-system,代码行数:31,代码来源:index-portfolio.php


示例11: confirm

				<?php 
require_once 'pages/footer_customization_settings.php';
?>
				
				<!--most 7 tabs home_page_settings --> 
				<?php 
require_once 'pages/footer_social_media_settings.php';
?>
			
				<!--most 8 tabs home_page_settings --> 
				<?php 
require_once 'pages/UpgradeToPro.php';
?>
			</div>		
        </div>
		<div class="webriti-submenu" id="webriti_submenu">			
            <div class="webriti-submenu-links" id="webriti_submenu_links">
			<form method="POST">
				<input type="submit" onclick="return confirm( 'Click OK to reset. Any theme settings will be lost!' );" value="Restore All Defaults" name="restore_all_defaults" id="restore_all_defaults" class="reset-button btn">
			<form>
            </div><!-- webriti-submenu-links -->
        </div>
		<div class="clear"></div>
    </div>
</div>
<?php 
// Restore all defaults
if (isset($_POST['restore_all_defaults'])) {
    $rambo_theme_options = theme_data_setup();
    update_option('rambo_theme_options', $rambo_theme_options);
}
开发者ID:seanlon,项目名称:profile-page,代码行数:31,代码来源:webriti_option_pannel.php


示例12: get_option

<?php

$current_options = get_option('appointment_options', theme_data_setup());
if ($current_options['service_section_enabled'] == 'on') {
    $service_one_title = $current_options['service_one_title'];
    $service_one_description = $current_options['service_one_description'];
    $service_two_title = $current_options['service_two_title'];
    $service_two_description = $current_options['service_two_description'];
    $service_three_title = $current_options['service_three_title'];
    $service_three_description = $current_options['service_three_description'];
    $service_four_title = $current_options['service_four_title'];
    $service_four_description = $current_options['service_four_description'];
    $service_five_title = $current_options['service_five_title'];
    $service_five_description = $current_options['service_five_description'];
    $service_six_title = $current_options['service_six_title'];
    $service_six_description = $current_options['service_six_description'];
    ?>
<div class="Service-section">
	<div class="container">
	
		<div class="row">
			<div class="col-md-12">
				<div class="welcome">
				<?php 
    if ($current_options['service_title']) {
        ?>
					<div class="section-heading-title">
						<h1><?php 
        echo esc_html($current_options['service_title']);
        ?>
</h1>
开发者ID:hcone5006,项目名称:privateinvestigations,代码行数:31,代码来源:index-service.php


示例13: get_option

<!-- Logo and buttons go here -->
	<div class="container-fluid">
		<div class="row">
	<?php 
$current_options = get_option('elitepress_lite_options', theme_data_setup());
if ($current_options['logo_section_settings'] == 'on') {
    ?>
			<div class="col-md-8">
				<div class="site-logo">
					<a href="<?php 
    echo esc_url(home_url('/'));
    ?>
" title="The Arches Project">
					<?php 
    if ($current_options['text_title'] == "on") {
        echo "<div class=elitepress_title_head>" . get_bloginfo() . "</div>";
    } else {
        if ($current_options['upload_image_logo'] != '') {
            ?>
						<img src="<?php 
            echo esc_url($current_options['upload_image_logo']);
            ?>
" class="img-responsive" style="height:<?php 
            if ($current_options['height'] != '') {
                echo esc_html($current_options['height']);
            }
            ?>
px; width:<?php 
            if ($current_options['width'] != '') {
                echo esc_html($current_options['width']);
            }
开发者ID:Kemitestech,项目名称:WordPress-Skeleton,代码行数:31,代码来源:header-logo-section.php


示例14: load_template

                <div class="format-setting-wrap">
                    <div class="format-setting-label">
					<?php 
load_template(dirname(__FILE__) . '/pages/footer_copyright_settings.php');
?>
					</div>
				</div>
            </div>
        </div>
    </div>
		</div>
    </div>
    </div>
	<div class="webriti-submenu" style="height:35px;">			
            <div class="webriti-submenu-links" style="margin-top:5px;">
			<form method="POST">
				<input type="submit" onclick="return confirm( 'Click OK to reset theme data. Theme settings will be lost!' );" value="Restore All Defaults" name="restore_all_defaults" id="restore_all_defaults" class="reset-button btn">
			<form>
            </div><!-- webriti-submenu-links -->
        </div>
        <div class="clear"></div>
        </div>
    </div>
</div>

<?php 
// Restore all defaults
if (isset($_POST['restore_all_defaults'])) {
    $appointment_lite_theme_options = theme_data_setup();
    update_option('appointment_options', $appointment_lite_theme_options);
}
开发者ID:hcone5006,项目名称:privateinvestigations,代码行数:31,代码来源:appointment_option_pannel.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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