start_gard_now

The Google Adsense for Responsive Design - GARD start gard now function.

Description

start_gard_now(); 

Usage

  1. if ( !function_exists( 'start_gard_now' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-adsense-for-responsive-design-gard/index.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = start_gard_now(); 
  7.  

Defined (1)

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

/index.php  
  1. function start_gard_now() { 
  2.  
  3. include('adsizes.php'); 
  4.  
  5. define('GARDPLUGINOPTIONS_VER', '2.23'); 
  6. define('GARDPLUGINOPTIONS_ID', 'GARD-plugin-options'); 
  7. define('GARDPLUGINOPTIONS_NICK', 'Google Adsense for Responsive Design'); 
  8. define('GARD_FOLDER', dirname(__FILE__) ); 
  9. define('GARD_PRO_LINK', 'http://thepluginfactory.co/warehouse/gard-pro/'); 
  10. define('GARD_PLUGIN_SUPPORT_URL', 'http://thepluginfactory.co/community/forum/plugin-specific/gard-google-adsense-for-responsive-design/'); 
  11. define('GARD_PLUGIN_SUPPORT_LINK', '<a href="http://thepluginfactory.co/community/forum/plugin-specific/gard-google-adsense-for-responsive-design/" title="GARD Support Forum" target="_blank">GARD Support Forum</a>'); 
  12.  
  13.  
  14. function gard_register() { 
  15. include(dirname(__FILE__) . '/register.php'); 
  16. }  
  17.  
  18. function gard_options_page() {  
  19. include(dirname(__FILE__) . '/options.php'); 
  20.  
  21. function gard_menu() { 
  22. include(dirname(__FILE__) . '/menu.php'); 
  23.  
  24. function gard_help() {  
  25. include(dirname(__FILE__) . '/help.php'); 
  26.  
  27. function gard_pro_settings() { 
  28. include(dirname(__FILE__) . '/pro.php'); 
  29.  
  30. function GARD_ENQUEUE() { 
  31. wp_register_script( 'spectrum_js', plugins_url( '/js/spectrum/spectrum.js', __FILE__ ) ); 
  32. wp_enqueue_script( 'spectrum_js' ); 
  33.  
  34. wp_register_style( 'spectrum_css', plugins_url( '/js/spectrum/spectrum.css', __FILE__ ) ); 
  35. wp_enqueue_style( 'spectrum_css' ); 
  36.  
  37. wp_enqueue_script( 'jquery' ); 
  38.  
  39. function GARD_PRO_plugin_links($links, $file) { 
  40. if ($file == 'google-adsense-for-responsive-design-gard/index.php' ) { 
  41. $links[] = '<a target="_blank" style="color: #cc0000; font-weight: bold;" href="http://thepluginfactory.co/warehouse/gard-pro/?so=gard_manage_plugins">Upgrade to GARD Pro</a>'; 
  42. return $links; 
  43.  
  44. add_action( 'admin_init', 'gard_register' ); 
  45. add_action( 'admin_menu', 'gard_menu' ); 
  46. add_action( 'admin_init', 'GARD_ENQUEUE' ); 
  47. add_filter( 'plugin_row_meta', 'GARD_PRO_plugin_links', 10, 2 );