Changeset 805829
- Timestamp:
- 11/17/2013 05:17:15 PM (12 years ago)
- Location:
- wp-slide-out-tab/tags/1.1
- Files:
-
- 4 edited
- 4 copied
-
. (copied) (copied from wp-slide-out-tab/trunk)
-
Thumbs.db (modified) (previous)
-
output.php (modified) (1 diff)
-
readme.txt (copied) (copied from wp-slide-out-tab/trunk/readme.txt) (2 diffs)
-
settings.php (modified) (5 diffs)
-
slide-out-tab-script.js (modified) (1 diff)
-
slide-out-tab.php (copied) (copied from wp-slide-out-tab/trunk/slide-out-tab.php) (7 diffs)
-
style.css (copied) (copied from wp-slide-out-tab/trunk/style.css)
Legend:
- Unmodified
- Added
- Removed
-
wp-slide-out-tab/tags/1.1/output.php
r801016 r805829 8 8 9 9 <div id="slide-out-tab-content"> 10 <?php echo get_option ( "wp_slide_out_content"); ?>11 10 <?php echo do_shortcode ( get_option ( "wp_slide_out_content" ) ); ?> 11 12 12 </div><!-- #slide-out-tab-content --> 13 13 14 14 <div id="slide-out-tab-tab"><!-- The tab --> 15 15 <?php echo get_option ( "wp_slide_out_title" ); ?> -
wp-slide-out-tab/tags/1.1/readme.txt
r801554 r805829 4 4 Requires at least: 3.7 5 5 Tested up to: 3.7.1 6 Stable tag: 1. 0.46 Stable tag: 1.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 41 41 == Changelog == 42 42 43 = 1.1 = 44 Content now correctly displays shortcodes 45 43 46 = 1.0.4 = 44 47 Updated plugin headers -
wp-slide-out-tab/tags/1.1/settings.php
r801016 r805829 1 1 <?php 2 3 2 /** 4 5 3 * Settings 6 7 4 */ 8 5 9 10 11 6 ?> 12 13 7 <div class="wrap"> 14 15 8 <h2>Slide Out Tab</h2> 16 17 9 <form method="post" action="options.php"> 18 19 10 <?php @settings_fields('wp_slide_out_tab-group'); ?> 20 11 <?php @do_settings_fields('wp_slide_out_tab-group'); ?> … … 26 17 <td><input type="checkbox" id="wp_slide_out_enable" name="wp_slide_out_enable" value="1" <?php checked ( get_option ( 'wp_slide_out_enable' ), 1, true ); ?> /></td> 27 18 </tr> 28 19 29 20 <tr valign="top"> 30 21 <th scope="row"><label for="wp_slide_out_title">Title</label></th> … … 40 31 <td><?php wp_editor ( get_option ( 'wp_slide_out_content' ), 'wp_slide_out_content', $settings ); ?></td> 41 32 </tr> 42 33 43 34 </table> 44 35 … … 50 41 <td><input size="5" value="<?php echo absint ( get_option ( 'wp_slide_out_width', '400' ) ); ?>" name="wp_slide_out_width" id="wp_slide_out_width" type="text" /> px</td> 51 42 </tr> 52 43 53 44 </table> 54 45 55 46 <h3>Colors</h3> 56 47 … … 66 57 <td><input value="<?php echo get_option ( 'wp_slide_out_border_color' ); ?>" name="wp_slide_out_border_color" id="wp_slide_out_border_color" type="text" class="color-picker" data-default-color="#ffffff" /></td> 67 58 </tr> 68 59 69 60 <tr valign="top"> 70 61 <th scope="row"><label for="wp_slide_out_text_color">Tab text color</label></th> 71 62 <td><input value="<?php echo get_option ( 'wp_slide_out_text_color' ); ?>" name="wp_slide_out_text_color" id="wp_slide_out_text_color" type="text" class="color-picker" data-default-color="#666666" /></td> 72 63 </tr> 73 64 74 65 </table> 75 66 76 67 <script> 77 68 jQuery(document).ready(function($){ -
wp-slide-out-tab/tags/1.1/slide-out-tab-script.js
r801016 r805829 9 9 contentheight=$('#slide-out-tab-content').height() + 17; 10 10 console.log('asdf' + tabheight); 11 // $('#slide-out-tab-tab').html(tabheight);12 11 $('#slide-out-tab-wrap').css('bottom',tabheight+'px'); 13 12 // On click, slide the tab up and down 14 13 15 $('#slide-out-tab-tab').on('click',function(){ 14 $('#slide-out-tab-tab').on('click',function(){ 16 15 position = $('#slide-out-tab-wrap').css('bottom'); 17 16 newposition=0; -
wp-slide-out-tab/tags/1.1/slide-out-tab.php
r801554 r805829 6 6 Plugin URI: http://catapultdesign.co.uk 7 7 Description: A slide out tab that can be used for marketing and promotional offers 8 Version: 1. 0.48 Version: 1.1 9 9 Author: Catapult 10 10 Author URI: http://catapultdesign.co.uk … … 14 14 15 15 This program is free software; you can redistribute it and/or modify 16 it under the terms of the GNU General Public License, version 2, as 16 it under the terms of the GNU General Public License, version 2, as 17 17 published by the Free Software Foundation. 18 18 … … 34 34 35 35 class WP_Slide_Out_Tab { 36 37 36 38 /** * Construct the plugin object */39 37 40 public function __construct() { 38 /** * Construct the plugin object */ 39 40 public function __construct() { 41 41 42 42 // register actions … … 56 56 57 57 58 public static function activate() { 58 public static function activate() { 59 59 60 60 // Do nothing … … 63 63 64 64 65 public static function deactivate() { 65 public static function deactivate() { 66 66 67 67 // Do nothing … … 129 129 130 130 } 131 131 132 132 public function output_styles() { 133 133 if ( get_option ( 'wp_slide_out_enable' ) == 1 ) { // Only output styles if the tab is enabled … … 181 181 register_activation_hook(__FILE__, array('WP_Slide_Out_Tab', 'activate')); 182 182 183 register_deactivation_hook(__FILE__, array('WP_Slide_Out_Tab', 'deactivate')); 183 register_deactivation_hook(__FILE__, array('WP_Slide_Out_Tab', 'deactivate')); 184 184 185 185
Note: See TracChangeset
for help on using the changeset viewer.