commentSpice: Removed spice from admins comment editor.
This commit is contained in:
parent
13f4ceb782
commit
bd1b8a09e5
2 changed files with 5 additions and 2 deletions
|
@ -3,5 +3,6 @@ Version 1.01
|
||||||
* Preview comment is not loosing article promotion selection anymore.
|
* Preview comment is not loosing article promotion selection anymore.
|
||||||
* The article selector was not hiding again on invalid URLs (only clearing options).
|
* The article selector was not hiding again on invalid URLs (only clearing options).
|
||||||
* The internal styling of the article selector is optional now.
|
* The internal styling of the article selector is optional now.
|
||||||
|
* Removed spice from admins comment editor.
|
||||||
* Added some css / templating fixes proposed by @yellowled. Thanks!
|
* Added some css / templating fixes proposed by @yellowled. Thanks!
|
||||||
* 2k11 commentform.tpl patchfile changed. Please update if you use it!
|
* 2k11 commentform.tpl patchfile changed. Please update if you use it!
|
||||||
|
|
|
@ -928,6 +928,9 @@ class serendipity_event_commentspice extends serendipity_event
|
||||||
function printCommentEditExtras(&$eventData, &$addData) {
|
function printCommentEditExtras(&$eventData, &$addData) {
|
||||||
global $serendipity;
|
global $serendipity;
|
||||||
|
|
||||||
|
// Don't put extras on admin menu. They are not working there:
|
||||||
|
if (isset($eventData['GET']['action']) && $eventData['GET']['action']=='admin') return;
|
||||||
|
|
||||||
$config_twitter = $this->get_config('twitterinput','enabled');
|
$config_twitter = $this->get_config('twitterinput','enabled');
|
||||||
$config_announce =$this->get_config('announcerss','disabled');
|
$config_announce =$this->get_config('announcerss','disabled');
|
||||||
$do_twitter = $config_twitter!='disabled';
|
$do_twitter = $config_twitter!='disabled';
|
||||||
|
@ -965,7 +968,6 @@ class serendipity_event_commentspice extends serendipity_event
|
||||||
echo '<div id="serendipity_commentspice_boo_desc" class="serendipity_commentDirection serendipity_comment_spice">' . "\n";
|
echo '<div id="serendipity_commentspice_boo_desc" class="serendipity_commentDirection serendipity_comment_spice">' . "\n";
|
||||||
echo '<a href="http://audioboo.fm/profile" target="_blank"><img src="' . $serendipity['baseURL'] . 'index.php?/plugin/audioboo.png" class="commentspice_ico" title="Audioboo.com"></a>' . "\n";
|
echo '<a href="http://audioboo.fm/profile" target="_blank"><img src="' . $serendipity['baseURL'] . 'index.php?/plugin/audioboo.png" class="commentspice_ico" title="Audioboo.com"></a>' . "\n";
|
||||||
echo PLUGIN_EVENT_COMMENTSPICE_BOO_FOOTER . '<br/>' . "\n";
|
echo PLUGIN_EVENT_COMMENTSPICE_BOO_FOOTER . '<br/>' . "\n";
|
||||||
|
|
||||||
echo '<a href="http://audioboo.fm/boos/new" target="_blank"><img src="' . $serendipity['baseURL'] . 'index.php?/plugin/spiceicorecord.png" class="commentspice_ico" title="create a boo" alt="record" onClick="window.open(\'http://audioboo.fm/boos/new\',\'recordboo\',\'width=600,height=300\');return false;"></a>' . "\n";
|
echo '<a href="http://audioboo.fm/boos/new" target="_blank"><img src="' . $serendipity['baseURL'] . 'index.php?/plugin/spiceicorecord.png" class="commentspice_ico" title="create a boo" alt="record" onClick="window.open(\'http://audioboo.fm/boos/new\',\'recordboo\',\'width=600,height=300\');return false;"></a>' . "\n";
|
||||||
echo '<input class="commentspice_boo_input" type="url" id="serendipity_commentform_boo" name="serendipity[boo]" placeholder="' . PLUGIN_EVENT_COMMENTSPICE_BOO_PLACEHOLDER . '" value=""/>' . "\n";
|
echo '<input class="commentspice_boo_input" type="url" id="serendipity_commentform_boo" name="serendipity[boo]" placeholder="' . PLUGIN_EVENT_COMMENTSPICE_BOO_PLACEHOLDER . '" value=""/>' . "\n";
|
||||||
echo '</div>' . "\n";
|
echo '</div>' . "\n";
|
||||||
|
|
Loading…
Reference in a new issue