Changeset 1159951
- Timestamp:
- 05/13/2015 10:31:05 PM (11 years ago)
- Location:
- one-click-child-theme/trunk
- Files:
-
- 4 added
- 3 edited
-
languages (added)
-
languages/one-click-child-theme-pt_PT.mo (added)
-
languages/one-click-child-theme-pt_PT.po (added)
-
languages/one-click-child-theme.pot (added)
-
one-click-child-theme.php (modified) (2 diffs)
-
readme.txt (modified) (9 diffs)
-
templates/is_child_already.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
one-click-child-theme/trunk/one-click-child-theme.php
r1122710 r1159951 12 12 License URI: https://www.gnu.org/licenses/gpl-2.0.html 13 13 Text Domain: one-click-child-theme 14 //Domain Path: 14 Domain Path: /languages 15 15 16 16 **************************************************************************/ … … 34 34 */ 35 35 if (!is_admin()) { return; } 36 /** 37 * Load textdomain 38 */ 39 function _load_textdomain() { 40 load_plugin_textdomain( 'one-click-child-theme', false, basename(dirname(__FILE__)) . '/languages' ); 41 } 42 add_action( 'init', '_load_textdomain' ); 36 43 /** 37 44 * The namespace for the One-Click Child Theme Plugin -
one-click-child-theme/trunk/readme.txt
r1122710 r1159951 1 1 === One-Click Child Theme === 2 Contributors: tychay 3 Donate link: http://www.kiva.org/lender/tychay 4 Tags: theme, child theme, child theme creator, child theme creator, CSS, stylesheet, custom theme, customize theme, shared hosting 5 Requires at least: 3.0 6 Tested up to: 4.1.1 7 Stable tag: trunk 2 Contributors: tychay 3 Donate link: http://www.kiva.org/lender/tychay 4 Tags: theme, child theme, child theme creator, child theme creator, CSS, stylesheet, custom theme, customize theme, shared hosting 5 Requires at least: 3.0 6 Tested up to: 4.1.1 7 Stable tag: trunk 8 8 9 9 Adds a Theme option to any active theme allowing you to make a child theme. … … 29 29 to allow you to child theme the page. (It’s not really one-click, though.) 30 30 31 Inspired by @janeforshort ‘s and @designsimply's WordCamp SF 2011 talk on CSS31 Inspired by @janeforshort's and @designsimply's WordCamp SF 2011 talk on CSS 32 32 theming as requested by @sfgirl for [her blog](http://pintsizedmusings.com/). 33 33 … … 58 58 = I already modified my CSS in the existing theme? How do I use One Click Child Theme to fix this? = 59 59 60 You can wait for the theme to get updated and have it break it, o fyou can:60 You can wait for the theme to get updated and have it break it, or you can: 61 61 62 62 1. Go through the steps for installing and running the plugin above to create a child theme … … 67 67 6. Paste your changes to the end of the file. 68 68 69 = Your plugin broke nmy site! =69 = Your plugin broke my site! = 70 70 71 71 I didn't think that's possible, but if so, I want to fix it! … … 99 99 = Can the plugin be deleted after I create a Child Theme with it? = 100 100 101 Yes. The purpose of the plugin is fulfilled. Congratulations! Personally, I'd102 disable it, instead of delete it. 103 104 Having said that, there are some things that it'll help with after your child105 theme's birth. Think of it as a parenting guide for your new child theme.101 Yes. The main purpose of the plugin is fulfilled. Congratulations! 102 (Personally, I'd disable it, instead of delete it.) 103 104 Having said that, there are some things that this plugin help with after your 105 child theme's birth. Think of it as a parenting guide for your new child theme. 106 106 107 107 = Features like? = … … 116 116 = What does the "Repair Child Theme" button do? = 117 117 118 WordPress changed the [recommended way of handling parent references in child themes] [http://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme].118 WordPress changed the [recommended way of handling parent references in child themes](http://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme). 119 119 If this plugin detects your child theme was done in the old style, it shows 120 120 this button. Clicking on it will make the plugin attempt a repair into the … … 132 132 I wrote this plugin back **during** a talk at WordCamp SF 2011 about CSS 133 133 Themeing in order to help the person sitting next to me. I just didn't get to 134 some things… for years. Sorry about that! The debugging code didn't do affect any behavior, it was a sign of me being lazy and not realizing that the plugin 135 would have tens of thousands of avid users! :-( 136 137 = Why should I use your plugin and not [<insert competitor here> ](https://wordpress.org/plugins/search.php?q=child+theme) 138 139 What? People have forked my idea because I left Automattic (WordPress) for 140 Wikimedia (Wikipedia) three years ago? This means war! Other plugins, you're 141 going down! Steel yourself for the pent-up aggression of a pointy-haired boss 142 being kept away from the programming console for years. 143 144 As to why this plugin is the best, using anything else is like drinking 145 [New Coke](http://en.wikipedia.org/wiki/New_Coke) to OCCT's Coke Classic. 146 Experience the original plugin taste your parents knew and loved! Plus, I have 134 some things… for years. Sorry about that! The debugging code didn't affect any 135 behavior — it was a sign of me being lazy and not realizing that the plugin 136 would have tens of thousands of avid users! 137 138 = The theme screenshot service doesn't seem to be working. = 139 140 First of all, is the blog accessible from the public Internet? If not, then 141 that is the problem. 142 143 But sometimes, even then, mshots seems a bit on the slow side. The plugin 144 uses WordPress.com’s mShots service. You know, I worked at Automattic for years 145 on WordPress.com and I still haven't quite figured out mShots. Eventually 146 I've gotten the animated loading GIF to be replaced by a real retina-ready JPEG 147 screenshot of my blog homepage. Trust me, when it works, it works great! But 148 the experience may be a little like trying to get a vending machine to accept 149 a crumpled dollar bill — Americans know what I mean. Suffice it to say that 150 you might have to hit reload a couple times, or just fiddle around a bit. 151 152 = Why should I use your plugin and not [_insert competitor here_](https://wordpress.org/plugins/search.php?q=child+theme) = 153 154 What? People have forked my idea because I left [Automattic](http://automattic.com) 155 for [Wikimedia](http://wikimediafoundation.org/wiki/Home) three years ago? 156 This means war! Other plugins, you're going down! Steel yourself for the 157 pent-up aggression of a pointy-haired boss being kept away from a 158 programming console for years. 159 160 As to why this plugin is the best? OCCT is Coke Classic to every other plugin's 161 [New Coke](http://en.wikipedia.org/wiki/New_Coke). Experience the original 162 plugin taste your parents knew and loved! Plus, I have 147 163 four-year old screenshots on my theme page, a way cooler plugin icon, and a 148 baby picture of me and my brother on the banner. Also, this plugin is free 149 (no "pro" version and not even a PayPal link), strikes the right balance of 150 features, and (now that I've figured out how to admin the plugin page), I've 151 been adding volunteers to support it even if I sucked into the vortex of 152 middle management again — isn't going to happen, that s--t is **EVIL**! 164 baby picture of me and my brother on the banner. Also, this plugin strikes 165 the right balance of features, is free (no "pro" version and not even a PayPal 166 link), and (now that I've figured out how to admin the plugin page), I've 167 been adding volunteers to support it. Even if I sucked into the vortex of 168 middle management again (isn't going to happen, that s--t is **EVIL**) this 169 plugin will live forever in the hearts and minds of bloggers everywhere! 153 170 154 171 Which reminds me, if you want to help out, we're cool with that. Like WordPress 155 itself, this is a volunteer endeavor. 172 itself, this is a volunteer endeavor. Contact us in the support pages and we'll 173 hook you up! 156 174 157 175 == ChangeLog == 158 176 177 **Version 1.7** 178 179 * Documentation: FAQ fixes 180 159 181 **Version 1.6** 160 182 161 * Feature: Added ability to generate theme screenshots 183 * Feature: Added ability to generate theme screenshots (thanks [@janeforshort/@jenmylo](https://jane.wordpress.com/) for the idea) 162 184 * Feature: Redirect to theme page on child theme creation 163 185 * Feature: Successful child theme creation suggests you edit its `style.css` file … … 173 195 174 196 * Feature: Added ability to repair child theme 175 * Feature: Added ability to copy any template file from parent theme .197 * Feature: Added ability to copy any template file from parent theme (thanks [Michael Rawlings](http://michaelrawlins.co.uk) for the idea) 176 198 * Design: Upgrade look of form to resemble most admin forms. 177 199 * Bug Fix: Properly shows a status message on success. … … 201 223 202 224 * Initial release 203 * 456789001234567890012345678900123456789001234567890012345678900123456789001234567890 204 225 -
one-click-child-theme/trunk/templates/is_child_already.php
r1122710 r1159951 54 54 55 55 <h3><?php esc_html_e('Screenshot',self::_SLUG) ?></h3> 56 <div class="copy"><?php esc_html_e( 'By default One-Click Child theme uses the parent theme’s screenshot. You can use WordPress.com’s mshot service to replace the current child theme’s screenshot with a screenshot of your current web site’s homepage (if publicly accessible over the web).', self::_SLUG ); ?></div>56 <div class="copy"><?php esc_html_e( 'By default One-Click Child Theme uses the parent theme’s screenshot. You can use WordPress.com’s mshot service to replace the current child theme’s screenshot with a screenshot of your current web site’s homepage (if publicly accessible over the web).', self::_SLUG ); ?></div> 57 57 <form action="admin-post.php" method="post" id="mshot_homepage_form"> 58 58 <input type="hidden" name="action" value="<?php echo $this->_mshotSiteFormId; ?>" />
Note: See TracChangeset
for help on using the changeset viewer.