Add subtome-button to syndication plugin, init
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
Version 2.0-beta3 ()
|
||||
------------------------------------------------------------------------
|
||||
* Add otpional subToMe-button to syndication plugin
|
||||
|
||||
* Use Browsercache to save cache and restore entries
|
||||
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
@define('INSTALL_DBPREFIX_INVALID', 'The database table name prefix must not be empty and may only contain letters, numbers and the underscore character.');
|
||||
@define('SYNDICATION_PLUGIN_SUBTOME', 'subToMe');
|
||||
@define('SYNDICATION_PLUGIN_SUBTOME_DESC', 'Show the subToMe button, a layer to make feed subscription easier');
|
||||
@@ -9,7 +9,7 @@ class serendipity_plugin_syndication extends serendipity_plugin {
|
||||
$propbag->add('description', SHOWS_RSS_BLAHBLAH);
|
||||
$propbag->add('stackable', true);
|
||||
$propbag->add('author', 'Serendipity Team');
|
||||
$propbag->add('version', '1.4');
|
||||
$propbag->add('version', '1.5');
|
||||
$propbag->add('configuration', array(
|
||||
'title',
|
||||
'fullfeed',
|
||||
@@ -41,6 +41,7 @@ class serendipity_plugin_syndication extends serendipity_plugin {
|
||||
'big_img',
|
||||
'feed_name',
|
||||
'comment_name',
|
||||
'subToMe'
|
||||
)
|
||||
);
|
||||
$propbag->add('groups', array('FRONTEND_VIEWS'));
|
||||
@@ -275,6 +276,14 @@ class serendipity_plugin_syndication extends serendipity_plugin {
|
||||
$propbag->add('default', '');
|
||||
break;
|
||||
|
||||
case 'subToMe':
|
||||
$propbag->add('type', 'boolean');
|
||||
$propbag->add('name', SYNDICATION_PLUGIN_SUBTOME);
|
||||
$propbag->add('description', SYNDICATION_PLUGIN_SUBTOME_DESC);
|
||||
$propbag->add('default', false);
|
||||
break;
|
||||
|
||||
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
@@ -312,6 +321,18 @@ class serendipity_plugin_syndication extends serendipity_plugin {
|
||||
<?php
|
||||
}
|
||||
|
||||
if (serendipity_db_bool($this->get_config('subToMe', true))) {
|
||||
?>
|
||||
<div>
|
||||
<a href="<?php echo serendipity_rewriteURL(PATH_FEEDS .'/index.rss2', 'serendipityHTTPPath') ?>"
|
||||
onclick="var s=document.createElement('script');s.src='https://www.subtome.com/load.js';document.body.appendChild(s);return false;">
|
||||
<img id="serendipity_syndication_subToMe" class="serendipity_xml_icon" src="<?php echo serendipity_getTemplateFile('img/subtome.png'); ?>"
|
||||
alt="subToMe" />
|
||||
</a>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
?><ul class="plainList"><?php
|
||||
|
||||
if (serendipity_db_bool($this->get_config('show_0.91', true))) {
|
||||
@@ -410,6 +431,7 @@ class serendipity_plugin_syndication extends serendipity_plugin {
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
echo '</ul>';
|
||||
}
|
||||
|
||||
|
||||
BIN
templates/2k11/img/subtome.png
Normal file
BIN
templates/2k11/img/subtome.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
Reference in New Issue
Block a user