gglnltcs_print_tracking_id_field

The BestWebSoft Google Analytics gglnltcs print tracking id field function.

Description

gglnltcs_print_tracking_id_field( (bool) $self_redirect = false ); 

Parameters (1)

0. $self_redirect — Optional. (bool) => false
The self redirect.

Usage

  1. if ( !function_exists( 'gglnltcs_print_tracking_id_field' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bestwebsoft-google-analytics/bws-google-analytics.php'; 
  3.  
  4. // The self redirect. 
  5. $self_redirect = false; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = gglnltcs_print_tracking_id_field($self_redirect); 
  9.  

Defined (1)

The function is defined in the following location(s).

/bws-google-analytics.php  
  1. function gglnltcs_print_tracking_id_field( $self_redirect = false ) { 
  2. global $gglnltcs_options;  
  3. $tracking_id = isset( $gglnltcs_options['tracking_id'] ) ? $gglnltcs_options['tracking_id'] : "";?> 
  4. <form id="gglnltcs-tracking-id-form" method="post" action="admin.php?page=bws-google-analytics.php<?php if ( $self_redirect ) echo '&action=tracking-code-tab'; ?>"> 
  5. <input type="hidden" name="gglnltcs_tracking_id_reset" value="1"> 
  6. <span id="gglnltcs-tracking-code-label"> <?php _e( 'Tracking code', 'gglnltcs' ) ?>:</span><input type="text" name="gglnltcs_tracking_id" value="<?php echo $tracking_id; ?>" ><br /> 
  7. <div id="gglnltcs-add-tracking-code-checkbox" ><input id='gglnltcs-add-tracking-code-input' type="checkbox" name="gglnltcs_add_tracking_code" value="1" <?php if ( isset( $gglnltcs_options['add_tracking_code'] ) && 1 == $gglnltcs_options['add_tracking_code'] ) echo 'checked="checked"'; ?> /><label for="gglnltcs-add-tracking-code-input"> <?php _e( 'Add tracking Code To Your Blog', 'gglnltcs' ) ?></label></div> 
  8. <input type="hidden" name="gglnltcs_form_submit" value="submit" /> 
  9. <p class="submit"> 
  10. <input type="submit" class="button-primary" value="<?php _e( 'Save Changes', 'gglnltcs' ) ?>" /> 
  11. </p> 
  12. <?php wp_nonce_field( plugin_basename( __FILE__ ), 'gglnltcs_nonce_name' ); ?> 
  13. </form><?php 
  14. $tracking_id = ( $tracking_id && $tracking_id !== '""' ) ? true : false; 
  15. return $tracking_id;