Dotclear

Changeset 3132:9d2359c597a1 for inc


Ignore:
Timestamp:
10/27/15 10:35:47 (10 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Get public URL of a plugin file (similar to dcPage::getPF, but useable in public context)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/core/class.dc.blog.php

    r3033 r3132  
    121121 
    122122     /** 
    123      Reruens jQuery version selected for the blog. 
     123     Returns jQuery version selected for the blog. 
    124124      */ 
    125125     public function getJsJQuery() 
     
    130130          } 
    131131          return 'jquery/'.$version; 
     132     } 
     133 
     134     /** 
     135     Returns public URL of specified plugin file. 
     136      */ 
     137     public function getPF($pf, $strip_host=true) 
     138     { 
     139          $ret = $this->getQmarkURL().'pf='.$pf; 
     140          if ($strip_host) { 
     141               $ret = html::stripHostURL($ret); 
     142          } 
     143          return $ret; 
    132144     } 
    133145 
Note: See TracChangeset for help on using the changeset viewer.

Sites map