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


PHP Options_Framework_Interface::optionsframework_fields方法代码示例

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


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

示例1: options_page


//.........这里部分代码省略.........
        ?>
</p></a></li>
                        <li class="big"><a href="#country10"><h6><?php 
        echo __('Logo Section', 'alexandria');
        ?>
</h6><p><?php 
        echo __('Settings', 'alexandria');
        ?>
</p></a></li>       
                        
                        <li class="big"><a href="#country3"><h6><?php 
        echo __('Header', 'alexandria');
        ?>
</h6><p><?php 
        echo __('Settings', 'alexandria');
        ?>
</p></a></li>
                                         
                        <li class="big"><a href="#country4"><h6><?php 
        echo __('Layout', 'alexandria');
        ?>
</h6><p><?php 
        echo __('Settings', 'alexandria');
        ?>
</p></a></li>
                        <li class="small"><a href="#country5"><p><?php 
        echo __('Biz One Settings', 'alexandria');
        ?>
</p></a></li>  
                        <li class="small"><a href="#country7"><p><?php 
        echo __('Biz Two Settings', 'alexandria');
        ?>
</p></a></li>               
                        <li class="small"><a href="#country9"><p><?php 
        echo __('Standard Blog Settings', 'alexandria');
        ?>
</p></a></li>
                        <li class="big"><a href="#country19"><h6><?php 
        echo __('Portfolio', 'alexandria');
        ?>
</h6><p><?php 
        echo __('Settings', 'alexandria');
        ?>
</p></a></li>                                             
                        
                        <li class="big"><a href="#country11"><h6><?php 
        echo __('Footer', 'alexandria');
        ?>
</h6><p><?php 
        echo __('Settings', 'alexandria');
        ?>
</p></a></li>                                             
                    </ul> 
                    
                    <div class="shadetabscontent">
                
    
                    <?php 
        Options_Framework_Interface::optionsframework_fields();
        /* Settings */
        ?>
                    
                    </div><!-- .shadetabscontent -->
                    
                    <script type="text/javascript">
                    
                                           jQuery(document).ready(function(){
                                                jQuery.noConflict();
                                                jQuery('#countrytabs').tabs();
                                            });	
                    
                    </script>                                   
                
                
                
                </div><!-- #new_options_container_middle -->
                
				<div class="new_options_container_bottom">

                    <input type="submit" class="button-primary" name="update" value="<?php 
        esc_attr_e(__('Save Options', 'alexandria'));
        ?>
" />
                                        <input type="submit" class="reset-button button-secondary" name="reset" value="<?php 
        esc_attr_e(__('Restore Defaults', 'alexandria'));
        ?>
" onclick="return confirm( '<?php 
        print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'alexandria'));
        ?>
' );" />                
                
                </div><!-- .new_options_container_bottom -->                            
                         
            </form> 
			</div><!-- .new_options_container -->                
        
        </div><!-- #optionsframework -->                                      

	<?php 
    }
开发者ID:as3445,项目名称:bizkit,代码行数:101,代码来源:class-options-framework-admin.php

示例2: options_page

    /**
     * Builds out the options panel.
     *
     * If we were using the Settings API as it was intended we would use
     * do_settings_sections here.  But as we don't want the settings wrapped in a table,
     * we'll call our own custom optionsframework_fields.  See options-interface.php
     * for specifics on how each individual field is generated.
     *
     * Nonces are provided using the settings_fields()
     *
     * @since 1.7.0
     */
    function options_page()
    {
        ?>
     
        <div id="optionsframework-themepromo">
        	<div class="promo-inner">
                <h3>Support</h3>
                <div class="inside">
                    <p>The best way to contact me with <b>support questions</b> and <b>bug reports</b> is via our <a href="<?php 
        esc_attr_e('http://facebook.com/templatesnext/', 'textdomain');
        ?>
" target="_blank">facebook page</a>.</p>
                    <p>If you like i-craft please rate us at <a href="<?php 
        esc_attr_e('http://wordpress.org/support/view/theme-reviews/i-craft', 'textdomain');
        ?>
" target="_blank">WordPress.org</a> and like our <a href="<?php 
        esc_attr_e('http://facebook.com/templatesnext/', 'textdomain');
        ?>
" target="_blank">facebook page</a>. </p>
                </div>
            </div>
        </div>     

		<div id="optionsframework-wrap" class="wrap">

		<?php 
        $menu = $this->menu_settings();
        ?>
        
        <div class="promo-2">
        	<div class="promo-wrap">
            	<a href="<?php 
        esc_attr_e('http://templatesnext.org/icraft/', 'textdomain');
        ?>
" target="_blank">i-craft Demo</a>
                <a href="<?php 
        esc_attr_e('http://templatesnext.org/icraft/docs', 'textdomain');
        ?>
">Documentation</a> 
                <div class="donate">                
                    <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
                    <input type="hidden" name="cmd" value="_s-xclick">
                    <input type="hidden" name="hosted_button_id" value="M2HN47K2MQHAN">
                    <table>
                    <tr><td><input type="hidden" name="on0" value="If you like my work, buy me">If you like my work, buy me</td></tr><tr><td><select name="os0">
                        <option value="a cup of coffee">1 cup of coffee $10.00 USD</option>
                        <option value="2 cup of coffee">2 cup of coffee $20.00 USD</option>
                        <option value="3 cup of coffee">3 cup of coffee $30.00 USD</option>
                    </select> </td></tr>
                    </table>
                    <input type="hidden" name="currency_code" value="USD">
                    <input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online.">
                    <img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
                    </form>
                </div>                                             
            </div>
        </div>
                
		<h2><?php 
        echo esc_html($menu['page_title']);
        ?>
</h2>

	    <h2 class="nav-tab-wrapper">
	        <?php 
        echo Options_Framework_Interface::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 
        Options_Framework_Interface::optionsframework_fields();
        /* Settings */
        ?>
				<div id="optionsframework-submit">
					<input type="submit" class="button-primary" name="update" value="<?php 
        esc_attr_e('Save Options', 'theme-textdomain');
        ?>
" />
//.........这里部分代码省略.........
开发者ID:adamestafford,项目名称:glorytrading.com,代码行数:101,代码来源:class-options-framework-admin.php

示例3: options_page

    /**
     * Builds out the options panel.
     *
     * If we were using the Settings API as it was intended we would use
     * do_settings_sections here.  But as we don't want the settings wrapped in a table,
     * we'll call our own custom optionsframework_fields.  See options-interface.php
     * for specifics on how each individual field is generated.
     *
     * Nonces are provided using the settings_fields()
     *
     * @since 1.7.0
     */
    function options_page()
    {
        ?>

		<div id="optionsframework-wrap" class="wrap">

		<?php 
        $menu = $this->menu_settings();
        ?>
		<h2><?php 
        echo esc_html($menu['page_title']);
        ?>
</h2>

	    <h2 class="nav-tab-wrapper">
	        <?php 
        echo Options_Framework_Interface::optionsframework_tabs();
        ?>
	    </h2>
        <div style="padding-top:10px;font-size:15px;"><a href="<?php 
        echo esc_url(SKT_PRO_THEME_URL);
        ?>
" target="_blank"><?php 
        _e('Buy PRO version for only $39 with more features.', 'skt-white');
        ?>
</a></div>
        <?php 
        if (isset($_GET['msg']) && !isset($_GET['settings-updated'])) {
            ?>
        
    <div class="updated <?php 
            if ($_GET['msg'] == "success") {
                echo "fade";
            }
            ?>
 settings-error" id="setting-error-save_options" style="display: block;"> 
    <?php 
            if ($_GET['msg'] == "error") {
                ?>
    <p style="color:#FF0000"><strong>Current active theme is not matching</strong></p>
    <?php 
            } elseif ($_GET['msg'] == "success") {
                ?>
    <p><strong>Option Imported successfully</strong></p>
    <?php 
            }
            ?>
    </div>
    <?php 
        }
        ?>


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

	    <div id="optionsframework-metabox" class="metabox-holder">
		    <div id="optionsframework" class="postbox"  style="width:72%; float:left;">
				<form action="options.php" method="post">
				<?php 
        settings_fields('optionsframework');
        ?>
				<?php 
        Options_Framework_Interface::optionsframework_fields();
        /* Settings */
        ?>

				<div id="optionsframework-submit">
					<input type="submit" class="button-primary" name="update" value="<?php 
        esc_attr_e('Save Options', 'skt-white');
        ?>
" />
					<input type="submit" class="reset-button button-secondary" name="reset" value="<?php 
        esc_attr_e('Restore Defaults', 'skt-white');
        ?>
" onclick="return confirm( '<?php 
        print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'skt-white'));
        ?>
' );" />
					<div class="clear"></div>
				</div>
				</form>
			</div> <!-- / #container -->
            <div style="width:25%; float:right;" class="postbox-container side">
            <div class="meta-box-sortables ui-sortable">
                <div class="postbox">
                    <h3 class="hndle"><span><?php 
//.........这里部分代码省略.........
开发者ID:ciemo12,项目名称:wordpress,代码行数:101,代码来源:class-options-framework-admin.php

示例4: options_page


//.........这里部分代码省略.........
        ?>
</h6><p><?php 
        echo __('Settings', 'alexandria');
        ?>
</p></a></li>       
                        
                        <li class="big"><a href="#country3"><h6><?php 
        echo __('Header', 'alexandria');
        ?>
</h6><p><?php 
        echo __('Settings', 'alexandria');
        ?>
</p></a></li>
                        <li class="small"><a href="#country6"><p><?php 
        echo __('Header One Settings', 'alexandria');
        ?>
</p></a></li>                 
                        <li class="big"><a href="#country4"><h6><?php 
        echo __('Layout', 'alexandria');
        ?>
</h6><p><?php 
        echo __('Settings', 'alexandria');
        ?>
</p></a></li>
                        <li class="small"><a href="#country5"><p><?php 
        echo __('Biz One Settings', 'alexandria');
        ?>
</p></a></li>  
                        <li class="small"><a href="#country7"><p><?php 
        echo __('Biz Two Settings', 'alexandria');
        ?>
</p></a></li>
                        <li class="small"><a href="#country12"><p><?php 
        echo __('Biz Four Settings', 'alexandria');
        ?>
</p></a></li>
                        <li class="small"><a href="#country13"><p><?php 
        echo __('Ecom One Settings', 'alexandria');
        ?>
</p></a></li>             
                        <li class="small"><a href="#country9"><p><?php 
        echo __('Standard Blog Settings', 'alexandria');
        ?>
</p></a></li>
                        
                        <li class="big"><a href="#country11"><h6><?php 
        echo __('Footer', 'alexandria');
        ?>
</h6><p><?php 
        echo __('Settings', 'alexandria');
        ?>
</p></a></li>                                             
                    </ul> 
                    
                    <div class="shadetabscontent">
                
    
                    <?php 
        Options_Framework_Interface::optionsframework_fields();
        /* Settings */
        ?>
                    
                    </div><!-- .shadetabscontent -->
                    
                    <script type="text/javascript">
                    
                                           jQuery(document).ready(function(){
                                                jQuery.noConflict();
                                                jQuery('#countrytabs').tabs();
                                            });	
                    
                    </script>                                   
                
                
                
                </div><!-- #new_options_container_middle -->
                
				<div class="new_options_container_bottom">

                    <input type="submit" class="button-primary" name="update" value="<?php 
        esc_attr_e(__('Save Options', 'alexandria'));
        ?>
" />
                                        <input type="submit" class="reset-button button-secondary" name="reset" value="<?php 
        esc_attr_e(__('Restore Defaults', 'alexandria'));
        ?>
" onclick="return confirm( '<?php 
        print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'alexandria'));
        ?>
' );" />                
                
                </div><!-- .new_options_container_bottom -->                            
                         
            </form> 
			</div><!-- .new_options_container -->                
        
        </div><!-- #optionsframework -->                                      

	<?php 
    }
开发者ID:andywgarcia,项目名称:campuslifeohs,代码行数:101,代码来源:class-options-framework-admin.php

示例5: options_page

    /**
     * Builds out the options panel.
     *
     * If we were using the Settings API as it was intended we would use
     * do_settings_sections here.  But as we don't want the settings wrapped in a table,
     * we'll call our own custom optionsframework_fields.  See options-interface.php
     * for specifics on how each individual field is generated.
     *
     * Nonces are provided using the settings_fields()
     *
     * @since 1.7.0
     */
    function options_page()
    {
        ?>

		<div id="optionsframework-wrap" class="wrap">

		<?php 
        $menu = $this->menu_settings();
        ?>
		<h2><?php 
        echo esc_html($menu['page_title']);
        ?>
</h2>

	    <h2 class="nav-tab-wrapper">
	        <?php 
        echo Options_Framework_Interface::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 
        Options_Framework_Interface::optionsframework_fields();
        /* Settings */
        ?>
				<div id="optionsframework-submit">
					<input type="submit" class="button-primary" name="update" value="<?php 
        esc_attr_e('Guadar Opciones', 'webtranslations');
        ?>
" />
					<input type="submit" class="reset-button button-secondary" name="reset" value="<?php 
        esc_attr_e('Restaurar a valores por defecto', 'webtranslations');
        ?>
" onclick="return confirm( '<?php 
        print esc_js(__('Click OK para restaurar. Cualquier cambio en la plantilla se perderá!', 'webtranslations'));
        ?>
' );" />
					<div class="clear"></div>
				</div>
				</form>
			</div> <!-- / #container -->
		</div>
		<?php 
        do_action('optionsframework_after');
        ?>
		</div> <!-- / .wrap -->

	<?php 
    }
开发者ID:THESLA,项目名称:webtranslations,代码行数:70,代码来源:class-options-framework-admin.php

示例6: options_page

    /**
     * Builds out the options panel.
     *
     * If we were using the Settings API as it was intended we would use
     * do_settings_sections here.  But as we don't want the settings wrapped in a table,
     * we'll call our own custom optionsframework_fields.  See options-interface.php
     * for specifics on how each individual field is generated.
     *
     * Nonces are provided using the settings_fields()
     *
     * @since 1.7.0
     */
    function options_page()
    {
        ?>

		<div id="optionsframework-wrap" class="wrap">

		<?php 
        $menu = $this->menu_settings();
        ?>

		<div class="theme-header clearfix">
		<div class="accesspresslite-logo">
		<img src="<?php 
        echo get_template_directory_uri();
        ?>
/inc/options-framework/images/logo.png" alt="<?php 
        esc_attr_e('AccessPress Lite', 'accesspress_parallax');
        ?>
" />
		</div>

		<div class="ak-socials">
		</div>
		</div>

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

	    <?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 
        Options_Framework_Interface::optionsframework_fields();
        /* Settings */
        ?>
				<div id="optionsframework-submit">
					<input type="submit" class="button-primary" name="update" value="<?php 
        esc_attr_e('Save Options', 'accesspress_parallax');
        ?>
" />
					<input type="submit" class="reset-button button-secondary" name="reset" value="<?php 
        esc_attr_e('Restore Defaults', 'accesspress_parallax');
        ?>
" onclick="return confirm( '<?php 
        print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'accesspress_parallax'));
        ?>
' );" />
					<div class="clear"></div>
				</div>
				</form>
			</div> <!-- / #container -->
            
            <div class="update-banner">
    			<img src="<?php 
        echo get_template_directory_uri();
        ?>
/inc/options-framework/images/upgrade-top.jpg">
    			<div class="button-link">
    				<a href="<?php 
        echo esc_url('http://accesspressthemes.com/accesspress-parallax-pro/');
        ?>
" target="_blank"><img src="<?php 
        echo get_template_directory_uri();
        ?>
/inc/options-framework/images/demo-btn.png"></a>
    				<a href="<?php 
        echo esc_url('https://accesspressthemes.com/wordpress-themes/accesspress-parallax-pro/');
        ?>
" target="_blank"><img src="<?php 
        echo get_template_directory_uri();
        ?>
/inc/options-framework/images/upgrade-btn.png"></a>
    			</div>
    			<img src="<?php 
        echo get_template_directory_uri();
        ?>
/inc/options-framework/images/upgrade-bottom.jpg">
    			<div class="button-link">
//.........这里部分代码省略.........
开发者ID:rustemcaushi,项目名称:hesk11.com,代码行数:101,代码来源:class-options-framework-admin.php

示例7: options_page

    /**
     * Builds out the options panel.
     *
     * If we were using the Settings API as it was intended we would use
     * do_settings_sections here.  But as we don't want the settings wrapped in a table,
     * we'll call our own custom optionsframework_fields.  See options-interface.php
     * for specifics on how each individual field is generated.
     *
     * Nonces are provided using the settings_fields()
     *
     * @since 1.7.0
     */
    function options_page()
    {
        ?>

		<div id="optionsframework-wrap" class="wrap clearfix">

		<?php 
        $menu = $this->menu_settings();
        ?>
		
		<div class="theme-header clearfix">
            <div class="accesspress-root-logo">
                <img src="<?php 
        echo get_template_directory_uri();
        ?>
/inc/panel/images/logo.png" alt="<?php 
        esc_attr_e('AccessPress Themes', 'accesspress-root');
        ?>
" />
            </div>

            <div class="ak-socials">
                <p></p>
                <div class="social-bttns">
                </div>
            </div>
        </div>

        <div class="optionsframework-holder">
        <div class="nav-tab-wrapper">
	        <?php 
        echo Options_Framework_Interface::optionsframework_tabs();
        ?>
	    </div>

	    <div id="optionsframework-metabox" class="metabox-holder">
	    	<?php 
        settings_errors('options-framework');
        ?>
	    	<div id="optionsframework" class="postbox">
				<form action="options.php" method="post">
				<?php 
        settings_fields('optionsframework');
        ?>
				<?php 
        Options_Framework_Interface::optionsframework_fields();
        /* Settings */
        ?>
				<div id="optionsframework-submit" class="clearfix">
					<input type="submit" class="button-primary" name="update" value="<?php 
        esc_attr_e('Save Options', 'accesspress-root');
        ?>
" />
					<input type="submit" class="reset-button button-secondary" name="reset" value="<?php 
        esc_attr_e('Restore Defaults', 'accesspress-root');
        ?>
" onclick="return confirm( '<?php 
        print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'accesspress-root'));
        ?>
' );" />
				</div>
				</form>
			</div> <!-- / #container -->
		</div>

		<div class="upgrade-pro">
		    <h3><?php 
        _e('Upgrade to Root Pro', 'accesspress-root');
        ?>
</h3>
		    <div class="update-banner">
				<img src="<?php 
        echo get_template_directory_uri();
        ?>
/inc/panel/images/upgrade-top.jpg">
			</div>
		    <div class="button-link">
				<a href="<?php 
        echo esc_url('https://accesspressthemes.com/accesspress-root-pro/');
        ?>
" target="_blank"><img src="<?php 
        echo get_template_directory_uri();
        ?>
/inc/panel/images/demo-btn.png"></a>
				<a href="<?php 
        echo esc_url('https://accesspressthemes.com/wordpress-themes/accesspress-root-pro/');
        ?>
" target="_blank"><img src="<?php 
//.........这里部分代码省略.........
开发者ID:Tamiiy,项目名称:spartan-english,代码行数:101,代码来源:class-options-framework-admin.php

示例8: options_page

    /**
     * Builds out the options panel.
     *
     * If we were using the Settings API as it was intended we would use
     * do_settings_sections here.  But as we don't want the settings wrapped in a table,
     * we'll call our own custom optionsframework_fields.  See options-interface.php
     * for specifics on how each individual field is generated.
     *
     * Nonces are provided using the settings_fields()
     *
     * @since 1.7.0
     */
    function options_page()
    {
        ?>

		<div id="optionsframework-wrap" class="wrap">

		<?php 
        $menu = $this->menu_settings();
        ?>

		<div class="theme-header clearfix">
		<div class="accesspresslite-logo">
		<img src="<?php 
        echo get_template_directory_uri();
        ?>
/inc/options-framework/images/logo.png" alt="<?php 
        esc_attr_e('AccessPress Lite', 'accesspress-parallax');
        ?>
" />
		</div>

		<div class="ak-socials">
		<a target='_blank' href="<?php 
        echo esc_url('http://accesspressthemes.com/theme-demos/?theme=accesspress-parallax');
        ?>
"><?php 
        _e('Demo', 'accesspress-parallax');
        ?>
</a>
		<a target='_blank' href="<?php 
        echo esc_url('https://accesspressthemes.com/documentation/theme-instruction-accesspress-parallax/');
        ?>
"><?php 
        _e('Documentation/Video Tutorial', 'accesspress-parallax');
        ?>
</a>
		</div>
		</div>


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

	    
	    <div id="optionsframework-metabox" class="metabox-holder">
	    <?php 
        settings_errors('options-framework');
        ?>
		    <div id="optionsframework" class="postbox">
				<form action="options.php" method="post">
				<?php 
        settings_fields('optionsframework');
        ?>
				<?php 
        Options_Framework_Interface::optionsframework_fields();
        /* Settings */
        ?>
				<div id="optionsframework-submit">
					<input type="submit" class="button-primary" name="update" value="<?php 
        esc_attr_e('Save Options', 'accesspress-parallax');
        ?>
" />
					<input type="submit" class="reset-button button-secondary" name="reset" value="<?php 
        esc_attr_e('Restore Defaults', 'accesspress-parallax');
        ?>
" onclick="return confirm( '<?php 
        print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'accesspress-parallax'));
        ?>
' );" />
					<div class="clear"></div>
				</div>
				</form>
			</div> <!-- / #container -->
            
            <div class="update-banner">
            	<h3><?php 
        _e('Upgrade to Parallax Pro', 'accesspress-parallax');
        ?>
</h3>
    			<img src="<?php 
        echo get_template_directory_uri();
        ?>
/inc/options-framework/images/upgrade-top.jpg">
    			<div class="button-link">
    				<a href="<?php 
//.........这里部分代码省略.........
开发者ID:vedarajraviraj,项目名称:Arcis-Consulting,代码行数:101,代码来源:class-options-framework-admin.php

示例9: options_page

    /**
     * Builds out the options panel.
     *
     * If we were using the Settings API as it was intended we would use
     * do_settings_sections here.  But as we don't want the settings wrapped in a table,
     * we'll call our own custom optionsframework_fields.  See options-interface.php
     * for specifics on how each individual field is generated.
     *
     * Nonces are provided using the settings_fields()
     *
     * @since 1.7.0
     */
    function options_page()
    {
        ?>


	<div class="clear"></div>
	<div id="optionsframework-wrap" class="wrap apmag-themeoption">
    <div class="theme-header clearfix">
		<div class="accesspress-mag-logo">
    		<img src="<?php 
        echo get_template_directory_uri();
        ?>
/images/logo.png" alt="<?php 
        esc_attr_e('AccessPress Mag', 'accesspress-mag');
        ?>
" />
    		<div class="theme-name">
                <?php 
        $theme = wp_get_theme();
        echo $theme->get('Name') . " V" . $theme->get('Version') . __(' - Theme Option Panel', 'accesspress-mag');
        ?>
            </div>
        </div>
        <div class="ak-socials">
            <p>
              <a target="_blank" href="<?php 
        echo esc_url('http://accesspressthemes.com/accesspress-mag/');
        ?>
"><?php 
        _e('Demo', 'accesspress-mag');
        ?>
</a> |
              <a target="_blank" href="<?php 
        echo esc_url('https://accesspressthemes.com/accesspress-mag-documentation');
        ?>
"><?php 
        _e('Documentation', 'accesspress-mag');
        ?>
</a> |  
              <!--<a target="_blank" href="<?php 
        //echo esc_url( 'https://wordpress.org/support/theme/accesspress-mag');
        ?>
"><?php 
        //_e( 'Support', 'accesspress-mag');
        ?>
</a>-->
              <?php 
        echo sprintf(__('Any question!! Click <a href="%s" target="_blank">here</a> for Live Chat.', 'accesspress-mag'), esc_url('https://accesspressthemes.com/contact/'));
        ?>
  
            </p>
        </div>
        
		<?php 
        //$menu = $this->menu_settings();
        ?>
		<!--<div class="big-title"><?php 
        //echo esc_html( $menu['page_title'] );
        ?>
</div>-->
		</div>
        
         
	    <div class="nav-tab-wrapper">
	        <?php 
        echo Options_Framework_Interface::optionsframework_tabs();
        ?>
	    </div>

		<div id="optionsframework-metabox" class="metabox-holder">
			<div id="optionsframework" class="postbox">

				<div class="save-message"><?php 
        settings_errors('options-framework');
        ?>
</div>
				
				<form action="options.php" method="post">
					<?php 
        settings_fields('optionsframework');
        ?>
					<?php 
        Options_Framework_Interface::optionsframework_fields();
        /* Settings */
        ?>
					<div id="optionsframework-submit">

						
//.........这里部分代码省略.........
开发者ID:akshayxhtmljunkies,项目名称:brownglock,代码行数:101,代码来源:class-options-framework-admin.php

示例10: options_page

    /**
     * Builds out the options panel.
     *
     * If we were using the Settings API as it was intended we would use
     * do_settings_sections here.  But as we don't want the settings wrapped in a table,
     * we'll call our own custom optionsframework_fields.  See options-interface.php
     * for specifics on how each individual field is generated.
     *
     * Nonces are provided using the settings_fields()
     *
     * @since 1.7.0
     */
    function options_page()
    {
        ?>

		<div id="optionsframework-wrap" class="wrap">
		<?php 
        $menu = $this->menu_settings();
        ?>
		<h2><?php 
        echo esc_html($menu['page_title']);
        ?>
</h2>
		<div class="proversion">
		  <h3><?php 
        _e('Upgrade to Pro version!', 'kage');
        ?>
</h3>
		   <a href="<?php 
        echo esc_url('http://www.pwtthemes.com/theme/kage-responsive-wordpress-theme');
        ?>
" target="_blank" class="upgradepro"><?php 
        _e('Upgrade to Pro', 'kage');
        ?>
</a>
		   <a href="<?php 
        echo esc_url('http://www.pwtthemes.com/demo/kage');
        ?>
" target="_blank" class="donate"><?php 
        _e('Demo', 'kage');
        ?>
</a>
		  <p><?php 
        _e('If you need assistance, please do not hesitate to', 'kage');
        ?>
 <a href="<?php 
        echo esc_url('http://www.pwtthemes.com/contact');
        ?>
" target="_blank"><?php 
        _e('contact us', 'kage');
        ?>
</a></p>
		</div>
	    <h2 class="nav-tab-wrapper">
	        <?php 
        echo Options_Framework_Interface::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 
        Options_Framework_Interface::optionsframework_fields();
        /* Settings */
        ?>
				<div id="optionsframework-submit">
					<input type="submit" class="button-primary" name="update" value="<?php 
        esc_attr_e('Save Options', 'kage');
        ?>
" />
					<input type="submit" class="reset-button button-secondary" name="reset" value="<?php 
        esc_attr_e('Restore Defaults', 'kage');
        ?>
" onclick="return confirm( '<?php 
        print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'kage'));
        ?>
' );" />
					<div class="clear"></div>
				</div>
				</form>
			</div> <!-- / #container -->
		</div>
		<?php 
        do_action('optionsframework_after');
        ?>
		</div> <!-- / .wrap -->

	<?php 
    }
开发者ID:Tamiiy,项目名称:spartan-english,代码行数:96,代码来源:class-options-framework-admin.php

示例11: options_page

    /**
     * Builds out the options panel.
     *
     * If we were using the Settings API as it was intended we would use
     * do_settings_sections here.  But as we don't want the settings wrapped in a table,
     * we'll call our own custom optionsframework_fields.  See options-interface.php
     * for specifics on how each individual field is generated.
     *
     * Nonces are provided using the settings_fields()
     *
     * @since 1.7.0
     */
    function options_page()
    {
        ?>

		<div id="optionsframework-wrap" class="wrap">

		<?php 
        $menu = $this->menu_settings();
        ?>
		<h2><?php 
        echo esc_html($menu['page_title']);
        ?>
</h2>

	    <h2 class="nav-tab-wrapper">
	        <?php 
        echo Options_Framework_Interface::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 
        Options_Framework_Interface::optionsframework_fields();
        /* Settings */
        ?>
				<div id="optionsframework-submit">
					<input type="submit" class="button-primary" name="update" value="<?php 
        esc_attr_e('Save Options', 'consultant');
        ?>
" />
					<input type="submit" class="reset-button button-secondary" name="reset" value="<?php 
        esc_attr_e('Restore Defaults', 'consultant');
        ?>
" onclick="return confirm( '<?php 
        print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'consultant'));
        ?>
' );" />
					<div class="clear"></div>
					
						 <div id="go_pro">
            <h1>Go for Pro Version!</h1>
            <p>This is a free version of consultant. Get your own copy of professional version if you need to setup your theme with Unlimited homepage Slides , Full width page template, Forum support and much more. <a href="http://antthemes.com/?page_id=215" target="blank">Click Here to Learn More Now</a> </p>

        </div>	
					
				</div>
				</form>
			</div> <!-- / #container -->
		</div>
		<?php 
        do_action('optionsframework_after');
        ?>
		</div> <!-- / .wrap -->

	<?php 
    }
开发者ID:naudart,项目名称:CnConsultants,代码行数:77,代码来源:class-options-framework-admin.php

示例12: options_page

    /**
     * Builds out the options panel.
     *
     * If we were using the Settings API as it was intended we would use
     * do_settings_sections here.  But as we don't want the settings wrapped in a table,
     * we'll call our own custom optionsframework_fields.  See options-interface.php
     * for specifics on how each individual field is generated.
     *
     * Nonces are provided using the settings_fields()
     *
     * @since 1.7.0
     */
    function options_page()
    {
        global $themename;
        ?>
		<div id="optionsframework-wrap">
		    <form action="options.php" id="main_options_form" method="post">
				<div class="optionsframework-header">
					<a href="http://themeforest.net/item/ask-me-responsive-questions-answers-wordpress/7935874?ref=2codeThemes" target="_blank"></a>
					<input type="submit" class="button-primary vpanel_save" name="update" value="<?php 
        esc_attr_e('Save Options', 'vbegy');
        ?>
">
					<div class="vpanel_social">
						<ul>
							<li><a class="vpanel_social_f" href="https://www.facebook.com/2code.info" target="_blank"><i class="dashicons dashicons-facebook"></i></a></li>
							<li><a class="vpanel_social_t" href="#" target="_blank"><i class="dashicons dashicons-twitter"></i></a></li>
							<li><a class="vpanel_social_e" href="#" target="_blank"><i class="dashicons dashicons-email-alt"></i></a></li>
							<li><a class="vpanel_social_s" href="#" target="_blank"><i class="dashicons dashicons-sos"></i></a></li>
						</ul>
					</div>
					<div class="clear"></div>
				</div>
				<div class="optionsframework-content">
				    <h2 class="nav-tab-wrapper">
				        <?php 
        echo Options_Framework_Interface::optionsframework_tabs();
        ?>
				    </h2>
				    <?php 
        settings_errors('options-framework');
        ?>
				    <div id="optionsframework-metabox" class="metabox-holder">
					    <div id="optionsframework" class="postbox">
							<?php 
        Options_Framework_Interface::optionsframework_fields();
        /* Settings */
        ?>
							<div id="ajax-saving"><i class="dashicons dashicons-yes"></i><?php 
        _e("Saving", "vbegy");
        ?>
</div>
							<div id="ajax-reset"><i class="dashicons dashicons-info"></i><?php 
        _e("Reseting Options", "vbegy");
        ?>
</div>
						</div> <!-- / #container -->
					</div>
					<?php 
        do_action('optionsframework_after');
        ?>
					<div class="clear"></div>
				</div>
				<div class="optionsframework-footer">
					<input type="submit" class="button-primary vpanel_save" name="update" value="<?php 
        esc_attr_e('Save Options', 'vbegy');
        ?>
">
					<div id="loading"></div>
					<input type="submit" class="reset-button button-secondary" id="reset_c" name="reset" value="<?php 
        esc_attr_e('Restore Defaults', 'vbegy');
        ?>
">
					<div class="clear"></div>
				</div>
			</form>
		</div> <!-- / .wrap -->
	<?php 
    }
开发者ID:bunnywong,项目名称:freshlinker,代码行数:80,代码来源:class-options-framework-admin.php

示例13: options_page

    /**
     * Builds out the options panel.
     *
     * If we were using the Settings API as it was intended we would use
     * do_settings_sections here.  But as we don't want the settings wrapped in a table,
     * we'll call our own custom optionsframework_fields.  See options-interface.php
     * for specifics on how each individual field is generated.
     *
     * Nonces are provided using the settings_fields()
     *
     * @since 1.7.0
     */
    function options_page()
    {
        ?>

		<div id="optionsframework-wrap" class="wrap">
        <div class="theme-header clearfix">
		<div class="accesspresslite-logo">
		<img src="<?php 
        echo get_template_directory_uri();
        ?>
/images/logo.png" alt="<?php 
        esc_attr_e('AccessPress Staple', 'accesspress-staple');
        ?>
" />
		</div>
		</div>
		
        
	    <div class="optionsframework-holder clearfix">

	    <div class="nav-tab-wrapper">
	        <?php 
        echo Options_Framework_Interface::optionsframework_tabs();
        ?>
   
	    </div>
     
	    <div id="optionsframework-metabox" class="metabox-holder">
	    <div class="save-message"><?php 
        settings_errors('options-framework');
        ?>
</div>
		    <div id="optionsframework" class="postbox">
            	<form action="options.php" method="post">
				<?php 
        settings_fields('optionsframework');
        ?>
				<?php 
        Options_Framework_Interface::optionsframework_fields();
        /* Settings */
        ?>
				<div id="optionsframework-submit">
					<input type="submit" class="button-primary" name="update" value="<?php 
        esc_attr_e('Save Options', 'accesspress-staple');
        ?>
" />
					<input type="submit" class="reset-button button-secondary" name="reset" value="<?php 
        esc_attr_e('Restore Defaults', 'accesspress-staple');
        ?>
" onclick="return confirm( '<?php 
        print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'accesspress-staple'));
        ?>
' );" />
					<div class="clear"></div>
				</div>
				</form>
            
			</div> <!-- / #container -->    
		</div>

        <div class="promo-banner clearfix">
	        <div class="banner-image">
	        	<h3><?php 
        _e('Update to Pro', 'accesspress-staple');
        ?>
</h3>
	            <img src="<?php 
        echo get_template_directory_uri() . '/inc/options-framework/images/upgrade-staple-pro.jpg';
        ?>
" />           
	        </div> 
	        <div class="button-link">
    			<a href="http://accesspressthemes.com/theme-demos/?theme=accesspress-staple" target="_blank"><img src="<?php 
        echo get_template_directory_uri() . '/inc/options-framework/images/demo-btn.png';
        ?>
"/></a>
    			<a href="https://accesspressthemes.com/wordpress-themes/accesspress-staple-pro/" target="_blank"><img src="<?php 
        echo get_template_directory_uri() . '/inc/options-framework/images/upgrade-btn.png';
        ?>
"/></a>
		    </div>
	        <div class="any-question">
	    		<?php 
        echo sprintf(__('Any question!! Click <a href="%s" target="_blank">here</a> for live chat', 'accesspress-staple'), esc_url('https://accesspressthemes.com/contact/'));
        ?>
	    	</div>

        	<div class="view-features">
//.........这里部分代码省略.........
开发者ID:stcybrdgs,项目名称:fretmachine.com,代码行数:101,代码来源:class-options-framework-admin.php

示例14: options_page

    /**
     * Builds out the options panel.
     *
     * If we were using the Settings API as it was intended we would use
     * do_settings_sections here.  But as we don't want the settings wrapped in a table,
     * we'll call our own custom optionsframework_fields.  See options-interface.php
     * for specifics on how each individual field is generated.
     *
     * Nonces are provided using the settings_fields()
     *
     * @since 1.7.0
     */
    function options_page()
    {
        ?>

		<div id="optionsframework-wrap" class="wrap">

		<?php 
        $menu = $this->menu_settings();
        ?>
		<h2><?php 
        echo esc_html($menu['page_title']);
        ?>
</h2>

	    <h2 class="nav-tab-wrapper">
	        <?php 
        echo Options_Framework_Interface::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 
        Options_Framework_Interface::optionsframework_fields();
        /* Settings */
        ?>
				<div id="optionsframework-submit">
					<input type="submit" class="button-primary" name="update" value="保存设置" />
					<input type="submit" class="reset-button button-secondary" name="reset" value="重置" onclick="return confirm( '<?php 
        print esc_js('您确定要重置所有选项吗?');
        ?>
' );" />
					<div class="clear"></div>
				</div>
				</form>
			</div> <!-- / #container -->
		</div>
		<?php 
        do_action('optionsframework_after');
        ?>
		</div> <!-- / .wrap -->

	<?php 
    }
开发者ID:frostfan,项目名称:Lost,代码行数:64,代码来源:class-options-framework-admin.php

示例15: options_page

    /**
     * Builds out the options panel.
     *
     * If we were using the Settings API as it was intended we would use
     * do_settings_sections here.  But as we don't want the settings wrapped in a table,
     * we'll call our own custom optionsframework_fields.  See options-interface.php
     * for specifics on how each individual field is generated.
     *
     * Nonces are provided using the settings_fields()
     *
     * @since 1.7.0
     */
    function options_page()
    {
        ?>

		<div id="optionsframework-wrap" class="wrap clearfix">

		<?php 
        $menu = $this->menu_settings();
        ?>
		
		<div class="theme-header clearfix">
            <div class="accesspress-root-logo">
                <img src="<?php 
        echo get_template_directory_uri();
        ?>
/inc/option-framework/images/logo.png" alt="<?php 
        esc_attr_e('AccessPress Themes', 'accesspress-store');
        ?>
" />
            </div>

            <div class="ak-socials">
                <p><?php 
        _e('Follow us for new updates', 'accesspress-store');
        ?>
</p>
                <div class="social-bttns">
                    
                       
                </div>
            </div>
        </div>

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

	    

	    <div id="optionsframework-metabox" class="metabox-holder">
            <?php 
        settings_errors('options-framework');
        ?>
		    <div id="optionsframework" class="postbox">
				<form action="options.php" method="post">
				<?php 
        settings_fields('optionsframework');
        ?>
				<?php 
        Options_Framework_Interface::optionsframework_fields();
        /* Settings */
        ?>
				<div id="optionsframework-submit">
					<input type="submit" class="button-primary" name="update" value="<?php 
        esc_attr_e('Save Options', 'accesspress-store');
        ?>
" />
					<input type="submit" class="reset-button button-secondary" name="reset" value="<?php 
        esc_attr_e('Restore Defaults', 'accesspress-store');
        ?>
" onclick="return confirm( '<?php 
        print esc_js(__('Click OK to reset. Any theme settings will be lost!', 'accesspress-store'));
        ?>
' );" />
					<div class="clear"></div>
				</div>
				</form>
			</div> <!-- / #container -->
		</div>
		<?php 
        do_action('optionsframework_after');
        ?>
		</div> <!-- / .wrap -->
        <div class="clearfix"></div>

	<?php 
    }
开发者ID:denMicon777,项目名称:my_repository,代码行数:91,代码来源:class-options-framework-admin.php


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