Esempio n. 1
0
 function l10n_feed_link($atts)
 {
     #
     #	This is DEPRECATED, use the normal feed_link tag instead.
     #
     $result = '';
     global $production_status;
     if ($production_status !== 'live') {
         $result = 'DEPRECATED, please use txp:feed_link instead!' . br . n;
     }
     #
     #	Get the standard result...
     #
     $result .= feed_link($atts);
     $result = tag($result, 'p');
     return $result;
 }
Esempio n. 2
0
 function l10n_feed_link($atts)
 {
     global $l10n_language, $l10n_feed_link_lang;
     $l10n_feed_link_lang = $l10n_language;
     if (isset($atts['code'])) {
         $code = $atts['code'];
         unset($atts['code']);
         if ($code === 'none') {
             return feed_link($atts);
         }
         $l10n_feed_link_lang = LanguageHandler::compact_code($code);
     }
     #
     #	Get the standard result...
     #
     $result = feed_link($atts);
     #
     #	Inject the language code into the url...
     #
     $pattern = '/ href="(.*)" /';
     $result = preg_replace_callback($pattern, '_l10n_feed_link_cb', $result);
     return $result;
 }
Esempio n. 3
0
if (isset($_GET['embed'])) {
    exit($contenu);
} else {
    if (isset($_GET['rss'])) {
        header("Content-Type: application/rss+xml");
        exit($contenu);
    } else {
        echo $contenu;
    }
}
#*************************************************************
?>
<div style="clear:both"> </div>
        <footer>
            <?php 
feed_link();
?>
<hr/><?php 
echo config_link() . '<em><a href="https://github.com/broncowdd/SnippetVamp" title="' . msg('fork SnippetVamp on github') . '">' . $config['app_name'] . ' ' . $config['version'] . '</a></em> ' . msg('by');
?>
 <a href="http://warriordudimanche.net">Bronco</a> - <?php 
echo msg('generated in');
echo ' ', round(temps() - $start, 3);
?>
 s
            <br/><?php 
echo alert_last_version_if_necessary();
?>
        </footer>

<script src="jquip.min.js"></script>