Changeset 1782224
- Timestamp:
- 12/06/2017 08:01:20 PM (8 years ago)
- Location:
- widget-pagination/trunk
- Files:
-
- 2 edited
-
includes/class-widget-pagination-utils.php (modified) (3 diffs)
-
public/class-widget-pagination-public.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
widget-pagination/trunk/includes/class-widget-pagination-utils.php
r1782185 r1782224 27 27 * 28 28 * @since 1.0.0 29 * @access pr ivate29 * @access protected 30 30 * @var array $widgets The default wordpress widgets. 31 31 */ … … 42 42 43 43 /** 44 * The widgetstyles.44 * The pagination item styles. 45 45 * 46 46 * @since 1.0.0 47 * @access pr ivate48 * @var array $styles Styles for pagination appearance.47 * @access protected 48 * @var array $styles Styles for appearance of pagination items. 49 49 */ 50 protected $ styles = array(50 protected $pag_item_styles = array( 51 51 'color' => 'Text Colour', 52 52 'border-color' => 'Border Colour', … … 55 55 ); 56 56 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 57 67 } -
widget-pagination/trunk/public/class-widget-pagination-public.php
r1782185 r1782224 168 168 169 169 /** 170 * TODO descr170 * Generate CSS from styling options on plugin's options page. 171 171 * 172 172 * @return string CSS … … 185 185 ); 186 186 187 $positions = array ('top', 'right', 'bottom', 'left');188 189 187 $options = get_option( $this->plugin_short ); 190 188 foreach($selectors as $name => $selector) { 191 189 $css .= ".wgpag-pagination $selector { "; 192 foreach ($this-> styles as $style => $style_name) {190 foreach ($this->pag_item_styles as $style => $style_name) { 193 191 if (isset($options["${name}_$style"]) && !empty($options["${name}_$style"])) { 194 192 $css .= "$style: " . $options["${name}_$style"] . " !important;"; … … 197 195 $css .= "}"; 198 196 } 197 198 $positions = array ('top', 'right', 'bottom', 'left'); 199 199 200 200 // usage of '!important' due to prevent the theme from overriding the user's setting
Note: See TracChangeset
for help on using the changeset viewer.