예제 #1
0
 protected function create()
 {
     parent::create();
     $this->basename = 'options';
     $this->addevents('changed', 'perpagechanged', 'onsave');
     unset($this->cache);
     $this->gmt = 0;
     $this->errorlog = '';
     $this->group = '';
     $this->idgroups = array();
     $this->addmap('groupnames', array());
     $this->addmap('parentgroups', array());
 }
예제 #2
0
 protected function create()
 {
     //prevent recursion
     litepublisher::$classes->instances[get_class($this)] = $this;
     parent::create();
     $this->basename = 'template';
     $this->addevents('beforecontent', 'aftercontent', 'onhead', 'onbody', 'onrequest', 'ontitle', 'ongetmenu');
     $this->path = litepublisher::$paths->themes . 'default' . DIRECTORY_SEPARATOR;
     $this->url = litepublisher::$site->files . '/themes/default';
     $this->itemplate = false;
     $this->ltoptions = array('url' => litepublisher::$site->url, 'files' => litepublisher::$site->files, 'idurl' => litepublisher::$urlmap->itemrequested['id'], 'lang' => litepublisher::$site->language, 'video_width' => litepublisher::$site->video_width, 'video_height' => litepublisher::$site->video_height, 'theme' => array(), 'custom' => array());
     $this->hover = true;
     $this->data['heads'] = '';
     $this->data['js'] = '<script type="text/javascript" src="%s"></script>';
     $this->data['jsready'] = '<script type="text/javascript">$(document).ready(function() {%s});</script>';
     $this->data['jsload'] = '<script type="text/javascript">$.load_script(%s);</script>';
     $this->data['footer'] = '<a href="http://litepublisher.com/">Powered by Lite Publisher</a>';
     $this->data['tags'] = array();
     $this->addmap('custom', array());
     $this->extrahead = '';
     $this->extrabody = '';
 }
예제 #3
0
 protected function create()
 {
     parent::create();
     $this->basename = 'site';
     $this->addmap('mapoptions', array('version' => 'version', 'language' => 'language'));
 }
 protected function create()
 {
     parent::create();
     $this->basename = 'commentmanager';
     $this->addevents('onchanged', 'approved', 'comuseradded', 'is_spamer', 'oncreatestatus');
 }