Dotclear

Changeset 1333


Ignore:
Timestamp:
07/14/09 01:17:56 (14 years ago)
Author:
Apercite
Message:

Publication of the version 1.0.3 stable without js folder

Location:
plugins/apercite
Files:
4 added
3 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • plugins/apercite/ChangeLog

    r1327 r1333  
    11apercite : Apercite is a module to include a thumbnail of your links in your post. 
     2 
     3version 1.0.3 (07/14/2009): 
     4     * Publication of the version 1.0.3 stable 
     5 
     6version 1.0.3b3 (07/13/2009): 
     7     * Add #link-summarizer to display a thumbnail 
     8 
     9version 1.0.3b2 (07/13/2009): 
     10     * Add escapeHTML in index.php 
     11 
     12version 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. 
    215 
    316version 1.0.2 (07/13/2009): 
     
    518     * Update the Javascript to display the div on the left or on the right according 
    619       to the position of the mouse. 
    7         
     20   
    821version 1.0.1 (07/12/2009): 
    922     * Add CSS z-index on div to display the thumbnail 
  • plugins/apercite/_admin.php

    r1323 r1333  
    1111# -- END LICENSE BLOCK ------------------------------------ 
    1212 
    13 if (!defined('DC_CONTEXT_ADMIN')) exit; 
     13if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1414 
    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', 
    1616          preg_match('/plugin.php\?p=apercite(&.*)?$/',$_SERVER['REQUEST_URI']), 
    1717          $core->auth->isSuperAdmin()); 
    1818 
    19 $__autoload['aperciteBehaviors'] = dirname(__FILE__).'/lib.apercite.php'; 
     19$__autoload['aperciteBehaviors'] = dirname(__FILE__).'/inc/lib.apercite.php'; 
    2020 
    2121$core->addBehavior('adminPostFormSidebar',array('aperciteBehaviors','aperciteForm')); 
  • plugins/apercite/_define.php

    r1326 r1333  
    1111# -- END LICENSE BLOCK ------------------------------------ 
    1212 
     13if (!defined('DC_RC_PATH')) { return; } 
     14 
    1315$this->registerModule( 
    1416     /* Name */                    "Apercite", 
    1517     /* Description*/         "Apercite is a module to include a thumbnail of your links in your post.", 
    1618     /* Author */             "Francis Besset", 
    17      /* Version */            '1.0.2', 
     19     /* Version */            '1.0.3', 
    1820     /* Permissions */        'admin' 
    1921); 
  • plugins/apercite/_public.php

    r1326 r1333  
    1111# -- END LICENSE BLOCK ------------------------------------ 
    1212 
     13if (!defined('DC_RC_PATH')) { return; } 
     14 
    1315$core->addBehavior('publicHeadContent',array('apercitePublic','publicHeadContent')); 
    1416 
     
    2224           
    2325          $url = $core->blog->getQmarkURL().'pf='.basename(dirname(__FILE__)); 
    24            
     26                     
    2527          $size = ($core->blog->settings->apercite_size || $core->blog->settings->apercite_size === null ? explode('x',$core->blog->settings->apercite_size) : array(120,90)); 
    2628          $javascript = ($core->blog->settings->apercite_javascript || $core->blog->settings->apercite_javascript === null ? 'oui' : 'non'); 
     
    2931          echo 
    3032          '<style type="text/css">'."\n". 
    31           '@import url('.$url.'/css/apercite.css);'."\n". 
     33          '@import url('.$url.'/style.css);'."\n". 
    3234          '</style>'."\n". 
    3335          '<script type="text/javascript" src="'.$url.'/js/apercite.js"></script>'."\n". 
     
    3638          '$(function() {'."\n". 
    3739          '$("div#content").apercite({'."\n". 
    38           '"baseURL":"'.substr($core->blog->url, 0, -1).'",'."\n". 
     40          '"baseURL":"'.$core->blog->host.'",'."\n". 
    3941          '"localLink":"'.($core->blog->settings->apercite_local_link || $core->blog->settings->apercite_local_link === null ? 'oui' : 'non').'",'."\n". 
    4042          '"sizeX":'.$size[0].','."\n". 
  • plugins/apercite/index.php

    r1326 r1333  
    102102'<p><label class="classic">'. 
    103103__('Apercite login').' :<br />'. 
    104 form::field('apercite_login',20,16,$core->blog->settings->apercite_login). 
     104form::field('apercite_login',20,16,html::escapeHTML($core->blog->settings->apercite_login)). 
    105105'</label></p>'. 
    106106'<p><label class="classic">'. 
    107107__('Apercite api key').' :<br />'. 
    108 form::field('apercite_api_key',20,32,$core->blog->settings->apercite_api_key). 
     108form::field('apercite_api_key',20,32,html::escapeHTML($core->blog->settings->apercite_api_key)). 
    109109'</label></p>'. 
    110110'</fieldset>'; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map