コード例 #1
0
ファイル: markallread.php プロジェクト: jphpsf/gregarius
function __markallread_sidemenu_folderunreadlabel($existingText)
{
    if (hidePrivate()) {
        return $existingText;
    }
    $options = rss_plugins_get_option(MARKALLREAD_CONFIG_OPTIONS);
    if ($options & MARKALLREAD_OPTION_LINK_FOLDER) {
        return "<a title=\"" . __('Mark This Folder as Read') . "\" href=\"" . getPath() . "feed.php?metaaction=ACT_MARK_FOLDER_READ&amp;folder=" . rss_feeds_folder_id() . "\" onclick=\"return _markallread(this,'folder','" . rss_feeds_folder_name() . "');\">" . $existingText . '</a>';
    } else {
        return $existingText;
    }
}
コード例 #2
0
function rss_feeds_onclickaction($what = null)
{
    if (!getConfig('rss.output.channelcollapse')) {
        return "";
    }
    if ($what) {
        return "_tgl(" . rss_feeds_folder_id() . ",'{$what}'); return false;";
    } else {
        return "_tgl(" . rss_feeds_folder_id() . "); return false;";
    }
}
コード例 #3
0
ファイル: catfolder.php プロジェクト: jphpsf/gregarius
	</a>
	<a href="<?php 
    echo rss_feeds_folder_link();
    ?>
"><?php 
    echo rss_feeds_folder_name();
    ?>
</a>
	<?php 
    echo rss_feeds_folders_unread_count();
    ?>
	
</div>
<?php 
}
?>
<ul id="fc<?php 
echo rss_feeds_folder_id();
?>
" class="<?php 
echo rss_feeds_ul_class();
?>
" style="display:<?php 
echo rss_feeds_ul_style();
?>
">
<?php 
rss_feeds_folder_feeds();
?>
</ul>
コード例 #4
0
ファイル: feedsfolder.php プロジェクト: jphpsf/gregarius
<?php

$displayFolder = FALSE;
// use rss_uri to convert current channel name or feed name to compare to the channel in argument
// note that channel in argument might be channel folder or a feed
if (isset($_GET['channel']) && rss_uri($_GET['channel']) === rss_uri(rss_feeds_folder_name())) {
    $displayFolder = TRUE;
    // as a fallback, if user tried to mark a folder as read, then we should show that same folder open
} else {
    if (isset($_POST['metaaction']) && $_POST['metaaction'] == 'ACT_MARK_FOLDER_READ' && $_POST["folder"] === rss_feeds_folder_id()) {
        $displayFolder = TRUE;
    } else {
        if (isset($_GET['channel'])) {
            foreach ($GLOBALS['rss']->currentFeedsFolder->feeds as $feed) {
                if (rss_uri($feed->title) === rss_uri($_GET['channel'])) {
                    $displayFolder = TRUE;
                    break;
                }
            }
        } else {
            if (isset($_POST['metaaction']) && $_POST['metaaction'] == 'ACT_MARK_CHANNEL_READ') {
                foreach ($GLOBALS['rss']->currentFeedsFolder->feeds as $feed) {
                    if ($feed->id === $_POST['channel']) {
                        $displayFolder = TRUE;
                        break;
                    }
                }
            }
        }
    }
}