Plugin Directory

Changeset 1486619


Ignore:
Timestamp:
08/30/2016 05:55:21 PM (10 years ago)
Author:
pedrolaxe
Message:

fix bugs

Location:
ga-code
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ga-code/tags/1.0.1/ga-code.php

    r1486608 r1486619  
    77Author URI: http://www.phpsec.com.br/
    88License: GPLv2
    9 Text Domain: ga-code
    109*/
    1110/*
     
    3332
    3433/**
    35 
    3634 * Function Activate GA-Code
    37 
    3835 *
    39 
    4036 * @since 1.0
    41 
    4237 *
    43 
    4438 */
    45 
    46 
    4739
    4840register_activation_hook( __FILE__, 'GACode_install' );
    4941
    50 
    51 
    5242/**
    53 
    5443 * Function Compare Version of WP else Desactive Plugin
    55 
    5644 *
    57 
    5845 * @since 1.0
    59 
    6046 *
    61 
    6247 */
    6348
     
    8974 */
    9075
    91 if ( is_admin() )
    92 
    93 {
     76if ( is_admin() ){
    9477
    9578    add_action('admin_menu', 'GACode_opcoes');
     
    9881
    9982/**
    100 
    10183 * Function add Page Options in WP Menu
    102 
    10384 *
    104 
    10585 * @since 1.0
    106 
    10786 *
    108 
    10987*/
    11088
     
    165143                    <?php wp_nonce_field('update-options') ?>
    166144                    <p>
    167                         <label for="gacode"><?php _e('Google Analytics Tracking Code', 'ga-code'); ?></label>
     145                        <label for="gacode">Google Analytics Tracking Code</label>
    168146                        <input type="text" name="gacode" placeholder="UA-XXXXXXXX-X" value="<?php echo get_option('gacode'); ?>" /><br>
    169147                        <br>
  • ga-code/trunk/ga-code.php

    r1486608 r1486619  
    77Author URI: http://www.phpsec.com.br/
    88License: GPLv2
    9 Text Domain: ga-code
    109*/
    1110/*
     
    3332
    3433/**
    35 
    3634 * Function Activate GA-Code
    37 
    3835 *
    39 
    4036 * @since 1.0
    41 
    4237 *
    43 
    4438 */
    45 
    46 
    4739
    4840register_activation_hook( __FILE__, 'GACode_install' );
    4941
    50 
    51 
    5242/**
    53 
    5443 * Function Compare Version of WP else Desactive Plugin
    55 
    5644 *
    57 
    5845 * @since 1.0
    59 
    6046 *
    61 
    6247 */
    6348
     
    8974 */
    9075
    91 if ( is_admin() )
    92 
    93 {
     76if ( is_admin() ){
    9477
    9578    add_action('admin_menu', 'GACode_opcoes');
     
    9881
    9982/**
    100 
    10183 * Function add Page Options in WP Menu
    102 
    10384 *
    104 
    10585 * @since 1.0
    106 
    10786 *
    108 
    10987*/
    11088
     
    165143                    <?php wp_nonce_field('update-options') ?>
    166144                    <p>
    167                         <label for="gacode"><?php _e('Google Analytics Tracking Code', 'ga-code'); ?></label>
     145                        <label for="gacode">Google Analytics Tracking Code</label>
    168146                        <input type="text" name="gacode" placeholder="UA-XXXXXXXX-X" value="<?php echo get_option('gacode'); ?>" /><br>
    169147                        <br>
Note: See TracChangeset for help on using the changeset viewer.