*
* @license http://nucleuscms.org/license.txt GNU General Public License
* @copyright Copyright (C) 2002-2007 The Nucleus Group
- * @version $Id: ACTIONS.php,v 1.7 2007-03-22 03:30:13 kmorimatsu Exp $
- * @version $NucleusJP: ACTIONS.php,v 1.6 2007/03/13 05:17:37 shizuki Exp $
+ * @version $Id: ACTIONS.php,v 1.8 2007-04-19 06:05:55 kimitake Exp $
+ * @version $NucleusJP: ACTIONS.php,v 1.7 2007/03/22 03:30:13 kmorimatsu Exp $
*/
class ACTIONS extends BaseActions {
}
/**
- * Set the skin
+ * Set the skin
*/
function setSkin(&$skin) {
$this->skin =& $skin;
}
/**
- * Set the parser
+ * Set the parser
*/
function setParser(&$parser) {
$this->parser =& $parser;
}
/**
- * Different checks for a category
+ * Different checks for a category
*/
function _ifCategory($name = '', $value='') {
global $blog, $catid;
}
/**
- * Checks if a member is on the team of a blog and return his rights
+ * Checks if a member is on the team of a blog and return his rights
*/
function _ifOnTeam($blogName = '') {
global $blog, $member, $manager;
}
/**
- * Checks if a member is admin of a blog
+ * Checks if a member is admin of a blog
*/
function _ifAdmin($blogName = '') {
global $blog, $member, $manager;
}
/**
- * Creates an item link and if no id is given a todaylink
+ * Creates an item link and if no id is given a todaylink
*/
function _itemlink($id, $linktext = '') {
global $CONF;
else
$this->parse_todaylink($linktext);
}
-
+
/**
- * Creates an archive link and if no id is given a todaylink
+ * Creates an archive link and if no id is given a todaylink
*/
function _archivelink($id, $linktext = '') {
global $CONF, $blog;
else
$this->parse_todaylink($linktext);
}
-
+
/**
* Helper function that sets the category that a blog will need to use
*
}
/**
- * Notifies the Manager that a PreBlogContent event occurs
+ * Notifies the Manager that a PreBlogContent event occurs
*/
function _preBlogContent($type, &$blog) {
global $manager;
}
/**
- * Notifies the Manager that a PostBlogContent event occurs
+ * Notifies the Manager that a PostBlogContent event occurs
*/
function _postBlogContent($type, &$blog) {
global $manager;
$manager->notify('PostBlogContent',array('blog' => &$blog, 'type' => $type));
}
-
+
/**
* Parse skinvar additemform
*/
$blog->InsertJavaScriptInfo();
$this->doForm('additemform');
}
-
+
/**
* Parse skinvar adminurl
* (shortcut for admin url)
/**
* Parse skinvar archive
- */
+ */
function parse_archive($template, $category = '') {
global $blog, $archive;
// can be used with either yyyy-mm or yyyy-mm-dd
}
/**
- * Parse skinvar archivedaylist
- */
+ * Parse skinvar archivedaylist
+ */
function parse_archivedaylist($template, $category = 'all', $limit = 0) {
global $blog;
if ($category == 'all') $category = '';
/**
* Parse skinvar archivetype
- */
+ */
function parse_archivetype() {
global $archivetype;
echo $archivetype;
/**
* Parse skinvar blog
- */
+ */
function parse_blog($template, $amount = 10, $category = '') {
global $blog, $startpos;
$this->amountfound = $blog->readLog($template, $limit, $offset, $startpos);
$this->_postBlogContent('blog',$blog);
}
-
+
/*
* Parse skinvar bloglist
* Shows a list of all blogs
* bnametype: whether 'name' or 'shortname' is used for the link text
- */
+ */
function parse_bloglist($template, $bnametype = '') {
BLOG::showBlogList($template, $bnametype);
}
-
+
/**
* Parse skinvar blogsetting
*/
break;
}
}
-
+
/**
* Parse callback
*/
global $manager;
$manager->notify($eventName, array('type' => $type));
}
-
+
/**
* Parse skinvar category
- */
+ */
function parse_category($type = 'name') {
global $catid, $blog;
if (!$blog->isValidCategory($catid))
break;
}
}
-
+
/**
* Parse categorylist
- */
+ */
function parse_categorylist($template, $blogname = '') {
global $blog, $manager;
$this->_postBlogContent('categorylist',$b);
}
}
-
+
/**
* Parse skinvar charset
*/
function parse_charset() {
echo _CHARSET;
}
-
+
/**
* Parse skinvar commentform
*/
$this->doForm('commentform-loggedin');
}
}
-
+
/**
* Parse skinvar comments
* include comments for one item
- */
+ */
function parse_comments($template) {
global $itemid, $manager, $blog, $highlight;
$template =& $manager->getTemplate($template);
if ($errormessage)
echo '<div class="error">', htmlspecialchars($errormessage),'</div>';
}
-
+
/**
* Parse skinvar errormessage
*/
global $errormessage;
echo $errormessage;
}
-
+
/**
* Parse formdata
*/
function parse_formdata($what) {
echo $this->formdata[$what];
}
-
+
/**
* Parse ifcat
*/
break;
}
}
-
+
/**
* Parse skinvar imagetext
*/
/**
* Parse skinvar item
* include one item (no comments)
- */
+ */
function parse_item($template) {
global $blog, $itemid, $highlight;
$this->_setBlogCategory($blog, ''); // need this to select default category
/**
* Parse skinvar itemid
- */
+ */
function parse_itemid() {
global $itemid;
echo $itemid;
}
-
+
/**
* Parse skinvar itemlink
- */
+ */
function parse_itemlink($linktext = '') {
global $itemid;
$this->_itemlink($itemid, $linktext);
/**
* Parse itemtitle
- */
+ */
function parse_itemtitle($format = '') {
global $manager, $itemid;
$item =& $manager->getItem($itemid,0,0);
/**
* Parse skinvar member
- * (includes a member info thingie)
+ * (includes a member info thingie)
*/
function parse_member($what) {
global $memberinfo, $member;
}
}
-
+
/**
* Parse skinvar nextarchive
- */
+ */
function parse_nextarchive() {
global $archivenext;
echo $archivenext;
/**
* Parse skinvar nextitem
* (include itemid of next item)
- */
+ */
function parse_nextitem() {
global $itemidnext;
if (isset($itemidnext)) echo (int)$itemidnext;
/**
* Parse skinvar nextlink
- */
+ */
function parse_nextlink($linktext = '', $amount = 10) {
global $itemidnext, $archivenext, $startpos;
if ($this->skintype == 'item')
);
$this->doForm('nucleusbutton');
}
-
+
/**
* Parse skinvar otherarchive
*/
$b->showArchive($template, $y, $m, $d);
$this->_postBlogContent('otherachive',$b);
}
-
+
/**
* Parse skinvar otherarchivedaylist
- */
+ */
function parse_otherarchivedaylist($blogname, $template, $category = 'all', $limit = 0) {
global $manager;
if ($category == 'all') $category = '';
$b->showArchiveList($template, 'day', $limit);
$this->_postBlogContent('otherarchivelist',$b);
}
-
+
/**
* Parse skinvar otherarchivelist
- */
+ */
function parse_otherarchivelist($blogname, $template, $category = 'all', $limit = 0) {
global $manager;
if ($category == 'all') $category = '';
$b->showArchiveList($template, 'month', $limit);
$this->_postBlogContent('otherarchivelist',$b);
}
-
+
/**
* Parse skinvar otherblog
- */
+ */
function parse_otherblog($blogname, $template, $amount = 10, $category = '') {
global $manager;
/**
* Parse skinvar othersearchresults
- */
+ */
function parse_othersearchresults($blogname, $template, $maxresults = 50) {
global $query, $amount, $manager, $startpos;
$b =& $manager->getBlog(getBlogIDFromName($blogname));
call_user_func_array(array(&$plugin,'doSkinVar'), $params);
}
-
+
/**
* Parse skinvar prevarchive
- */
+ */
function parse_prevarchive() {
global $archiveprev;
echo $archiveprev;
/*
* Parse skinvar previtem
* (include itemid of prev item)
- */
+ */
function parse_previtem() {
global $itemidprev;
if (isset($itemidprev)) echo (int)$itemidprev;
/**
* Parse skinvar previtemtitle
* (include itemtitle of prev item)
- */
+ */
function parse_previtemtitle($format = '') {
global $itemtitleprev;
/**
* Parse skinvar prevlink
- */
+ */
function parse_prevlink($linktext = '', $amount = 10) {
global $itemidprev, $archiveprev, $startpos;
/**
* Parse skinvar query
* (includes the search query)
- */
+ */
function parse_query() {
global $query;
echo htmlspecialchars($query,ENT_QUOTES);
}
-
+
/**
* Parse skinvar referer
*/
/**
* Parse skinvar searchresults
- */
+ */
function parse_searchresults($template, $maxresults = 50 ) {
global $blog, $query, $amount, $startpos;
function parse_skinname() {
echo $this->skin->getName();
}
-
+
/**
* Parse skintype (experimental)
*/
eval("echo $which;");
}
}
-
+
/**
* Parse ticket
*/
/**
* Parse skinvar todaylink
* A link to the today page (depending on selected blog, etc...)
- */
+ */
function parse_todaylink($linktext = '') {
global $blog, $CONF;
if ($blog)
}
}
-?>
\ No newline at end of file
+?>