• Previous message: [greg-dev] theme path
  • Next message: [greg-dev] theme path
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    [greg-dev] theme path

    Marcus, hello.
    
    >
    > I've updated to the current svn-trunk revision and checked the
    > theme-switcher plugin. It worked as suggested.
    >
    
    Uhm, I've tested your plugin, but it isn't working for me (I don't see
    the combo box.) Could you please contact me by mail so that we can
    sort this out?
    
    > Am I right that there are 2 changes:
    >
    > 1. getActualTheme - which gives the actual theme (ok - given by method
    > name ;-) ) in order by $_REQUEST['theme'], theme_override, config
    >
    
    Correct!
    
    > 2. externalThemeFile - which gives the possibilty in themes not to
    > override default theme-files
    >
    
    No: this function is used in theme templates to include "external"
    theme files, like stylesheets or images. The idea is that it will look
    for the file in the active theme directory, and if the file isn't
    there it'll return the file in the default theme directory.
    
    This is to mimic the theme templates behavior, where theme authors can
    avoid providing actual templates (and now "external" theme files) and
    Gregarius will use those from the default theme.
    
    
    > Another question I've got - is there a possibilty to get the 'siteurl' -
    >  which is the root-url of gregarius e.g.: rss.foo-bar.net or
    > www.foo-bar.net/rss
    >
    
    Yes:
    
    guessTransportProto().$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']);
    
    This is used in cls/header.php:68, for example.
    
    
    HTH,
    
     -m
    
    
    Posted by Marco Bonetti [reply] at Tue Dec 6 20:26:58 CET 2005