Plugin Directory

Changeset 984734


Ignore:
Timestamp:
09/08/2014 09:43:02 PM (11 years ago)
Author:
average.technology
Message:

Tested successful in WordPress 4.0, so updated readme.txt. Also fixed links in the options page.

Location:
average-head-footer-code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • average-head-footer-code/trunk/average-head-footer-code.php

    r962688 r984734  
    22/*
    33    Plugin Name: Average Head & Footer Code
    4     Plugin URI: 
     4    Plugin URI:
    55    Description: Allows admins to add code to the <head> and/or <footer> of an individual post and/or site-wide. Ideal for scripts such as Google Analytics conversion tracking code and any other general or page-specific JavaScript.
    66    Version: 1.0
     
    99    License: Public Domain
    1010    @since 3.5.2
    11         ___                                 
     11        ___
    1212       /   |_   _____  _________ _____ ____
    1313      / /| | | / / _ \/ ___/ __ `/ __ `/ _ \
    1414     / ___ | |/ /  __/ /  / /_/ / /_/ /  __/
    1515    /_/  |_|___/\___/_/   \__,_/\__, /\___/
    16                                /____/     ™
     16                               /____/     ª
    1717                               by Joe Rhoney
    1818*/
     
    4646    }
    4747    public static function options_page()
    48     { 
    49       if (!current_user_can('manage_options')) 
     48    {
     49      if (!current_user_can('manage_options'))
    5050      {
    5151        wp_die(__('You do not have sufficient permissions to access this page.'));
  • average-head-footer-code/trunk/options.php

    r980053 r984734  
    55    <div id="post-body" class="metabox-holder columns-2">
    66      <div id="post-body-content">
    7     <form action="options.php" method="post" id="<?php echo $plugin_id; ?>_options_form" name="<?php echo $plugin_id; ?>_options_form">
    8     <?php settings_fields($plugin_id.'_options'); ?>
     7  <form action="options.php" method="post" id="<?php echo $plugin_id; ?>_options_form" name="<?php echo $plugin_id; ?>_options_form">
     8  <?php settings_fields($plugin_id.'_options'); ?>
    99    <label for="site_wide_head_code">
    1010      <h2 class="title">Site-wide Head Code</h2>
     
    1616    </label>
    1717<?php submit_button(); ?>
    18     </form>
     18  </form>
    1919      </div> <!-- post-body-content -->
    20             <!-- sidebar -->
    21             <div id="postbox-container-1" class="postbox-container">
     20      <!-- sidebar -->
     21      <div id="postbox-container-1" class="postbox-container">
    2222            <h2>Support Tickets</h2>
    2323            <p>If you need custom support for this plugin (Average Head & Footer Code) or any other Average plugin, you can purchase help with a support ticket below. Support tickets are responded to within 24 hours, but we answer them as soon as possible.</p>
     
    4747        </form>
    4848            <p><strong>Note</strong>: This is for&nbsp;<em>custom</em>&nbsp;needs for help, not problems with the plugin, or instructions that should already be explain in the description. If you feel there are important details omitted from the <a href="http://wordpress.org/plugins/average-head-footer-code/" target="_blank">Description</a>, <a href="http://wordpress.org/plugins/average-head-footer-code/installation/" target="_blank">Installation</a> steps, etc. of the plugin, please report them in the <a href="http://wordpress.org/support/plugin/average-head-footer-code" target="_blank">Support forum</a>. Thanks!</p>
    49             </div> <!-- #postbox-container-1 .postbox-container -->
    50         </div> <!-- #post-body .metabox-holder .columns-2 -->
    51         <br class="clear">
    52     </div> <!-- #poststuff -->
     49      </div> <!-- #postbox-container-1 .postbox-container -->
     50    </div> <!-- #post-body .metabox-holder .columns-2 -->
     51    <br class="clear">
     52  </div> <!-- #poststuff -->
    5353</div>
Note: See TracChangeset for help on using the changeset viewer.