Dotclear

Changeset 507


Ignore:
Timestamp:
09/29/08 18:50:09 (15 years ago)
Author:
oum2013
google:author:
oum2013
Message:

added classes, changed admin panel, added locales.
I think it's ready for testing now

Location:
plugins/dcscrobbler
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • plugins/dcscrobbler/_define.php

    r505 r507  
    2424 
    2525$this->registerModule( 
    26     /* Name */            "dcScrobbler", 
    27     /* Description*/        "Displays recently played tracks with Last.fm", 
    28     /* Author */            "Boris de Laage", 
    29     /* Version */            '1.0.2', 
    30     /* Permissions */        'usage,contentadmin' 
     26    /* Name */                     "dcScrobbler", 
     27    /* Description*/          "Displays recently played tracks with Last.fm", 
     28    /* Author */                   "Boris de Laage", 
     29    /* Version */                  '1.0.3', 
     30    /* Permissions */         'usage,contentadmin' 
    3131); 
    3232?> 
  • plugins/dcscrobbler/_public.php

    r504 r507  
    8080          '<p>'. 
    8181          '<a href="http://www.last.fm/user/' . $uname .'">'. 
    82           '<img id="dcscrobblerlogo" src="' . 
     82          '<img src="' . 
    8383          $core->blog->url.$core->url->getBase('dcscrobbler-images'). 
    84           '/lastfm_button.png" alt="Last.fm" />'. 
     84          '/lastfm_button.png" alt="' . __('Last.fm profile for') . ' ' . $uname .'" title="' . __('Last.fm profile for') . ' ' . $uname .'" />'. 
    8585          '</a></p>'; 
    8686      } 
     
    108108        return '<li><em>'.__('No recent tracks').'</em></li>'; 
    109109       
    110       $element = '<li><a href="%s">%s - %s</a></li>'; 
     110      $element = '<li><a href="%s"><span class="artist">%s</span> - <span class="title">%s</span></a></li>'; 
    111111      foreach ($xml->track as $track) { 
    112112        $out .= sprintf($element, $track->url, html::escapeHTML($track->artist), 
     
    121121        return '<li><em>'.__('No data').'</em></li>'; 
    122122     
    123       $element = '<li><a href="%s">%s</a> <em>%d</em></li>'; 
     123      $element = '<li><a href="%s">%s</a> <span class="playcount">%d</span></li>'; 
    124124      foreach ($xml->artist as $artist) { 
    125125        $out .= sprintf($element, $artist->url, html::escapeHTML($artist->name), 
  • plugins/dcscrobbler/index.php

    r505 r507  
    5353  } 
    5454   
    55   http::redirect($p_url.'&rst=1'); 
     55  http::redirect($p_url.'&rset=1'); 
    5656 
    5757 } 
     
    7979<head> 
    8080  <title><?php echo __('dcScrobbler'); ?></title> 
     81  <?php echo dcPage::jsPageTabs($part); ?> 
    8182</head> 
    8283 
    8384<body> 
    84 <h2><?php echo __('dcScrobbler'); ?></h2> 
    8585<?php 
     86echo '<h2>'.html::escapeHTML($core->blog->name).' &gt; '.__('dcScrobbler').'</h2>'. 
     87'<div id="settings" title="'.__('Settings').'" class="multi-part">'; 
    8688// Affichage d'un message d'erreur ou d'état si défini. 
    8789if (!empty($_GET['rset'])) 
     
    9395// Affichage du formulaire de modification des paramètres de configuration 
    9496echo 
     97'<p><a style="background: url(index.php?pf=dcscrobbler/icon.png) no-repeat 0 0.25em; padding: 5px 0 5px 22px;" href="http://www.last.fm/join">'.__('Sign up on Last.fm').'</a></p>'. 
    9598'<form action="'.$p_url.'" method="post">'. 
    9699'<fieldset><legend>Configuration</legend>'. 
     
    117120form::hidden(array('p'),'dcscrobbler'). 
    118121'<p><input type="submit" name="submit" value="'.__('Restore default settings').'" />'.$core->formNonce().'</p>'. 
    119 '</fieldset></form>'; 
     122'</fieldset></form>'. 
     123'</div>'; 
     124 
     125echo 
     126'<div id="display" title="'.__('Display').'" class="multi-part">'. 
     127'<h2>'.__('Display settings').' :</h2>'. 
     128'<p>'.__('You can set widget display by using the following classes in your style.css file').' :</p>'. 
     129'<ul style="list-style: none;"><li><strong>.dcscrobbler {}</strong> : '.__('style dcScrobbler widget').'.</li>'. 
     130'<li><strong>.dcscrobbler .artist {}</strong> : '.__('style for artist name').'.</li>'. 
     131'<li><strong>.dcscrobbler .title {}</strong> : '.__('style for track title').'.</li>'. 
     132'<li><strong>.dcscrobbler .playcount {}</strong> : '.__('In Top Artists, style for played tracks count').'.</li></ul>'. 
     133'</div>'; 
     134 
     135echo 
     136'<div id="about" title="'.__('About').'" class="multi-part">'. 
     137'<h2 style="background: url(index.php?pf=dcscrobbler/icon.png) no-repeat 0 0.25em; padding: 5px 0 5px 22px; margin-left: 20px;">'.__('dcScrobbler').'</h2>'. 
     138'<ul style="list-style: none; line-height: 30px; font-weight: bold;"><li>version 1.0.3</li>'. 
     139'<li>'.__('Created by').' : <a href="http://bdelaage.free.fr/">Boris de Laage</a></li>'. 
     140'<li>'.__('Maintained by').' : <a href="http://www.oum.fr/">Oum</a></li>'. 
     141'<li>'.__('Help and Support').' : <a href="http://forum.dotclear.net/viewtopic.php?id=20711">http://forum.dotclear.net/viewtopic.php?id=20711</a></li>'. 
     142'<li>'.__('Updates').' : <a href="http://dcplugins.googlecode.com/">dcPlugins</a></li>'. 
     143'<li><a style="border:none;" href="http://www.audioscrobbler.net/"><img style="margin-top:20px;" src="index.php?pf=dcscrobbler/lastfm_button.png" alt="'.__('Powered by Audioscrobbler').'" title="'.__('Powered by Audioscrobbler').'"/></a></li></ul>'. 
     144'</div>'; 
    120145 
    121146?> 
  • plugins/dcscrobbler/locales/_pot/main.pot

    r505 r507  
    6161msgstr "" 
    6262 
     63#: plugins/dcscrobbler/_public.php:84 
     64msgid "Last.fm profile for" 
     65msgstr "" 
     66 
    6367#: plugins/dcscrobbler/_public.php:100 
    6468#: plugins/dcscrobbler/_public.php:121 
     
    7983msgstr "" 
    8084 
    81 #: plugins/dcscrobbler/index.php:80 
    82 #: plugins/dcscrobbler/index.php:84 
    83 #: plugins/dcscrobbler/_widgets.php:30 
    84 msgid "dcScrobbler" 
    85 msgstr "" 
    86  
    8785#: plugins/dcscrobbler/index.php:88 
    8886msgid "Configuration has been reset to default" 
     
    9189#: plugins/dcscrobbler/index.php:91 
    9290msgid "New configuration saved" 
     91msgstr "" 
     92 
     93#: plugins/dcscrobbler/index.php:97 
     94msgid "Sign up on Last.fm" 
    9395msgstr "" 
    9496 
     
    112114msgid "Restore default settings" 
    113115msgstr "" 
     116 
     117#: plugins/dcscrobbler/index.php:126 
     118msgid "Display" 
     119msgstr "" 
     120 
     121#: plugins/dcscrobbler/index.php:127 
     122msgid "Display settings" 
     123msgstr "" 
     124 
     125#: plugins/dcscrobbler/index.php:128 
     126msgid "You can set widget display by using the following classes in your style.css file" 
     127msgstr "" 
     128 
     129#: plugins/dcscrobbler/index.php:129 
     130msgid "style dcScrobbler widget" 
     131msgstr "" 
     132 
     133#: plugins/dcscrobbler/index.php:130 
     134msgid "style for artist name" 
     135msgstr "" 
     136 
     137#: plugins/dcscrobbler/index.php:131 
     138msgid "style for track title" 
     139msgstr "" 
     140 
     141#: plugins/dcscrobbler/index.php:132 
     142msgid "In Top Artists, style for played tracks count" 
     143msgstr "" 
     144 
     145#: plugins/dcscrobbler/index.php:139 
     146msgid "Created by" 
     147msgstr "" 
     148 
     149#: plugins/dcscrobbler/index.php:140 
     150msgid "Maintained by" 
     151msgstr "" 
     152 
     153#: plugins/dcscrobbler/index.php:141 
     154msgid "Help and Support" 
     155msgstr "" 
     156 
     157#: plugins/dcscrobbler/index.php:142 
     158msgid "Updates" 
     159msgstr "" 
     160 
     161#: plugins/dcscrobbler/index.php:143 
     162msgid "Powered by Audioscrobbler" 
     163msgstr "" 
  • plugins/dcscrobbler/locales/fr/main.po

    r505 r507  
    99"Report-Msgid-Bugs-To: \n" 
    1010"POT-Creation-Date: 2008-09-28 17:30+0200\n" 
    11 "PO-Revision-Date: \n" 
     11"PO-Revision-Date: 2008-09-29 18:45+0200\n" 
    1212"Last-Translator: Oum <oum2013@gmail.com>\n" 
    1313"Language-Team: \n" 
     
    6464msgstr "dcScrobbler n'est pas configuré" 
    6565 
     66#: plugins/dcscrobbler/_public.php:84 
     67msgid "Last.fm profile for" 
     68msgstr "Profil Last.fm de" 
     69 
    6670#: plugins/dcscrobbler/_public.php:100 
    6771#: plugins/dcscrobbler/_public.php:121 
     
    8286msgstr "Durée de validité du cache" 
    8387 
    84 #: plugins/dcscrobbler/index.php:80 
    85 #: plugins/dcscrobbler/index.php:84 
    86 #: plugins/dcscrobbler/_widgets.php:30 
    87 msgid "dcScrobbler" 
    88 msgstr "dcScrobbler" 
    89  
    9088#: plugins/dcscrobbler/index.php:88 
    9189msgid "Configuration has been reset to default" 
     
    9593msgid "New configuration saved" 
    9694msgstr "La nouvelle configuration a été enregistrée" 
     95 
     96#: plugins/dcscrobbler/index.php:97 
     97msgid "Sign up on Last.fm" 
     98msgstr "Inscription sur Last.fm" 
    9799 
    98100#: plugins/dcscrobbler/index.php:103 
     
    115117msgid "Restore default settings" 
    116118msgstr "Rétablir les valeurs par défaut" 
     119 
     120#: plugins/dcscrobbler/index.php:126 
     121msgid "Display" 
     122msgstr "Affichage" 
     123 
     124#: plugins/dcscrobbler/index.php:127 
     125msgid "Display settings" 
     126msgstr "Personnalisation de l'affichage" 
     127 
     128#: plugins/dcscrobbler/index.php:128 
     129msgid "You can set widget display by using the following classes in your style.css file" 
     130msgstr "Vous pouvez personnaliser l'affichage du widget en utilisant les classes suivantes dans votre fichier style.css" 
     131 
     132#: plugins/dcscrobbler/index.php:129 
     133msgid "style dcScrobbler widget" 
     134msgstr "style du widget dcScrobbler" 
     135 
     136#: plugins/dcscrobbler/index.php:130 
     137msgid "style for artist name" 
     138msgstr "style pour le nom de l'artiste" 
     139 
     140#: plugins/dcscrobbler/index.php:131 
     141msgid "style for track title" 
     142msgstr "style pour le titre de la chanson" 
     143 
     144#: plugins/dcscrobbler/index.php:132 
     145msgid "In Top Artists, style for played tracks count" 
     146msgstr "dans un Top Artistes, style pour le nombre de morceaux jou&eacute;s" 
     147 
     148#: plugins/dcscrobbler/index.php:139 
     149msgid "Created by" 
     150msgstr "Créé par" 
     151 
     152#: plugins/dcscrobbler/index.php:140 
     153msgid "Maintained by" 
     154msgstr "Maintenu par" 
     155 
     156#: plugins/dcscrobbler/index.php:141 
     157msgid "Help and Support" 
     158msgstr "Aide et Support" 
     159 
     160#: plugins/dcscrobbler/index.php:142 
     161msgid "Updates" 
     162msgstr "Mises à jour" 
     163 
     164#: plugins/dcscrobbler/index.php:143 
     165msgid "Powered by Audioscrobbler" 
     166msgstr "Propulsé par Audioscrobbler" 
Note: See TracChangeset for help on using the changeset viewer.

Sites map