insertAlerts

The Ads EZ Plugin for Google AdSense insertAlerts function.

Description

insertAlerts( (int) $width = 12 ); 

Parameters (1)

0. $width — Optional. (int) => 12
The width.

Usage

  1. if ( !function_exists( 'insertAlerts' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ads-ez-plugin-for-google-adsense/admin/header.php'; 
  3.  
  4. // The width. 
  5. $width = 12; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = insertAlerts($width); 
  9.  

Defined (1)

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

/admin/header.php  
  1. function insertAlerts($width = 12) { 
  2. ?> 
  3. <div style="display:none" class="alert alert-info col-lg-<?php echo $width; ?>" role="alert"> 
  4. <button type="button" class="close"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> 
  5. <span id="alertInfoText"></span> 
  6. </div> 
  7. <div style="display:none" class="alert alert-success col-lg-<?php echo $width; ?>" role="alert"> 
  8. <button type="button" class="close"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> 
  9. <span id="alertSuccessText"></span> 
  10. </div> 
  11. <div style="display:none" class="alert alert-warning col-lg-<?php echo $width; ?>" role="alert"> 
  12. <button type="button" class="close"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> 
  13. <span id="alertWarningText"></span> 
  14. </div> 
  15. <div style="display:none" class="alert alert-danger col-lg-<?php echo $width; ?>" role="alert"> 
  16. <button type="button" class="close"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> 
  17. <span id="alertErrorText"></span> 
  18. </div> 
  19. <?php