Changeset 6533 for extensions/Panoramas
- Timestamp:
- Jun 15, 2010, 10:46:56 AM (14 years ago)
- Location:
- extensions/Panoramas
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Panoramas/AS_Panorama.php
r6527 r6533 45 45 $asp = & $conf['AS_panorama']; 46 46 $picture = $template->get_template_vars('current'); 47 $picture['TITLE'] = $asp['name']; 48 $template->assign('current', $picture); 49 $template->assign( array( 'ASP' => $asp, ) ); 47 if ( isset($asp['name']) ) { 48 $picture['TITLE'] = $asp['name']; 49 $template->assign('current', $picture); 50 $template->assign( array( 'ASP' => $asp, ) ); 51 } 50 52 } 51 53 } … … 59 61 array_push($menu, 60 62 array( 61 'NAME' => ' Simple Panorama',63 'NAME' => 'Panoramas', 62 64 'URL' => get_admin_plugin_menu_link(dirname(__FILE__).'/AS_Panorama_admin.php') 63 65 ) -
extensions/Panoramas/AS_Panorama_admin.php
r6527 r6533 1 1 <?php 2 /* Configuration of Panorama */2 /* Configuration of Panoramas */ 3 3 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 4 4 if (!defined('IN_ADMIN') or !IN_ADMIN) die('Hacking attempt!'); -
extensions/Panoramas/language/en_UK/plugin.lang.php
r6527 r6533 10 10 $lang['Off'] = 'Off'; 11 11 $lang['On'] = 'On'; 12 $lang['Panorama configuration'] = 'Panoramaconfiguration';12 $lang['Panoramas configuration'] = 'Panoramas configuration'; 13 13 $lang['Permanent'] = 'Permanent'; 14 14 $lang['Picture name substring could not be empty.'] = 'Picture name substring could not be empty.'; -
extensions/Panoramas/language/fr_FR/plugin.lang.php
r6527 r6533 10 10 $lang['Off'] = 'Inactif'; 11 11 $lang['On'] = 'Actif'; 12 $lang['Panorama configuration'] = 'Configuration';12 $lang['Panoramas configuration'] = 'Configuration'; 13 13 $lang['Permanent'] = 'Permanent'; 14 14 $lang['Picture name substring could not be empty.'] = 'Les critères de sélection des noms d\'images ne peuvent pas être vide.'; -
extensions/Panoramas/template/AS_Panorama_admin.tpl
r6527 r6533 3 3 {/html_head} 4 4 <div class="titrePage"> 5 <h2>Panorama [{$ASP.Ver}]</h2>5 <h2>Panoramas [{$ASP.Ver}]</h2> 6 6 </div> 7 7 <p> … … 13 13 <form method="post" action="" class="general"> 14 14 <fieldset id="ASP_Config"> 15 <legend>{'Panorama configuration'|@translate}</legend>15 <legend>{'Panoramas configuration'|@translate}</legend> 16 16 <table id="table"> 17 17 <tr> -
extensions/Panoramas/template/AS_panorama_content.tpl
r6527 r6533 13 13 var s = (100 - {$ASP.speed}) * 2000; 14 14 var p = Math.round(Math.min(Math.max({$ASP.width} * ( {$ASP.start_position} / 100 ), 0), {$ASP.width})); 15 $("#theImage img").eq(0).removeAttr("style").attr({ldelim}width:{$ASP.width},height:{$ASP.height}}).addClass("simple_panorama"); 16 var options = {ldelim} 17 viewport_width: w, 18 speed: s, 19 direction: '{$ASP.direction}', 20 control_display: '{$ASP.control_display}', 21 start_position : p, 22 auto_start : {$ASP.auto_start}, 23 mode_360 : {$ASP.mode_360}, 24 loop_180 : {$ASP.loop_180} 25 }; 26 $("#theImage img.simple_panorama").panorama(options); 15 if ({$ASP.width} > w) {ldelim} 16 $("#theImage img").eq(0).removeAttr("style").attr({ldelim}width:{$ASP.width},height:{$ASP.height}}).addClass("simple_panorama"); 17 var options = {ldelim} 18 viewport_width: w, 19 speed: s, 20 direction: '{$ASP.direction}', 21 control_display: '{$ASP.control_display}', 22 start_position : p, 23 auto_start : {$ASP.auto_start}, 24 mode_360 : {$ASP.mode_360}, 25 loop_180 : {$ASP.loop_180} 26 }; 27 $("#theImage img.simple_panorama").panorama(options); 28 }; 27 29 }); 28 30 </script> 29 31 {/html_head} 30 <!-- Adapted simply by the "Panorama " plugin (version {$ASP.Ver}): {$ASP.Dir}/template/AS_panorama_content.tpl -->32 <!-- Adapted simply by the "Panoramas" plugin (version {$ASP.Ver}): {$ASP.Dir}/template/AS_panorama_content.tpl --> 31 33 <!-- for: {$ASP.image_name} ({$ASP.width}x{$ASP.height}) --> 32 34 <div id="Panorama">
Note: See TracChangeset
for help on using the changeset viewer.