Ignore:
Timestamp:
Feb 22, 2009, 7:08:10 PM (12 years ago)
Author:
fil@…
Message:

une version pur javascript, compatibilite ascendante (plus ou moins) assuree

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/_stable_/socialtags/socialtags_fonctions.php

    r26851 r26863  
    11<?php
    2 if (!defined('_DIR_PLUGIN_SOCIALTAGS')){ // defini automatiquement par SPIP 1.9.2
    3         $p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
    4         define('_DIR_PLUGIN_SOCIALTAGS',(_DIR_PLUGINS.end($p)."/"));
    5 }
    62 
    73//
     
    117  $flux .= '<link rel="stylesheet" type="text/css" href="'.find_in_path('socialtags.css').'" media="all" />';
    128
    13   if (lire_config('socialtags/jshead')) {
    14         $jsFile = generer_url_public('socialtags.js');
    15         $flux .= "<script src='$jsFile' type='text/javascript'></script>";
    16   }
     9  $jsFile = generer_url_public('socialtags.js');
     10  $flux .= "<script src='$jsFile' type='text/javascript'></script>";
    1711
    1812  return $flux;
     
    2014
    2115
     16// La liste est stockee en format RSS
     17function socialtags_liste() {
     18        include_spip('inc/syndic');
     19        lire_fichier(find_in_path('socialtags.xml'), $rss);
     20        return analyser_backend($rss);
     21}
     22
    2223?>
Note: See TracChangeset for help on using the changeset viewer.