Changeset 3033 for plugins/atReply/_public.php
- Timestamp:
- 05/14/11 21:27:03 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/atReply/_public.php
r2459 r3033 31 31 $core->addBehavior('templateAfterValue',array('AtReplyTpl','templateAfterValue')); 32 32 33 if ($core->blog->settings->atreply_active) 33 $core->blog->settings->addNamespace('atreply'); 34 35 if ($core->blog->settings->atreply->atreply_active) 34 36 { 35 37 $core->addBehavior('publicHeadContent',array('AtReplyTpl','publicHeadContent')); … … 59 61 public static function publicHeadContent($core) 60 62 { 61 $set = $core->blog->settings ;63 $set = $core->blog->settings->atreply; 62 64 63 65 $QmarkURL = $core->blog->getQmarkURL(); … … 67 69 && (file_exists($core->blog->public_path.'/atReply/reply.png'))) 68 70 { 69 $image_url = $set->public_url.'/atReply/reply.png'; 71 $image_url = $core->blog->settings->system->public_url. 72 '/atReply/reply.png'; 70 73 } 71 74 else … … 76 79 77 80 $entry_url = ''; 81 78 82 # simple and effective test on entry, from dcTemplate::SysIf()) 79 83 if (($GLOBALS['_ctx']->posts !== null) … … 84 88 } 85 89 86 $title = (($set->atreply_display_title) ? ' true' : 'false');90 $title = (($set->atreply_display_title) ? '1' : '0'); 87 91 88 92 # Javascript … … 92 96 'var atReplyEntryURL = \''. 93 97 html::escapeHTML($entry_url).'\';'."\n". 94 'var atReplyDisplayTitle = new Boolean('.$title.');'."\n".98 'var atReplyDisplayTitle = '.$title.';'."\n". 95 99 'var atReplyTitle = \''. 96 html::escapeHTML(__('Reply to this comment ')).'\';'."\n".100 html::escapeHTML(__('Reply to this comment by {author}')).'\';'."\n". 97 101 'var atReplyImage = \''.$image_url.'\';'."\n". 98 102 'var atReply_switch_text = \''.
Note: See TracChangeset
for help on using the changeset viewer.