EncodeFeedKey() public static method

public static EncodeFeedKey ( $Key )
Ejemplo n.º 1
0
        ?>
</td>
                        <td><?php 
        echo $LastUpdate;
        ?>
</td>
                        <td><?php 
        echo $Frequency;
        ?>
</td>
                        <td><?php 
        echo $Category;
        ?>
</td>
                        <td class="DeleteFeed">
                            <?php 
        echo anchor(dashboardSymbol('delete'), '/plugin/feeddiscussions/deletefeed/' . FeedDiscussionsPlugin::EncodeFeedKey($FeedURL), 'btn btn-icon', ['aria-label' => t('Delete this Feed')]);
        ?>
                        </td>
                    </tr>
                <?php 
    }
    ?>
                </tbody>
            </table>
        </div>
    <?php 
}
?>
</div>
Ejemplo n.º 2
0
<?php 
$NumFeeds = count($this->Data('Feeds'));
if (!$NumFeeds) {
    echo T("You have no active auto feeds at this time.");
} else {
    echo "<div>" . $NumFeeds . " " . Plural($NumFeeds, "Active Feed", "Active Feeds") . "</div>\n";
    foreach ($this->Data('Feeds') as $FeedURL => $FeedItem) {
        $LastUpdate = $FeedItem['LastImport'];
        $CategoryID = $FeedItem['Category'];
        $Frequency = GetValue($FeedItem['Refresh'], $Refreshments, T('Unknown'));
        $Category = $this->Data("Categories.{$CategoryID}.Name", 'Root');
        ?>
         <div class="FeedItem">
            <div class="DeleteFeed">
               <a href="<?php 
        echo Url('/plugin/feeddiscussions/deletefeed/' . FeedDiscussionsPlugin::EncodeFeedKey($FeedURL));
        ?>
">Delete this Feed</a>
            </div>
            <div class="FeedContent">
               <div class="FeedItemURL"><?php 
        echo Anchor($FeedURL, $FeedURL);
        ?>
</div>
               <div class="FeedItemInfo">
                  <span>Updated: <?php 
        echo $LastUpdate;
        ?>
</span>
                  <span>Refresh: <?php 
        echo $Frequency;