nxs_showCatTagsCTFilters

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

Description

nxs_showCatTagsCTFilters( $nt, $ii, $options ); 

Parameters (3)

0. $nt
The nt.
1. $ii
The ii.
2. $options
The options.

Usage

  1. if ( !function_exists( 'nxs_showCatTagsCTFilters' ) ) { 
  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 options. 
  11. $options = null; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = nxs_showCatTagsCTFilters($nt, $ii, $options); 
  15.  

Defined (1)

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

/nxs_functions.php  
  1. function nxs_showCatTagsCTFilters($nt, $ii, $options) { global $nxs_snapAvNts, $nxs_plurl;  
  2. if (!isset($options['tagsSel'])) $options['tagsSel'] = ''; if (!isset($options['custTaxSel'])) $options['custTaxSel'] = ''; 
  3. ?> <div class="nxs_tls_cpt"> 
  4.  
  5. <?php _e('Filter Autoposting by', 'social-networks-auto-poster-facebook-twitter-g'); ?></div> 
  6. <div class="nxs_tls_bd"> 
  7. <div style="width:100%;"><strong><?php _e('Categories', 'social-networks-auto-poster-facebook-twitter-g'); ?>:</strong> 
  8. <input value="0" id="catSelA<?php echo strtoupper($nt); ?><?php echo $ii; ?>" type="radio" name="<?php echo $nt; ?>[<?php echo $ii; ?>][catSel]" <?php if ((int)$options['catSel'] != 1) echo "checked"; ?> /> <?php _e('All', 'social-networks-auto-poster-facebook-twitter-g'); ?> 
  9. <input value="1" id="catSelS<?php echo strtoupper($nt); ?><?php echo $ii; ?>" type="radio" name="<?php echo $nt; ?>[<?php echo $ii; ?>][catSel]" <?php if ((int)$options['catSel'] == 1) echo "checked"; ?> /> <a href="#" style="text-decoration: none;" class="showCats" id="nxs_SCA_<?php echo strtoupper($nt); ?><?php echo $ii; ?>" onclick="jQuery('#catSelS<?php echo strtoupper($nt); ?><?php echo $ii; ?>').attr('checked', true); jQuery('#tmpCatSelNT').val('<?php echo strtoupper($nt); ?><?php echo $ii; ?>'); nxs_markCats( jQuery('#nxs_SC_<?php echo strtoupper($nt); ?><?php echo $ii; ?>').val() ); jQuery('#showCatSel').bPopup({ modalClose: false, appendTo: '#nsStForm', opacity: 0.6, follow: [false, false], position: [75, 'auto']}); return false;"><?php _e('Selected', 'social-networks-auto-poster-facebook-twitter-g'); ?><?php if ($options['catSelEd']!='') echo "[".(substr_count($options['catSelEd'], ", ")+1)."]"; ?></a>  
  10. <input type="hidden" name="<?php echo $nt; ?>[<?php echo $ii; ?>][catSelEd]" id="nxs_SC_<?php echo strtoupper($nt); ?><?php echo $ii; ?>" value="<?php echo $options['catSelEd']; ?>" /> 
  11. <br/><i><?php _e('Only selected categories will be autoposted to this account', 'social-networks-auto-poster-facebook-twitter-g'); ?></i></div>  
  12. <br/> 
  13. <div style="width:100%;"><strong><?php _e('Tags and Custom Taxonomies', 'social-networks-auto-poster-facebook-twitter-g'); ?>:</strong> 
  14. <input name="<?php echo $nt; ?>[<?php echo $ii; ?>][tagsSel]" style="width: 30%;" value="<?php _e(apply_filters('format_to_edit', htmlentities($options['tagsSel'], ENT_COMPAT, "UTF-8")), 'social-networks-auto-poster-facebook-twitter-g') ?>" />  
  15. <br/><i><?php _e('Only posts with those tags assigned will be autoposted to this account, you can include custom taxonomy tags in taxonomy_slug|tag format.', 'social-networks-auto-poster-facebook-twitter-g'); ?></i></div>  
  16. <br/> 
  17. </div> <?php