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


PHP optionsframework_fields函数代码示例

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


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

示例1: optionsframework_page

    function optionsframework_page()
    {
        $return = optionsframework_fields();
        settings_errors();
        ?>
    
	<div class="wrap">
	<div class="icon32" id="options_ico"><br /></div>
    <?php 
        //screen_icon( 'themes' );
        ?>
    <h2 class="nav-tab-wrapper">
        <?php 
        echo $return[1];
        ?>
    </h2>
    
    <div class="metabox-holder">
    <div id="optionsframework" class="postbox">
		<form action="options.php" method="post">
		<?php 
        settings_fields('optionsframework');
        ?>

		<?php 
        echo $return[0];
        /* Settings */
        ?>
        
        <div id="optionsframework-submit">
			<input type="submit" class="button-primary" name="update" value="<?php 
        esc_attr_e('Save Options');
        ?>
" />
            <input type="submit" class="reset-button button-secondary" name="reset" value="<?php 
        esc_attr_e('Restore Defaults');
        ?>
" onclick="return confirm( '<?php 
        print esc_js(__('Click OK to reset. Any theme settings will be lost!'));
        ?>
' );" />
            <div class="clear"></div>
		</div>
	</form>
</div> <!-- / #container -->

<p>Brought to you by <a href="http://320press.com" target="_blank">320press</a>.</p>

</div>
</div> <!-- / .wrap -->

<?php 
    }
开发者ID:terngkub,项目名称:wordpress-foundation,代码行数:53,代码来源:options-framework.php

示例2: optionsframework_page

    function optionsframework_page()
    {
        // Get the theme name so we can display it up top
        $themename = get_theme_data(STYLESHEETPATH . '/style.css');
        $themename = $themename['Name'];
        settings_errors();
        ?>
    
	<div class="wrap">
    <?php 
        screen_icon('themes');
        ?>
	<h2><?php 
        esc_html_e('Theme Options');
        ?>
</h2>
    
    <div id="of_container">
       <form action="options.php" method="post">
	  <?php 
        settings_fields('optionsframework');
        ?>

        <div id="header">
          <div class="logo">
            <h2><?php 
        esc_html_e($themename);
        ?>
</h2>
          </div>
          <div class="clear"></div>
        </div>
        <div id="main">
        <?php 
        $return = optionsframework_fields();
        ?>
          <div id="of-nav">
            <ul>
              <?php 
        echo $return[1];
        ?>
            </ul>
          </div>
          <div id="content">
            <?php 
        echo $return[0];
        /* Settings */
        ?>
          </div>
          <div class="clear"></div>
        </div>
        <div class="of_admin_bar">
			<input type="submit" class="button-primary" name="update" value="<?php 
        esc_attr_e('Save Options');
        ?>
" />
            <input type="submit" class="reset-button button-secondary" name="reset" value="<?php 
        esc_attr_e('Restore Defaults');
        ?>
" onclick="return confirm( '<?php 
        print esc_js(__('Click OK to reset. Any theme settings will be lost!'));
        ?>
' );" />
		</div>
<div class="clear"></div>
	</form>
</div> <!-- / #container -->  
</div> <!-- / .wrap -->

<?php 
    }
开发者ID:ridleyltd,项目名称:options-framework-plugin,代码行数:71,代码来源:options-framework.php

示例3: optionsframework_page

    function optionsframework_page()
    {
        settings_errors();
        ?>

	<div id="optionsframework-wrap" class="wrap">
	<div class="proversion">
	  <h3>Upgrade to Pro version!</h3>
	   <a href="<?php 
        echo esc_url('http://www.pwtthemes.com/theme/hannari-responsive-wordpress-theme');
        ?>
" target="_blank" class="upgradepro">Upgrade to Pro</a>
	   <a href="<?php 
        echo esc_url('http://www.pwtthemes.com/demo/hannari');
        ?>
" target="_blank" class="donate">Demo</a>
	  <p>If you need assistance, please do not hesitate to <a href="<?php 
        echo esc_url('http://www.pwtthemes.com/contact');
        ?>
" target="_blank">contact us</a></p>
	</div>
    <div class="logooption"><img src="<?php 
        echo OPTIONS_FRAMEWORK_DIRECTORY;
        ?>
images/pwt.png"/></div>
    <h2 class="nav-tab-wrapper">
        <?php 
        echo optionsframework_tabs();
        ?>
    </h2>
    <div id="optionsframework-metabox" class="metabox-holder">
	    <div id="optionsframework" class="postbox">
			<form action="options.php" method="post">
			<?php 
        settings_fields('optionsframework');
        ?>
			<?php 
        optionsframework_fields();
        /* Settings */
        ?>
			<div id="optionsframework-submit">
				<input type="submit" class="button-primary" name="update" value="<?php 
        esc_attr_e('Save Options', 'options_framework_theme');
        ?>
" />
				<input type="submit" class="reset-button button-secondary" name="reset" value="<?php 
        esc_attr_e('Restore Defaults', 'options_framework_theme');
        ?>
" onclick="return confirm( '<?php 
        print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'options_framework_theme'));
        ?>
' );" />
				<div class="clear"></div>
			</div>
			</form>
		</div> <!-- / #container -->
	</div>
	<?php 
        do_action('optionsframework_after');
        ?>
	</div> <!-- / .wrap -->
	
<?php 
    }
开发者ID:pmanterys,项目名称:wp-mw-newsletter,代码行数:64,代码来源:options-framework.php

示例4: optionsframework_page

    function optionsframework_page()
    {
        ?>

	<div id="optionsframework-wrap" class="wrap">
    <?php 
        screen_icon('themes');
        ?>
    <h2 class="nav-tab-wrapper">
        <?php 
        echo optionsframework_tabs();
        ?>
    </h2>

    <?php 
        settings_errors('options-framework');
        ?>

    <div id="optionsframework-metabox" class="metabox-holder">
	    <div id="optionsframework" class="postbox">
			<form action="options.php" method="post">
			<?php 
        settings_fields('optionsframework');
        ?>
			<?php 
        optionsframework_fields();
        /* Settings */
        ?>
			<div id="optionsframework-submit">
				<input type="submit" class="button-primary" name="update" value="<?php 
        esc_attr_e('保存设置', 'options_framework_theme');
        ?>
" />
				<input type="submit" class="reset-button button-secondary" name="reset" value="<?php 
        esc_attr_e('恢复默认', 'options_framework_theme');
        ?>
" onclick="return confirm( '<?php 
        print esc_js(__('如果单击“确定”会导致之前所有的设置都丢失,确定要这样做吗?', 'options_framework_theme'));
        ?>
' );" />
				<div class="clear"></div>
			</div>
			</form>
		</div> <!-- / #container -->
	</div>
	<?php 
        do_action('optionsframework_after');
        ?>
	</div> <!-- / .wrap -->

<?php 
    }
开发者ID:wangshijun101,项目名称:morketing.cn,代码行数:52,代码来源:options-framework.php

示例5: optionsframework_page

    function optionsframework_page()
    {
        settings_errors();
        ?>

	<div id="optionsframework-wrap" class="wrap">
		<div class="extern-links">
			<?php 
        $support_link = '//info.template-help.com/help/cms-blog-templates/wordpress/wordpress-tutorials/';
        $doc_link = '//info.template-help.com/help/quick-start-guide/wordpress-themes/master/index_en.html';
        if (class_exists('Woocommerce')) {
            $doc_link = '//www.templatemonster.com/help/quick-start-guide/woocommerce-themes/master/index_en.html';
        } elseif (function_exists('jigoshop_init')) {
            $doc_link = '//www.templatemonster.com/help/quick-start-guide/jigoshop-themes/master/index_en.html';
        }
        $language = get_bloginfo("language");
        switch ($language) {
            case 'ru-RU':
                $support_link = '//info.template-help.com/help/ru/cms-blog-templates/wordpress/wordpress-tutorials/';
                break;
            case 'es-ES':
                $support_link = '//info.template-help.com/help/es/cms-blog-templates/wordpress/wordpress-tutorials/';
                break;
            case 'de-DE':
                $support_link = '//info.template-help.com/help/de/cms-blog-templates/wordpress/wordpress-tutorials/';
                break;
        }
        echo '<a class="icon-a icon-support" href="' . $support_link . '" target="_blank"><span class="icon"><span>' . theme_locals("support") . '</span></span></a>';
        echo "<a class='icon-a icon-documentation' href='" . $doc_link . "' target='_blank'><span class='icon'><span>" . theme_locals('documentation') . "</span></span></a>";
        ?>
		</div>
		<div class="clear"></div>

	<h2 class="nav-tab-wrapper">
		<?php 
        echo optionsframework_tabs();
        ?>
	</h2>

	<div id="optionsframework-metabox" class="metabox-holder">
		<div id="optionsframework" class="postbox">
			<form action="options.php" method="post">
			<?php 
        settings_fields('optionsframework');
        ?>
			<?php 
        optionsframework_fields();
        /* Settings */
        ?>
			<div id="optionsframework-submit">
				<input type="submit" class="button-primary" name="update" value="<?php 
        echo theme_locals("save_options");
        ?>
" />
				<input type="submit" class="reset-button button-secondary" name="reset" value="<?php 
        echo theme_locals("restore_defaults");
        ?>
" onclick="return confirm( '<?php 
        echo theme_locals("restore_defaults_desc");
        ?>
' );" />
				<div class="clear"></div>
			</div>
			</form>
		</div> <!-- / #container -->
	</div>
	<?php 
        do_action('optionsframework_after');
        ?>
	</div> <!-- / .wrap -->
<?php 
    }
开发者ID:robbuh,项目名称:CherryFramework,代码行数:72,代码来源:options-framework.php

示例6: optionsframework_page

    function optionsframework_page()
    {
        // Get the theme name so we can display it up top
        $theme = of_get_theme_info();
        if ($theme->parent()) {
            $theme = $theme->parent();
        }
        $themeName = $theme['Name'];
        $themeVersion = $theme['Version'];
        settings_errors();
        ?>

	<div class="wrap">
    <?php 
        screen_icon('themes');
        ?>

    <div id="of_container">
       <form action="options.php" method="post">
	  <?php 
        settings_fields('optionsframework');
        ?>

        <div id="header">
          <div class="logo">
            <h2><?php 
        esc_html_e($themeName);
        ?>
  <?php 
        esc_html_e('Options');
        ?>
 <small>(v<?php 
        esc_html_e($themeVersion);
        ?>
)</small></h2>
          </div>

          <div class="site5author">
            <h2><a href="http://www.s5themes.com"><?php 
        esc_attr_e('A Theme by', 'site5framework');
        ?>
 <strong><?php 
        esc_attr_e('S5themes.com', 'site5framework');
        ?>
</strong></a></h2>
          </div>

          <div class="clear"></div>
        </div>
        <div id="main">
        <?php 
        $return = optionsframework_fields();
        ?>
          <div id="of-nav">
            <ul>
              <?php 
        echo $return[1];
        ?>
            </ul>
          </div>
          <div id="content">
            <?php 
        echo $return[0];
        /* Settings */
        ?>
          </div>
          <div class="clear"></div>
        </div>
        <div class="of_admin_bar">
			<input type="submit" class="button-primary" name="update" value="<?php 
        esc_attr_e('Save Options', 'site5framework');
        ?>
" />
            <input type="submit" class="reset-button button-secondary" name="reset" value="<?php 
        esc_attr_e('Restore Defaults', 'site5framework');
        ?>
" onclick="return confirm( '<?php 
        print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'site5framework'));
        ?>
' );" />
		</div>
<div class="clear"></div>
	</form>
</div> <!-- / #container -->
</div> <!-- / .wrap -->

<?php 
    }
开发者ID:jiyongcheng,项目名称:wp_rabbit,代码行数:88,代码来源:options-framework.php

示例7: optionsframework_page

    function optionsframework_page()
    {
        $return = optionsframework_fields();
        settings_errors();
        ?>
	
	 <div id="go_pro">
            <h1>Go for Pro Version!</h1>
            <p>This is a free version of discover. Get your own copy of professional version if you need Unlimited Sliders , Full Width page template, Forum support and much more. <a href="http://antthemes.com/?page_id=1963" target="blank">Click Here to Learn More Now</a> </p>

        </div>
    
	<div class="wrap">
    <?php 
        screen_icon('themes');
        ?>
    <h2 class="nav-tab-wrapper">
        <?php 
        echo $return[1];
        ?>
    </h2>
    
    <div class="metabox-holder">
    <div id="optionsframework" class="postbox">
		<form action="options.php" method="post">
		<?php 
        settings_fields('optionsframework');
        ?>

		<?php 
        echo $return[0];
        /* Settings */
        ?>
        
        <div id="optionsframework-submit">
			<input type="submit" class="button-primary" name="update" value="<?php 
        esc_attr_e('Save Options');
        ?>
" />
            <input type="submit" class="reset-button button-secondary" name="reset" value="<?php 
        esc_attr_e('Restore Defaults');
        ?>
" onclick="return confirm( '<?php 
        print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'discover'));
        ?>
' );" />
            <div class="clear"></div>
		</div>
	</form>
</div> <!-- / #container -->
</div>
</div> <!-- / .wrap -->

<?php 
    }
开发者ID:akimxtreme,项目名称:materialesdimacoy.com.ve,代码行数:55,代码来源:options-framework.php

示例8: optionsframework_page

    function optionsframework_page()
    {
        settings_errors('options-framework');
        ?>
	<div id="optionsframework-wrap" class="wrap">
		<!--?php echo get_screen_icon( $screen = 'settings'); ?-->
		<div class="framework-info">
			<h1><?php 
        bloginfo('name');
        $my_theme_version = wp_get_theme();
        ?>
</h1>
			<span>Administration Panel<?php 
        echo " | version " . $my_theme_version->get('Version');
        ?>
</span>
		</div>
		<div class="clear"></div>
		<div style="float:left; width:220px; background:#86badf; margin-top:12px; margin-right:12px; ">
    <ul style="background:#86badf;" class="nav-tab-wrapper">
        <?php 
        echo optionsframework_tabs();
        ?>
    </ul>
</div>
    <div style="float:left;" id="optionsframework-metabox" class="metabox-holder">
	    <div id="optionsframework" class="postbox">
			<form class="jqtransform" action="options.php" method="post">
			<div id="optionsframework-submit-top">
				<input type="submit" class="button-primary" name="update" value="<?php 
        esc_attr_e('Save Options', HS_CURRENT_THEME);
        ?>
" />
				<input type="submit" class="reset-button button-secondary" name="reset" value="<?php 
        esc_attr_e('Restore Defaults', HS_CURRENT_THEME);
        ?>
" onclick="return confirm( '<?php 
        print esc_js(__('Click OK to reset. Any theme settings will be lost!', HS_CURRENT_THEME));
        ?>
' );" />
				<div class="clear"></div>
			</div>
			<?php 
        settings_fields('optionsframework');
        ?>
			<?php 
        optionsframework_fields();
        /* Settings */
        ?>
			<div id="optionsframework-submit">
				<input type="submit" class="button-primary" name="update" value="<?php 
        esc_attr_e('Save Options', HS_CURRENT_THEME);
        ?>
" />
				<input type="submit" class="reset-button button-secondary" name="reset" value="<?php 
        esc_attr_e('Restore Defaults', HS_CURRENT_THEME);
        ?>
" onclick="return confirm( '<?php 
        print esc_js(__('Click OK to reset. Any theme settings will be lost!', HS_CURRENT_THEME));
        ?>
' );" />
				<div class="clear"></div>
			</div>
			</form>
		</div> <!-- / #container -->
	</div>
	<?php 
        do_action('optionsframework_after');
        ?>
	<div style="clear:both;"></div>
	</div> <!-- / .wrap -->
	
<?php 
    }
开发者ID:FelixNong1990,项目名称:andy,代码行数:74,代码来源:options-framework.php

示例9: optionsframework_page

    function optionsframework_page()
    {
        settings_errors('options-framework');
        ?>

	<div class="donate-info">
		<strong><?php 
        _e('To Activate All Features, Please Upgrade to Pro version!', 'invert');
        ?>
</strong><br/>
		<?php 
        $sktlink = "https://sketchthemes.com/premium-themes/multipurpose-business-wordpress-theme-for-corporate-agency/";
        $skttest_drive = "http://trial.sketchthemes.com/wp-signup.php";
        ?>
		<a title="<?php 
        esc_attr_e('Upgrade to Pro', 'invert');
        ?>
" href="<?php 
        echo esc_url($sktlink);
        ?>
" target="_blank" class="upgrade"><?php 
        _e('Upgrade to Pro', 'invert');
        ?>
</a>
		<a title="<?php 
        esc_attr_e('Setup Instructions', 'invert');
        ?>
" href="<?php 
        echo get_template_directory_uri() . '/Installation_Instructions.txt';
        ?>
" target="_blank" class="donate"><?php 
        _e('Setup Instructions', 'invert');
        ?>
</a>
		<?php 
        $sktratelink = "http://wordpress.org/support/view/theme-reviews/invert-lite";
        ?>
		<a title="<?php 
        esc_attr_e('Rate Invert Lite', 'invert');
        ?>
" href="<?php 
        echo esc_url($sktratelink);
        ?>
" target="_blank" class="review"><?php 
        _e('Rate Invert Lite', 'invert');
        ?>
</a>
		<a title="<?php 
        _e('Test Drive', 'invert');
        ?>
" href="<?php 
        echo esc_url($skttest_drive);
        ?>
" target="_blank" class="review"><?php 
        _e('Theme Test Drive', 'invert');
        ?>
</a>
	</div>

	<div id="optionsframework-wrap">
	
	<?php 
        if (isset($invert_themename)) {
            ?>
	
   <h2><?php 
            _e('Theme Options ', 'invert');
            echo $invert_themename;
            ?>
</h2>  
	
	<?php 
        }
        ?>
	
    <!--<h2 class="nav-tab-wrapper">
        <?php 
        echo optionsframework_tabs();
        ?>
    </h2>-->

    <div id="optionsframework-metabox" class="metabox-holder">
	    <div id="optionsframework" class="postbox">
			<form action="options.php" method="post">
				<div id="skt-of-header"><div class="skt-of-logo"></div><h2><?php 
        esc_attr_e('SketchThemes Admin Panel', 'optionsframework');
        ?>
</h2></div>
				<div id="skt-of-body">
				<div id="skt-of-sidebar" class="nav-tab-wrapper"><?php 
        echo optionsframework_tabs();
        ?>
</div>
				<div id="skt-of-content">
				<?php 
        settings_fields('optionsframework');
        ?>
				<?php 
        optionsframework_fields();
        /* Settings */
//.........这里部分代码省略.........
开发者ID:neetudave,项目名称:heartfulness-uk,代码行数:101,代码来源:options-framework.php

示例10: optionsframework_page

    function optionsframework_page()
    {
        settings_errors();
        ?>
    <?php 
        $theme = wp_get_theme();
        if ($theme->name == 'Corpo') {
            ?>
    <div id="optionsframework-themepromo">
        <h2><?php 
            _e('Upgrade to Corpo Pro!', 'corpo');
            ?>
</h2>
        <p><?php 
            _e('All Corpo features plus <b>custom typography, unlimited colors, filterable portfolio</b> and more!', 'corpo');
            ?>
 <a href="http://webtuts.pl/corpo-pro/"><?php 
            _e('Buy now!', 'corpo');
            ?>
</a></p>
	</div>
    <?php 
        }
        ?>

    <div id="optionsframework-wrap" class="wrap">
    <?php 
        screen_icon('themes');
        ?>
    <h2 class="nav-tab-wrapper">
        <?php 
        echo optionsframework_tabs();
        ?>
    </h2>

    <div id="optionsframework-metabox" class="metabox-holder">
	    <div id="optionsframework" class="postbox">
			<form action="options.php" method="post">
			<?php 
        settings_fields('optionsframework');
        ?>
			<?php 
        optionsframework_fields();
        /* Settings */
        ?>
			<div id="optionsframework-submit">
				<input type="submit" class="button-primary" name="update" value="<?php 
        esc_attr_e('Save Options', 'options_framework_theme');
        ?>
" />
				<input type="submit" class="reset-button button-secondary" name="reset" value="<?php 
        esc_attr_e('Restore Defaults', 'options_framework_theme');
        ?>
" onclick="return confirm( '<?php 
        print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'options_framework_theme'));
        ?>
' );" />
				<div class="clear"></div>
			</div>
			</form>
		</div> <!-- / #container -->
	</div>
	<?php 
        do_action('optionsframework_after');
        ?>
	</div> <!-- / .wrap -->
	
<?php 
    }
开发者ID:violetushca,项目名称:naiad-auv-wordpress,代码行数:69,代码来源:options-framework.php

示例11: optionsframework_page

    function optionsframework_page()
    {
        // Get the theme name so we can display it up top
        $theme_data;
        if (function_exists('wp_get_theme')) {
            $theme_data = wp_get_theme('theme-name');
        } else {
            $theme_data = (object) wp_get_theme(get_template_directory() . '/style.css');
        }
        $themename = $theme_data->Name;
        settings_errors();
        ?>


        <div class="wrap">

            <div id="of_container">
               <form action="options.php" method="post">
          <?php 
        settings_fields('optionsframework');
        ?>



        <div id="header">
                <div id="header_left">
                        <!--<div id="header_left"><h1> Theme Options </h1> </div>-->
                        <div class="panel_logo">
                        <?php 
        $bloginfo_link = get_template_directory_uri();
        $logo = $bloginfo_link . '/includes/admin/images/panel_logo.png';
        ?>
                        <img src="<?php 
        echo $logo;
        ?>
" alt="" />
                        </div>
                </div>
                
                <div id="header_right">
                        <div class="documentation">
                                Need help?  <a href="http://www.files.red-sun-design.com/lemonchili/readme/readme.html" target="_blank"> <?php 
        _e('Documentation', 'gxg_textdomain');
        ?>
 </a>
                        </div>
                </div>

        </div>


        <div class="headerbottom"></div>

        <div class="clear"></div>

        <div id="main">

                <?php 
        $return = optionsframework_fields();
        ?>
                  <div id="of-nav">
                    <ul>
                              <?php 
        echo $return[1];
        ?>
                    </ul>
                    <ul id="navibottom"></ul>
                    <ul id="shadow"></ul>
                  </div>

                  <div id="content">
                    <?php 
        echo $return[0];
        /* Settings */
        ?>
                  </div>

                  <div class="clear"></div>

        </div>


        <div class="of_admin_bar">

          <div id="bottom_left">
                                    <input type="submit" class="reset-button button-secondary" name="reset" value="<?php 
        esc_attr_e('Restore Defaults', 'gxg_textdomain');
        ?>
" onclick="return confirm( '<?php 
        print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'gxg_textdomain'));
        ?>
' );" />
            </div>

         <div id="bottom_right">
                        <input type="submit" class="button-primary" name="update" value="<?php 
        esc_attr_e('Save Options', 'gxg_textdomain');
        ?>
" />
                  </div>
//.........这里部分代码省略.........
开发者ID:m-godefroid76,项目名称:devrestofactory,代码行数:101,代码来源:options-framework.php

示例12: wrockmetro_optionsframework_page

function wrockmetro_optionsframework_page()
{
    $return = optionsframework_fields();
    settings_errors();
    ?>
		  <?php 
    get_template_part('/includes/wrock');
    ?>
        <div class="wrap"> 
		
            <?php 
    $options = get_option('of_template');
    $themename = get_option('of_themename');
    ?>
            <div id="header">
                <div class="logo">
                    <h2><?php 
    echo $themename;
    ?>
&nbsp;<?php 
    _e('Options', 'wrockmetro');
    ?>
</h2>
                </div>
                <a href="<?php 
    echo esc_url(__('http://www.wrock.org/wrock-metro', 'wrockmetro'));
    ?>
" target="_new">
                    <div class="icon-option"> </div>
                </a>   
            </div>
            <div class="metabox-holder">
                <div id="optionsframework">
                    <form action="options.php" method="post">
                        <ul class="nav-tab-wrapper">
        <?php 
    echo $return[1];
    ?>
                        </ul>
                        <div class="content">
                            <?php 
    settings_fields('optionsframework');
    ?>
        <?php 
    echo $return[0];
    /* Settings */
    ?>
                        </div>
                        <div id="optionsframework-submit">
                            <input type="submit" class="button-primary" name="update" value="<?php 
    esc_attr_e('Save Options');
    ?>
" />
                            <input type="submit" class="reset-button button-secondary" name="reset" value="<?php 
    esc_attr_e('Restore Defaults');
    ?>
" onclick="return confirm( '<?php 
    print esc_js('Click OK to reset. Any theme settings will be lost!');
    ?>
' );" />
                            <div class="clear"></div>
                        </div>
                    </form>
                </div> <!-- / #container -->
            </div>
        </div> <!-- / .wrap -->
        <?php 
}
开发者ID:manishkhanchandani,项目名称:mkgxy,代码行数:68,代码来源:options-framework.php

示例13: themeblvd_ltp_display_meta_box

/**
 * Display Meta Box
 *
 * @since 1.0.0
 */
function themeblvd_ltp_display_meta_box()
{
    global $post;
    // Current Value
    $value = get_post_meta($post->ID, '_tb_custom_layout', true);
    $settings = array('_tb_custom_layout' => $value);
    // Custom Layouts for options array
    $select = array('' => '-- ' . __('No Custom Templates', 'theme-blvd-layouts-to-posts') . ' --');
    $layouts = get_posts('post_type=tb_layout&orderby=title&order=ASC&numberposts=-1');
    if ($layouts) {
        $select = array('' => '-- ' . __('None', 'theme-blvd-layouts-to-posts') . ' --');
        foreach ($layouts as $layout) {
            $select[$layout->post_name] = $layout->post_title;
        }
    }
    $options = array(array('id' => '_tb_placeholder', 'std' => 1, 'type' => 'hidden'), array('id' => '_tb_custom_layout', 'desc' => __('If you\'d like to replace this post with a template from the Layout Builder, you can select one from the dropdown menu.', 'theme-blvd-layouts-to-posts'), 'type' => 'select', 'options' => $select));
    if (version_compare(TB_FRAMEWORK_VERSION, '2.5.0', '<')) {
        unset($options[0]);
    }
    // Start output
    echo '<div id="optionsframework" class="tb-meta-box side">';
    // Display options form
    // @todo - After framework v2.2 is released, we can
    // clean this up and not to have to check for the
    // different functions, simply requiring the user
    // to update their theme.
    if (function_exists('themeblvd_option_fields')) {
        // Options form for TB framework v2.2+
        $form = themeblvd_option_fields('themeblvd_ltp', $options, $settings, false);
        echo $form[0];
    } else {
        if (function_exists('optionsframework_fields')) {
            // Options form for TB framework v2.0 - v2.1
            $form = optionsframework_fields('themeblvd_ltp', $options, $settings, false);
            echo $form[0];
        }
    }
    // End output
    echo '</div><!-- .tb-meta-box (end) -->';
}
开发者ID:azeemgolive,项目名称:thefunkidsgame,代码行数:45,代码来源:tb-layouts-to-posts.php

示例14: optionsframework_page

    function optionsframework_page()
    {
        settings_errors();
        ?>
    <?php 
        $theme = wp_get_theme();
        if ($theme->name == 'Delicacy') {
            ?>

<!-- XTEC ************ ELIMINAT - Treure el boto de compra
2013.09.05 @jmiro227
    <div id="optionsframework-themepromo">
        <h2><?php 
            _e('Upgrade to Delicacy Pro!', 'delicacy');
            ?>
</h2>
        <p><?php 
            _e('All Delicacy features plus <b>responsive design</b>, unlimited <b>color schemes</b> and <b>lifetime updates</b>.', 'more');
            ?>
 <a href="http://webtuts.pl/delicacy-pro/"><?php 
            _e('Buy now!', 'delicacy');
            ?>
</a></p>
	</div>
************ FI -->

    <?php 
        }
        ?>
    <div id="optionsframework-wrap" class="wrap">
    <?php 
        screen_icon('themes');
        ?>
    <h2 class="nav-tab-wrapper">
        <?php 
        echo optionsframework_tabs();
        ?>
    </h2>

    <div id="optionsframework-metabox" class="metabox-holder">
	    <div id="optionsframework" class="postbox">
			<form action="options.php" method="post">
			<?php 
        settings_fields('optionsframework');
        ?>
			<?php 
        optionsframework_fields();
        /* Settings */
        ?>
			<div id="optionsframework-submit">
				<input type="submit" class="button-primary" name="update" value="<?php 
        esc_attr_e('Save Options', 'options_framework_theme');
        ?>
" />
				<input type="submit" class="reset-button button-secondary" name="reset" value="<?php 
        esc_attr_e('Restore Defaults', 'options_framework_theme');
        ?>
" onclick="return confirm( '<?php 
        print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'options_framework_theme'));
        ?>
' );" />
				<div class="clear"></div>
			</div>
			</form>
		</div> <!-- / #container -->
	</div>
	<?php 
        do_action('optionsframework_after');
        ?>
	</div> <!-- / .wrap -->
	
<?php 
    }
开发者ID:ignacioabejaro,项目名称:xtecblocs,代码行数:73,代码来源:options-framework.php

示例15: optionsframework_page

    function optionsframework_page()
    {
        //$return = optionsframework_fields();
        ?>
    <div class="options_wrap">
	<div class="wrap">

	<div class="clear"></div>
	<form method="post"> 
		<?php 
        /* Top buttons */
        ?>
		<div id="optionsframework-submit">
			<div class="optionsframework-submit-inner">
				<span><?php 
        echo get_screen_icon($screen = 'settings');
        ?>
				<div class="options-title">Theme Options</div>
				<input type="submit" class="button-primary topbutton-right" name="update" value="<?php 
        esc_attr_e('Save Options');
        ?>
" />

				</span>
				
	            <div class="clear"></div>
				<?php 
        settings_errors();
        ?>
			</div>
		</div>
    <div class="nav-tab-wrapper">
        <?php 
        echo optionsframework_tabs();
        ?>
    </div>
    
    <div class="metabox-holder">

    <div id="optionsframework" class="postbox">
		
		<?php 
        settings_fields('optionsframework');
        ?>

		<?php 
        optionsframework_fields();
        /* Settings */
        ?>
        
        <?php 
        /* Bottom buttons */
        ?>
        <div id="optionsframework-reset">
        	<?php 
        echo '<input type="hidden" name="mtheme_options_nonce" value="', wp_create_nonce(basename(__FILE__)), '" />';
        ?>
			<input type="submit" class="button-primary" name="update" value="<?php 
        esc_attr_e('Save Options');
        ?>
" />
            <input type="submit" class="reset-button button-secondary" name="reset" value="<?php 
        esc_attr_e('Restore Defaults');
        ?>
" onclick="return confirm( '<?php 
        print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'mthemelocal'));
        ?>
' );" />
            <div class="clear"></div>
		</div>
	
	</div> <!-- / #container -->
	</div>
</form>
</div>
</div> <!-- / .wrap -->

<?php 
    }
开发者ID:rongandat,项目名称:scalaprj,代码行数:79,代码来源:options-framework.php


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