Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if (!empty($title)): ?>
- <h3><?php print $title; ?></h3>
- <?php endif; ?>
- <div id="<?php print $view_id; ?>" class="timeline<?php print ' ' . $gso_line_style; print ' ' . $gso_nav_style; print ' ' . $bso_button_type; ?>">
- <?php foreach ($rows as $id => $row): ?>
- <?php print $row; ?>
- <?php endforeach; ?>
- </div>
- <?php drupal_add_js('(function($){
- var test = false;
- $(window).load(function() {
- if(!test)
- timeline_init_'.$view_id.'($(document));
- });
- function timeline_init_'.$view_id.'($this) {
- $this.find(".scrollable-content").mCustomScrollbar();
- $this.find("a[rel^='prettyPhoto']").prettyPhoto();
- $this.find("#'.$view_id.'").timeline({
- itemMargin : '.$gso_item_margin.',
- scrollSpeed : '.$go_scroll_speed.',
- easing : "'.$go_easing.'",
- openTriggerClass : ''.$gso_read_more.'',
- swipeOn : true,
- startItem : "last",
- yearsOn : '.$go_hide_years.',
- hideTimeline : '.$gso_hide_timeline.',
- hideControles : '.$gso_hide_navigation.',
- closeText : "'.$bso_close_button_text.'",
- closeItemOnTransition: '.$go_close_item_on_transition.'
- });
- $this.find("#'.$view_id.'").on("ajaxLoaded.timeline", function(e){
- var scrCnt = e.element.find(".scrollable-content");
- scrCnt.height(scrCnt.parent().height() - scrCnt.parent().children("h2").height() - parseInt(scrCnt.parent().children("h2").css("margin-bottom")));
- scrCnt.mCustomScrollbar({theme:"light-thin"});
- e.element.find("a[rel^='prettyPhoto']").prettyPhoto();
- e.element.find(".timeline_rollover_bottom").timelineRollover("bottom");
- });
- }
- })(jQuery);', array('type' => 'inline', 'scope' => 'footer', 'weight' => 5)); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement