Changeset 3120
- Timestamp:
- 02/18/13 21:49:28 (11 years ago)
- Location:
- plugins/subscribeToComments
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/subscribeToComments/_admin.php
r2294 r3120 32 32 $core->auth->check('admin',$core->blog->id)); 33 33 34 if ($core->blog->settings->subscribetocomments_active) 34 $core->blog->settings->addNamespace('subscribetocomments'); 35 if ($core->blog->settings->subscribetocomments->subscribetocomments_active) 35 36 { 36 37 $core->addBehavior('coreAfterCommentCreate',array('subscribeToComments', … … 66 67 67 68 /** 68 display information son the admin comment form69 display information on the admin comment form 69 70 @param rs <b>recordset</b> Recordset 70 71 @return <b>string</b> String -
plugins/subscribeToComments/_define.php
r2594 r3120 32 32 /* Description*/ "Subscribe to comments by email", 33 33 /* Author */ "Moe (http://gniark.net/)", 34 /* Version */ '1.4-alpha 1',34 /* Version */ '1.4-alpha2', 35 35 /* Permissions */ 'admin' 36 36 ); -
plugins/subscribeToComments/_install.php
r2294 r3120 27 27 28 28 if (!defined('DC_CONTEXT_ADMIN')) {return;} 29 30 // une erreur dans @Reply a fait passer cette version à 1.6.4 31 // il faudrait ramener cette valeur à un niveau "normal" 29 32 30 33 # On lit la version du plugin -
plugins/subscribeToComments/_public.php
r2594 r3120 40 40 } 41 41 42 if ($core->blog->settings->subscribetocomments_active) 42 $core->blog->settings->addNamespace('subscribetocomments'); 43 if ($core->blog->settings->subscribetocomments->subscribetocomments_active) 43 44 { 44 45 # behaviors … … 92 93 93 94 # add code to post.html 94 if ($core->blog->settings->subscribetocomments _tpl_checkbox === true)95 if ($core->blog->settings->subscribetocomments->subscribetocomments_tpl_checkbox === true) 95 96 { 96 97 $core->addBehavior('publicCommentFormAfterContent', 97 98 array('subscribeToCommentsTpl','publicCommentFormAfterContent')); 98 99 } 99 if ($core->blog->settings->subscribetocomments _tpl_css === true)100 if ($core->blog->settings->subscribetocomments->subscribetocomments_tpl_css === true) 100 101 { 101 102 $core->addBehavior('publicHeadContent', 102 103 array('subscribeToCommentsTpl','publicHeadContent')); 103 104 } 104 if ($core->blog->settings->subscribetocomments _tpl_link === true)105 if ($core->blog->settings->subscribetocomments->subscribetocomments_tpl_link === true) 105 106 { 106 107 $core->addBehavior('templateAfterBlock', -
plugins/subscribeToComments/inc/class.subscriber.php
r2294 r3120 172 172 $cur->insert(); 173 173 174 if ($core->blog->settings->subscribetocomments _subscribe_active)174 if ($core->blog->settings->subscribetocomments->subscribetocomments_subscribe_active) 175 175 { 176 176 # email … … 214 214 215 215 $url = subscribeToComments::url(). 216 (($core->blog->settings-> url_scan == 'query_string') ? '&' : '?').216 (($core->blog->settings->system->url_scan == 'query_string') ? '&' : '?'). 217 217 'new_email='.urlencode($new_email).'&temp_key='.$key; 218 218 … … 434 434 435 435 return(subscribeToComments::url(). 436 (($core->blog->settings-> url_scan == 'query_string') ? '&' : '?').'email='.436 (($core->blog->settings->system->url_scan == 'query_string') ? '&' : '?').'email='. 437 437 urlencode($email).'&key='.$key); 438 438 } -
plugins/subscribeToComments/inc/lib.subscribeToComments.document.php
r2294 r3120 41 41 global $core; 42 42 43 if (!$core->blog->settings->subscribetocomments _active)43 if (!$core->blog->settings->subscribetocomments->subscribetocomments_active) 44 44 { 45 45 self::p404(); -
plugins/subscribeToComments/inc/lib.subscribeToComments.php
r2294 r3120 68 68 69 69 if ($_SERVER['REQUEST_TIME'] <= 70 $core->blog->settings->subscribetocomments _clean_keys) {return;}70 $core->blog->settings->subscribetocomments->subscribetocomments_clean_keys) {return;} 71 71 72 72 $core->blog->settings->setNameSpace('subscribetocomments'); … … 102 102 global $core; 103 103 104 $setting = $core->blog->settings-> {'subscribetocomments_'.$setting};104 $setting = $core->blog->settings->subscribetocomments->{'subscribetocomments_'.$setting}; 105 105 106 106 if (strlen($setting) == 0) {return '';} … … 150 150 $tags_email; 151 151 152 $settings =& $core->blog->settings ;152 $settings =& $core->blog->settings->subscribetocomments; 153 153 154 154 # load locales for the blog language 155 155 l10n::set(dirname(__FILE__).'/../locales/'.$lang.'/admin'); 156 157 $settings->setNameSpace('subscribetocomments');158 156 159 157 # Change From: header of outbound emails … … 323 321 324 322 $post_types = @unserialize( 325 $core->blog->settings->subscribetocomments _post_types);323 $core->blog->settings->subscribetocomments->subscribetocomments_post_types); 326 324 327 325 if (empty($post_types)) … … 371 369 # We don't want notification for spam and trackbacks 372 370 # from emailNotification (modified) 373 if ( ($cur->comment_status != 1) OR ($cur->comment_trackback == 1)) {371 if ($cur->comment_status == 1) { 374 372 return; 375 373 } 374 376 375 # /from emailNotification 377 376 … … 451 450 452 451 $headers = array( 453 'From: '.$core->blog->settings->subscribetocomments _email_from,452 'From: '.$core->blog->settings->subscribetocomments->subscribetocomments_email_from, 454 453 'MIME-Version: 1.0', 455 454 'Content-Type: text/plain; charset=UTF-8;', -
plugins/subscribeToComments/inc/lib.subscribeToComments.tpl.php
r2594 r3120 55 55 global $core; 56 56 57 if ($core->blog->settings->subscribetocomments _active)57 if ($core->blog->settings->subscribetocomments->subscribetocomments_active) 58 58 { 59 59 return("<?php echo(subscribeToComments::url().". 60 "((\$core->blog->settings-> url_scan == 'query_string') ? '&' : '?').".60 "((\$core->blog->settings->system->url_scan == 'query_string') ? '&' : '?').". 61 61 "'post_id='.\$_ctx->posts->post_id); ?>"); 62 62 } … … 287 287 # else 288 288 return 289 '<?php if (($core->blog->settings->subscribetocomments _active) &&289 '<?php if (($core->blog->settings->subscribetocomments->subscribetocomments_active) && 290 290 $_ctx->posts->commentsActive()) : ?> 291 291 <div id="subscribetocomments_block"> … … 293 293 <p> 294 294 <a href="<?php echo(subscribeToComments::url(). 295 (($core->blog->settings-> url_scan == "query_string") ? "&" : "?").295 (($core->blog->settings->system->url_scan == "query_string") ? "&" : "?"). 296 296 "post_id=".$_ctx->posts->post_id); ?>"> 297 297 <!-- # If the subscriber is logged in --> … … 327 327 328 328 return 329 '<?php if (($core->blog->settings->subscribetocomments _active) &&329 '<?php if (($core->blog->settings->subscribetocomments->subscribetocomments_active) && 330 330 $_ctx->posts->commentsActive()) : ?> 331 331 <div'.$id.''.$class.'> … … 333 333 <p> 334 334 <a href="<?php echo(subscribeToComments::url(). 335 (($core->blog->settings-> url_scan == "query_string") ? "&" : "?").335 (($core->blog->settings->system->url_scan == "query_string") ? "&" : "?"). 336 336 "post_id=".$_ctx->posts->post_id); ?>"> 337 337 <!-- # If the subscriber is logged in --> -
plugins/subscribeToComments/index.php
r2594 r3120 108 108 ); 109 109 110 $settings =& $core->blog->settings; 110 $core->blog->settings->addNamespace('subscribetocomments'); 111 $settings =& $core->blog->settings->subscribetocomments; 111 112 112 113 # get languages list to restore settings … … 134 135 135 136 $available_tags = array(); 136 137 $settings->setNameSpace('subscribetocomments');138 137 139 138 try … … 249 248 'Link to Subscribe to comments page'); 250 249 250 $core->blog->triggerBlog(); 251 251 252 http::redirect($p_url.'&saveconfig=1&tab=display'); 252 253 } -
plugins/subscribeToComments/locales/fr/admin.lang.php
r2594 r3120 4 4 $GLOBALS['__l10n']['To manage your subscriptions, change your email address or block emails, click here: [manageurl]'] = 'Pour gérer vos abonnements, changer votre adresse email ou bloquer les emails, cliquez ici : [manageurl]'; 5 5 $GLOBALS['__l10n']['Your account on [blogname]'] = 'Votre compte sur [blogname]'; 6 $GLOBALS['__l10n']['here are some informations about your account on [blogname]:'] = 'voici quelques informations à propos de votre compte sur [blogname] :';6 $GLOBALS['__l10n']['here are some informations about your account on [blogname]:'] = 'voici quelques informations à propos de votre compte sur [blogname] :'; 7 7 $GLOBALS['__l10n']['Email address: [email]'] = 'Adresse email : [email]'; 8 8 $GLOBALS['__l10n']['Subscribed to [posttitle] - [blogname]'] = 'Abonné à [posttitle] - [blogname]'; -
plugins/subscribeToComments/locales/fr/admin.po
r2594 r3120 24 24 25 25 msgid "here are some informations about your account on [blogname]:" 26 msgstr "voici quelques informations à propos de votre compte sur [blogname] :"26 msgstr "voici quelques informations à propos de votre compte sur [blogname] :" 27 27 28 28 msgid "Email address: [email]"
Note: See TracChangeset
for help on using the changeset viewer.