Plugin Directory

Changeset 1782224


Ignore:
Timestamp:
12/06/2017 08:01:20 PM (8 years ago)
Author:
jasie
Message:

renamed styles variable in pag_item_styles and prepared variable pag_styles

Location:
widget-pagination/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • widget-pagination/trunk/includes/class-widget-pagination-utils.php

    r1782185 r1782224  
    2727     *
    2828     * @since    1.0.0
    29      * @access   private
     29     * @access   protected
    3030     * @var      array    $widgets    The default wordpress widgets.
    3131     */
     
    4242
    4343    /**
    44      * The widget styles.
     44     * The pagination item styles.
    4545     *
    4646     * @since    1.0.0
    47      * @access   private
    48      * @var      array    $styles    Styles for pagination appearance.
     47     * @access   protected
     48     * @var      array    $styles    Styles for appearance of pagination items.
    4949     */
    50     protected $styles = array(
     50    protected $pag_item_styles = array(
    5151        'color'            => 'Text Colour',
    5252        'border-color'     => 'Border Colour',
     
    5555    );
    5656
     57    /**
     58     * The pagination bar styles.
     59     *
     60     * @since    1.1.0
     61     * @access   protected
     62     * @var      array    $styles    Styles for appearance of pagination bar.
     63     * @todo fill this and use this
     64     */
     65    protected $pag_bar_styles = array();
     66
    5767}
  • widget-pagination/trunk/public/class-widget-pagination-public.php

    r1782185 r1782224  
    168168
    169169    /**
    170      * TODO descr
     170     * Generate CSS from styling options on plugin's options page.
    171171     *
    172172     * @return string   CSS
     
    185185        );
    186186
    187         $positions = array ('top', 'right', 'bottom', 'left');
    188 
    189187        $options = get_option( $this->plugin_short );
    190188        foreach($selectors as $name => $selector) {
    191189            $css .= ".wgpag-pagination $selector { ";
    192             foreach ($this->styles as $style => $style_name) {
     190            foreach ($this->pag_item_styles as $style => $style_name) {
    193191                if (isset($options["${name}_$style"]) && !empty($options["${name}_$style"])) {
    194192                    $css .= "$style: " . $options["${name}_$style"] . " !important;";
     
    197195            $css .= "}";
    198196        }
     197
     198        $positions = array ('top', 'right', 'bottom', 'left');
    199199
    200200        // usage of '!important' due to prevent the theme from overriding the user's setting
Note: See TracChangeset for help on using the changeset viewer.