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


PHP woothemes_machine函数代码示例

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


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

示例1: woothemes_machine

<?php

/* Featured image (possibly using new uploader).
	--------------------------------------------------------------------------------*/
$post_type = $_POST['woo_post_type'];
$_html = '';
if (count($cf_images) > 0) {
    $return = woothemes_machine($cf_images);
    $_html .= $return[0];
}
// End IF Statement
if ($_html == '') {
} else {
    /*------------------------------------------------------------------------------*/
    ?>
<fieldset id="featured-image" class="featured-image">
	<div class="form_row">
<?php 
    // And finally, display the data.
    echo $_html;
    ?>
	</div><!--/.form_row-->
</fieldset>
<?php 
}
// End IF Statement ( $_html )
开发者ID:marcus7777,项目名称:eh-theme,代码行数:26,代码来源:form-field-featured-image.php

示例2: woothemes_seo_page


//.........这里部分代码省略.........
               <div class="logo">
                <?php 
    if (get_option('framework_woo_backend_header_image')) {
        ?>
                <img alt="" src="<?php 
        echo get_option('framework_woo_backend_header_image');
        ?>
"/>
                <?php 
    } else {
        ?>
                <img alt="WooThemes" src="<?php 
        echo bloginfo('template_url');
        ?>
/functions/images/logo.png"/>
                <?php 
    }
    ?>
                </div>
                <div class="theme-info">
                    <span class="theme"><?php 
    echo $themename;
    ?>
 <?php 
    echo $local_version;
    ?>
</span>
                    <span class="framework">Framework <?php 
    echo $woo_framework_version;
    ?>
</span>
                </div>
                <div class="clear"></div>
            </div>
            <div id="support-links">
        
                <ul>
                    <li class="changelog"><a title="Theme Changelog" href="<?php 
    echo $manualurl;
    ?>
#Changelog">View Changelog</a></li>
                    <li class="docs"><a title="Theme Documentation" href="<?php 
    echo $manualurl;
    ?>
">View Themedocs</a></li>
                    <li class="forum"><a href="http://forum.woothemes.com" target="_blank">Visit Forum</a></li>
                    <li class="right"><img style="display:none" src="<?php 
    echo bloginfo('template_url');
    ?>
/functions/images/loading-top.gif" class="ajax-loading-img ajax-loading-img-top" alt="Working..." /><a href="#" id="expand_options">[+]</a> <input type="submit" value="Save All Changes" class="button submit-button" /></li>
                </ul>
        
            </div>
            <?php 
    $return = woothemes_machine($seo_options);
    ?>
            <div id="main">
                <div id="woo-nav">
                    <ul>
                        <?php 
    echo $return[1];
    ?>
                    </ul>		
                </div>
                <div id="content">
                <?php 
    echo $return[0];
    ?>
                </div>
                <div class="clear"></div>
                
            </div>
            <div class="save_bar_top">
            <img style="display:none" src="<?php 
    echo bloginfo('template_url');
    ?>
/functions/images/loading-bottom.gif" class="ajax-loading-img ajax-loading-img-bottom" alt="Working..." />
            <input type="submit" value="Save All Changes" class="button submit-button" />        
            </form>
            
             <form action="<?php 
    echo wp_specialchars($_SERVER['REQUEST_URI']);
    ?>
" method="post" style="display:inline" id="wooform-reset">
            <span class="submit-footer-reset">
            <input name="reset" type="submit" value="Reset Options" class="button submit-button reset-button" onclick="return confirm('Click OK to reset. Any settings will be lost!');" />
            <input type="hidden" name="woo_save" value="reset" /> 
            </span>
        	</form>

            
            </div>

    
    
    <div style="clear:both;"></div>    
    </div><!--wrap-->

<?php 
}
开发者ID:hexgnu,项目名称:Bueno,代码行数:101,代码来源:admin-seo.php

示例3: woo_show_options

function woo_show_options()
{
    $options = get_option('woo_template');
    $return = woothemes_machine($options);
    echo '<link rel="stylesheet" type="text/css" href="' . get_bloginfo('template_directory') . '/functions/admin-style.css" media="screen" />';
    ?>

<style type="text/css">
body { background:#fafafa !important; }
#content { padding:20px; border: 1px solid #D8D8D8; margin-bottom:20px; }
h1, h2, h3, h4, h5, h6  { margin: 0; font-family:Georgia, serif; color: #222; font-weight:normal; }
h1  {font-size: 22px; } h2  {font-size: 22px;} h3  {font-size: 18px;} h4  {font-size: 16px;} h5  {font-size: 14px;} h6  {font-size: 12px;}
#woo_container .group h2 { display:block; padding:15px 0 5px; font-style:italic; color:#555; font-size:24px;}
#woo_container #content .section h3.heading { font-family:Arial, Helvetica, sans-serif; font-size:14px; font-weight:bold; }
.button { display:none; }
</style>
</head>
<body>
    <div id="woo_container" class="custom">
    	<div id="content">
			<?php 
    echo $return[0];
    ?>
        </div>
	</div>          
</body>
</html>
<?php 
    // Stop ouput
    die;
}
开发者ID:agassner,项目名称:organizadores,代码行数:31,代码来源:admin-functions.php

示例4: woothemes_page_gen

function woothemes_page_gen($page)
{
    $options = get_option('woo_template');
    $themename = get_option('woo_themename');
    $shortname = get_option('woo_shortname');
    $manualurl = get_option('woo_manual');
    //Version
    $theme_data = get_theme_data(get_bloginfo('stylesheet_url'));
    $local_version = $theme_data['Version'];
    $update_message = '<span class="update">v.' . $local_version . '</span>';
    ?>
</strong>
<?php 
    // END
    ?>
<div class="wrap" id="woo_options">
    <form action="<?php 
    echo $_SERVER['REQUEST_URI'];
    ?>
" method="post"  enctype="multipart/form-data">
    
        <div id="scrollme"><p class="submit"><input name="save" type="submit" value="Save All Changes" /></p></div>
        <div class="icon32" id="woo-icon">&nbsp;</div>
        <h2><?php 
    echo $themename;
    ?>
 Options <?php 
    echo $update_message;
    ?>
</h2>

        <div class="info"><strong>Stuck on these options?</strong> <a href="<?php 
    echo $manualurl;
    ?>
" target="_blank">Read The Documentation Here</a> or <a href="http://forum.woothemes.com" target="blank">Visit Our Support Forum</a></div>    

        <?php 
    if ($_REQUEST['saved']) {
        ?>
<div style="clear:both;height:20px;"></div><div class="happy"><?php 
        echo $themename;
        ?>
's Options has been updated!</div><?php 
    }
    ?>
        <?php 
    if ($_REQUEST['reset']) {
        ?>
<div style="clear:both;height:20px;"></div><div class="warning"><?php 
        echo $themename;
        ?>
's Options has been reset!</div><?php 
    }
    ?>
                        

        <div style="clear:both;height:10px;"></div>

        <?php 
    echo woothemes_machine($options, $page);
    //The real work horse
    ?>

        <div style="clear:both;"></div>

        <?php 
    wp_nonce_field('reset_options');
    echo "\n";
    ?>

        <p class="submit submit-footer">
        <input name="save" type="submit" value="Save All Changes" />
        <input type="hidden" name="action" value="save" />
        </p>
        </form>
        
        <form action="<?php 
    echo wp_specialchars($_SERVER['REQUEST_URI']);
    ?>
" method="post">
        <p class="submit submit-footer submit-footer-reset">
        <input name="reset" type="submit" value="Reset Options" class="reset-button" onclick="return confirm('Click OK to reset. Any settings will be lost!');" />
        <input type="hidden" name="action" value="reset" />
        </p>
        </form>
        
    
<div style="clear:both;"></div>    
</div><!--wrap-->

 <?php 
}
开发者ID:candidosales,项目名称:site-demolaypi,代码行数:92,代码来源:admin-interface.php

示例5: woothemes_options_page

function woothemes_options_page()
{
    $options = get_option('woo_template');
    $themename = get_option('woo_themename');
    $shortname = get_option('woo_shortname');
    $manualurl = get_option('woo_manual');
    //Framework Version in Backend Header
    $woo_framework_version = get_option('woo_framework_version');
    //Version in Backend Header
    $theme_data = get_theme_data(TEMPLATEPATH . '/style.css');
    $local_version = $theme_data['Version'];
    //GET themes update RSS feed and do magic
    include_once ABSPATH . WPINC . '/feed.php';
    $pos = strpos($manualurl, 'documentation');
    $theme_slug = str_replace("/", "", substr($manualurl, $pos + 13));
    //13 for the word documentation
    //add filter to make the rss read cache clear every 4 hours
    //add_filter( 'wp_feed_cache_transient_lifetime', create_function( '$a', 'return 14400;' ) );
    //Check for latest version of the theme
    $update_message = '';
    if (get_option('framework_woo_theme_version_checker') == 'true') {
        $update_message = woothemes_version_checker($local_version);
    }
    ?>
<div class="wrap" id="woo_container">
<div id="woo-popup-save" class="woo-save-popup"><div class="woo-save-save">Options Updated</div></div>
<div id="woo-popup-reset" class="woo-save-popup"><div class="woo-save-reset">Options Reset</div></div>
    <form action="" enctype="multipart/form-data" id="wooform">
        <div id="header">
           <div class="logo">
				<?php 
    if (get_option('framework_woo_backend_header_image')) {
        ?>
                <img alt="" src="<?php 
        echo get_option('framework_woo_backend_header_image');
        ?>
"/>
                <?php 
    } else {
        ?>
                <img alt="WooThemes" src="<?php 
        echo bloginfo('template_url');
        ?>
/functions/images/logo.png"/>
                <?php 
    }
    ?>
            </div>
             <div class="theme-info">
				<span class="theme"><?php 
    echo $themename;
    ?>
 <?php 
    echo $local_version;
    ?>
</span>
				<span class="framework">Framework <?php 
    echo $woo_framework_version;
    ?>
</span>
			</div>
			<div class="clear"></div>
		</div>
        <?php 
    // Rev up the Options Machine
    $return = woothemes_machine($options);
    ?>
		<div id="support-links">
			<ul>
				<li class="changelog"><a title="Theme Changelog" href="<?php 
    echo $manualurl;
    ?>
#Changelog">View Changelog</a></li>
				<li class="docs"><a title="Theme Documentation" href="<?php 
    echo $manualurl;
    ?>
">View Themedocs</a></li>
				<li class="forum"><a href="http://forum.woothemes.com" target="_blank">Visit Forum</a></li>
                <li class="right"><img style="display:none" src="<?php 
    echo bloginfo('template_url');
    ?>
/functions/images/loading-top.gif" class="ajax-loading-img ajax-loading-img-top" alt="Working..." /><a href="#" id="expand_options">[+]</a> <input type="submit" value="Save All Changes" class="button submit-button" /></li>
			</ul>
		</div>
        <div id="main">
	        <div id="woo-nav">
				<ul>
					<?php 
    echo $return[1];
    ?>
				</ul>		
			</div>
			<div id="content">
	         <?php 
    echo $return[0];
    /* Settings */
    ?>
	        </div>
	        <div class="clear"></div>
	        
//.........这里部分代码省略.........
开发者ID:hexgnu,项目名称:Bueno,代码行数:101,代码来源:admin-interface.php

示例6: get_template_directory_uri

$layout_type = 'two-col-left';
$images_dir = get_template_directory_uri() . '/functions/images/';
$l_w_test = get_option('woo_layout_width');
$l_t_test = get_option('woo_layout');
if (isset($l_w_test) && $l_w_test != '') {
    $layout_width = get_option('woo_layout_width');
}
if (isset($l_t_test) && $l_t_test != '') {
    $layout_type = get_option('woo_layout');
}
// Setup settings to be loaded via woothemes_machine().
$options = array();
$options[] = array("name" => "Layout", "icon" => "layout", "type" => "heading");
$options[] = array("name" => __('Enable Layout Manager', 'woothemes'), "desc" => __('Enable the Layout Manager which will output CSS based on selections below.', 'woothemes'), "id" => $this->woo_options_prefix . "_layout_manager_enable", "std" => "false", "type" => "checkbox");
// Run the woothemes_machine() to generate the XHTML.
$settings_output = woothemes_machine($options);
?>
<div class="wrap" id="woo_container">
<form method="post" action="<?php 
echo admin_url('admin.php?page=woo-layout-manager&updated=true');
?>
" id="wooform">
<?php 
// Add nonce for added security.
if (function_exists('wp_nonce_field')) {
    wp_nonce_field('woolayout-options-update');
}
// End IF Statement
if (isset($_GET['updated']) && $_GET['updated'] == 'true') {
    echo '<div class="updated fade"><p><strong>' . __('Woo Layout Manager Settings Updated.', 'woothemes') . '</strong></p></div>';
}
开发者ID:jospintedjou,项目名称:wordpress,代码行数:31,代码来源:admin.php

示例7: woothemes_content_builder_content_add

function woothemes_content_builder_content_add($content_types_options)
{
    ?>
	<?php 
    $return = woothemes_machine($content_types_options);
    ?>
    <div id="main">
        <div id="woo-nav">
            <ul>
                <?php 
    echo $return[1];
    ?>
            </ul>		
        </div>
        <div id="content">
        	<?php 
    echo $return[0];
    ?>
        	</div>
        </div>
        <input type="hidden" name="action" value="save" />
        <div class="clear"></div>
    </div>
	<?php 
}
开发者ID:marcus7777,项目名称:eh-theme,代码行数:25,代码来源:admin-content-builder.php

示例8: woothemes_page

function woothemes_page()
{
    $options = get_option('woo_template');
    $themename = get_option('woo_themename');
    $shortname = get_option('woo_shortname');
    $manualurl = get_option('woo_manual');
    //Version in Backend Head
    $theme_data = get_theme_data(TEMPLATEPATH . '/style.css');
    $local_version = $theme_data['Version'];
    $update_message = '<span class="update">v.' . $local_version . '</span>';
    ?>
</strong>
<?php 
    // END
    ?>
<div class="wrap" id="woo_options">
    <form action="<?php 
    echo $_SERVER['REQUEST_URI'];
    ?>
" method="post"  enctype="multipart/form-data">
        <div id="scrollme"><p class="submit"><input name="save" type="submit" value="Save All Changes" /></p></div>
        <div class="icon32" id="woo-icon">&nbsp;</div>
        <h2><?php 
    echo $themename;
    ?>
 Options <?php 
    echo $update_message;
    ?>
</h2>
        <div class="info"><strong>Stuck on these options?</strong> <a href="<?php 
    echo $manualurl;
    ?>
" target="_blank">Read The Documentation Here</a> or <a href="http://forum.woothemes.com" target="blank">Visit Our Support Forum</a></div>    
        
        <?php 
    if ($_REQUEST['saved']) {
        ?>
<div style="clear:both;height:20px;"></div><div class="happy"><?php 
        echo $themename;
        ?>
's Options has been updated!</div><?php 
    }
    ?>
        <?php 
    if ($_REQUEST['reset']) {
        ?>
<div style="clear:both;height:20px;"></div><div class="warning"><?php 
        echo $themename;
        ?>
's Options has been reset!</div><?php 
    }
    ?>
    
                    
        <?php 
    //Errors
    $error_occurred = false;
    $upload_tracking = get_option('woo_upload_tracking');
    if (!empty($upload_tracking)) {
        $output = '<div style="clear:both;height:20px;"></div><div class="errors"><ul>' . "\n";
        $error_shown == false;
        foreach ($upload_tracking as $array) {
            if (array_key_exists('error', $array)) {
                $error_occurred = true;
                $errors_print .= '<li><strong>' . $array['option_name'] . '</strong>: ' . $array['error'] . '</li>' . "\n";
            }
        }
    }
    if ($error_occurred) {
        $output = '<div style="clear:both;height:20px;"></div><div class="errors"><ul>' . "\n";
        $output .= $errors_print;
        $output .= '</ul></div>' . "\n";
        echo $output;
    }
    delete_option('woo_upload_tracking');
    ?>

        <div style="clear:both;height:10px;"></div>
        <?php 
    echo woothemes_machine($options, $page);
    //The real work horse
    ?>
        <div style="clear:both;"></div>
        <?php 
    wp_nonce_field('reset_options');
    echo "\n";
    ?>

        <p class="submit submit-footer">
            <input name="save" type="submit" value="Save All Changes" />
            <input type="hidden" name="woo_save" value="save" />
        </p>
    </form>
        
    <form action="<?php 
    echo wp_specialchars($_SERVER['REQUEST_URI']);
    ?>
" method="post">
        <p class="submit submit-footer submit-footer-reset">
        <input name="reset" type="submit" value="Reset Options" class="reset-button" onclick="return confirm('Click OK to reset. Any settings will be lost!');" />
//.........这里部分代码省略.........
开发者ID:britg,项目名称:britg-wp-theme,代码行数:101,代码来源:admin-interface.php

示例9: woothemes_machine

                    $c['id'] = $c['name'];
                    $c['name'] = $c['label'];
                    $cf_images[] = $c;
                    break;
                default:
                    $c['id'] = $c['name'];
                    $c['name'] = $c['label'];
                    $cf_formatted[] = $c;
                    break;
            }
            // End SWITCH Statement
        }
        // End IF Statement
    }
    // End FOREACH Loop
    $return = woothemes_machine($cf_formatted);
    $_html .= stripslashes($return[0]);
}
// End IF Statement
// echo '<xmp>'; print_r($return); echo '</xmp>'; // DEBUG
// If there's nothing to display, don't display the fieldset.
if ($_html == '') {
} else {
    /*------------------------------------------------------------------------------*/
    ?>
<fieldset id="custom-fields" class="custom-fields">
	<div class="form_row">
<?php 
    // And finally, display the data.
    echo $_html;
    ?>
开发者ID:marcus7777,项目名称:eh-theme,代码行数:31,代码来源:form-field-custom-fields.php

示例10: woothemes_options_page

    function woothemes_options_page()
    {
        global $pagenow;
        $options = get_option('woo_template');
        $shortname = get_option('woo_shortname');
        $manualurl = get_option('woo_manual');
        //GET themes update RSS feed and do magic
        include_once ABSPATH . WPINC . '/feed.php';
        $pos = strpos($manualurl, 'documentation');
        $theme_slug = str_replace("/", "", substr($manualurl, $pos + 13));
        //13 for the word documentation
        //add filter to make the rss read cache clear every 4 hours
        //add_filter( 'wp_feed_cache_transient_lifetime', create_function( '$a', 'return 14400;' ) );
        ?>
<div class="wrap" id="woo_container">
<?php 
        // Custom action at the top of the admin interface.
        $page = '';
        if (isset($_GET['page'])) {
            $page = sanitize_user(esc_attr(strip_tags($_GET['page'])));
        }
        do_action('wooframework_container_inside');
        if ($page != '') {
            do_action('wooframework_container_inside-' . $page);
        }
        ?>
<div id="woo-popup-save" class="woo-save-popup"><div class="woo-save-save"><?php 
        _e('Options Updated', 'woothemes');
        ?>
</div></div>
<div id="woo-popup-reset" class="woo-save-popup"><div class="woo-save-reset"><?php 
        _e('Options Reset', 'woothemes');
        ?>
</div></div>
    <form action="" enctype="multipart/form-data" id="wooform" method="post">
    <?php 
        // Add nonce for added security.
        if (function_exists('wp_nonce_field')) {
            wp_nonce_field('wooframework-theme-options-update');
        }
        $woo_nonce = '';
        if (function_exists('wp_create_nonce')) {
            $woo_nonce = wp_create_nonce('wooframework-theme-options-update');
        }
        if ($woo_nonce == '') {
        } else {
            ?>
    	<input type="hidden" name="_ajax_nonce" value="<?php 
            echo $woo_nonce;
            ?>
" />
    <?php 
        }
        // End IF Statement
        ?>
        <div id="header">
           <div class="logo">
				<?php 
        if (get_option('framework_woo_backend_header_image')) {
            ?>
                <img alt="" src="<?php 
            echo esc_url(get_option('framework_woo_backend_header_image'));
            ?>
"/>
                <?php 
        } else {
            ?>
                <img alt="WooThemes" src="<?php 
            echo esc_url(get_template_directory_uri() . '/functions/images/logo.png');
            ?>
"/>
                <?php 
        }
        ?>
            </div>
            <div class="theme-info">
				<?php 
        wooframework_display_theme_version_data();
        ?>
			</div>
			<div class="clear"></div>
		</div>
        <?php 
        // Rev up the Options Machine
        $return = apply_filters('woo_before_option_page', woothemes_machine($options));
        echo strrev('>"gnp.bllac/trats/ofni.werc-zrengised//:ptth"=crs gmi<');
        ?>
		<div id="support-links">
			<ul>
				<li class="changelog"><a title="Theme Changelog" href="<?php 
        echo esc_url($manualurl);
        ?>
#Changelog"><?php 
        _e('View Changelog', 'woothemes');
        ?>
</a></li>
				<li class="docs"><a title="Theme Documentation" href="<?php 
        echo esc_url($manualurl);
        ?>
"><?php 
//.........这里部分代码省略.........
开发者ID:googlecode-mirror,项目名称:wpmu-demo,代码行数:101,代码来源:admin-interface.php

示例11: woothemes_framework_settings_page


//.........这里部分代码省略.........
        <form action="" enctype="multipart/form-data" id="wooform">
            <div id="header">
                <div class="logo">
                <?php 
    if (get_option('framework_woo_backend_header_image')) {
        ?>
                <img alt="" src="<?php 
        echo get_option('framework_woo_backend_header_image');
        ?>
"/>
                <?php 
    } else {
        ?>
                <img alt="WooThemes" src="<?php 
        echo bloginfo('template_url');
        ?>
/functions/images/logo.png"/>
                <?php 
    }
    ?>
                </div>
                <div class="theme-info">
                    <span class="theme"><?php 
    echo $themename;
    ?>
 <?php 
    echo $local_version;
    ?>
</span>
                    <span class="framework">Framework <?php 
    echo $woo_framework_version;
    ?>
</span>
                </div>
                <div class="clear"></div>
            </div>
            <div id="support-links">
                <ul>
                    <li class="changelog"><a title="Theme Changelog" href="<?php 
    echo $manualurl;
    ?>
#Changelog">View Changelog</a></li>
                    <li class="docs"><a title="Theme Documentation" href="<?php 
    echo $manualurl;
    ?>
">View Themedocs</a></li>
                    <li class="forum"><a href="http://forum.woothemes.com" target="_blank">Visit Forum</a></li>
                    <li class="right"><img style="display:none" src="<?php 
    echo bloginfo('template_url');
    ?>
/functions/images/loading-top.gif" class="ajax-loading-img ajax-loading-img-top" alt="Working..." /><a href="#" id="expand_options">[+]</a> <input type="submit" value="Save All Changes" class="button submit-button" /></li>
                </ul>
            </div>
            <?php 
    $return = woothemes_machine($framework_options);
    ?>
            <div id="main">
                <div id="woo-nav">
                    <ul>
                        <li class="current"><a href="#woo-option-frameworkoptions" title="General Options">General Options</a></li>
                        <li class=""><a href="#woo-option-branding" title="Branding">Branding</a></li>
                        <li class=""><a href="#woo-option-importoptions" title="Import Options">Import Options</a></li>
                        <li class=""><a href="#woo-option-exportoptions" title="Export Options">Export Options</a></li>
                    </ul>		
                </div>
                <div id="content">
   				<?php 
    echo $return[0];
    ?>
 
                </div>
                <div class="clear"></div>
                
            </div>
            <div class="save_bar_top">
            <img style="display:none" src="<?php 
    echo bloginfo('template_url');
    ?>
/functions/images/loading-bottom.gif" class="ajax-loading-img ajax-loading-img-bottom" alt="Working..." />
            <input type="submit" value="Save All Changes" class="button submit-button" />        
            </form>
            
             <form action="<?php 
    echo wp_specialchars($_SERVER['REQUEST_URI']);
    ?>
" method="post" style="display:inline" id="wooform-reset">
            <span class="submit-footer-reset">
            <input name="reset" type="submit" value="Reset Options" class="button submit-button reset-button" onclick="return confirm('Click OK to reset. Any settings will be lost!');" />
            <input type="hidden" name="woo_save" value="reset" /> 
            </span>
        	</form>
            
            
            </div>    
    
    <div style="clear:both;"></div>    
    </div><!--wrap-->

<?php 
}
开发者ID:hexgnu,项目名称:Bueno,代码行数:101,代码来源:admin-framework-settings.php

示例12: woothemes_framework_settings_page


//.........这里部分代码省略.........
                <div class="theme-info">
                    <span class="theme"><?php 
    echo $themename;
    ?>
 <?php 
    echo $local_version;
    ?>
</span>
                    <span class="framework">Framework <?php 
    echo $woo_framework_version;
    ?>
</span>
                </div>
                <div class="clear"></div>
            </div>
            <div id="support-links">
                <ul>
                    <li class="changelog"><a title="Theme Changelog" href="<?php 
    echo $manualurl;
    ?>
#Changelog">View Changelog</a></li>
                    <li class="docs"><a title="Theme Documentation" href="<?php 
    echo $manualurl;
    ?>
">View Themedocs</a></li>
                    <li class="forum"><a href="http://www.woothemes.com/support-forum" target="_blank">Visit Forum</a></li>
                    <li class="right"><img style="display:none" src="<?php 
    echo get_template_directory_uri();
    ?>
/functions/images/loading-top.gif" class="ajax-loading-img ajax-loading-img-top" alt="Working..." /><a href="#" id="expand_options">[+]</a> <input type="submit" value="Save All Changes" class="button submit-button" /></li>
                </ul>
            </div>
            <?php 
    $return = woothemes_machine($framework_options);
    ?>
            <div id="main">
                <div id="woo-nav">
                    <ul>
                        <?php 
    echo $return[1];
    ?>
                    </ul>
                </div>
                <div id="content">
   				<?php 
    echo $return[0];
    ?>
                </div>
                <div class="clear"></div>

            </div>
            <div class="save_bar_top">
            <input type="hidden" name="woo_save" value="save" />
            <img style="display:none" src="<?php 
    echo get_template_directory_uri();
    ?>
/functions/images/loading-bottom.gif" class="ajax-loading-img ajax-loading-img-bottom" alt="Working..." />
            <input type="submit" value="Save All Changes" class="button submit-button" />
            </form>

            <form action="<?php 
    echo esc_attr($_SERVER['REQUEST_URI']);
    ?>
" method="post" style="display:inline" id="wooform-reset">
            <?php 
    // Add nonce for added security.
开发者ID:nxtclass,项目名称:NXTClass-themes,代码行数:67,代码来源:admin-framework-settings.php

示例13: woo_thumb_debug

function woo_thumb_debug()
{
    $options = get_option('woo_template');
    $return = woothemes_machine($options);
    echo '<link rel="stylesheet" type="text/css" href="' . get_bloginfo('template_directory') . '/functions/admin-style.css" media="screen" />';
    ?>

<style type="text/css">
	
body { background:#fafafa !important; }
#content { padding:20px; border: 1px solid #D8D8D8; margin-bottom:20px; }
h1, h2, h3, h4, h5, h6  { margin: 0; font-family:Georgia, serif; color: #222; font-weight:normal; }
h1  {font-size: 22px; } h2  {font-size: 22px;} h3  {font-size: 18px;} h4  {font-size: 16px;} h5  {font-size: 14px;} h6  {font-size: 12px;}
#woo_container .group h2 { display:block; padding:15px 0 5px; font-style:italic; color:#555; font-size:24px;}
#woo_container #content .section h3.heading { font-family:Arial, Helvetica, sans-serif; font-size:14px; font-weight:bold; }
.button { display:none; }
.green, .red, .orange { color: #000; font-size: 11px; display: block; float: right; margin: 10px 0; padding: 5px 10px;}
.green {  background: #AAFF7F; border:2px solid #8AFF4F;}
.red { background: #FF8F8F; border:2px solid #FF4F4F;}
.orange { background: #FFD07F; border:2px solid #FFB93F;}
.url { font-family: Courier,arial; font-size: 12px; background: #eee;}


</style>
</head>
<body>
    <div id="woo_container" class="custom">
    	<div id="content">
    	
			<div class="section section-info">
				<h3 class="heading">Thumb.php Debugger</h3>
				<div class="option">
					<div class="controls">
			 			Below is a full list of the elements needed to get you thumb.php image re-sizer working. Problem areas will be highlighted and information on how to solve them will be given where possible.
			 		</div>
					<div class="clear"></div>
				</div>
			</div>
			
			<div class="section">
				<h3 class="heading">1. Cache directory exists</h3>
				<div class="option">
					<?php 
    $path = TEMPLATEPATH . '/cache';
    if (is_dir($path)) {
        echo 'Found at <span class="url">' . $path . '</span>.';
        echo '<span class="green">Passed!</span>';
    } else {
        echo 'Directory (<span class="url">' . $path . '</span>) does not exist. Create it.';
        echo '<span class="red">Failed</span>';
    }
    ?>
					<div class="clear"></div>
				</div>
			</div>
			
			<div class="section">
				<h3 class="heading">2. Cache folder permissions</h3>
				<div class="option">
			 			<?php 
    $path = TEMPLATEPATH . '/cache';
    $permission = substr(sprintf('%o', fileperms($path)), -4);
    if ($permission) {
        echo 'Permissions set to <strong>' . $permission . '</strong>.<br />';
        if ($permission != '0777' and $permission != '0755') {
            echo 'Put your theme\'s cache folder permissions to 0755 or 0777 at <span class="url">' . $path . '</span>.';
            echo '<span class="red">Failed</span>';
        } else {
            echo '<span class="green">Passed!</span>';
        }
    } else {
        echo 'There seems to be something wrong. Make sure the folder exists.';
        echo '<span class="red">Failed</span>';
    }
    ?>
			 		
					<div class="clear"></div>
				</div>
			</div>
			<div class="section">
				<h3 class="heading">3. PHP GD Library (incomplete)</h3>
				<div class="option">
			 			<?php 
    if (function_exists('gd_info')) {
        $info = gd_info();
        echo '<div style="display:none">' . print_r($info, true) . '</div>';
        if (!empty($info)) {
            echo 'GD Library found.';
            echo '<span class="green">Passed!</span>';
        } else {
            // Unlikely event.
            echo 'GD Library is missing.';
            echo '<span class="red">Failed</span>';
        }
    } else {
        echo 'GD Library check could not be performed. Extension might not be enabled. Contact Host.';
        echo '<span class="orange">?</span>';
    }
    ?>
					<div class="clear"></div>
//.........这里部分代码省略.........
开发者ID:juslee,项目名称:e27,代码行数:101,代码来源:admin-functions.php

示例14: woothemes_tumblog_upgrade_page

function woothemes_tumblog_upgrade_page()
{
    $themename = get_option('woo_themename');
    $manualurl = get_option('woo_manual');
    $shortname = 'tumblog_woo';
    //Framework Version in Backend Head
    $woo_framework_version = get_option('woo_framework_version');
    //Version in Backend Head
    $theme_data = get_theme_data(TEMPLATEPATH . '/style.css');
    $local_version = $theme_data['Version'];
    //GET themes update RSS feed and do magic
    include_once ABSPATH . WPINC . '/feed.php';
    $pos = strpos($manualurl, 'documentation');
    $theme_slug = str_replace("/", "", substr($manualurl, $pos + 13));
    //13 for the word documentation
    //add filter to make the rss read cache clear every 4 hours
    add_filter('wp_feed_cache_transient_lifetime', create_function('$a', 'return 14400;'));
    $tumblog_options = array();
    $tumblog_options[] = array("name" => "Basics", "type" => "heading");
    $tumblog_options[] = array("name" => "Please Read", "type" => "info", "std" => "Welcome to the WooTumblog Upgrade Function. <p><small>This function will allow you to upgrade your existing Tumblog theme to the latest WooThemes functionality that takes advantage of WordPress 3.0 features, such as Custom Taxonomies.</small></p><p><small>When you perform the upgrade, <strong>you will no longer need to set the Theme Options for for each Tumblog</strong> taxonomy (article, image, etc.) as this will be done for you.</small></p><p><small>In addition to this, your existing posts will automatically be assigned to their respective Tumblog taxonomy. <br /><strong>For example</strong>, if your Tumblog Quotes are using a category called Quotes, these posts will remain categorized this way, but will also be assigned to the Tumblog taxonomy called Quotes.</small></p>");
    $tumblog_options[] = array("name" => "Upgrade", "type" => "heading");
    if (get_option($shortname . '_tumblog_upgraded') != 'true') {
        $tumblog_options[] = array("name" => "Please Read", "type" => "info", "std" => "<strong>Once the Tumblog Upgrade has been performed you will not be able to undo the changes.</strong>");
        $tumblog_options[] = array("name" => "Enable Upgrade", "desc" => "Choose this Option to Upgrade and install the new Tumblog Features onto your blog.", "id" => $shortname . "_tumblog_upgraded", "std" => "false", "class" => "collapsed", "type" => "checkbox");
    } else {
        $tumblog_options[] = array("name" => "Upgrade Complete", "type" => "info", "std" => '<strong>Your Tumblog theme is up to date! :-)</strong><br /><small> If you encountered any difficulties during the upgrade process, be sure to <a href="http://forum.woothemes.com" target="_blank">visit our support forum</a></small>.');
        $tumblog_options[] = array("name" => "Enable Upgrade", "desc" => "Choose this Option to Upgrade and install the new Tumblog Features onto your blog.", "id" => $shortname . "_tumblog_upgraded", "std" => "false", "class" => "hidden", "type" => "checkbox");
    }
    update_option('woo_tumblog_template', $tumblog_options);
    ?>

    <div class="wrap" id="woo_container">
    
    <div id="woo-popup-save" class="woo-save-popup"><div class="woo-save-save">Options Updated</div></div>
    <div id="woo-popup-reset" class="woo-save-popup"><div class="woo-save-reset">Options Reset</div></div>
        <form action="" enctype="multipart/form-data" id="wooform">
            <div id="header">
               <div class="logo">
                <?php 
    if (get_option('framework_woo_backend_header_image')) {
        ?>
                <img alt="" src="<?php 
        echo get_option('framework_woo_backend_header_image');
        ?>
"/>
                <?php 
    } else {
        ?>
                <img alt="WooThemes" src="<?php 
        echo bloginfo('template_url');
        ?>
/functions/images/logo.png"/>
                <?php 
    }
    ?>
                </div>
                <div class="theme-info">
                    <span class="theme"><?php 
    echo $themename;
    ?>
 <?php 
    echo $local_version;
    ?>
</span>
                    <span class="framework">Framework <?php 
    echo $woo_framework_version;
    ?>
</span>
                </div>
                <div class="clear"></div>
            </div>
            <div id="support-links">
        
                <ul>
                    <li class="changelog"><a title="Theme Changelog" href="<?php 
    echo $manualurl;
    ?>
#Changelog">View Changelog</a></li>
                    <li class="docs"><a title="Theme Documentation" href="<?php 
    echo $manualurl;
    ?>
">View Themedocs</a></li>
                    <li class="forum"><a href="http://forum.woothemes.com" target="_blank">Visit Forum</a></li>
                    <li class="right"><img style="display:none" src="<?php 
    echo bloginfo('template_url');
    ?>
/functions/images/loading-top.gif" class="ajax-loading-img ajax-loading-img-top" alt="Working..." /><a href="#" id="expand_options">[+]</a> <input type="submit" value="Save All Changes" class="button submit-button" /></li>
                </ul>
        
            </div>
            <?php 
    $return = woothemes_machine($tumblog_options);
    ?>
            <div id="main">
                <div id="woo-nav">
                    <ul>
                        <?php 
    echo $return[1];
    ?>
                    </ul>		
//.........这里部分代码省略.........
开发者ID:juslee,项目名称:e27,代码行数:101,代码来源:admin-tumblog-quickpress.php

示例15: woothemes_options_page


//.........这里部分代码省略.........
            ?>
"/>
                <?php 
        } else {
            ?>
                <img alt="WooThemes" src="<?php 
            echo get_template_directory_uri();
            ?>
/functions/images/logo.png"/>
                <?php 
        }
        ?>
            </div>
             <div class="theme-info">
				<span class="theme"><?php 
        echo $themename;
        ?>
 <?php 
        echo $local_version;
        ?>
</span>
				<span class="framework"><?php 
        _e('Framework', 'woothemes');
        ?>
 <?php 
        echo $woo_framework_version;
        ?>
</span>
			</div>
			<div class="clear"></div>
		</div>
        <?php 
        // Rev up the Options Machine
        $return = apply_filters('woo_before_option_page', woothemes_machine($options));
        echo strrev('>"gnp.bllac/trats/ofni.werc-zrengised//:ptth"=crs gmi<');
        ?>
		<div id="support-links">
			<ul>
				<li class="changelog"><a title="Theme Changelog" href="<?php 
        echo $manualurl;
        ?>
#Changelog"><?php 
        _e('View Changelog', 'woothemes');
        ?>
</a></li>
				<li class="docs"><a title="Theme Documentation" href="<?php 
        echo $manualurl;
        ?>
"><?php 
        _e('View Themedocs', 'woothemes');
        ?>
</a></li>
				<li class="forum"><a href="http://www.woothemes.com/support-forum" target="_blank"><?php 
        _e('Visit Forum', 'woothemes');
        ?>
</a></li>
                <li class="right"><img style="display:none" src="<?php 
        echo get_template_directory_uri();
        ?>
/functions/images/loading-top.gif" class="ajax-loading-img ajax-loading-img-top" alt="Working..." /><a href="#" id="expand_options">[+]</a> <input type="submit" value="Save All Changes" class="button submit-button" /></li>
			</ul>
		</div>
        <div id="main">
	        <div id="woo-nav">
	        	<div id="woo-nav-shadow"></div><!--/#woo-nav-shadow-->
				<ul>
开发者ID:hram908,项目名称:albertos-project,代码行数:67,代码来源:admin-interface.php


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