showScreenshot

The Ads EZ Plugin for Google AdSense showScreenshot function.

Description

showScreenshot( $id ); 

Parameters (1)

0. $id
The id.

Usage

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

Defined (1)

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

/admin/header.php  
  1. function showScreenshot($id) { 
  2. $img = "../screenshot-$id.png"; 
  3. $iSize = getimagesize($img); 
  4. $width = $iSize[0] . 'px'; 
  5. echo "<img src='$img' alt='screenshot' class='col-sm-12' style='max-width:$width'>";