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

PHP get_latest_theme_version函数代码示例

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

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



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

示例1: update_notifier

function update_notifier()
{
    $xml = get_latest_theme_version(NOTIFIER_CACHE_INTERVAL);
    // Get the latest remote XML file on our server
    $theme_data = wp_get_theme(TEMPLATEPATH . '/style.css');
    // Read theme current version from the style.css
    ?>
	
	<style>
		.update-nag { display: none; }
		#instructions {max-width: 670px;}
		h3.title {margin: 30px 0 0 0; padding: 30px 0 0 0; border-top: 1px solid #ddd;}
	</style>

	<div class="wrap">
	
		<div id="icon-tools" class="icon32"></div>
		<h2><?php 
    echo NOTIFIER_THEME_NAME;
    ?>
 Theme Updates</h2>
	    <div id="message" class="updated below-h2"><p><strong>There is a new version of the <?php 
    echo NOTIFIER_THEME_NAME;
    ?>
 theme available.</strong> You have version <?php 
    echo $theme_data['Version'];
    ?>
 installed. Update to version <?php 
    echo $xml->latest;
    ?>
.</p></div>

		<img style="float: left; margin: 0 20px 20px 0; border: 1px solid #ddd;" src="<?php 
    echo get_template_directory_uri() . '/screenshot.png';
    ?>
" />
		
		<div id="instructions">
		    <h3>Update Download and Instructions</h3>
		    <p><strong>Please note:</strong> make a <strong>backup</strong> of the Theme inside your WordPress installation folder <strong>/wp-content/themes/<?php 
    echo NOTIFIER_THEME_FOLDER_NAME;
    ?>
/</strong></p>
		    <p>To update the Theme, login to <a href="http://www.themeforest.net/?ref=thunderthemes">ThemeForest</a>, head over to your <strong>downloads</strong> section and re-download the theme like you did when you bought it.</p>
		    <p>Extract the zip's contents, look for the extracted theme folder, and after you have all the new files upload them using FTP to the <strong>/wp-content/themes/<?php 
    echo NOTIFIER_THEME_FOLDER_NAME;
    ?>
/</strong> folder overwriting the old ones (this is why it's important to backup any changes you've made to the theme files).</p>
		    <p>If you didn't make any changes to the theme files, you are free to overwrite them with the new ones without the risk of losing theme settings, pages, posts, etc, and backwards compatibility is guaranteed.</p>
		</div>
	    
	    <h3 class="title">Changelog</h3>
	    <?php 
    echo $xml->changelog;
    ?>

	</div>
    
<?php 
}
开发者ID:davidHuanghw,项目名称:david_blog,代码行数:60,代码来源:update-notifier.php


示例2: update_notifier_menu

function update_notifier_menu()
{
    $xml = get_latest_theme_version(604800);
    // This tells the function to cache the remote call for 604800 seconds (7 days)	$theme_data = get_theme_data(TEMPLATEPATH . '/style.css'); // Get theme data from style.css (current version is what we want)	if(version_compare($theme_data['Version'], $xml->latest) == -1) { 	add_dashboard_page( $theme_data['Name'] . 'Theme Updates ', '&nbsp;<span class="update-plugins count-2"><span class="update-count">New Theme Update</span></span>', 'administrator','m3-updates', update_notifier);	}}  add_action('admin_menu', 'update_notifier_menu');function update_notifier() { 	$xml = get_latest_theme_version(21600); // This tells the function to cache the remote call for 21600 seconds (6 hours)	$theme_data = get_theme_data(TEMPLATEPATH . '/style.css'); // Get theme data from style.css (current version is what we want)
    ?>
		<style>		.update-nag {display: none;}		#instructions {max-width: 800px;}		h3.title {margin: 30px 0 0 0; padding: 30px 0 0 0; border-top: 1px solid #ddd;}	</style>		<style type="text/css">		.changelogcss { font: 400 14px/22px Georgia, serif; color: #333; width:805px;}		.changelogcss h1 { font-family:Georgia, serif;font-size: 26px; font-weight: 400; border-bottom: 1px dotted #ccc; padding: 20px 0 5px 0; color: #333; }		.changelogcss h2 {font-family:Georgia, serif; font-size: 18px; font-weight: 400; border-bottom: 1px dotted #ccc; padding: 20px 0 0px 0; color: #333; }		.changelogcss h2 span {  background: #555555;    color: #FFFFFF !important;    float: right;    font-family: Georgia,serif;    font-size: 12px;    font-weight: bold;    padding: 0 12px;    text-shadow: none; }		.changelogcss strong { font-weight: 400; color: #000; font-style: italic; padding-bottom: 1px; border-bottom: 1px solid #ccc; }		.changelogcss em { color: #000; font-style: normal; padding: 1px 4px 2px; border-bottom: 1px dotted #ccc; background-color: #f1f0cf; text-shadow: 0 1px 0 #fff; cursor: default; }		.changelogcss a { outline: none; color: #53769a; }		.changelogcss .wrapper { width: 650px; margin: 20px auto; }		.changelogcss xmp { background-color: #f4f4f4; border-width: 1px 0; border-style: dotted; border-color: #ccc; padding: 2px 5px; font-size: 12px; text-shadow: 0 1px 0 #fff; }		.changelogcss ol { float: left; width: 100%; margin: 0 0 25px 40px; }		.changelogcss li { padding: 0;  float: left; width: auto; clear: left; margin-bottom: 5px; }  	</style>	<div class="wrap">			<div id="icon-tools" class="icon32"></div>		<h2><?php 
    echo $theme_data['Name'];
    ?>
 Theme Updates</h2>	    <div id="message" class="updated below-h2"><p><strong>There is a new version of the <?php 
    echo $theme_data['Name'];
    ?>
 theme available.</strong> You have version <?php 
    echo $theme_data['Version'];
    ?>
 installed. Update to version <?php 
    echo $xml->latest;
    ?>
.</p></div>                <img style="float: left; margin: 0 20px 20px 0; border: 1px solid #ddd;" src="<?php 
    echo get_bloginfo('template_url') . '/screenshot.png';
    ?>
" />                <div id="instructions" style="max-width: 800px;">            <h3>Update Download and Instructions</h3>            <p><strong>Please note:</strong> make a <strong>backup</strong> of the Theme inside your WordPress installation folder <strong>/wp-content/themes/<?php 
    echo strtolower($theme_data['Name']);
    ?>
/</strong></p>            <p><a href="http://magazine3.com/update-instructions"><b>Read the instructions on How to Update the theme.</b></a></p>        </div>                    <div class="clear"></div>	     	<div class="changelogcss wrapper"> 				<h1>Change Logs</h1>     <?php 
    echo $xml->changelog;
    ?>
</div>	</div>    <?php 
}
开发者ID:m-godefroid76,项目名称:devrestofactory,代码行数:28,代码来源:update_notifier.php


示例3: update_notifier

function update_notifier()
{
    $xml = get_latest_theme_version(UDESIGN_NOTIFIER_CACHE_INTERVAL);
    // Get the latest remote XML file on our server
    ?>
	
	<style>
		.update-nag { display: none; }
		#instructions {max-width: 670px;}
		h3.title {margin: 30px 0 0 0; padding: 30px 0 0 0; border-top: 1px solid #ddd;}
	</style>

	<div class="wrap">
	
		<div id="icon-tools" class="icon32"></div>
		<h2><?php 
    echo UDESIGN_NOTIFIER_THEME_NAME;
    ?>
 Theme Updates</h2>
	    <div id="message" class="updated below-h2"><p><strong>There is a new version of the <?php 
    echo UDESIGN_NOTIFIER_THEME_NAME;
    ?>
 theme available.</strong> You have version <?php 
    echo UDESIGN_NOTIFIER_CURR_THEME_VERSION;
    ?>
 installed. Update to version <?php 
    echo $xml->latest;
    ?>
.</p></div>

		<img style="float: left; margin: 0 20px 20px 0; border: 1px solid #ddd;" src="<?php 
    echo get_bloginfo('template_url') . '/screenshot.png';
    ?>
" />
		
		<div id="instructions">
		    <h3>Update Download and Instructions</h3>
		    <p><strong>Please note:</strong> make a <strong>backup</strong> of the Theme inside your WordPress installation folder <strong>/wp-content/themes/<?php 
    echo UDESIGN_NOTIFIER_THEME_FOLDER_NAME;
    ?>
/</strong>. I also encourage you to make a full backup your site and database before performing an update.</p>
		    <p>To get the latest update of the Theme, login to <a href="http://www.themeforest.net/">ThemeForest</a>, head over to your <strong>Downloads</strong> section and re-download the theme like you did when you bought it.</p>
		    <p>Extract the contents of the zip file, look for the extracted theme folder, and after you have all the new files upload them using FTP to the <strong>/wp-content/themes/<?php 
    echo UDESIGN_NOTIFIER_THEME_FOLDER_NAME;
    ?>
/</strong> folder overwriting the old ones (this is why it's important to backup any changes you've made to the theme files).</p>
		    <p>If you didn't make any changes to the theme files, you are free to overwrite them with the new ones without the risk of losing theme settings, pages, posts, slider images, etc.</p>
		    <p>Now if you have modified files like CSS or some php files and you haven't kept track of your changes then you can use some 'diff' tools to compare the two versions' files and folders. That way you'd know exactly what files to update and where, line by line. Otherwise you'll loose your customizations.</p>
		    <p><strong>For more detailed instructions please refer to the theme's support forum <a target="_blank" title="How do I update the theme!" href="http://dreamthemedesign.com/u-design-support/discussion/13/how-do-i-update-the-theme/p1">HERE</a>.</strong></p>
		</div>

	    <h3 class="title">Changelog</h3>
	    <?php 
    echo $xml->changelog;
    ?>

	</div>
    
<?php 
}
开发者ID:nimishavyas,项目名称:proiti,代码行数:60,代码来源:update-notifier.php


示例4: update_notifier

function update_notifier()
{
    $xml = get_latest_theme_version(21600);
    // This tells the function to cache the remote call for 21600 seconds (6 hours)
    if (function_exists('wp_get_theme')) {
        $theme_data = wp_get_theme();
        // Get theme data from style.css (current version is what we want)
    } else {
        $theme_data = get_theme_data(TEMPLATEPATH . '/style.css');
        // Get theme data from style.css (current version is what we want)
    }
    ?>
	
	<style>
		.update-nag {display: none;}
		#mono_info { float:left; width:400px; margin:0 20px 20px 0; border:1px solid #ccc; -moz-border-radius:5px; -khtml-border-radius:5px; -webkit-border-radius:5px; border-radius:5px; }
		#mono_theme_thumbnail { float:left; display:block; border:1px solid #ccc; }
                #mono_info h3 { margin:0 0 15px 0; font-size:14px; background:#f2f2f2; padding:15px 15px 12px; -moz-border-radius:5px 5px 0 0; -khtml-border-radius:5px 5px 0 0; -webkit-border-radius:5px 5px 0 0; border-radius:5px 5px 0 0; border-bottom:1px solid #ccc; background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#eee)); background: -moz-linear-gradient(top, #fff, #eee); }
                #mono_info dt { font-weight:bold; margin:0 0 2px 0; font-size:12px; }
                #mono_info dd { margin:0 0 15px 0; font-size:12px; }
                #mono_info dl { margin:0 15px 5px 15px; font-size:12px; }
	</style>

        <div class="wrap">
         <div id="icon-tools" class="icon32"></div>
         <h2><?php 
    echo $theme_data['Name'];
    ?>
 テーマ更新情報</h2>
         <div id="message" class="updated below-h2">
          <p><strong><?php 
    echo $theme_data['Name'];
    ?>
の最新版が公開されています。</strong> 現在利用しているバージョンは「<?php 
    echo $theme_data['Version'];
    ?>
」です。 「<?php 
    echo $xml->latest;
    ?>
」に更新する事ができます。</p>
         </div>
         <div id="mono_instructions">
          <h3>注意事項:最新版にアップデートする際は、必ずテーマの<strong>バックアップ</strong> をしてください。</h3>
          <p style="font-size:16px;">【 <a href="http://wp-dp.com/dl015/grider/grider_tcd015.zip">最新版のテーマをダウンロードする</a> 】</p>
          <div id="mono_info">
	   <h3>更新情報</h3>
	   <?php 
    echo $xml->changelog;
    ?>
          </div>
          <img id="mono_theme_thumbnail" src="<?php 
    echo get_bloginfo('template_url') . '/screenshot.png';
    ?>
" />
         </div>
	</div>
    
<?php 
}
开发者ID:satoshishimazaki,项目名称:mknowhere_grider,代码行数:59,代码来源:update_notifier.php


示例5: update_notifier_message

function update_notifier_message()
{
    $xml = get_latest_theme_version(NOTIFIER_CACHE_INTERVAL);
    $theme_data = wp_get_theme(NOTIFIER_THEME_FOLDER_NAME);
    if ($xml->latest > $theme_data->get('Version')) {
        ?>

		<div class="error">
		<?php 
        $theme_update_notice = '<p><strong>Your active theme <a href="' . NOTIFIER_THEME_PAGE . '" target="_blank">' . NOTIFIER_THEME_NAME . '</a> by <a href="' . NOTIFIER_AUTHOR_PAGE . '" target="_blank">' . NOTIFIER_AUTHOR_NAME . '</a> is outdated</strong>! You have version v' . $theme_data->get('Version') . ' installed and the latest version is v' . $xml->latest . '. To avoid any security threats and ensure maximum compatibility with your plugins, please <a href="' . NOTIFIER_DOCS_PAGE . '" target="_blank">update now</a>.</p>';
        echo $theme_update_notice;
        ?>
		</div>

	<?php 
    }
}
开发者ID:Junaid-Farid,项目名称:gocnex,代码行数:17,代码来源:update-notifier.php


示例6: update_notifier_menu

function update_notifier_menu()
{
    global $mtcxml;
    $xml = get_latest_theme_version(21600);
    // This tells the function to cache the remote call for 21600 seconds (6 hours)
    $mtcxml = $xml;
    $theme_data = wp_get_theme();
    if (!is_super_admin() || !is_admin_bar_showing() || !is_admin()) {
        // Don't display notification in admin bar if it's disabled or the current user isn't an administrator
        return;
    }
    //add_dashboard_page( $theme_data->get( 'Name' ) . 'Theme Updates', '', 'administrator', strtolower($theme_data->get( 'Name' )) . '-updates', 'update_notifier');
    if (TRUE == $xml) {
        if (version_compare($theme_data->get('Version'), $xml->latest) == -1) {
            add_dashboard_page($theme_data->get('Name') . 'Theme Updates', $theme_data->get('Name') . '<span class="update-plugins count-1"><span class="update-count">New Updates</span></span>', 'administrator', strtolower($theme_data->get('Name')) . '-updates', 'update_notifier');
            add_action('admin_notices', 'mtc_update_theme_notice');
            add_action('admin_bar_menu', 'mtc_update_notifier_bar_menu', 1000);
        } else {
        }
    }
}
开发者ID:afftt,项目名称:infos-ping,代码行数:21,代码来源:update_notifier.php


示例7: update_notifier

function update_notifier()
{
    $xml = get_latest_theme_version(NOTIFIER_CACHE_INTERVAL);
    // Get the latest remote XML file on our server
    $theme_data = wp_get_theme();
    // Read theme current version from the style.css
    ?>

	<style>
		.update-nag { display: none; }
		#instructions {max-width: 670px;}
		h3.title {margin: 30px 0 0 0; padding: 30px 0 0 0; border-top: 1px solid #ddd;}
	</style>

	<div class="wrap">

		<div id="icon-tools" class="icon32"></div>
		<h2><?php 
    _e('Touchfolio Theme Update', 'dsframework');
    ?>
</h2>
	    <div id="message" class="updated below-h2"><p><?php 
    _e('<strong>There is a new version of Touchfolio theme available.</strong> Visit <a style="text-decoration:underline;" href="http://dimsemenov.com/themes/touchfolio/changelog.html">changelog page</a> to see what\'s new and how to update.', 'dsframework');
    ?>
</p></div>
		
		<div id="instructions">
		    <p><?php 
    _e('<strong>Please note:</strong> make a backup of Touchfolio theme inside your WordPress installation folder <strong>', 'dsframework');
    ?>
/wp-content/themes/<?php 
    echo NOTIFIER_THEME_FOLDER_NAME;
    ?>
/</strong> before updating.</p>
		</div>
	</div>
    
<?php 
}
开发者ID:naires,项目名称:Touchfolio,代码行数:39,代码来源:update-notifier.php


示例8: update_notifier

function update_notifier()
{
    $xml = get_latest_theme_version();
    if (isset($xml->latest) ? $latest_ver = $xml->latest : ($latest_ver = false)) {
    }
    if (isset($xml->changelog) ? $changelog = $xml->changelog : ($changelog = false)) {
    }
    $theme_data = wp_get_theme();
    // since WordPress 3.4.0
    $theme_ver = $theme_data->get('Version');
    // Theme Version
    $theme_URI = $theme_data->get('ThemeURI');
    // Theme Demo URL
    $author_name = $theme_data->get('Author');
    // Theme Author Name
    $author_URI = $theme_data->get('AuthorURI');
    // Theme Author Url
    $themeFolder = get_template();
    // Template Folder Name
    add_thickbox();
    // Add Thickbox to open Videos and images
    ?>
	
	<style>
	.ntf_border { border-right: 1px solid #e5e5e5; };
	.ntf_center { margin: 0 auto; text-align: center; }
	.ntf_hide   { display: none; }
	</style>
    
	<div class="wrap">
    	<div id="icon-themes" class="icon32"></div>
		<h2>Updating <?php 
    echo $theme_data;
    ?>
 Theme</h2>
		<table class="wp-list-table widefat" cellspacing="0">
          <thead>
            <tr>
              <th scope="col" class="ntf_border"><strong><?php 
    echo $theme_data;
    ?>
 Screenshot</strong></th>
              <th scope="col" class="ntf_border"><strong>Update Instructions</strong></th>
              <th scope="col" class="ntf_border"><strong>Version <?php 
    echo $latest_ver;
    ?>
 Changelog</strong></th>
            </tr>
          </thead>
		  <tfoot>
		    <tr>
		      <th><?php 
    echo $theme_data;
    ?>
 is Designed by <a href="<?php 
    echo $author_URI;
    ?>
" title="Visit author homepage" target="_blank"><?php 
    echo $author_name;
    ?>
</a></th>
              <th></th>
              <th></th>
            </tr>
		  </tfoot>
          <tbody id="the-list">
          	<tr>
              <td class="ntf_border ntf_center">
                  <a href="<?php 
    echo $theme_URI;
    ?>
" title="Visit <?php 
    echo $theme_data;
    ?>
 site" target="_blank">
                  <img width="400" height="auto" src="<?php 
    echo get_template_directory_uri() . '/screenshot.png';
    ?>
" />
                  </a>
              </td>
              <td class="column-description desc ntf_border">
             	  <h3>Method 1 - ( Automatic - The easy way )</h3>
                  <ol>
                      <li>Install and activate Envato WordPress Toolkit Plugin ( Link to Download: http://goo.gl/NJuVvG )</li>
                      <li><p>Login to your <a href="http://themeforest.net/?ref=<?php 
    echo NOTIFIER_THEMEFOREST_USERNAME;
    ?>
">Themeforest</a> account, go to <strong>Settings -> API Keys</strong>, select and copy your API Key </p></li>
                      <li>Go to <strong>WP Admin -> Envato Toolkit plugin page</strong>, type in your username and paste the API key you copied in the previous step. Click Save Settings.</li>
                  </ol>
                  <p>Once have you filled in your envato marketplace username and  API key, all your purchased themes can be installed and updated on a single click. </p>
              	  <h3>Method 2 - ( Manual - The hard way )</h3>
                  <p><strong>Please note:</strong> make a <strong>backup</strong> of the Theme inside your WordPress installation folder <strong>/wp-content/themes/<?php 
    echo $themeFolder;
    ?>
/</strong></p>
                  <ol>
                      <li><p>Login to your <a href="http://themeforest.net/?ref=<?php 
    echo NOTIFIER_THEMEFOREST_USERNAME;
//.........这里部分代码省略.........
开发者ID:abdulhadikaryana,项目名称:kebudayaan,代码行数:101,代码来源:update-notifier.php


示例9: update_notifier

function update_notifier()
{
    $xml = get_latest_theme_version(21600);
    // This tells the function to cache the remote call for 21600 seconds (6 hours)
    $theme_data = wp_get_theme();
    // Get theme data from style.css (current version is what we want)
    ?>
	
	<style>
		.update-nag {display: none;}
		#instructions {max-width: 800px;}
		h3.title {margin: 30px 0 0 0; padding: 30px 0 0 0; border-top: 1px solid #ddd;}
	</style>

	<div class="wrap">
	
		<div id="icon-tools" class="icon32"></div>
		<h2><?php 
    echo $theme_data['Name'];
    ?>
 Theme Updates</h2>
	    <div id="message" class="updated below-h2"><p><strong>There is a new version of the <?php 
    echo $theme_data['Name'];
    ?>
 theme available.</strong> You have version <?php 
    echo $theme_data['Version'];
    ?>
 installed. Update to version <?php 
    echo $xml->latest;
    ?>
.</p></div>
        
        <img style="float: left; margin: 0 20px 20px 0; border: 1px solid #ddd;" src="<?php 
    echo get_template_directory_uri . '/screenshot.png';
    ?>
" />
        
        <div id="instructions" style="max-width: 800px; float:left;">
            <h3 style="margin-top:0">Update Download and Instructions</h3>
            <p><strong>Please note:</strong> make a <strong>backup</strong> of the Theme inside your WordPress installation folder <strong>/wp-content/themes/<?php 
    echo strtolower($theme_data['Name']);
    ?>
/</strong></p>
            <p>To update the Theme:</p>
            <ol>
            	<li>Login to your Themeforest account, head over to your <strong>downloads</strong> section and re-download the theme</li>
            	<li>Make sure you've backed up your data via Tools > Export</li>
            	<li>Switch Back to the default Theme (Twenty Twelve) momentarily</li>
            	<li>Delete your current version of "<?php 
    echo $theme_data['Name'];
    ?>
". (this is why it's important to backup any changes you've made to the theme files)</li>
            	<li>Install the Theme Via your Wordpress Dashboard. <a href="http://themewich.com/how-to-install-your-theme/" target="_blank">How to Install your Theme Video</a></li> 
            </ol>
            <p>If you didn't make any changes to the theme files, you are free to update withou risk of losing theme settings, pages, posts, and other content.</p>
        </div>
        
            <div class="clear"></div>
	    
	    <h3 class="title">Changelog</h3>
	    <?php 
    echo $xml->changelog;
    ?>

	</div>
    
<?php 
}
开发者ID:aiandrade,项目名称:locallandr,代码行数:68,代码来源:update_notifier.php


示例10: update_notifier

function update_notifier()
{
    $xml = get_latest_theme_version(21600);
    // This tells the function to cache the remote call for 21600 seconds (6 hours)
    $theme_data = wp_get_theme('kingsize');
    // Get theme data from style.css (current version is what we want) wp_get_theme
    ?>
	
	<style>
		.update-nag {display: none;}
		#instructions {max-width: 800px;}
	</style>

	<div class="wrap">
	
		<div id="icon-tools" class="icon32"></div>
		<h2><?php 
    echo $theme_data['Name'];
    ?>
 Theme Updates</h2>
	    <div id="message" class="updated below-h2"><p><strong>There is a new version of the <?php 
    echo $theme_data['Name'];
    ?>
 theme available.</strong> You have version <?php 
    echo $theme_data['Version'];
    ?>
 installed. Please update to version <?php 
    echo $xml->latest;
    ?>
.</p></div>
        
        <img style="float: left; margin: 0 20px 20px 0; border: 1px solid #ddd;" src="<?php 
    echo get_bloginfo('template_url') . '/screenshot.png';
    ?>
" />
        
        <div id="instructions" style="max-width: 800px;">
            
            <h3>Update Instructions</h3>
            
            <p>To get the updated version of the theme go to your <a href="http://themeforest.net?ref=OurWebMedia" target="_blank">ThemeForest</a> downloads page and redownload the theme.</p>
		
			<p>1. Read over the <a href="http://www.kingsizetheme.com/tag/change-log/" target="blank">Change Logs</a>.</p>
		
			<p>2. <strong style="color: red;">BACKUP YOUR WEBSITE</strong>!</p>
			
			<p>3. Go to <a href="http://themeforest.net/" target="blank">Theme Forest</a> and log into your account. Head to the "Downloads" section and locate the "KingSize WordPress" theme. Re-download this to your computer and extract it.</p>
			
			<p>4. Once extracted, inside locate the "<strong>Template Files</strong>" folder. In here you will find the zipped template named "<i>kingsize.zip</i>". Upload to your server where WordPress is installed, into the "<strong>../wp-content/themes</strong>" directory.</p>
			
			<p>5. Now you'll need to go to your hosting environments Control Panel > File Manager and extract the zipped folder you've uploaded (your hosting provider should offer a method to extract compressed folders with the file manager). Alternatively, you may also upload this already unzipped but the upload time will vary and will likely result in a longer upload process.</p>
			
			<p>6. Now decompress / extract the zipped files to overwrite the original "kingsize" theme folder.</p>
			
			<p>7. <strong style="color: red;">IMPORTANT</strong>: Head to your WordPress installation dashboard and go to "<strong>Appearance > Themes</strong>". Make sure it's stating the latest version is <strong><?php 
    echo $xml->latest;
    ?>
</strong>. Now in order to apply the new features and updates, <strong>DE-ACTIVATE</strong> the template by enabling another and then <strong>RE-ACTIVATE</strong> the template again. This should be done after all updates to ensure those features are carried over properly.</p>
			
			<p>8. Go to "<strong>Appearance > KingSize Options</strong>" and be sure to "<strong>SAVE ALL CHANGES</strong>". This ensures the new options/features are set.</p>
			
			<p>For further information we always recommend you read the Template Documentation. This can be found inside the folder you downloaded and extracted from Theme Forest. Locate the folder named "<strong>Documentation</strong>" and inside it the "<i>Help.html</i>" file. For tutorials and demonstrations, please checkout the website: <a href="http://www.kingsizetheme.com" target="blank">http://www.kingsizetheme.com</a></p>
			
			<p>For buyer / customer Support Forums, please visit: <a href="http://www.denoizzed.com/forum" target="blank">http://www.denoizzed.com/forum</a> and if you're having difficulties joining the Support Forums, please <a href="http://denoizzed.com/how-to-register/" target="blank">read and/or watch the help documentation/video</a>. We're here to help, so do not hesitate to contact us!</p>
			
			<p>In your humble service,<br />
			Bryce Wisekal &amp; Kumar Sekhar / <a href="http://www.ourwebmedia.com" target="blank">OurWebMedia</a>, <i>WordPress Developers</i><br />
			Nick Shylo / <a href="http://www.denoizzed.com" target="blank">Denoizzed</a>, <i>HTML / Design Author</i></p>
			
			<p></p>

			<p><?php 
    echo $xml->info;
    ?>
</p>
			
        </div>
        
        <div class="clear"></div>

	</div>
    
<?php 
}
开发者ID:m-godefroid76,项目名称:devrestofactory,代码行数:84,代码来源:theme-update-notification.php


示例11: update_notifier

function update_notifier()
{
    $xml = get_latest_theme_version(21600);
    // This tells the function to cache the remote call for 21600 seconds (6 hours)
    $theme_data = get_theme_data(TEMPLATEPATH . '/style.css');
    // Get theme data from style.css (current version is what we want)
    ?>
	
	<style>
		.update-nag {display: none;}
		#instructions {max-width: 800px;}
		h3.title {margin: 30px 0 0 0; padding: 30px 0 0 0; border-top: 1px solid #ddd;}
	</style>

	<div class="wrap">
	
		<div id="icon-tools" class="icon32"></div>
		<h2><?php 
    echo $theme_data['Name'];
    ?>
 Theme Updates</h2>
	    <div id="message" class="updated below-h2"><p><strong>There is a new version of the <?php 
    echo $theme_data['Name'];
    ?>
 theme available.</strong> You have version <?php 
    echo $theme_data['Version'];
    ?>
 installed. Update to version <?php 
    echo $xml->latest;
    ?>
.</p></div>
        
        <img style="float: left; margin: 0 20px 20px 0; border: 1px solid #ddd;" src="<?php 
    echo get_bloginfo('template_url') . '/screenshot.png';
    ?>
" />
        
        <div id="instructions" style="max-width: 800px;">
            <h3>Update Download and Instructions</h3>
            <p><strong>Please note:</strong> make a <strong>backup</strong> of the Theme inside your WordPress installation folder <strong>/wp-content/themes/<?php 
    echo strtolower($theme_data['Name']);
    ?>
/</strong></p>
            <p>To update the Theme, login to <a href="http://www.themeforest.net/">ThemeForest</a>, head over to your <strong>downloads</strong> section and re-download the theme like you did when you bought it.</p>
            <p>Extract the zip's contents, look for the extracted theme folder, and after you have all the new files upload them using FTP to the <strong>/wp-content/themes/<?php 
    echo strtolower($theme_data['Name']);
    ?>
/</strong> folder overwriting the old ones (this is why it's important to backup any changes you've made to the theme files).</p>
            <p>If you didn't make any changes to the theme files, you are free to overwrite them with the new ones without the risk of losing theme settings, pages, posts, etc, and backwards compatibility is guaranteed.</p>
        </div>
        
            <div class="clear"></div>
	    
	    <h3 class="title">Changelog</h3>
	    <?php 
    echo $xml->changelog;
    ?>

	</div>
    
<?php 
}
开发者ID:Cecil-Garden,项目名称:ijavaboy,代码行数:62,代码来源:update_notifier.php


示例12: update_notifier

/**
 * Notifier page renderer
 */
function update_notifier()
{
    // Requirements check
    if (!is_super_admin()) {
        return;
    }
    // Helper variables
    $xml = get_latest_theme_version(NOTIFIER_CACHE_INTERVAL);
    // Get the latest remote XML file on our server
    // Processing
    /**
     * No need for translations, english only.
     */
    ?>

			<div class="wrap update-notifier">

				<h2><strong><?php 
    echo WM_THEME_NAME;
    ?>
</strong> Theme Updates</h2>

				<br />

				<div class="message error">

					<p><?php 
    if (isset($xml->message) && trim($xml->message)) {
        echo '<strong>' . trim($xml->message) . '</strong><br />';
    }
    echo 'You have version ' . WM_THEME_VERSION . ' installed. <strong>Update to version ' . trim($xml->latest) . ' now.</strong>';
    ?>
</p>

				</div>

				<div class="instructions">

					<?php 
    if (isset($xml->instructions) && trim($xml->instructions)) {
        echo trim($xml->instructions);
    } else {
        ?>

						<img src="<?php 
        echo esc_url(wp_get_theme('mustang')->get_screenshot());
        ?>
" alt="" class="theme-img" />

						<h3>Update Download and Instructions</h3>

						<p>First, please, re-download the new theme update from the source where you've originally obtained the theme.</p>

						<p>Use one of these options to update your theme:</p>

						<?php 
        if (isset($xml->important)) {
            echo '<div class="important-note">' . $xml->important . '</div>';
        }
        ?>

						<ul>

							<?php 
        if (class_exists('Envato_WP_Toolkit') && !isset($xml->noenvato)) {
            echo '<li><h4>Automatic theme update:</h4><a href="' . network_admin_url('admin.php?page=envato-wordpress-toolkit') . '" class="button button-primary button-hero">Update the Theme Automatically &raquo;</a></li>';
        }
        ?>

							<li>

								<h4>Preferred, safer, quicker procedure:</h4>

								<ol>
									<li>Upload the theme installation ZIP file using FTP client to your server (into <code>YOUR_WORDPRESS_INSTALLATION/wp-content/themes/</code>).</li>
									<li>Using your FTP client, rename the old theme folder (for example from <code>my-theme</code> to <code>my-theme-bak</code>).</li>
									<li>When the old theme folder is renamed, unzip the theme installation zip file directly on the server (you might need to use a web-based FTP tool for this - hosting companies provides such tools).</li>
									<li>After checking whether the theme works fine, delete the renamed old theme folder from the server (the <code>my-theme-bak</code> folder in our case).</li>
								</ol>

							</li>

							<li>

								<h4>Easier, slower procedure:</h4>

								<ol>
									<li>Unzip the zipped theme file (you have just downloaded) on your computer.</li>
									<li>Upload the unzipped theme folder using FTP client to your server (into <code>YOUR_WORDPRESS_INSTALLATION/wp-content/themes/</code>) overwriting all the current theme files. Please note that if some files were removed from the theme in the new update, you will have to delete these files additionally from your server. For removed files please check the changelog on the right.</li>
								</ol>

							</li>

						</ul>


					<?php 
//.........这里部分代码省略.........
开发者ID:pab44,项目名称:pab44,代码行数:101,代码来源:update-notifier.php


示例13: update_notifier

    function update_notifier()
    {
        if (ini_get('allow_url_fopen')) {
            $xml = get_latest_theme_version(NOTIFIER_CACHE_INTERVAL);
            // Get the latest remote XML file on our server
            // get the current theme version
            if (function_exists('wp_get_theme')) {
                $theme_data = wp_get_theme();
                $version = $theme_data->Version;
            } else {
                $theme_data = get_theme_data(TEMPLATEPATH . '/style.css');
                // Read theme current version from the style.css
                $version = $theme_data['Version'];
            }
            ?>
			<style>
				.update-nag { display: none; }
				#instructions {max-width: 670px;}
				h3.title {margin: 30px 0 0 0; padding: 30px 0 0 0; border-top: 1px solid #ddd;}
			</style>

			<div class="wrap">

				<div id="icon-tools" class="icon32"></div>
				<h2><?php 
            echo NOTIFIER_THEME_NAME;
            ?>
 Theme Updates</h2>

				<?php 
            // Check if new version exists
            if (version_compare($xml->latest, $version, '>')) {
                ?>
				<br />
				<div id="message" class="error below-h2"><p><strong>There is a new version of the <?php 
                echo NOTIFIER_THEME_NAME;
                ?>
 theme available.</strong> You have version <?php 
                echo $version;
                ?>
 installed. <strong>Please update to version <?php 
                echo $xml->latest;
                ?>
.</strong></p></div>
				<br />
				<?php 
            } else {
                // No new version available
                ?>
				<br />
				<div id="message" class="updated below-h2"><p><strong>Your theme is up to date.</strong> The latest version <?php 
                echo $version;
                ?>
 of <?php 
                echo NOTIFIER_THEME_NAME;
                ?>
 theme is installed.</strong></p></div>
				<br />
				<?php 
            }
            ?>
				<img style="float: left; margin: 0 20px 20px 0; border: 1px solid #ddd;" src="<?php 
            echo get_template_directory_uri() . '/screenshot.png';
            ?>
" width="320" />

				<div id="instructions">

	  			<h3>Update Download and Instructions</h3>
	  			<p>To update the theme you have to download the theme from your "Downloads" section on ThemeForest. Log into your account and download either the "All files & documentation" or only the "Installable WordPress file" package.</p>
	  			<p><strong>Please note:</strong> before updating the theme make a <strong>backup</strong> of the theme files inside your WordPress installation folder <strong>/wp-content/themes/<?php 
            echo NOTIFIER_THEME_FOLDER_NAME;
            ?>
/</strong></p>
	        <p>&nbsp;</p>
	  			<h4>You can now update the theme files in two ways:</h4>
	  			<ol>
	  				<li>
	  				  <p><strong>FTP Upload:</strong> Using your FTP program, upload the non-zipped theme folder (/invictus_x.x.x) from within the "All files & documentation" download package into the /wpcontent/themes/ folder on your server.</p>
	  				  <p>If you didn't make any changes to the theme files, you are free to overwrite the old theme files with the new ones without the risk of losing theme settings, pages, posts, etc. Backward compatibility is guaranteed.</p>
	          </li>
	  				<li>
	  				  <p><strong>WordPress Upload:</strong> Navigate to <em>Appearance > Add New Themes > Upload</em> and go to browse. Select the zipped theme file from the "Installable WordPress file" download. Click on the <em>Install Now</em> button and the theme will be uploaded and installed as a new theme.</p>
	            <p>Once the theme is installed, you need to activate it. Go to Appearance > Themes and activate your chosen theme.</p>
	            <p>
	              You will not loose any post, settings or options when you install the new theme version beside the old version. When you switch to the new version, all your posts, settings and options are used by the new version.
	            </p>
	  				</li>
	  			</ol>
	        <p>&nbsp;</p>
	        <p>Further reading on theme installations at the <a href="http://codex.wordpress.org/Using_Themes">WordPress Codex</a> - <a href="http://codex.wordpress.org/Using_Themes">http://codex.wordpress.org/Using_Themes</a></p>
				</div>

				<h3 class="title">Changelog</h3>
				<?php 
            echo $xml->changelog;
            ?>

			</div>

//.........这里部分代码省略.........
开发者ID:erdidoqan,项目名称:fishcom,代码行数:101,代码来源:update-notifier.php


示例14: update_notifier

function update_notifier()
{
    $xml = get_latest_theme_version(NOTIFIER_CACHE_INTERVAL);
    // Get the latest remote XML file on our server
    $theme_data = wp_get_theme();
    // Read theme current version from the style.css
    ?>
	
	<style>
		.update-nag { display: none; }
		#instructions {max-width: 670px;}
		h3.title {margin: 30px 0 0 0; padding: 30px 0 0 0; border-top: 1px solid #ddd;}
	</style>

	<div class="wrap">
	
		<div id="icon-tools" class="icon32"></div>
		<h2><?php 
    echo NOTIFIER_THEME_NAME;
    ?>
 Information</h2>
		<!--<div id="message" class="updated below-h2"><p><strong>There is a new version of the <?php 
    echo NOTIFIER_THEME_NAME;
    ?>
 available.</strong> You have version <?php 
    echo $theme_data['Version'];
    ?>
 installed. Update to version <?php 
    echo $xml->latest;
    ?>
.</p></div>-->

		<div id="instructions">

			<img style="float: left; margin: 0 20px 20px 0; border: 1px solid #ddd;" src="<?php 
    echo get_bloginfo('template_url') . '/screenshot.png';
    ?>
" />
			<h3>Theme Information</h3>
			<p>Please see the changelog below for information about the theme.</p>

			<?php 
    if ((double) $xml->latest > (double) $theme_data['Version']) {
        ?>
			<h3>Update Information</h3>
			<p><strong>There is a new version of the <?php 
        echo NOTIFIER_THEME_NAME;
        ?>
 available.</strong></p>
			<p>You have version <?php 
        echo $theme_data['Version'];
        ?>
 installed. Update to version <strong><?php 
        echo $xml->latest;
        ?>
</strong>.</p>
			<h3>Update Download and Instructions</h3>
			<p><strong>Please note:</strong> make a <strong>backup</strong> of the Theme inside your WordPress installation folder <strong>/wp-content/themes/<?php 
        echo NOTIFIER_THEME_FOLDER_NAME;
        ?>
/</strong></p>
			<p>To download the updated <?php 
        echo NOTIFIER_THEME_NAME;
        ?>
, please visit the <a href="http://webservices.it.ufl.edu">UF Web Services</a> site.</p>

			<ol>
				<li>Extract the zip's contents.</li>
				<li>Upload the files to a new folder in <strong>/wp-content/themes/</strong>.</li>
				<li>Update any files that you have customized.</li>
				<li>Log in to WordPress and switch to the new theme.</li>
				<li>Check 

鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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