Support » Plugins and Hacks » Social PopUP - Facebook, Twitter & Google+ » Option to Not Show Based on OS or Screen Size

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Damian

    (@timersys)


    Hi I will try to add this feature on next version…

    you could try in the meantime to edit social-popup.php and replace

    function print_script()
    {
    	$options = $this->_options;
    	$credit = $this->_credits;
    ?>
    				<style type="text/css">
    				<?php echo $options['css'];?>
    				</style>
    				<script type="text/javascript">
    					jQuery(document).ready(function() {		
    
    						jQuery().delay('1500').socialPopUP({
    							// Configure display of popup
    							advancedClose: <?php echo $options['close-advanced']; ?>,
    							opacity: "<?php echo $options['bg_opacity']; ?>",
    							days_no_click: "<?php echo $options['days-no-click']; ?>"
    						});
    
    					});
    
    				</script>
    
    <?php
    }

    With

    function print_script()
    {
    	$options = $this->_options;
    	$credit = $this->_credits;
    ?>
    				<style type="text/css">
    				<?php echo $options['css'];?>
    				</style>
    				<script type="text/javascript">
    					jQuery(document).ready(function() {
    						          if(/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) == false) {
    
    						jQuery().delay('1500').socialPopUP({
    							// Configure display of popup
    							advancedClose: <?php echo $options['close-advanced']; ?>,
    							opacity: "<?php echo $options['bg_opacity']; ?>",
    							days_no_click: "<?php echo $options['days-no-click']; ?>"
    						});
    					}
    					});
    
    				</script>
    
    <?php
    }

    Sorry its hard to format code here 😀

    Thanks!

    Plugin Contributor Damian

    (@timersys)


    This is included in the next version(1.5) that will be released later this week

    Plugin Contributor Damian

    (@timersys)


    Option now available

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Option to Not Show Based on OS or Screen Size’ is closed to new replies.