0byt3m1n1
Path:
/
data
/
applications
/
aps
/
tikiwiki
/
14.1-0
/
standard
/
htdocs
/
lib
/
wiki-plugins
/
[
Home
]
File: wikiplugin_timesheet.php
<?php // (c) Copyright 2002-2015 by authors of the Tiki Wiki CMS Groupware Project // // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // $Id: wikiplugin_timesheet.php 56321 2015-09-26 23:22:53Z lindonb $ function wikiplugin_timesheet_info() { return array( 'name' => tra('TimeSheet'), 'documentation' => 'Timesheet', 'description' => tra('Embed a timesheet into a page'), 'prefs' => array('wikiplugin_timesheet', 'feature_time_sheet'), 'body' => tra('text'), 'iconname' => 'table', 'introduced' => 9, 'tags' => array( 'basic' ), 'params' => array( ), ); } function wikiplugin_timesheet($data, $params) { global $tikilib, $tiki_p_view_trackers, $tiki_p_create_tracker_items; extract($params, EXTR_SKIP); if ( $tiki_p_view_trackers != "y" || $tiki_p_create_tracker_items != "y") return ""; TikiLib::lib("header") ->add_cssfile("vendor/jquery/jtrack/css/jtrack.css") ->add_jsfile("vendor/jquery/jtrack/js/domcached-0.1-jquery.js") ->add_jsfile("vendor/jquery/jtrack/js/jtrack.js") ->add_jq_onready( "jTask.init();" ); return "~np~" . TikiLib::lib("smarty")->fetch('wiki-plugins/wikiplugin_timesheet.tpl') . '~/np~'; }