Plugin Directory

Changeset 2316707

Timestamp:
06/02/2020 03:43:45 PM (4 years ago)
Author:
euthelup
Message:

Tagging version 0.7.2

Location:
wp-custom-body-class
Files:
6 edited
22 copied

Legend:

Unmodified
Added
Removed
  • wp-custom-body-class/tags/0.7.2/class-custom_body_class.php

    r2118841 r2316707  
    55 * @author    Andrei Lupu <euthelup@gmail.com>
    66 * @license   GPL-2.0+
    7  * @link      http://andrei-lupu.com
     7 * @link      http
    88 * @copyright 2014 Andrei Lupu
    99 */
     
    2121     * @const   string
    2222     */
    23     protected $version = '0.6.0';
     23    protected $version = '0.';
    2424
    2525    /**
     
    8787            return;
    8888        }
    89         if ( isset( $this->plugin_settings['admins_only'] ) && $this->plugin_settings['admins_only'] === "1" && ! current_user_can( 'manage_options' ) ) {
     89
     90        if (
     91            isset( $this->plugin_settings['admins_only'] )
     92            && $this->plugin_settings['admins_only'] === "1"
     93            && ! current_user_can( 'manage_options' )
     94        ) {
    9095            return;
    9196        }
     
    112117            ), $this->version );
    113118            global $post;
    114             if ( isset( $this->plugin_settings['enable_autocomplete'] ) && $this->plugin_settings['enable_autocomplete'] ) {
     119            if ( isset( $this->plugin_settings['enable_autocomplete'] ) && $this->plugin_settings['enable_autocomplete'] ) {
    115120                $values = $this->get_unique_post_meta_values();
    116 //              if ( ! empty ( $values ) ) {
    117121                $val = wp_localize_script( $this->plugin_slug . '-admin-script', 'custom_body_class_post_values', $values );
    118 //              }
    119             }
    120         }
    121     }
    122 
     122            }
     123        }
     124    }
    123125
    124126    /**
     
    161163            return false;
    162164        }
    163 
    164165
    165166        if ( $new_edit == "edit" ) {
  • wp-custom-body-class/tags/0.7.2/custom_body_class.php

    r2123377 r2316707  
    44Plugin URI:  https://a.lup.dev
    55Description: A plugin which allows you to add a custom CSS class the HTML body tag
    6 Version: 0.7.1
     6Version: 0.7.
    77Author: Andrei Lupu
    88Author URI: https://a.lup.dev
  • wp-custom-body-class/tags/0.7.2/plugin-defaults.php

    r2016871 r2316707  
    66
    77    'display_on_post_types'   => array('post' => 'on', 'page' => 'on'),
    8     'allow_edit_on_post_page' => 1,
    9     'admins_only'             => 0,
    10     'enable_autocomplete'     => 1,
     8    'allow_edit_on_post_page' => ,
     9    'admins_only'             => ,
     10    'enable_autocomplete'     => ,
    1111    'global_class'            => '',
    1212
  • wp-custom-body-class/tags/0.7.2/readme.txt

    r2123377 r2316707  
    33Tags: custom, body, css, class
    44Requires at least: 4.9.0
    5 Tested up to: 5.2.0
    6 Stable tag: 0.7.1
     5Tested up to: 5.
     6Stable tag: 0.7.
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2323
    2424== Changelog ==
     25
     26
     27
    2528
    2629= 0.7.1 =
  • wp-custom-body-class/tags/0.7.2/views/admin.php

    r2118841 r2316707  
    99 * @author    Andrei Lupu <euthelup@gmail.com>
    1010 * @license   GPL-2.0+
    11  * @link      http://andrei-lupu.com
     11 * @link      http
    1212 * @copyright 2013 Pixel Grade Media
    1313 */
  • wp-custom-body-class/trunk/class-custom_body_class.php

    r2118841 r2316707  
    55 * @author    Andrei Lupu <euthelup@gmail.com>
    66 * @license   GPL-2.0+
    7  * @link      http://andrei-lupu.com
     7 * @link      http
    88 * @copyright 2014 Andrei Lupu
    99 */
     
    2121     * @const   string
    2222     */
    23     protected $version = '0.6.0';
     23    protected $version = '0.';
    2424
    2525    /**
     
    8787            return;
    8888        }
    89         if ( isset( $this->plugin_settings['admins_only'] ) && $this->plugin_settings['admins_only'] === "1" && ! current_user_can( 'manage_options' ) ) {
     89
     90        if (
     91            isset( $this->plugin_settings['admins_only'] )
     92            && $this->plugin_settings['admins_only'] === "1"
     93            && ! current_user_can( 'manage_options' )
     94        ) {
    9095            return;
    9196        }
     
    112117            ), $this->version );
    113118            global $post;
    114             if ( isset( $this->plugin_settings['enable_autocomplete'] ) && $this->plugin_settings['enable_autocomplete'] ) {
     119            if ( isset( $this->plugin_settings['enable_autocomplete'] ) && $this->plugin_settings['enable_autocomplete'] ) {
    115120                $values = $this->get_unique_post_meta_values();
    116 //              if ( ! empty ( $values ) ) {
    117121                $val = wp_localize_script( $this->plugin_slug . '-admin-script', 'custom_body_class_post_values', $values );
    118 //              }
    119             }
    120         }
    121     }
    122 
     122            }
     123        }
     124    }
    123125
    124126    /**
     
    161163            return false;
    162164        }
    163 
    164165
    165166        if ( $new_edit == "edit" ) {
  • wp-custom-body-class/trunk/custom_body_class.php

    r2123377 r2316707  
    44Plugin URI:  https://a.lup.dev
    55Description: A plugin which allows you to add a custom CSS class the HTML body tag
    6 Version: 0.7.1
     6Version: 0.7.
    77Author: Andrei Lupu
    88Author URI: https://a.lup.dev
  • wp-custom-body-class/trunk/plugin-defaults.php

    r2016871 r2316707  
    66
    77    'display_on_post_types'   => array('post' => 'on', 'page' => 'on'),
    8     'allow_edit_on_post_page' => 1,
    9     'admins_only'             => 0,
    10     'enable_autocomplete'     => 1,
     8    'allow_edit_on_post_page' => ,
     9    'admins_only'             => ,
     10    'enable_autocomplete'     => ,
    1111    'global_class'            => '',
    1212
  • wp-custom-body-class/trunk/readme.txt

    r2123377 r2316707  
    33Tags: custom, body, css, class
    44Requires at least: 4.9.0
    5 Tested up to: 5.2.0
    6 Stable tag: 0.7.1
     5Tested up to: 5.
     6Stable tag: 0.7.
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2323
    2424== Changelog ==
     25
     26
     27
    2528
    2629= 0.7.1 =
  • wp-custom-body-class/trunk/views/admin.php

    r2118841 r2316707  
    99 * @author    Andrei Lupu <euthelup@gmail.com>
    1010 * @license   GPL-2.0+
    11  * @link      http://andrei-lupu.com
     11 * @link      http
    1212 * @copyright 2013 Pixel Grade Media
    1313 */
Note: See TracChangeset for help on using the changeset viewer.