Changeset 3764 for extensions
- Timestamp:
- Aug 20, 2009, 10:50:54 PM (15 years ago)
- Location:
- extensions/akBookStyle/trunk
- Files:
-
- 11 added
- 1 deleted
- 1 edited
- 2 copied
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
extensions/akBookStyle/trunk/admin.php
r3762 r3764 21 21 // +-----------------------------------------------------------------------+ 22 22 23 if (!defined('PHPWG_ROOT_PATH')) { 24 die('Hacking attempt!'); 25 } 26 27 $GLOBALS['template']->set_filenames(array('plugin_admin_content' => AK_PLUGIN_TEMPLATE . '/admin.tpl')); 28 $GLOBALS['template']->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content'); 23 29 ?> -
extensions/akBookStyle/trunk/init.php
r3761 r3764 21 21 // +-----------------------------------------------------------------------+ 22 22 23 if (!defined('PHPWG_ROOT_PATH')) { 24 die('Hacking attempt!'); 25 } 26 27 define('AK_PLUGIN_NAME', 'ak Book Style'); 28 define('AK_PLUGIN_ROOT', dirname(__FILE__)); 29 define('AK_PLUGIN_LANG', AK_PLUGIN_ROOT . '/'); 30 define('AK_PLUGIN_TEMPLATE', AK_PLUGIN_ROOT . '/template'); 31 define('AK_PLUGIN_CSS', PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)). '/css'); 32 define('AK_PLUGIN_JS', PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)). '/js'); 33 define('AK_PLUGIN_IMGS', PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)). '/imgs'); 34 35 include_once "include/akConfig.class.php"; 36 37 load_language('plugin.lang', AK_PLUGIN_LANG); 38 39 $plugin_config = new akConfig(AK_PLUGIN_ROOT, AK_PLUGIN_NAME); 40 $plugin_config->load_config(); 41 42 if (defined('IN_ADMIN')) { 43 add_event_handler('get_admin_plugin_menu_links', array($plugin_config, 'plugin_admin_menu')); 44 } else { 45 include_once AK_PLUGIN_ROOT . '/public.php'; 46 } 47 48 set_plugin_data($plugin['id'], $plugin_config); 23 49 ?> -
extensions/akBookStyle/trunk/public.php
r3762 r3764 21 21 // +-----------------------------------------------------------------------+ 22 22 23 if (!defined('PHPWG_ROOT_PATH')) { 24 die('Hacking attempt!'); 25 } 23 26 ?> -
extensions/akBookStyle/trunk/template/ak_thumbnails.tpl
r3762 r3764 28 28 29 29 <table class="ak_display"> 30 <tr> 31 <td> 32 {* thumbnails in table versus *} 33 <table class="thumbnails"> 34 {foreach from=$thumbnails item=thumbnail name=tn} 35 {if $smarty.foreach.tn.index % $AK_BY_LINE == 0} 36 <tr class="nline"> 37 {/if} 38 <td class="ncol"> 39 <a href="{$thumbnail.AK_URL}" class="load"> 40 <img class="thumbnail" src="{$thumbnail.TN_SRC}" 41 alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}"> 42 </a> 43 </td> 44 {if $smarty.foreach.tn.index % $AK_BY_LINE == 0} 45 </tr> 46 {/if} 47 {/foreach} 48 49 {if !empty($NAV_BAR) } {* thumbnails navigation bar *} 50 <tr class="nline"> 51 <td class="left"> 52 {if isset($AK_NAV_PREV)} 53 <a class="navButton" href="{$AK_NAV_PREV}" 54 title="{'previous_page'|@translate}"> 55 <img src="{$ROOT_URL}{$themeconf.icon_dir}/left.png" 56 class="button" alt="{'previous_page'|@translate}"> 57 </a> 58 {/if} 59 </td> 60 <td class="right"> 61 {if isset($AK_NAV_NEXT)} 62 <a class="navButton" href="{$AK_NAV_NEXT}" 63 title="{'next_page'|@translate}"> 64 <img src="{$ROOT_URL}{$themeconf.icon_dir}/right.png" 65 class="button" alt="{'next_page'|@translate}"> 66 </a> 67 {/if} 68 </td> 69 </tr> 70 {/if} 71 </table> 72 {/if} 73 </td> 30 <tr> 31 <td> 32 {* thumbnails in table versus *} 33 <table class="thumbnails"> 34 {foreach from=$thumbnails item=thumbnail name=tn} 35 {if $smarty.foreach.tn.index % $AK_BY_LINE == 0} 36 <tr class="nline"> 37 {/if} 38 <td class="ncol"> 39 <a href="{$thumbnail.AK_URL}" class="load"> 40 <img class="thumbnail" src="{$thumbnail.TN_SRC}" 41 alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}"> 42 </a> 43 </td> 44 {if $smarty.foreach.tn.index % $AK_BY_LINE == 0} 45 </tr> 46 {/if} 47 {/foreach} 74 48 75 <td> 76 {include file='ak_reloaded_image.tpl'|@get_extent:'picture_reload'} 77 </td> 78 </tr> 49 {if !empty($NAV_BAR) } {* thumbnails navigation bar *} 50 <tr class="nline"> 51 <td class="left"> 52 {if isset($AK_NAV_PREV)} 53 <a class="navButton" href="{$AK_NAV_PREV}" 54 title="{'previous_page'|@translate}"> 55 <img src="{$ROOT_URL}{$themeconf.icon_dir}/left.png" 56 class="button" alt="{'previous_page'|@translate}"> 57 </a> 58 {/if} 59 </td> 60 <td class="right"> 61 {if isset($AK_NAV_NEXT)} 62 <a class="navButton" href="{$AK_NAV_NEXT}" 63 title="{'next_page'|@translate}"> 64 <img src="{$ROOT_URL}{$themeconf.icon_dir}/right.png" 65 class="button" alt="{'next_page'|@translate}"> 66 </a> 67 {/if} 68 </td> 69 </tr> 70 {/if} 71 </table> 72 {/if} 73 </td> 74 75 <td> 76 {include file='ak_reloaded_image.tpl'|@get_extent:'picture_reload'} 77 </td> 78 </tr> 79 79 </table> 80 80 {/if} … … 85 85 {literal} 86 86 <script type="text/javascript">// <![CDATA[ 87 $( document).ready(function () {87 $(function() { 88 88 $("a.load") 89 89 .click(function() {
Note: See TracChangeset
for help on using the changeset viewer.