[geeklog-devel] Location of icon images on disk for user-added topics

Joe Mucchiello joe at ThrowingDice.com
Sat Mar 8 11:41:51 EST 2008


At 04:13 AM 3/8/2008, Dirk Haun wrote:
>--- snip ---
>- Allow for theme-based topic icons by using the $_THEME_URL variable as the
>   base directory for topic icons (if that variable is set).
>--- snip ---
>
>Set that variable in your theme's functions.php

Why another global variable? Shouldn't that be $_CONF['icon_url']? 
$_THEME_URL sounds like it should contain $_CONF['site_url'] . 
"/layout/{$_CONF['theme']}"

Also, if you go into the archives, I posed a solution for this a 
while back. Create an $_IMAGES array similar to the $LANG arrays. 
This way theme can move ANY image they want.

$_IMAGES = Array(
      'admin_edit' => $_CONF['site_url'] . 'images/admin/edit.' . $_IMAGE_TYPE,
      'admin_delete => $_CONF['site_url'] . 'images/admin/delete.' . 
$_IMAGE_TYPE,
// etc.
);

$display .= "<img src=\"{$_IMAGES['admin_edit']}\"" . XHTML . ">";

The array would probably be located in a "lib-images.php". Plugins 
could follow suit with $_IMAGES_CALENDAR and $_IMAGES_LINKS etc.


----
Joe Mucchiello
Throwing Dice Games
http://www.throwingdice.com 




More information about the geeklog-devel mailing list