<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[20736] trunk/wp-admin: Contextual help updates for themes.php and theme-install.php.</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg > ul, #logmsg > ol { margin-left: 0; margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://core.trac.wordpress.org/changeset/20736">20736</a></dd>
<dt>Author</dt> <dd>ryan</dd>
<dt>Date</dt> <dd>2012-05-07 17:26:16 +0000 (Mon, 07 May 2012)</dd>
</dl>

<h3>Log Message</h3>
<pre>Contextual help updates for themes.php and theme-install.php. Props TomAuger. fixes <a href="http://core.trac.wordpress.org/ticket/20515">#20515</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminthemeinstallphp">trunk/wp-admin/theme-install.php</a></li>
<li><a href="#trunkwpadminthemesphp">trunk/wp-admin/themes.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadminthemeinstallphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/theme-install.php (20735 => 20736)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/theme-install.php        2012-05-07 16:48:35 UTC (rev 20735)
+++ trunk/wp-admin/theme-install.php        2012-05-07 17:26:16 UTC (rev 20736)
</span><span class="lines">@@ -36,16 +36,27 @@
</span><span class="cx"> 
</span><span class="cx"> do_action('install_themes_pre_' . $tab); //Used to override the general interface, Eg, install or theme information.
</span><span class="cx"> 
</span><del>-$help = '&lt;p&gt;' . sprintf(__('You can find additional themes for your site by using the Theme Browser/Installer on this screen, which will display themes from the &lt;a href=&quot;%s&quot; target=&quot;_blank&quot;&gt;WordPress.org Theme Directory&lt;/a&gt;. These themes are designed and developed by third parties, are available free of charge, and are compatible with the license WordPress uses.'), 'http://wordpress.org/extend/themes/') . '&lt;/p&gt;';
-$help .= '&lt;p&gt;' . __('You can Search for themes by keyword, author, or tag, or can get more specific and search by criteria listed in the feature filter. Alternately, you can browse the themes that are Featured, Newest, or Recently Updated. When you find a theme you like, you can preview it or install it.') . '&lt;/p&gt;';
-$help .= '&lt;p&gt;' . __('You can Upload a theme manually if you have already downloaded its ZIP archive onto your computer (make sure it is from a trusted and original source). You can also do it the old-fashioned way and copy a downloaded theme&amp;#8217;s folder via FTP into your &lt;code&gt;/wp-content/themes&lt;/code&gt; directory.') . '&lt;/p&gt;';
</del><ins>+$help_overview = 
+        '&lt;p&gt;' . sprintf(__('You can find additional themes for your site by using the Theme Browser/Installer on this screen, which will display themes from the &lt;a href=&quot;%s&quot; target=&quot;_blank&quot;&gt;WordPress.org Theme Directory&lt;/a&gt;. These themes are designed and developed by third parties, are available free of charge, and are compatible with the license WordPress uses.'), 'http://wordpress.org/extend/themes/') . '&lt;/p&gt;' .
+        '&lt;p&gt;' . __('You can Search for themes by keyword, author, or tag, or can get more specific and search by criteria listed in the feature filter. Alternately, you can browse the themes that are Featured, Newest, or Recently Updated. When you find a theme you like, you can preview it or install it.') . '&lt;/p&gt;' .
+        '&lt;p&gt;' . __('You can Upload a theme manually if you have already downloaded its ZIP archive onto your computer (make sure it is from a trusted and original source). You can also do it the old-fashioned way and copy a downloaded theme&amp;#8217;s folder via FTP into your &lt;code&gt;/wp-content/themes&lt;/code&gt; directory.') . '&lt;/p&gt;';
</ins><span class="cx"> 
</span><span class="cx"> get_current_screen()-&gt;add_help_tab( array(
</span><span class="cx">         'id'      =&gt; 'overview',
</span><span class="cx">         'title'   =&gt; __('Overview'),
</span><del>-        'content' =&gt; $help
</del><ins>+        'content' =&gt; $help_overview
</ins><span class="cx"> ) );
</span><span class="cx"> 
</span><ins>+$help_installing =
+        '&lt;p&gt;' . __('Once you have generated a list of themes, you can preview and install any of them. Click on the thumbnail of the theme you&amp;#8217;re interested in previewing. It will open up in a full-screen Preview page to give you a better idea of how that theme will look.') . '&lt;/p&gt;' .
+        '&lt;p&gt;' . __('To install the theme so you can preview it with your site&amp;#8217;s content and customize its theme options, click the &quot;Install&quot; button at the top of the left-hand pane. The theme files will be downloaded to your website automatically. When this is complete, the theme is now available for activation, which you can do by clicking the &quot;Activate&quot; link, or by navigating to your Installed Themes page and clicking the &quot;Customize&quot; link under any installed theme&amp;#8217;s thumbnail image.') . '&lt;/p&gt;';
+
+get_current_screen()-&gt;add_help_tab( array(
+        'id'      =&gt; 'installing',
+        'title'   =&gt; __('Previewing and Installing'),
+        'content' =&gt; $help_installing
+) );
+
</ins><span class="cx"> get_current_screen()-&gt;set_help_sidebar(
</span><span class="cx">         '&lt;p&gt;&lt;strong&gt;' . __('For more information:') . '&lt;/strong&gt;&lt;/p&gt;' .
</span><span class="cx">         '&lt;p&gt;' . __('&lt;a href=&quot;http://codex.wordpress.org/Using_Themes#Adding_New_Themes&quot; target=&quot;_blank&quot;&gt;Documentation on Adding New Themes&lt;/a&gt;') . '&lt;/p&gt;' .
</span></span></pre></div>
<a id="trunkwpadminthemesphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/themes.php (20735 => 20736)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/themes.php        2012-05-07 16:48:35 UTC (rev 20735)
+++ trunk/wp-admin/themes.php        2012-05-07 17:26:16 UTC (rev 20736)
</span><span class="lines">@@ -38,12 +38,12 @@
</span><span class="cx"> if ( current_user_can( 'switch_themes' ) ) :
</span><span class="cx"> 
</span><span class="cx"> $help_manage = '&lt;p&gt;' . __('Aside from the default theme included with your WordPress installation, themes are designed and developed by third parties.') . '&lt;/p&gt;' .
</span><del>-        '&lt;p&gt;' . __('You can see your active theme at the top of the screen. Below are the other themes you have installed that are not currently in use. You can see what your site would look like with one of these themes by clicking the Preview link. To change themes, click the Activate link.') . '&lt;/p&gt;';
</del><ins>+        '&lt;p&gt;' . __('You can see your active theme at the top of the screen. Below are the other themes you have installed that are not currently in use. You can see what your site would look like with one of these themes by clicking the Customize link (see &quot;Previewing and Customizing&quot;, below). To change themes, click the Activate link.') . '&lt;/p&gt;';
</ins><span class="cx"> 
</span><span class="cx"> get_current_screen()-&gt;add_help_tab( array(
</span><span class="cx">         'id'      =&gt; 'overview',
</span><span class="cx">         'title'   =&gt; __('Overview'),
</span><del>-        'content' =&gt; $help_manage,
</del><ins>+        'content' =&gt; $help_manage
</ins><span class="cx"> ) );
</span><span class="cx"> 
</span><span class="cx"> if ( current_user_can( 'install_themes' ) ) {
</span><span class="lines">@@ -56,10 +56,24 @@
</span><span class="cx">         get_current_screen()-&gt;add_help_tab( array(
</span><span class="cx">                 'id'      =&gt; 'adding-themes',
</span><span class="cx">                 'title'   =&gt; __('Adding Themes'),
</span><del>-                'content' =&gt; $help_install,
</del><ins>+                'content' =&gt; $help_install
</ins><span class="cx">         ) );
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+if ( current_user_can( 'edit_theme_options' ) ) {
+        $help_customize =
+                '&lt;p&gt;' . __('Click on the &quot;Customize&quot; link under any theme to preview that theme and change theme options in a separate, full-screen view. Any installed theme can be previewed and customized in this way.') . '&lt;/p&gt;'.
+                '&lt;p&gt;' . __('The theme being previewed is fully interactive &amp;mdash; navigate to different pages to see how the theme handles posts, archives, and other page templates.') . '&lt;/p&gt;' .
+                '&lt;p&gt;' . __('In the left-hand pane of the Theme Customizer you can edit the theme settings. The settings will differ, depending on what theme features the theme being previewed supports. To accept the new settings and activate the theme all in one step, click the &quot;Save and Activate&quot; button at the bottom of the left-hand sidebar.') . '&lt;/p&gt;' .
+                '&lt;p&gt;' . __('When previewing on smaller monitors, you can use the &quot;Collapse&quot; icon at the bottom of the left-hand pane. This will hide the pane, giving you more room to preview your site in the new theme. To bring the pane back, click on the Collapse icon again.') . '&lt;/p&gt;';
+                
+        get_current_screen()-&gt;add_help_tab( array(
+                'id'                =&gt; 'customize-preview-themes',
+                'title'                =&gt; __('Previewing and Customizing'),
+                'content'        =&gt; $help_customize
+        ) );
+}
+
</ins><span class="cx"> get_current_screen()-&gt;set_help_sidebar(
</span><span class="cx">         '&lt;p&gt;&lt;strong&gt;' . __('For more information:') . '&lt;/strong&gt;&lt;/p&gt;' .
</span><span class="cx">         '&lt;p&gt;' . __('&lt;a href=&quot;http://codex.wordpress.org/Using_Themes&quot; target=&quot;_blank&quot;&gt;Documentation on Using Themes&lt;/a&gt;') . '&lt;/p&gt;' .
</span></span></pre>
</div>
</div>

</body>
</html>