Advertisement
xandr91

InContests-fix2

Apr 19th, 2014
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.53 KB | None | 0 0
  1. // From:
  2. if($_GET['item']!="" && $_GET['id']!="")
  3. {          
  4.     echo "<script>$.magnificPopup.open({ items: { src: 'i/".$_GET['item']."/".$_GET['id']."',type: 'ajax' }});</script>";
  5. }
  6.  
  7. // Into:
  8.  
  9. if($_GET['item']!="" && $_GET['id']!="")
  10. {
  11.     echo "<script>$.magnificPopup.open({ items: { src: 'i/".$_GET['item']."/".$_GET['id']."' }, type: 'ajax', callbacks: { parseAjax: function(mfpResponse) {}, ajaxContentAdded: function() { $('.imgLiquidFillc').imgLiquid({ fill: false, horizontalAlign: 'center', verticalAlign: '50%'});}}});</script>";
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement