Changeset 1333
- Timestamp:
- 07/14/09 01:17:56 (14 years ago)
- Location:
- plugins/apercite
- Files:
-
- 4 added
- 3 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/apercite/ChangeLog
r1327 r1333 1 1 apercite : Apercite is a module to include a thumbnail of your links in your post. 2 3 version 1.0.3 (07/14/2009): 4 * Publication of the version 1.0.3 stable 5 6 version 1.0.3b3 (07/13/2009): 7 * Add #link-summarizer to display a thumbnail 8 9 version 1.0.3b2 (07/13/2009): 10 * Add escapeHTML in index.php 11 12 version 1.0.3b (07/13/2009): 13 * Global change to respect the rules of DotClear 14 * Correction of the option of display of the external links only. 2 15 3 16 version 1.0.2 (07/13/2009): … … 5 18 * Update the Javascript to display the div on the left or on the right according 6 19 to the position of the mouse. 7 20 8 21 version 1.0.1 (07/12/2009): 9 22 * Add CSS z-index on div to display the thumbnail -
plugins/apercite/_admin.php
r1323 r1333 11 11 # -- END LICENSE BLOCK ------------------------------------ 12 12 13 if (!defined('DC_CONTEXT_ADMIN')) exit;13 if (!defined('DC_CONTEXT_ADMIN')) { return; } 14 14 15 $_menu['Plugins']->addItem(__('Apercite'),'plugin.php?p=apercite','index.php?pf=apercite/ apercite.gif',15 $_menu['Plugins']->addItem(__('Apercite'),'plugin.php?p=apercite','index.php?pf=apercite/icon.png', 16 16 preg_match('/plugin.php\?p=apercite(&.*)?$/',$_SERVER['REQUEST_URI']), 17 17 $core->auth->isSuperAdmin()); 18 18 19 $__autoload['aperciteBehaviors'] = dirname(__FILE__).'/ lib.apercite.php';19 $__autoload['aperciteBehaviors'] = dirname(__FILE__).'/inc/lib.apercite.php'; 20 20 21 21 $core->addBehavior('adminPostFormSidebar',array('aperciteBehaviors','aperciteForm')); -
plugins/apercite/_define.php
r1326 r1333 11 11 # -- END LICENSE BLOCK ------------------------------------ 12 12 13 if (!defined('DC_RC_PATH')) { return; } 14 13 15 $this->registerModule( 14 16 /* Name */ "Apercite", 15 17 /* Description*/ "Apercite is a module to include a thumbnail of your links in your post.", 16 18 /* Author */ "Francis Besset", 17 /* Version */ '1.0. 2',19 /* Version */ '1.0.3', 18 20 /* Permissions */ 'admin' 19 21 ); -
plugins/apercite/_public.php
r1326 r1333 11 11 # -- END LICENSE BLOCK ------------------------------------ 12 12 13 if (!defined('DC_RC_PATH')) { return; } 14 13 15 $core->addBehavior('publicHeadContent',array('apercitePublic','publicHeadContent')); 14 16 … … 22 24 23 25 $url = $core->blog->getQmarkURL().'pf='.basename(dirname(__FILE__)); 24 26 25 27 $size = ($core->blog->settings->apercite_size || $core->blog->settings->apercite_size === null ? explode('x',$core->blog->settings->apercite_size) : array(120,90)); 26 28 $javascript = ($core->blog->settings->apercite_javascript || $core->blog->settings->apercite_javascript === null ? 'oui' : 'non'); … … 29 31 echo 30 32 '<style type="text/css">'."\n". 31 '@import url('.$url.'/ css/apercite.css);'."\n".33 '@import url('.$url.'/style.css);'."\n". 32 34 '</style>'."\n". 33 35 '<script type="text/javascript" src="'.$url.'/js/apercite.js"></script>'."\n". … … 36 38 '$(function() {'."\n". 37 39 '$("div#content").apercite({'."\n". 38 '"baseURL":"'. substr($core->blog->url, 0, -1).'",'."\n".40 '"baseURL":"'.$core->blog->host.'",'."\n". 39 41 '"localLink":"'.($core->blog->settings->apercite_local_link || $core->blog->settings->apercite_local_link === null ? 'oui' : 'non').'",'."\n". 40 42 '"sizeX":'.$size[0].','."\n". -
plugins/apercite/index.php
r1326 r1333 102 102 '<p><label class="classic">'. 103 103 __('Apercite login').' :<br />'. 104 form::field('apercite_login',20,16, $core->blog->settings->apercite_login).104 form::field('apercite_login',20,16,html::escapeHTML($core->blog->settings->apercite_login)). 105 105 '</label></p>'. 106 106 '<p><label class="classic">'. 107 107 __('Apercite api key').' :<br />'. 108 form::field('apercite_api_key',20,32, $core->blog->settings->apercite_api_key).108 form::field('apercite_api_key',20,32,html::escapeHTML($core->blog->settings->apercite_api_key)). 109 109 '</label></p>'. 110 110 '</fieldset>';
Note: See TracChangeset
for help on using the changeset viewer.