. * * $Id$ * */ /** * based upon semmelstatz * Copyright (c) 2005-2009 Andreas 'Redunzl' Mueller (redunzl@gmx.de) * * @license http://www.gnu.org/licenses/gpl-2.0.html * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License (version 2) as * published by the Free Software Foundation. * * 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., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ if(!current_user_can('manage_statz')) { die(semr_i18n("Restricted Area")); } // entry format: functionname, needed param, type of return, remarks, manual example (no function call) $aTemplates = array( array("sem_showTotalPosts", "", semr_i18n("Integer"), semr_i18n("Number of all Posts"), ""), array("sem_showTotalComments", "", semr_i18n("Integer"), semr_i18n("Number of all Comments"), ""), array("sem_showTotalUsers", "", semr_i18n("Integer"), semr_i18n("Total Number of all visitors since statistics started"), ""), array("sem_showAverageUserPerDay", "", semr_i18n("Decimal"), semr_i18n("Average of daily visitors"), ""), array("sem_showFirstPostDate", "", semr_i18n("Date (d.m.y)"), semr_i18n("Date of the first post"), ""), array("sem_showPostDays", "", semr_i18n("Integer"), semr_i18n("Days since first post"), ""), array("sem_showFirstCommentDate", "", semr_i18n("Date (d.m.y)"), semr_i18n("Date of the first comment"), ""), array("sem_showCommentDays", "", semr_i18n("Integer"), semr_i18n("Days since first comment"), ""), array("sem_showPostsPerDay", "", semr_i18n("Decimal"), semr_i18n("Average of posts per day"), ""), array("sem_showCommentsPerDay", "", semr_i18n("Decimal"), semr_i18n("Average of comments per day"), ""), array("sem_showNumCommenters", "", semr_i18n("Integer"), semr_i18n("Total of all commentators"), ""), array("sem_showStatzStartDate", "", semr_i18n("Date (d.m.y)"), semr_i18n("Date of commencement of statistics"), ""), array("sem_showStatzDays", "", semr_i18n("Integer"), semr_i18n("Period of the statistics in days"), ""), array("sem_showNumUsersOnline", "", semr_i18n("Integer"), semr_i18n("Number of users online"), ""), array("sem_showLastComments", "10", semr_i18n("Formatted list"), semr_i18n("The 'n' newest comments with author, post, sorted by date desc
CSS-ID: #lastcomments"), "n/a"), array("sem_showLastPosts", "10", semr_i18n("Formatted list"), semr_i18n("The 'n' newest posts with title, sorted bei date desc
CSS_ID: #lastposts"), "n/a"), array("sem_showMostReads", "10", semr_i18n("Formatted list"), semr_i18n("'n' most readed posts/pages with hits in brackets
CSS-ID: #mostreads"), "n/a"), array("sem_showPostHitsInLoop", "get_the_ID()", semr_i18n("Integer"), semr_i18n("Shows count of hits of a post. Only works in the LOOP"), "only in LOOP") ); print "
"; print "
"; print "

"; print "

SemmelstatzR > ".semr_i18n("Template-Functions")."

"; print "
"; print ""; print ""; print ""; print ""; print ""; print ""; print ""; print ""; print ""; print ""; print ""; // loop the functions array foreach ($aTemplates as $value) { if(empty($value[4])) { $funcret = call_user_func($value[0]); } else { $funcret = $value[4]; } print ""; print ""; print ""; print ""; print ""; print ""; print ""; } print ""; print ""; print ""; print ""; print "
".semr_i18n("Function")."".semr_i18n("Syntax")."".semr_i18n("Returns")."".semr_i18n("Example")."".semr_i18n("Remarks")."
$value[0]$value[2]$funcret$value[3]
"; print semr_i18n("All functions (except the last one) you have to use outside the LOOP. Display of blog index page will be incorrect if semmelstatzR is deactivated and if you do not check for the existence of the templatefunctions using if (function_exists..."); /* print "Sämtliche Funktionen (bis auf die letzte) sind außerhalb des LOOPS zu verwenden. Wird SEMMELSTATZ deaktiviert, und die Verfügbarkeit der Templatefunktion ist nicht mittels if (function_exists... sichergestellt, wird die Indexseite des Blogs fehlerhaft bzw. überhaupt nicht dargestellt."; * */ print "
"; print "
"; if (function_exists('sem_showCopyright')) sem_showCopyright(); print "
"; print "
"; ?>