Dotclear

Changeset 250


Ignore:
Timestamp:
10/18/08 19:00:02 (15 years ago)
Author:
olivier
Message:

authorMode update. Closes #432. Thanks euskaraz.

Location:
plugins/authorMode
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • plugins/authorMode/_public.php

    r246 r250  
    117117     public static function AuthorDesc($attr) 
    118118     { 
    119           $res = 
    120           "<?php\n". 
    121           'echo $_ctx->users->user_desc;'."\n". 
    122           "?>\n"; 
    123            
    124           return $res; 
     119          $f = $GLOBALS['core']->tpl->getFilters($attr); 
     120          return '<?php echo '.sprintf($f,'$_ctx->users->user_desc').'; ?>'; 
    125121     } 
    126122      
  • plugins/authorMode/default-templates/author.html

    r81 r250  
    11<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
    22"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
    3 <html lang="{{tpl:BlogLanguage}}"> 
     3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{{tpl:BlogLanguage}}" lang="{{tpl:BlogLanguage}}"> 
    44<head> 
    55  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
    66  <meta name="MSSmartTagsPreventParsing" content="TRUE" /> 
    7   <title>{{tpl:AuthorCommonName}} - {{tpl:BlogName encode_html="1"}}</title> 
    8    
     7  <meta name="ROBOTS" content="{{tpl:BlogMetaRobots robots="NOINDEX"}}" /> 
     8 
     9  <title>{{tpl:AuthorCommonName encode_html="1"}} - {{tpl:BlogName encode_html="1"}}<tpl:PaginationIf start="0"> - {{tpl:lang page}} {{tpl:PaginationCurrent}}</tpl:PaginationIf></title> 
     10  <meta name="description" lang="{{tpl:BlogLanguage}}" content="{{tpl:AuthorDesc cut_string="180" encode_html="1" remove_html="1"}}" /> 
     11  <meta name="copyright" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" />  
     12  <meta name="author" content="{{tpl:BlogEditor encode_html="1"}}" />  
     13  <meta name="date" scheme="W3CDTF" content="{{tpl:BlogUpdateDate iso8601="1"}}" />  
     14    
     15  <link rel="schema.dc" href="http://purl.org/dc/elements/1.1/" />  
     16  <meta name="dc.title" lang="{{tpl:BlogLanguage}}" content="{{tpl:lang Archives}} - {{tpl:BlogName encode_html="1"}}<tpl:PaginationIf start="0"> - {{tpl:lang page}} {{tpl:PaginationCurrent}}</tpl:PaginationIf>" />  
     17  <meta name="dc.description" lang="{{tpl:BlogLanguage}}" content="{{tpl:AuthorDesc cut_string="180" encode_html="1" remove_html="1"}}" /> 
     18  <meta name="dc.language" content="{{tpl:BlogLanguage}}" />  
     19  <meta name="dc.publisher" content="{{tpl:BlogEditor encode_html="1"}}" />  
     20  <meta name="dc.rights" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" />  
     21  <meta name="dc.date" scheme="W3CDTF" content="{{tpl:BlogUpdateDate iso8601="1"}}" />  
     22  <meta name="dc.type" content="text" />  
     23  <meta name="dc.format" content="text/html" />  
    924  <link rel="contents" title="{{tpl:lang Archives}}" href="{{tpl:BlogArchiveURL}}" /> 
    1025  <tpl:Categories> 
     
    2843  </tpl:Entries> 
    2944   
    30   <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="{{tpl:BlogFeedURL type="rss2"}}" /> 
    3145  <link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="{{tpl:BlogFeedURL type="atom"}}" /> 
    3246  <link rel="meta" type="application/xbel+xml" title="Blogroll" href="{{tpl:BlogrollXbelLink}}" /> 
     
    4963    {{tpl:AuthorDesc}} 
    5064   
    51     <p><a type="application/rss+xml" href="{{tpl:AuthorFeedURL type="rss2"}}" 
    52     title="{{tpl:lang This author's entries RSS feed}}" class="feed">{{tpl:lang Entries feed}}</a> 
    53     - <a type="application/rss+xml" href="{{tpl:AuthorFeedURL type="rss2"}}/comments" 
    54     title="{{tpl:lang This authors's entries comments RSS feed}}" class="feed">{{tpl:lang Comments feed}}</a></p> 
     65    <p><a type="application/atom+xml" href="{{tpl:AuthorFeedURL type="atom"}}" 
     66    title="{{tpl:lang This author's entries Atom feed}}" class="feed">{{tpl:lang Entries feed}}</a> 
     67    - <a type="application/atom+xml" href="{{tpl:AuthorFeedURL type="atom"}}/comments" 
     68    title="{{tpl:lang This authors's entries comments Atom feed}}" class="feed">{{tpl:lang Comments feed}}</a></p> 
    5569  </div> 
    5670 
     
    7589    <tpl:MetaDataFooter></ul></tpl:MetaDataFooter> 
    7690    </tpl:EntryMetaData> 
     91 
    7792     
    7893    <!-- # Entry with an excerpt --> 
     
    96111    <tpl:EntryIf show_pings="1"> 
    97112    <a href="{{tpl:EntryURL}}#pings" class="ping_count">{{tpl:EntryTrackbackCount}}</a></tpl:EntryIf> 
    98     <tpl:EntryIf has_attachment="1"> 
    99     <a href="{{tpl:EntryURL}}#attachments" class="attach_count">{{tpl:EntryAttachmentCount}}</a></tpl:EntryIf> 
    100     </p> 
     113    <tpl:EntryIf type="post" has_attachment="1"> 
     114      <a href="{{tpl:EntryURL}}#attachments" class="attach_count">{{tpl:EntryAttachmentCount}}</a> 
     115</tpl:EntryIf> 
     116    <tpl:EntryIf operator="or" show_comments="1" show_pings="1" has_attachment="1"> 
     117     </p> 
     118    </tpl:EntryIf> 
     119 
    101120    </div> 
    102121     
  • plugins/authorMode/default-templates/authors.html

    r103 r250  
    11<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
    22"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
    3 <html lang="{{tpl:BlogLanguage}}"> 
     3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{{tpl:BlogLanguage}}" lang="{{tpl:BlogLanguage}}"> 
    44<head> 
    55  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
    66  <meta name="MSSmartTagsPreventParsing" content="TRUE" /> 
     7  <meta name="ROBOTS" content="{{tpl:BlogMetaRobots}}" /> 
     8 
    79  <title>{{tpl:lang Authors}} - {{tpl:BlogName encode_html="1"}}</title> 
     10  <meta name="copyright" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" />  
     11  <meta name="author" content="{{tpl:BlogEditor encode_html="1"}}" />  
     12  <meta name="date" scheme="W3CDTF" content="{{tpl:BlogUpdateDate iso8601="1"}}" />  
     13    
     14  <link rel="schema.dc" href="http://purl.org/dc/elements/1.1/" />  
     15  <meta name="dc.title" lang="{{tpl:BlogLanguage}}" content="{{tpl:lang Archives}} - {{tpl:BlogName encode_html="1"}}" />  
     16  <meta name="dc.language" content="{{tpl:BlogLanguage}}" />  
     17  <meta name="dc.publisher" content="{{tpl:BlogEditor encode_html="1"}}" />  
     18  <meta name="dc.rights" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" />  
     19  <meta name="dc.date" scheme="W3CDTF" content="{{tpl:BlogUpdateDate iso8601="1"}}" />  
     20  <meta name="dc.type" content="text" />  
     21  <meta name="dc.format" content="text/html" />  
    822   
    923  <link rel="contents" title="{{tpl:lang Archives}}" href="{{tpl:BlogArchiveURL}}" /> 
     
    1226  </tpl:Categories> 
    1327   
    14   <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="{{tpl:BlogFeedURL type="rss2"}}" /> 
    1528  <link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="{{tpl:BlogFeedURL type="atom"}}" /> 
    1629  <link rel="meta" type="application/xbel+xml" title="Blogroll" href="{{tpl:BlogrollXbelLink}}" /> 
     
    3346    {{tpl:AuthorDesc}} 
    3447   
    35     <p><a type="application/rss+xml" href="{{tpl:AuthorFeedURL type="rss2"}}" 
    36     title="{{tpl:lang This author's entries RSS feed}}" class="feed">{{tpl:lang Entries feed}}</a> 
    37     - <a type="application/rss+xml" href="{{tpl:AuthorFeedURL type="rss2"}}/comments" 
    38     title="{{tpl:lang This authors's entries comments RSS feed}}" class="feed">{{tpl:lang Comments feed}}</a></p> 
     48    <p><a type="application/atom+xml" href="{{tpl:AuthorFeedURL type="atom"}}" 
     49    title="{{tpl:lang This author's entries Atom feed}}" class="feed">{{tpl:lang Entries feed}}</a> 
     50    - <a type="application/atom+xml" href="{{tpl:AuthorFeedURL type="atom"}}/comments" 
     51    title="{{tpl:lang This authors's entries comments Atom feed}}" class="feed">{{tpl:lang Comments feed}}</a></p> 
    3952  </div> 
    4053  </tpl:Authors> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map