Changeset 3782 for extensions/akBookStyle
- Timestamp:
- Aug 22, 2009, 9:21:10 PM (15 years ago)
- Location:
- extensions/akBookStyle/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/akBookStyle/trunk/ak_loader.php
r3781 r3782 40 40 return; 41 41 } 42 global $template; 42 define('PHPWG_ROOT_PATH','../../'); 43 define('IN_ADMIN', false); 44 include_once(PHPWG_ROOT_PATH.'include/common.inc.php'); 45 load_language('plugin.lang', WHOIS_ONLINE_PATH); 46 include(PHPWG_ROOT_PATH.'include/section_init.inc.php'); 47 include_once(PHPWG_ROOT_PATH.'include/functions_picture.inc.php'); 48 43 49 $ak_ids = pwg_get_session_var('image_ids', array()); 44 50 /* Fill in correctly */ … … 58 64 } 59 65 60 61 66 /* On going */ 62 67 $AK_PIC_SRC = get_image_path( $picture['current'] ); … … 73 78 $template->assign( 'AK_PIC_SRC', $AK_PIC_SRC ); 74 79 $template->pparse('picture_reload'); 75 exit( 0);80 exit(255); 76 81 77 82 ?> -
extensions/akBookStyle/trunk/init.php
r3781 r3782 47 47 48 48 set_plugin_data($plugin['id'], $plugin_config); 49 add_event_handler('loc_begin_page_header', 'ak_loader');50 function ak_loader()51 {52 include_once AK_PLUGIN_ROOT . '/ak_loader.php';53 }54 49 ?> -
extensions/akBookStyle/trunk/template/ak_reloaded_image.tpl
r3781 r3782 37 37 </div> 38 38 {/if} 39 40 41 {known_script id="jquery" src=$ROOT_URL|cat:"template-common/lib/jquery.packed.js"} 42 {html_head} 43 <link rel="stylesheet" type="text/css" href="{$AK_PLUGIN_CSS}/ak_style.css"> 44 {literal} 45 <script type="text/javascript">// <![CDATA[ 46 $(document).ready(function() { 47 $("a.load") 48 .click(function() { 49 $("#reload").load("./plugins/ak_loader.php?"+this.href); 50 return false; 51 }); 52 }); 53 // ]]> 54 </script> 55 {/literal} 56 {/html_head} -
extensions/akBookStyle/trunk/template/ak_thumbnails.tpl
r3781 r3782 78 78 </table> 79 79 {/if} 80 81 {known_script id="jquery" src=$ROOT_URL|cat:"template-common/lib/jquery.packed.js"}82 {html_head}83 <link rel="stylesheet" type="text/css" href="{$AK_PLUGIN_CSS}/ak_style.css">84 {literal}85 <script type="text/javascript">// <![CDATA[86 $(document).ready(function() {87 $("a.load")88 .click(function() {89 $("#reload").load(this.href+"/reload");90 return false;91 });92 });93 // ]]>94 </script>95 {/literal}96 {/html_head}
Note: See TracChangeset
for help on using the changeset viewer.