nxs_showImgToUseDlg

The NextScripts: Social Networks Auto-Poster nxs showImgToUseDlg function.

Description

nxs_showImgToUseDlg( $nt, $ii, $imgToUse, (constant) $hide = false ); 

Parameters (4)

0. $nt
The nt.
1. $ii
The ii.
2. $imgtouse
The imgtouse.
3. $hide — Optional. (constant) => false
The hide.

Usage

  1. if ( !function_exists( 'nxs_showImgToUseDlg' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'nextscripts-social-networks-auto-poster/nxs_functions.php'; 
  3.  
  4. // The nt. 
  5. $nt = null; 
  6.  
  7. // The ii. 
  8. $ii = null; 
  9.  
  10. // The imgtouse. 
  11. $imgtouse = null; 
  12.  
  13. // The hide. 
  14. $hide = false; 
  15.  
  16. // NOTICE! Understand what this does before running. 
  17. $result = nxs_showImgToUseDlg($nt, $ii, $imgtouse, $hide); 
  18.  

Defined (1)

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

/nxs_functions.php  
  1. if (!function_exists('nxs_showImgToUseDlg')) { function nxs_showImgToUseDlg($nt, $ii, $imgToUse, $hide=false) { ?> 
  2. <tr id="altFormatIMG<?php echo $nt.$ii; ?>" style="<?php echo $hide?'display:none;':''; ?>"><th scope="row" style="vertical-align:top; padding-top: 6px; text-align:right; width:60px; padding-right:10px;"><?php _e('Image(s) to use:', 'social-networks-auto-poster-facebook-twitter-g') ?></th> 
  3. <td><input type="checkbox" class="isAutoImg" <?php if ($imgToUse=='') { ?>checked="checked"<?php } ?> id="isAutoImg-<?php echo $nt; ?><?php echo $ii; ?>" name="<?php echo $nt; ?>[<?php echo $ii; ?>][isAutoImg]" value="A"/> <?php _e('Auto', 'social-networks-auto-poster-facebook-twitter-g'); ?> 
  4. <?php if ($imgToUse!='') { ?> <a onclick="nxs_clPrvImgShow('<?php echo $nt; ?><?php echo $ii; ?>');return false;" href="#"><?php _e('Show all', 'social-networks-auto-poster-facebook-twitter-g'); ?></a><br/>  
  5. <div class="nxs_prevImagesDiv" id="nxs_<?php echo $nt; ?><?php echo $ii; ?>_idivD"><img class="nxs_prevImages" src="<?php echo $imgToUse; ?>"><div style="display:block;" class="nxs_checkIcon"><div class="media-modal-icon"></div></div></div> 
  6. <?php } else { ?><br/><?php } ?> 
  7. <div id="imgPrevList-<?php echo $nt; ?><?php echo $ii; ?>" class="nxs_imgPrevList"></div>  
  8. <input type="hidden" name="<?php echo $nt; ?>[<?php echo $ii; ?>][imgToUse]" value="<?php echo $imgToUse ?>" id="imgToUse-<?php echo $nt; ?><?php echo $ii; ?>" />  
  9. </td></tr>  
  10. <?php }}