WordPress.org

Plugin Directory

Changeset 435231


Ignore:
Timestamp:
09/08/11 14:25:58 (3 years ago)
Author:
GaryJ
Message:

Documentation improvements.

Location:
genesis-js-no-js
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • genesis-js-no-js/tags/1.0.1/genesis-js-no-js.php

    r392259 r435231  
    3333     * Holds copy of instance, so other plugins can remove our hooks. 
    3434     * 
    35      * @since 1.0 
     35     * @since 1.0.0 
    3636     * @link http://core.trac.wordpress.org/attachment/ticket/16149/query-standard-format-posts.php 
    3737     * @link http://twitter.com/#!/markjaquith/status/66862769030438912 
     
    4444     * Constructor. 
    4545     * 
    46      * @since 1.0 
     46     * @since 1.0.0 
    4747     */ 
    4848    public function __construct() { 
     
    5454     * Add action and filter. 
    5555     * 
    56      * @since 1.0 
     56     * @since 1.0.0 
    5757     */ 
    5858    public function init() { 
     
    6464     * Add 'no-js' class to the body class values. 
    6565     * 
    66      * @since 1.0 
     66     * @since 1.0.0 
    6767     * 
    6868     * @param array $classes Existing classes 
     
    7777     * Echo out the script that changes 'no-js' class to 'js'. 
    7878     * 
    79      * @since 1.0 
     79     * @since 1.0.0 
    8080     */ 
    8181    public function script() { 
  • genesis-js-no-js/tags/1.0.1/readme.txt

    r424110 r435231  
    77Stable tag: 1.0.1 
    88 
    9 Make front-end styling based on whether JS is enabled or not easier for child themes on the Genesis theme framework. 
     9Make front-end styling easier for child themes on the Genesis Framework based on whether JavaScript is enabled or not. 
    1010 
    1111== Description == 
    1212 
    13 This plugin is only useful if you're using a child theme of the <a href="http://genesis-theme-framework.com/">Genesis Theme</a>. 
     13Make front-end styling easier for child themes on the <a href="http://genesis-theme-framework.com/">Genesis Framework</a> based on whether JavaScript is enabled or not. 
    1414 
    15 Adds a `no-js` body class to the front-end, and a script on `genesis_before` which immediately changes the class to `js` if JavaScript is enabled. This is how WP does things on the back-end, to allow different styles for the same elements depending if JavaScript is active or not. 
     15Adds a `no-js` body class to the front-end, and a script on `genesis_before` which immediately changes the class to `js` if JavaScript is enabled. 
     16This is how WP does things on the back-end, to allow different styles for the same elements depending if JavaScript is active or not. 
     17 
     18This plugin is only useful if you're using a child theme of the <a href="http://genesis-theme-framework.com/">Genesis Framework</a> since it needs to use the `genesis_before` hook. 
    1619 
    1720== Installation == 
     
    2831WordPress uses this to apply different styles to the same elements, depending on whether JavaScript is present or not. 
    2932 
    30 This plugin recreates the same effect, but for the front-end of Genesis child themes. 
     33This plugin recreates the same effect, but for the front-end of <a href="http://genesis-theme-framework.com/">Genesis Framework</a> child themes. 
    3134 
    3235= Shouldn't the script be at the end of the page? = 
    3336 
    34 Usually, yes, but it's a fairly small script, so doesn't block rendering of other content for any noticeable length of time. 
     37Usually, yes, but it's a fairly small script, so does not block rendering of other content for any noticeable length of time. 
    3538 
    36 Doing it immediately also reduces a flash of incorrectly styled content, as the page doesn't load with `no-js` styles, then switch to `js` once everything has finished loading. 
     39Doing it immediately also reduces a flash of incorrectly styled content, as the page does not load with `no-js` styles, then switch to `js` once everything has finished loading. 
    3740 
    3841== Changelog == 
  • genesis-js-no-js/trunk/genesis-js-no-js.php

    r392259 r435231  
    3333     * Holds copy of instance, so other plugins can remove our hooks. 
    3434     * 
    35      * @since 1.0 
     35     * @since 1.0.0 
    3636     * @link http://core.trac.wordpress.org/attachment/ticket/16149/query-standard-format-posts.php 
    3737     * @link http://twitter.com/#!/markjaquith/status/66862769030438912 
     
    4444     * Constructor. 
    4545     * 
    46      * @since 1.0 
     46     * @since 1.0.0 
    4747     */ 
    4848    public function __construct() { 
     
    5454     * Add action and filter. 
    5555     * 
    56      * @since 1.0 
     56     * @since 1.0.0 
    5757     */ 
    5858    public function init() { 
     
    6464     * Add 'no-js' class to the body class values. 
    6565     * 
    66      * @since 1.0 
     66     * @since 1.0.0 
    6767     * 
    6868     * @param array $classes Existing classes 
     
    7777     * Echo out the script that changes 'no-js' class to 'js'. 
    7878     * 
    79      * @since 1.0 
     79     * @since 1.0.0 
    8080     */ 
    8181    public function script() { 
  • genesis-js-no-js/trunk/readme.txt

    r424110 r435231  
    77Stable tag: 1.0.1 
    88 
    9 Make front-end styling based on whether JS is enabled or not easier for child themes on the Genesis theme framework. 
     9Make front-end styling easier for child themes on the Genesis Framework based on whether JavaScript is enabled or not. 
    1010 
    1111== Description == 
    1212 
    13 This plugin is only useful if you're using a child theme of the <a href="http://genesis-theme-framework.com/">Genesis Theme</a>. 
     13Make front-end styling easier for child themes on the <a href="http://genesis-theme-framework.com/">Genesis Framework</a> based on whether JavaScript is enabled or not. 
    1414 
    15 Adds a `no-js` body class to the front-end, and a script on `genesis_before` which immediately changes the class to `js` if JavaScript is enabled. This is how WP does things on the back-end, to allow different styles for the same elements depending if JavaScript is active or not. 
     15Adds a `no-js` body class to the front-end, and a script on `genesis_before` which immediately changes the class to `js` if JavaScript is enabled. 
     16This is how WP does things on the back-end, to allow different styles for the same elements depending if JavaScript is active or not. 
     17 
     18This plugin is only useful if you're using a child theme of the <a href="http://genesis-theme-framework.com/">Genesis Framework</a> since it needs to use the `genesis_before` hook. 
    1619 
    1720== Installation == 
     
    2831WordPress uses this to apply different styles to the same elements, depending on whether JavaScript is present or not. 
    2932 
    30 This plugin recreates the same effect, but for the front-end of Genesis child themes. 
     33This plugin recreates the same effect, but for the front-end of <a href="http://genesis-theme-framework.com/">Genesis Framework</a> child themes. 
    3134 
    3235= Shouldn't the script be at the end of the page? = 
    3336 
    34 Usually, yes, but it's a fairly small script, so doesn't block rendering of other content for any noticeable length of time. 
     37Usually, yes, but it's a fairly small script, so does not block rendering of other content for any noticeable length of time. 
    3538 
    36 Doing it immediately also reduces a flash of incorrectly styled content, as the page doesn't load with `no-js` styles, then switch to `js` once everything has finished loading. 
     39Doing it immediately also reduces a flash of incorrectly styled content, as the page does not load with `no-js` styles, then switch to `js` once everything has finished loading. 
    3740 
    3841== Changelog == 
Note: See TracChangeset for help on using the changeset viewer.