Ignore:
Timestamp:
Dec 23, 2012, 2:40:24 PM (11 years ago)
Author:
Klarsfeld
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Panoramas/AS_Panorama.php

    r19460 r19535  
    77if ( !function_exists( 'AS_panorama_content' ) ) {
    88        if ( !defined('IN_ADMIN') or !IN_ADMIN ) {
    9     add_event_handler('render_element_content', 'AS_panorama_content', 99, 2 );
     9    add_event_handler('render_element_content', 'AS_panorama_content', 41, 2 );
    1010    function AS_panorama_content($content, $image)
    1111                {
     
    2020        if (isset($image['width']) and $image['width'] < $asp['min_viewport_width']) return $content;
    2121
    22         $divtag = "<img src=\"";
    23         $divtag.= str_replace( "./", "", $image['path'])."\" width=\"".$image['width']."\" ";
    24         $divtag.= "height=\"".$image['height']."\" ";
    25         $divtag.= "alt=\"".$image['file']."\" id=\"theMainImage\" ";
    26        
    2722        if ($image['height'] > $asp['viewport_height']) {
    2823                $ratio = $image['width'] / $image['height'];
     
    3126        }
    3227
     28        $content = "<img src=\"".str_replace( "./", "", $image['path'])."\" width=\"".$image['width']."\" height=\"".$image['height']."\" alt=\"".$image['file']."\" id=\"theMainImage\"></img>";
     29
     30       
    3331        $asp['image_name'] = $image['name'];
    3432        $asp['width'] = $image['width'];
     
    4139                $asp['name'] = str_replace($asp['in_mode_360'],'', $image['name']);
    4240        }
     41        $asp['footer_view'] = 'false';
    4342       
    4443        $template->set_filenames(
    4544        array('AS_panorama_content' => dirname(__FILE__) . '/template/AS_panorama_content.tpl') );
    4645        $asp['Path'] = embellish_url($template->get_template_vars('ROOT_URL').ASP_PATH);
    47         $asp['content'] = $divtag;
     46        $asp['content'] = $content;
    4847        $template->assign( array( 'ASP' => $asp, ) );
    4948        return $template->parse('AS_panorama_content', true);
Note: See TracChangeset for help on using the changeset viewer.