Changeset 1244765
- Timestamp:
- 09/14/2015 03:21:54 AM (11 years ago)
- Location:
- sticky-header
- Files:
-
- 25 added
- 4 edited
-
tags/1.2.1 (added)
-
tags/1.2.1/LICENSE.txt (added)
-
tags/1.2.1/README.txt (added)
-
tags/1.2.1/class-sticky-header.php (added)
-
tags/1.2.1/css (added)
-
tags/1.2.1/css/index.php (added)
-
tags/1.2.1/css/public.css (added)
-
tags/1.2.1/css/public.min.css (added)
-
tags/1.2.1/index.php (added)
-
tags/1.2.1/js (added)
-
tags/1.2.1/js/index.php (added)
-
tags/1.2.1/js/public.js (added)
-
tags/1.2.1/js/public.min.js (added)
-
tags/1.2.1/languages (added)
-
tags/1.2.1/languages/index.php (added)
-
tags/1.2.1/languages/sticky-header.mo (added)
-
tags/1.2.1/languages/sticky-header.pot (added)
-
tags/1.2.1/screenshot-1.png (added)
-
tags/1.2.1/screenshot-2.png (added)
-
tags/1.2.1/sticky-header-settings.php (added)
-
tags/1.2.1/sticky-header.php (added)
-
tags/1.2.1/uninstall.php (added)
-
tags/1.2.1/views (added)
-
tags/1.2.1/views/index.php (added)
-
tags/1.2.1/views/public.php (added)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/class-sticky-header.php (modified) (3 diffs)
-
trunk/sticky-header.php (modified) (1 diff)
-
trunk/views/public.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sticky-header/trunk/README.txt
r1156881 r1244765 4 4 Requires at least: 4.0 5 5 Tested up to: 4.2.2 6 Stable tag: 1.2. 16 Stable tag: 1.2.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 52 52 == Changelog == 53 53 54 = 1.2.2 = 55 * Uses wp_parse_args to ensure array keys are set. Props github.com/Shelob9. 56 54 57 = 1.2.1 = 55 58 * Adds compressed JS and CSS files. -
sticky-header/trunk/class-sticky-header.php
r1156881 r1244765 25 25 * @var string 26 26 */ 27 const VERSION = '1. 2.1';27 const VERSION = '1.0.0'; 28 28 29 29 /** … … 119 119 */ 120 120 public function enqueue_styles() { 121 $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; 122 wp_enqueue_style( $this->plugin_slug . '-plugin-styles', plugins_url( "css/public$min.css", __FILE__ ), array(), self::VERSION ); 121 wp_enqueue_style( $this->plugin_slug . '-plugin-styles', plugins_url( 'css/public.css', __FILE__ ), array(), self::VERSION ); 123 122 } 124 123 … … 133 132 134 133 // Send plugin settings to JS file. 135 $plugin_settings = get_option( 'thsp_sticky_header' ); 134 $plugin_settings = get_option( 'thsp_sticky_header', array() ); 135 $plugin_settings = wp_parse_args( $plugin_settings, array( 136 'show_at' => 200, 137 'hide_if_narrower' => 600 138 ) 139 ); 136 140 $script_params = array( 137 141 'show_at' => $plugin_settings['show_at'], -
sticky-header/trunk/sticky-header.php
r1156881 r1244765 13 13 * Plugin URI: http://thematosoup.com 14 14 * Description: Adds sticky header to your WordPress website 15 * Version: 1.2. 115 * Version: 1.2.2 16 16 * Author: ThematoSoup 17 17 * Author URI: http://thematosoup.com -
sticky-header/trunk/views/public.php
r828982 r1244765 14 14 15 15 // Get Sticky Header options 16 $thsp_sticky_header_settings = get_option( 'thsp_sticky_header' ); 16 $thsp_sticky_header_settings = get_option( 'thsp_sticky_header', array() ); 17 $thsp_sticky_header_settings = wp_parse_args( $thsp_sticky_header_settings, array( 18 'logo' => '' 19 ) 20 ); 17 21 18 22 // Check if there is a logo image
Note: See TracChangeset
for help on using the changeset viewer.