Ignore:
Timestamp:
Jan 12, 2014, 10:03:35 PM (10 years ago)
Author:
flop25
Message:

updated for 2.5 & 2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/stripped-galleria/template/thumbnails.tpl

    r20628 r26671  
    22{combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'}
    33{combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'}
    4 {php}
    5         global $stripped, $strippedgalleria, $page;
    6         $this->assign( 'stripped', $stripped );
    7         $this->assign( 'strippedgalleria', $strippedgalleria );
    8         $this->assign( 'get_root_url', get_root_url() );
    9         $this->assign( 'catid', @$page['category']['id'] );
    10         $this->assign( 'section', @$page['section'] );
    11         $this->assign( 'tagids',  @implode(',', @$page['tag_ids']) );
    12 {/php}
    134<div id="gallery"></div>
    145{footer_script}
     
    6556                                                jQuery.post("{/literal}{$get_root_url}{literal}themes/stripped-galleria/save_history.php", {
    6657                                                        imgid: "img-"+pid,
    67                                                         catid: "{/literal}{$catid}{literal}",
    68                                                         section: "{/literal}{$section}{literal}",
    69                                                         tagids: "{/literal}{$tagids}{literal}"
     58                                                        {/literal}{if !empty($catid)} catid: "{$catid}"{/if}{literal},
     59                                                        {/literal}{if !empty($section)} section: "{$section}"{/if}{literal},
     60                                                        {/literal}{if !empty($tagids)} tagids: "{$tagids}"{/if}{literal}
    7061                                                });
    7162                                    });
     
    7869                                                jQuery.post("{/literal}{$get_root_url}{literal}themes/stripped-galleria/save_history.php", {
    7970                                                        imgid: "img-"+pid,
    80                                                         catid: "{/literal}{$catid}{literal}",
    81                                                         section: "{/literal}{$section}{literal}",
    82                                                         tagids: "{/literal}{$tagids}{literal}"
     71                                                        {/literal}{if !empty($catid)} catid: "{$catid}"{/if}{literal},
     72                                                        {/literal}{if !empty($section)} section: "{$section}"{/if}{literal},
     73                                                        {/literal}{if !empty($tagids)} tagids: "{$tagids}"{/if}{literal}
    8374                                                });
    8475                                    });
Note: See TracChangeset for help on using the changeset viewer.