Changeset 3782 for extensions


Ignore:
Timestamp:
Aug 22, 2009, 9:21:10 PM (15 years ago)
Author:
vdigital
Message:

2nd version close to the initial version (Not working currently).

Location:
extensions/akBookStyle/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/akBookStyle/trunk/ak_loader.php

    r3781 r3782  
    4040  return;
    4141}
    42 global $template;
     42define('PHPWG_ROOT_PATH','../../');
     43define('IN_ADMIN', false);
     44include_once(PHPWG_ROOT_PATH.'include/common.inc.php');
     45load_language('plugin.lang', WHOIS_ONLINE_PATH);
     46include(PHPWG_ROOT_PATH.'include/section_init.inc.php');
     47include_once(PHPWG_ROOT_PATH.'include/functions_picture.inc.php');
     48
    4349$ak_ids = pwg_get_session_var('image_ids', array());
    4450/* Fill in correctly */
     
    5864}
    5965
    60 
    6166/* On going */
    6267$AK_PIC_SRC = get_image_path( $picture['current'] );
     
    7378$template->assign( 'AK_PIC_SRC', $AK_PIC_SRC );
    7479$template->pparse('picture_reload');
    75 exit(0);
     80exit(255);
    7681
    7782?>
  • extensions/akBookStyle/trunk/init.php

    r3781 r3782  
    4747
    4848set_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 }
    5449?>
  • extensions/akBookStyle/trunk/template/ak_reloaded_image.tpl

    r3781 r3782  
    3737</div>
    3838{/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  
    7878</table>
    7979{/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.