Tabs to spaces.
This commit is contained in:
parent
cc78aca0d2
commit
1a91f85438
@ -42,7 +42,7 @@ if (!defined('STATUSNET')) {
|
|||||||
|
|
||||||
class AwesomenessPlugin extends Plugin
|
class AwesomenessPlugin extends Plugin
|
||||||
{
|
{
|
||||||
const VERSION = '0.0.42';
|
const VERSION = '0.0.42';
|
||||||
|
|
||||||
public function onPluginVersion(&$versions)
|
public function onPluginVersion(&$versions)
|
||||||
{
|
{
|
||||||
@ -72,22 +72,22 @@ class AwesomenessPlugin extends Plugin
|
|||||||
$action->elementStart('div', array('id' => 'cornify_section',
|
$action->elementStart('div', array('id' => 'cornify_section',
|
||||||
'class' => 'section'));
|
'class' => 'section'));
|
||||||
|
|
||||||
$action->raw(
|
$action->raw(
|
||||||
<<<EOT
|
<<<EOT
|
||||||
<a href="http://www.cornify.com" onclick="cornify_add();return false;">
|
<a href="http://www.cornify.com" onclick="cornify_add();return false;">
|
||||||
<img src="http://www.cornify.com/assets/cornify.gif" width="61" height="16" border="0" alt="Cornify" />
|
<img src="http://www.cornify.com/assets/cornify.gif" width="61" height="16" border="0" alt="Cornify" />
|
||||||
</a>
|
</a>
|
||||||
<script type="text/javascript">(function() {
|
<script type="text/javascript">(function() {
|
||||||
var js = document.createElement('script');
|
var js = document.createElement('script');
|
||||||
js.type = 'text/javascript';
|
js.type = 'text/javascript';
|
||||||
js.async = true;
|
js.async = true;
|
||||||
js.src = 'http://www.cornify.com/js/cornify.js';
|
js.src = 'http://www.cornify.com/js/cornify.js';
|
||||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(js);
|
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(js);
|
||||||
})();</script>
|
})();</script>
|
||||||
EOT
|
EOT
|
||||||
);
|
);
|
||||||
|
|
||||||
$action->elementEnd('div');
|
$action->elementEnd('div');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -102,7 +102,7 @@ EOT
|
|||||||
*/
|
*/
|
||||||
function onStartSaveNewNoticeWeb($action, $user, &$content, &$options)
|
function onStartSaveNewNoticeWeb($action, $user, &$content, &$options)
|
||||||
{
|
{
|
||||||
$content = htmlspecialchars($content);
|
$content = htmlspecialchars($content);
|
||||||
$options['rendered'] = preg_replace("/(^|\s|-)((?:awesome|awesomeness)[\?!\.\,]?)(\s|$)/i", " <b>$2</b> ", $content);
|
$options['rendered'] = preg_replace("/(^|\s|-)((?:awesome|awesomeness)[\?!\.\,]?)(\s|$)/i", " <b>$2</b> ", $content);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user