Plugin Directory

Changeset 1153512


Ignore:
Timestamp:
05/05/2015 07:18:42 AM (11 years ago)
Author:
sergiuscosta
Message:

return value only if isset

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sc-bxslider/trunk/functions/options/general.php

    r1153506 r1153512  
    377377        jQuery(document).ready(function(){
    378378            jQuery('.sc-bxslider').sc_bxslider({
    379                 mode: '<?php echo $options["mode"]; ?>',
    380                 randomStart: <?php echo $options['randomStart']; ?>,
    381                 infiniteLoop: <?php echo $options['infiniteLoop']; ?>,
    382                 hideControlOnEnd: <?php echo $options['hideControlOnEnd']; ?>,
    383                 captions: <?php echo $options['captions']; ?>,
    384                 ticker: <?php echo $options['ticker']; ?>,
    385                 tickerHover: <?php echo $options['tickerHover']; ?>,
    386                 adaptativeHeight: <?php echo $options['adaptativeHeight']; ?>,
    387                 responsive: <?php echo $options['responsive']; ?>,
    388                 preloadImages: <?php echo $options['preloadImages']; ?>,
    389                 touchEnabled: <?php echo $options['touchEnabled']; ?>,
    390                 oneToOneTouch: <?php echo $options['oneToOneTouch']; ?>,
    391                 preventDefaultSwipeX: <?php echo $options['preventDefaultSwipeX']; ?>,
    392                 preventDefaultSwipeY: <?php echo $options['preventDefaultSwipeY']; ?>,
     379                <?php if (isset($options["mode"]))                  { echo "mode: '" . $options['mode'] . "'"; } ?>,
     380                <?php if (isset($options["randomStart"]))           { echo "randomStart: " . $options["randomStart"]; } ?>,
     381                <?php if (isset($options["infiniteLoop"]))          { echo "infiniteLoop: " . $options["infiniteLoop"]; } ?>,
     382                <?php if (isset($options["hideControlOnEnd"]))      { echo "hideControlOnEnd: " . $options["hideControlOnEnd"]; } ?>,
     383                <?php if (isset($options["captions"]))              { echo "captions: " . $options["captions"]; } ?>,
     384                <?php if (isset($options["ticker"]))                { echo "ticker: " . $options["ticker"]; } ?>,
     385                <?php if (isset($options["tickerHover"]))           { echo "tickerHover: " . $options["tickerHover"]; } ?>,
     386                <?php if (isset($options["adaptativeHeight"]))      { echo "adaptativeHeight: " . $options["adaptativeHeight"]; } ?>,
     387                <?php if (isset($options["responsive"]))            { echo "responsive: " . $options["responsive"]; } ?>,
     388                <?php if (isset($options["preloadImages"]))         { echo "preloadImages: " . $options["preloadImages"]; } ?>,
     389                <?php if (isset($options["touchEnabled"]))          { echo "touchEnabled: " . $options["touchEnabled"]; } ?>,
     390                <?php if (isset($options["oneToOneTouch"]))         { echo "oneToOneTouch: " . $options["oneToOneTouch"]; } ?>,
     391                <?php if (isset($options["preventDefaultSwipeX"]))  { echo "preventDefaultSwipeX: " . $options["preventDefaultSwipeX"]; } ?>,
     392                <?php if (isset($options["preventDefaultSwipeY"]))  { echo "preventDefaultSwipeY: " . $options["preventDefaultSwipeY"]; } ?>,
    393393            });
    394394        });
Note: See TracChangeset for help on using the changeset viewer.