Plugin Directory

Changeset 1159951


Ignore:
Timestamp:
05/13/2015 10:31:05 PM (11 years ago)
Author:
tychay
Message:

Added Portuguese translation (via pedro-mendonca)

Location:
one-click-child-theme/trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • one-click-child-theme/trunk/one-click-child-theme.php

    r1122710 r1159951  
    1212License URI:  https://www.gnu.org/licenses/gpl-2.0.html
    1313Text Domain:  one-click-child-theme
    14 //Domain Path:
     14Domain Path: /languages
    1515
    1616**************************************************************************/
     
    3434 */
    3535if (!is_admin()) { return; }
     36/**
     37* Load textdomain
     38 */
     39function _load_textdomain() {
     40    load_plugin_textdomain( 'one-click-child-theme', false, basename(dirname(__FILE__)) . '/languages' );
     41}
     42add_action( 'init', '_load_textdomain' );
    3643/**
    3744 * The namespace for the One-Click Child Theme Plugin
  • one-click-child-theme/trunk/readme.txt

    r1122710 r1159951  
    11=== 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
     2Contributors: tychay 
     3Donate link: http://www.kiva.org/lender/tychay 
     4Tags: theme, child theme, child theme creator, child theme creator, CSS, stylesheet, custom theme, customize theme, shared hosting 
     5Requires at least: 3.0 
     6Tested up to: 4.1.1 
     7Stable tag: trunk 
    88
    99Adds a Theme option to any active theme allowing you to make a child theme.
     
    2929to allow you to child theme the page. (It’s not really one-click, though.)
    3030
    31 Inspired by @janeforshorts and @designsimply's WordCamp SF 2011 talk on CSS
     31Inspired by @janeforshort's and @designsimply's WordCamp SF 2011 talk on CSS
    3232theming as requested by @sfgirl for [her blog](http://pintsizedmusings.com/).
    3333
     
    5858= I already modified my CSS in the existing theme? How do I use One Click Child Theme to fix this? =
    5959
    60 You can wait for the theme to get updated and have it break it, of you can:
     60You can wait for the theme to get updated and have it break it, or you can:
    6161
    62621. Go through the steps for installing and running the plugin above to create a child theme
     
    67676. Paste your changes to the end of the file.
    6868
    69 = Your plugin broken my site! =
     69= Your plugin broke my site! =
    7070
    7171I didn't think that's possible, but if so, I want to fix it!
     
    9999= Can the plugin be deleted after I create a Child Theme with it? =
    100100
    101 Yes. The purpose of the plugin is fulfilled. Congratulations! Personally, I'd
    102 disable it, instead of delete it.
    103 
    104 Having said that, there are some things that it'll help with after your child
    105 theme's birth. Think of it as a parenting guide for your new child theme.
     101Yes. The main purpose of the plugin is fulfilled. Congratulations!
     102(Personally, I'd disable it, instead of delete it.)
     103
     104Having said that, there are some things that this plugin help with after your
     105child theme's birth. Think of it as a parenting guide for your new child theme.
    106106
    107107= Features like? =
     
    116116= What does the "Repair Child Theme" button do? =
    117117
    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].
     118WordPress changed the [recommended way of handling parent references in child themes](http://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme).
    119119If this plugin detects your child theme was done in the old style, it shows
    120120this button. Clicking on it will make the plugin attempt a repair into the
     
    132132I wrote this plugin back **during** a talk at WordCamp SF 2011 about CSS
    133133Themeing 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
     134some things… for years. Sorry about that! The debugging code didn't affect any
     135behavior — it was a sign of me being lazy and not realizing that the plugin
     136would have tens of thousands of avid users!
     137
     138= The theme screenshot service doesn't seem to be working. =
     139
     140First of all, is the blog accessible from the public Internet? If not, then
     141that is the problem.
     142
     143But sometimes, even then, mshots seems a bit on the slow side. The plugin
     144uses WordPress.com’s mShots service. You know, I worked at Automattic for years
     145on WordPress.com and I still haven't quite figured out mShots. Eventually
     146I've gotten the animated loading GIF to be replaced by a real retina-ready JPEG
     147screenshot of my blog homepage. Trust me, when it works, it works great! But
     148the experience may be a little like trying to get a vending machine to accept
     149a crumpled dollar bill — Americans know what I mean. Suffice it to say that
     150you 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
     154What? People have forked my idea because I left [Automattic](http://automattic.com)
     155for [Wikimedia](http://wikimediafoundation.org/wiki/Home) three years ago?
     156This means war! Other plugins, you're going down! Steel yourself for the
     157pent-up aggression of a pointy-haired boss being kept away from a
     158programming console for years.
     159
     160As 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
     162plugin taste your parents knew and loved! Plus, I have
    147163four-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**!
     164baby picture of me and my brother on the banner. Also, this plugin strikes
     165the right balance of features, is free (no "pro" version and not even a PayPal
     166link), and (now that I've figured out how to admin the plugin page), I've
     167been adding volunteers to support it. Even if I sucked into the vortex of
     168middle management again (isn't going to happen, that s--t is **EVIL**) this
     169plugin will live forever in the hearts and minds of bloggers everywhere!
    153170
    154171Which reminds me, if you want to help out, we're cool with that. Like WordPress
    155 itself, this is a volunteer endeavor.
     172itself, this is a volunteer endeavor. Contact us in the support pages and we'll
     173hook you up!
    156174
    157175== ChangeLog ==
    158176
     177**Version 1.7**
     178
     179* Documentation: FAQ fixes
     180
    159181**Version 1.6**
    160182
    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)
    162184* Feature: Redirect to theme page on child theme creation
    163185* Feature: Successful child theme creation suggests you edit its `style.css` file
     
    173195
    174196* 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)
    176198* Design: Upgrade look of form to resemble most admin forms.
    177199* Bug Fix: Properly shows a status message on success.
     
    201223
    202224* Initial release
    203 * 456789001234567890012345678900123456789001234567890012345678900123456789001234567890
    204 
     225
  • one-click-child-theme/trunk/templates/is_child_already.php

    r1122710 r1159951  
    5454
    5555    <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>
    5757    <form action="admin-post.php" method="post" id="mshot_homepage_form">
    5858        <input type="hidden" name="action" value="<?php echo $this->_mshotSiteFormId; ?>" />
Note: See TracChangeset for help on using the changeset viewer.