Update of /cvsroot/openfirst/base/includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20503/includes
Added Files:
skinfunctions.php
Log Message:
Slimier. Slug ads implemented. (Although they need some tweaking in styling.)
--- NEW FILE: skinfunctions.php ---
<?php
/*
* openFIRST.base - includes/skinfunctions.php
*
* Copyright (C) 2003,
* openFIRST Project
* Original Author: Jamie Bliss <ja...@op...>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
// Purpose: Defines a few convenience functions for skinning. It is not
// included by default because the functions don't follow the naming
// convention.
/** Prints out a slug advertisement.
* @param $slug string The slug
* @todo Move implementation to skin
*/
function slug($slug) {
global $StylePath;
$eslug = htmlentities($slug);
$eimage = htmlentities($StylePath).'/images/slug.gif';
// Image source: http://www.onescience.com/forum/images/slug_125.gif
//onclick=\"handleSlugClick(this)\"
echo "<div class=\"slug\"><img src=\"{$eimage}\" alt=\"(SLUG)\" title=\"Show slug\" /><span>{$eslug}</span></div>";
}
/** Prints out the URI for a slug.
* @param $slug string The slug
*/
function suri($slug) {
echo htmlentities(ofGetSlugURI($slug));
}
/** Prints out the header.
*/
/*function header() {
global $Header;
include_once($Header);
}
/** Prints out the footer.
*/
/*function footer() {
global $Footer;
include_once($Footer);
}
/** Prints out a message.
* Will be implemented with i18n
*/
function msg($id, $dir=false) {
#
}
?>
|