WordPress.org

Plugin Directory

Changeset 1783384


Ignore:
Timestamp:
12/08/2017 03:09:31 PM (16 months ago)
Author:
euthelup
Message:

tagging version 0.5.0

Location:
wp-custom-body-class
Files:
13 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wp-custom-body-class/tags/0.5.0

    • Property svn:ignore
      •  

        old new  
        77pxg.json
        88README.md
         9.git
  • wp-custom-body-class/tags/0.5.0/class-custom_body_class.php

    r1503482 r1783384  
    33 * CustomBodyClass.
    44 * @package   CustomBodyClass
    5  * @author    Andrei Lupu <andrei.lupu@pixelgrade.com>
     5 * @author    Andrei Lupu <euthelup@gmail.com>
    66 * @license   GPL-2.0+
    77 * @link      http://andrei-lupu.com
     
    1212 * Plugin class.
    1313 * @package   CustomBodyClass
    14  * @author    Andrei Lupu <andrei.lupu@pixelgrade.com>
     14 * @author    Andrei Lupu <euthelup@gmail.com>
    1515 */
    1616class CustomBodyClassPlugin {
     
    2121     * @const   string
    2222     */
    23     protected $version = '0.4.0';
     23    protected $version = '0.5.0';
    2424
    2525    /**
     
    330330        }
    331331
     332        if ( ! empty( $this->plugin_settings['global_class'] ) ) {
     333
     334            // for the non mobil version you should use the :not() selector
     335            if ( wp_is_mobile() ) {
     336                $classes[] = sanitize_html_class( 'mobile-' . $this->plugin_settings['global_class'] );
     337            }
     338
     339            $classes[] = sanitize_html_class( $this->plugin_settings['global_class'] );
     340        }
     341
    332342        // return the $classes array
    333343        return $classes;
  • wp-custom-body-class/tags/0.5.0/custom_body_class.php

    r1503492 r1783384  
    11<?php
    22/*
    3 * @package   CustomBodyClass
    4 * @author    PixelGrade <[email protected]>
    5 * @license   GPL-2.0+
    6 * @link      http://andrei-lupu.com
    7 * @copyright 2014 PixelGrade
    8 *
    9 * @wordpress-plugin
    103Plugin Name: Custom Body Class
    11 Plugin URI:  http://andrei-lupu.com
     4Plugin URI:  https://a.lupu.pro
    125Description: A plugin which allows you to add a custom CSS class the HTML body tag
    13 Version: 0.4.0
     6Version: 0.5.0
    147Author: Andrei Lupu
    15 Author URI: http://andrei-lupu.com
    16 Author Email: andrei.lupu@pixelgrade.com
     8Author URI: https://a.lupu.pro
     9Author Email: euthelup@gmail.com
    1710Text Domain: custom_body_class
    1811License:     GPL-2.0+
  • wp-custom-body-class/tags/0.5.0/plugin-defaults.php

    r1244176 r1783384  
    88    'allow_edit_on_post_page' => 1,
    99    'enable_autocomplete' => 1,
     10    'global_class' => '',
    1011
    1112); # config
  • wp-custom-body-class/tags/0.5.0/readme.txt

    r1503763 r1783384  
    22Contributors: euthelup
    33Tags: custom, body, css, class
    4 Requires at least: 4.0.0
    5 Tested up to: 4.6.0
    6 Stable tag: 0.4.0
     4Requires at least: 4.7.0
     5Tested up to: 4.9.1
     6Stable tag: 0.5.0
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2424== Changelog ==
    2525
     26= 0.5.0 =
     27* Add an option for a global class
     28
    2629= 0.4.0 =
    2730* Add support for classes on mobile devices
  • wp-custom-body-class/tags/0.5.0/settings/general.php

    r1244176 r1783384  
    1717            'desc' => __( 'Would you like to get auto completed values?' ),
    1818        ),
     19
     20        'global_class' => array(
     21            'label'          => __( 'Global Class', 'custom_body_class_txtd' ),
     22            'default'        => '',
     23            'type'           => 'text',
     24            'description' => __( 'If you need a temporary CSS class on the entire website here is the place' ),
     25        ),
     26       
    1927        'display_on_post_types' => array(
    2028            'label'          => __( 'Post Types', 'custom_body_class_txtd' ),
  • wp-custom-body-class/tags/0.5.0/views/admin.php

    r1207019 r1783384  
    77 *
    88 * @package   PixTypes
    9  * @author    Andrei Lupu <andrei.lupu@pixelgrade.com>
     9 * @author    Andrei Lupu <euthelup@gmail.com>
    1010 * @license   GPL-2.0+
    1111 * @link      http://andrei-lupu.com
  • wp-custom-body-class/trunk

    • Property svn:ignore
      •  

        old new  
        77pxg.json
        88README.md
         9.git
  • wp-custom-body-class/trunk/class-custom_body_class.php

    r1503482 r1783384  
    33 * CustomBodyClass.
    44 * @package   CustomBodyClass
    5  * @author    Andrei Lupu <andrei.lupu@pixelgrade.com>
     5 * @author    Andrei Lupu <euthelup@gmail.com>
    66 * @license   GPL-2.0+
    77 * @link      http://andrei-lupu.com
     
    1212 * Plugin class.
    1313 * @package   CustomBodyClass
    14  * @author    Andrei Lupu <andrei.lupu@pixelgrade.com>
     14 * @author    Andrei Lupu <euthelup@gmail.com>
    1515 */
    1616class CustomBodyClassPlugin {
     
    2121     * @const   string
    2222     */
    23     protected $version = '0.4.0';
     23    protected $version = '0.5.0';
    2424
    2525    /**
     
    330330        }
    331331
     332        if ( ! empty( $this->plugin_settings['global_class'] ) ) {
     333
     334            // for the non mobil version you should use the :not() selector
     335            if ( wp_is_mobile() ) {
     336                $classes[] = sanitize_html_class( 'mobile-' . $this->plugin_settings['global_class'] );
     337            }
     338
     339            $classes[] = sanitize_html_class( $this->plugin_settings['global_class'] );
     340        }
     341
    332342        // return the $classes array
    333343        return $classes;
  • wp-custom-body-class/trunk/custom_body_class.php

    r1503492 r1783384  
    11<?php
    22/*
    3 * @package   CustomBodyClass
    4 * @author    PixelGrade <[email protected]>
    5 * @license   GPL-2.0+
    6 * @link      http://andrei-lupu.com
    7 * @copyright 2014 PixelGrade
    8 *
    9 * @wordpress-plugin
    103Plugin Name: Custom Body Class
    11 Plugin URI:  http://andrei-lupu.com
     4Plugin URI:  https://a.lupu.pro
    125Description: A plugin which allows you to add a custom CSS class the HTML body tag
    13 Version: 0.4.0
     6Version: 0.5.0
    147Author: Andrei Lupu
    15 Author URI: http://andrei-lupu.com
    16 Author Email: andrei.lupu@pixelgrade.com
     8Author URI: https://a.lupu.pro
     9Author Email: euthelup@gmail.com
    1710Text Domain: custom_body_class
    1811License:     GPL-2.0+
  • wp-custom-body-class/trunk/plugin-defaults.php

    r1244176 r1783384  
    88    'allow_edit_on_post_page' => 1,
    99    'enable_autocomplete' => 1,
     10    'global_class' => '',
    1011
    1112); # config
  • wp-custom-body-class/trunk/readme.txt

    r1503763 r1783384  
    22Contributors: euthelup
    33Tags: custom, body, css, class
    4 Requires at least: 4.0.0
    5 Tested up to: 4.6.0
    6 Stable tag: 0.4.0
     4Requires at least: 4.7.0
     5Tested up to: 4.9.1
     6Stable tag: 0.5.0
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2424== Changelog ==
    2525
     26= 0.5.0 =
     27* Add an option for a global class
     28
    2629= 0.4.0 =
    2730* Add support for classes on mobile devices
  • wp-custom-body-class/trunk/settings/general.php

    r1244176 r1783384  
    1717            'desc' => __( 'Would you like to get auto completed values?' ),
    1818        ),
     19
     20        'global_class' => array(
     21            'label'          => __( 'Global Class', 'custom_body_class_txtd' ),
     22            'default'        => '',
     23            'type'           => 'text',
     24            'description' => __( 'If you need a temporary CSS class on the entire website here is the place' ),
     25        ),
     26       
    1927        'display_on_post_types' => array(
    2028            'label'          => __( 'Post Types', 'custom_body_class_txtd' ),
  • wp-custom-body-class/trunk/views/admin.php

    r1207019 r1783384  
    77 *
    88 * @package   PixTypes
    9  * @author    Andrei Lupu <andrei.lupu@pixelgrade.com>
     9 * @author    Andrei Lupu <euthelup@gmail.com>
    1010 * @license   GPL-2.0+
    1111 * @link      http://andrei-lupu.com
Note: See TracChangeset for help on using the changeset viewer.