Changeset 1397903
- Timestamp:
- 04/17/2016 07:58:47 PM (10 years ago)
- Location:
- wp-hooks/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (3 diffs)
-
wp-hooks.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-hooks/trunk/readme.txt
r1397901 r1397903 3 3 Tags: hooks, wp_head, wp_footer, head, footer 4 4 Requires at least: 2.1 5 Tested up to: 2.7.16 Stable tag: 1.0.45 Tested up to: 4.5 6 Stable tag: trunk 7 7 8 WP Hooks is a plugin for WordPress that allows you to add JavaScript, HTML, or other codeto your8 WP Hooks allows you to add JavaScript, CSS, meta tags, etc. to your 9 9 header and footer without modifying your theme. 10 10 … … 15 15 built in to WordPress to add content to your header and/or footer. It’s great for those who have 16 16 custom JavaScript, CSS, or other code (Google Analytics, meta tags, etc.) in their header or footer 17 and don’t want to copy that every time they change themes.17 and don’t want to or can't modify their theme. 18 18 19 19 Find [more instructions and discussion](http://amwhalen.com/blog/projects/wp-hooks/) on the WP Hooks home page. … … 33 33 == Changelog == 34 34 35 = 1.0.6 = 36 * Fix git/svn repo disparity. 37 35 38 = 1.0.4 = 36 39 * Fix undefined variable notice. (thanks to dabernathy89.) -
wp-hooks/trunk/wp-hooks.php
r1397901 r1397903 3 3 Plugin Name: WP Hooks 4 4 Plugin URI: http://amwhalen.com/blog/projects/wp-hooks/ 5 Description: Add JavaScript, HTML, or other code to your header and footer without modifying your theme.6 Version: 1.0. 45 Description: Add JavaScript, CSS, meta tags, etc. to your header and footer. 6 Version: 1.0.6 7 7 Author: Andrew M. Whalen 8 8 Author URI: http://amwhalen.com … … 26 26 */ 27 27 28 define('AMW_HOOKS_VERSION', '1.0. 4');28 define('AMW_HOOKS_VERSION', '1.0.6'); 29 29 30 30 /** … … 49 49 <div class="wrap"> 50 50 51 <h2> WP Hooks Options</h2>51 <h2>Header and Footer Settings (WP Hooks)</h2> 52 52 53 53 <p> 54 WP Hooks places the code you write below into the header or footer of your site so you don't have to modify your theme. 55 It saves you from having to remember to add that custom CSS, JavaScript, meta tag, etc. when you switch to a new theme. 54 Add JavaScript, CSS, meta tags, etc. to your header and footer. 56 55 </p> 57 56 … … 96 95 </table> 97 96 98 <p class="submit">99 < input type="submit" name="Submit" value="<?php _e('Save Changes') ?>" />97 <p class="submit"> 98 <button class="button-primary"><?php _e('Save Changes','wphooks'); ?></button> 100 99 </p> 101 100 … … 127 126 function amw_hooks_admin() { 128 127 129 add_options_page(' WP Hooks', 'WP Hooks', 'edit_files', __FILE__, 'amw_hooks_options_page');128 add_options_page('Header and Footer (WP Hooks)', 'Header and Footer (WP Hooks)', 'edit_files', __FILE__, 'amw_hooks_options_page'); 130 129 131 130 } … … 192 191 193 192 // install / uninstall 194 register_activation_hook(__FILE__, 'amw_hooks_install');195 register_ deactivation_hook(__FILE__, 'amw_hooks_uninstall');193 register_activation_hook(__FILE__, 'amw_hooks_install'); 194 register_uninstall_hook(__FILE__, 'amw_hooks_uninstall'); 196 195 197 196 // admin stuff … … 203 202 add_action('wp_head', 'amw_hooks_head'); 204 203 add_action('wp_footer', 'amw_hooks_footer'); 205 206 ?>
Note: See TracChangeset
for help on using the changeset viewer.