public function getcontent() { $plugin = tlivejournalposter::i(); $dir = dirname(__FILE__) . DIRECTORY_SEPARATOR; if ($plugin->template == '') { $plugin->template = file_get_contents($dir . 'livejournalposter.tml'); } $about = tplugins::getabout(tplugins::getname(__FILE__)); $lang = tplugins::getlangabout(__FILE__); $html = tadminhtml::i(); $html->section = $lang->section; $args = targs::i(); $args->add($about); $args->add($plugin->data); $args->public = 'public' == $plugin->privacy; $args->private = 'private' == $plugin->privacy; $args->friends = 'friends' == $plugin->privacy; return $html->adminform('[text=host] [text=login] [password=password] [text=community] <p><strong>$lang.privacy</strong> <label><input name="privacy" type="radio" value="public" $public/>$lang.public</label> <label><input name="privacy" type="radio" value="private" $private />$lang.private</label> <label><input name="privacy" type="radio" value="frinds" $friends/>$lang.friends</label> </p> [editor=template]', $args); }
public function getcontent() { $widget = tsubcatwidget::i(); $about = tplugins::getabout(tplugins::getname(__FILE__)); $html = $this->html; $args = targs::i(); $id = (int) tadminhtml::getparam('idwidget', 0); if (isset($widget->items[$id])) { $args->add($widget->items[$id]); $args->sort = tadminhtml::array2combo(tlocal::admin()->ini['sortnametags'], $widget->items[$id]['sortname']); $args->idwidget = $id; $args->data['$lang.invertorder'] = $about['invertorder']; $args->formtitle = $widget->gettitle($id); return $html->adminform(' [combo=sort] [checkbox=showsubitems] [checkbox=showcount] [text=maxcount] [hidden=idwidget]', $args); } $tags = array(); foreach ($widget->items as $id => $item) { $tags[] = $item['idtag']; } $args->formtitle = $about['formtitle']; return $html->adminform(tposteditor::getcategories($tags), $args); }
function tthemegeneratorInstall($self) { if (!ttheme::exists('generator')) { die('Theme "generator" not exists'); } //litepublisher::$urlmap->addget('/theme-generator.htm', get_class($self)); $about = tplugins::getabout(tplugins::getname(__FILE__)); $name = basename(dirname(__FILE__)); $merger = tlocalmerger::i(); $merger->lock(); $merger->add('themegenerator', "plugins/{$name}/res/scheme.ini"); $merger->add('themegenerator', sprintf('plugins/%s/res/%s.ini', $name, litepublisher::$options->language)); $merger->unlock(); $js = tjsmerger::i(); $js->lock(); $js->add('themegenerator', '/plugins/colorpicker/js/colorpicker.js'); $js->add('themegenerator', '/js/swfupload/swfupload.js'); $js->add('themegenerator', sprintf('/plugins/%s/themegenerator.min.js', basename(dirname(__FILE__)))); $js->addlang('themegenerator', 'lang', array('upload_header' => $about['upload_header'], 'upload_logo' => $about['upload_logo'])); $js->unlock(); $dir = litepublisher::$paths->files . 'themegen'; if (!is_dir($dir)) { mkdir($dir, 0777); @chmod($dir, 0777); file_put_contents($dir . DIRECTORY_SEPARATOR . 'index.htm', ' '); @chmod($dir . DIRECTORY_SEPARATOR . 'index.htm', 0666); } tcron::i()->addnightly(get_class($self), 'cron', null); $self->lock(); $self->title = $about['name']; $views = tviews::i(); $self->idview = $views->add($about['name']); $view = tview::i($self->idview); $view->themename = 'generator'; $self->leftview = $views->add($about['left']); $view = tview::i($self->leftview); $view->themename = 'generator-left'; $self->rightview = $views->add($about['right']); $view = tview::i($self->rightview); $view->themename = 'generator-right'; $self->url = '/theme-generator.htm'; $self->content = get_themegen_content($self); $self->parseselectors(); $menus = tmenus::i(); $menus->lock(); $menus->add($self); $fake = new tfakemenu(); $fake->title = $about['left']; $fake->url = $self->url . '?type=left'; $fake->parent = $self->id; $menus->add($fake); $fake = new tfakemenu(); $fake->title = $about['right']; $fake->url = $self->url . '?type=right'; $fake->parent = $self->id; $menus->add($fake); $menus->unlock(); $self->unlock(); litepublisher::$urlmap->setvalue($self->idurl, 'type', 'get'); }
public function getcontent() { $widget = tpostcatwidget::i(); $about = tplugins::getabout(tplugins::getname(__FILE__)); $args = targs::i(); $id = (int) tadminhtml::getparam('idwidget', 0); if (isset($widget->items[$id])) { $item = $widget->items[$id]; $args->mode = 'edit'; $args->idwidget = $id; } else { $item = array('title' => '', 'content' => '', 'template' => 'widget', 'cats' => array()); $args->mode = 'add'; $args->idwidget = 0; } $cats = tposteditor::getcategories($item['cats']); $html = $this->html; $html->section = 'widgets'; $args->add($item); $args->widgettitle = $item['title']; $args->template = tadminhtml::array2combo(self::gettemplates(), $item['template']); $args->formtitle = $item['title'] == '' ? $this->lang->widget : $item['title']; $result = $html->adminform(' [text=widgettitle] [editor=content] [combo=template] [hidden=idwidget] [hidden=mode]' . sprintf('<h4>%s</h4>', $about['cats']) . $cats, $args); $result .= $this->getlist($widget); return $result; }
public function gethtml() { $template = ttemplate::i(); $s = $template->getjavascript('/plugins/slideshow/slideshow.min.js'); $about = tplugins::getabout(tplugins::getname(__FILE__)); $s .= $about['html']; return sprintf('[html]%s[/html]', $s); }
/** * Lite Publisher * Copyright (C) 2010 - 2013 Vladimir Yushko http://litepublisher.ru/ http://litepublisher.com/ * Dual licensed under the MIT (mit.txt) * and GPL (gpl.txt) licenses. **/ function tfaqmenuInstall($self) { $about = tplugins::getabout(tplugins::getname(__FILE__)); $self->title = $about['title']; $self->content = $about['content']; $menus = tmenus::i(); $menus->add($self); }
public function getcontent() { $plugin = tyoutubeplayer::i(); $about = tplugins::getabout(tplugins::getname(__FILE__)); $args = targs::i(); $args->formtitle = $about['formtitle']; $args->data['$lang.template'] = $about['template']; $args->template = $plugin->template; $html = tadminhtml::i(); return $html->adminform('[editor:template]', $args); }
public function getcontent() { $plugin = tcategoriesmenu::i(); $about = tplugins::getabout(tplugins::getname(__FILE__)); $args = targs::i(); $args->cats = tposteditor::getcategories($plugin->exitems); $args->formtitle = $about['formtitle']; // $args->data['$lang.before'] = $about['before']; $html = tadminhtml::i(); return $html->adminform('$cats', $args); }
public function getcontent() { $plugin = tmarkdownplugin::i(); $about = tplugins::getabout(tplugins::getname(__FILE__)); $args = targs::i(); $html = tadminhtml::i(); $args->formtitle = $about['name']; $args->data['$lang.deletep'] = $about['deletep']; $args->deletep = $plugin->deletep; return $html->adminform('[checkbox=deletep]', $args); }
public function themeparsed(ttheme $theme) { if (empty($theme->templates['content.admin.color'])) { $about = tplugins::getabout('colorpicker'); $theme->templates['content.admin.color'] = '<p> <input type="text" name="$name" id="text-$name" value="$value" size="22" /> <label for="text-$name"><strong>$lang.$name</strong></label> <input type="button" name="colorbutton-$name" id="colorbutton-$name" rel="text-$name" value="' . $about['changecolor'] . '" /> </p>'; } }
public function gethead() { $url = litepublisher::$site->files . '/plugins/' . tplugins::getname(__FILE__); $about = tplugins::getabout(tplugins::getname(__FILE__)); $result = '<link rel="stylesheet" href="' . $url . '/ed.css" type="text/css" />'; $result .= '<script type="text/javascript">'; $result .= ' var URLpromt = "' . $about['urlpromt'] . '";'; $result .= ' var IMGpromt = "' . $about['imgpromt'] . '";'; $result .= '</script>'; $result .= '<script type="text/javascript" src="' . $url . '/ed.js"></script>'; return $result; }
public function getcontent() { $plugin = tpostcontentplugin::i(); $html = tadminhtml::i(); $args = targs::i(); $about = tplugins::getabout(tplugins::getname(__FILE__)); $args->formtitle = $about['formtitle']; $args->data['$lang.before'] = $about['before']; $args->data['$lang.after'] = $about['after']; $args->before = $plugin->before; $args->after = $plugin->after; return $html->adminform('[editor=before] [editor=after]', $args); }
/** * Lite Publisher * Copyright (C) 2010 - 2013 Vladimir Yushko http://litepublisher.ru/ http://litepublisher.com/ * Dual licensed under the MIT (mit.txt) * and GPL (gpl.txt) licenses. **/ function tpagenator3000Install($self) { tcssmerger::i()->addstyle(dirname(__FILE__) . '/paginator3000.css'); $name = basename(dirname(__FILE__)); $about = tplugins::getabout($name); $js = tjsmerger::i(); $js->lock(); $js->add('default', "/plugins/{$name}/paginator3000.min.js"); $js->addtext('default', 'pagenator', sprintf('var lang = $.extend(true, lang, { pagenator: %s });', json_encode(array('next' => $about['next'], 'last' => $about['last'], 'prior' => $about['prior'], 'first' => $about['first'])))); $js->unlock(); tthemeparser::i()->parsed = $self->themeparsed; ttheme::clearcache(); }
/** * Lite Publisher * Copyright (C) 2010 - 2013 Vladimir Yushko http://litepublisher.ru/ http://litepublisher.com/ * Dual licensed under the MIT (mit.txt) * and GPL (gpl.txt) licenses. **/ function tlazybuttonsInstall($self) { $about = tplugins::getabout(tplugins::getname(__FILE__)); $o = array('lang' => litepublisher::$options->language, 'twituser' => '', 'show' => $about['show'], 'hide' => $about['hide']); $jsmerger = tjsmerger::i(); $jsmerger->lock(); $jsmerger->add('default', dirname(__FILE__) . '/lazybuttons.min.js'); $jsmerger->addtext('default', 'lazybuttons', sprintf('var lazyoptions = %s;', json_encode($o))); $jsmerger->unlock(); $parser = tthemeparser::i(); $parser->parsed = $self->themeparsed; ttheme::clearcache(); }
public function getcontent() { $plugin = ttagreplacer::i(); $html = tadminhtml::i(); $tabs = new tuitabs(); $args = targs::i(); $about = tplugins::getabout('tagreplacer'); $args->formtitle = $about['name']; $tabs->add($about['new'], $html->getinput('text', 'where-add', '', $about['where']) . $html->getinput('text', 'search-add', '', $about['search']) . $html->getinput('editor', 'replace-add', '', $about['replace'])); foreach ($plugin->items as $i => $item) { $tabs->add($item['where'], $html->getinput('text', "where-{$i}", tadminhtml::specchars($item['where']), $about['where']) . $html->getinput('text', "search-{$i}", tadminhtml::specchars($item['search']), $about['search']) . $html->getinput('editor', "replace-{$i}", tadminhtml::specchars($item['replace']), $about['replace'])); } return $html->adminform($tabs->get(), $args); }
public function getcontent() { $result = parent::getcontent(); $args = targs::i(); $args->script = $this->script; $args->ignorelink = $this->ignorelink; $about = tplugins::getabout(tplugins::getname(__FILE__)); $args->scriptlabel = $about['scriptlabel']; $args->ignorelinklabel = $about['ignorelink']; $tml = file_get_contents(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'form.tml'); $html = tadminhtml::i(); $result .= $html->parsearg($tml, $args); return $result; }
public function getcontent() { $tml = '[text:user] [editor:se]'; $html = tadminhtml::i(); $args = targs::i(); $about = tplugins::getabout(tplugins::getname(__FILE__)); $args->formtitle = $about['formtitle']; $args->data['$lang.user'] = $about['user']; $args->data['$lang.se'] = $about['se']; $args->user = $this->user; $args->se = $this->se; return $html->adminform($tml, $args); }
public function getcontent() { $plugin = tshortcode::i(); $about = tplugins::getabout(tplugins::getname(__FILE__)); $args = targs::i(); $s = ''; foreach ($plugin->items as $name => $value) { $s .= "{$name} = {$value}\n"; } $args->codes = $s; $args->formtitle = $about['formtitle']; $args->data['$lang.codes'] = $about['codes']; $html = tadminhtml::i(); return $html->adminform('[editor=codes]', $args); }
public function getcontent() { $contact = tcontactform::singleinstance('tcontactform'); $about = tplugins::getabout(tplugins::getname(__FILE__)); $args = targs::i(); $items = ''; foreach ($contact->data['extra'] as $name => $title) { $items .= "{$name} ={$title}\n"; } $args->items = $items; $args->formtitle = $about['formtitle']; $args->data['$lang.items'] = $about['items']; $html = tadminhtml::i(); return $html->adminform('[editor=items]', $args); }
/** * Lite Publisher * Copyright (C) 2010 - 2013 Vladimir Yushko http://litepublisher.ru/ http://litepublisher.com/ * Dual licensed under the MIT (mit.txt) * and GPL (gpl.txt) licenses. **/ function tcodedocpluginInstall($self) { if (!dbversion) { die("Ticket system only for database version"); } $name = basename(dirname(__FILE__)); $language = litepublisher::$options->language; $about = tplugins::getabout($name); litepublisher::$classes->Add('tcodedocfilter', 'codedoc.filter.class.php', $name); litepublisher::$classes->Add('tcodedocmenu', 'codedoc.menu.class.php', basename(dirname(__FILE__))); $menu = tcodedocmenu::i(); $menu->url = '/doc/'; $menu->title = $about['menutitle']; $menus = tmenus::i(); $menus->add($menu); $merger = tlocalmerger::i(); $merger->lock(); $merger->add('codedoc', "plugins/{$name}/resource/{$language}.ini"); $merger->add('codedoc', "plugins/{$name}/resource/html.ini"); $merger->unlock(); $manager = tdbmanager::i(); $manager->CreateTable('codedoc', ' id int unsigned NOT NULL default 0, class varchar(32) NOT NULL, parentclass varchar(32) NOT NULL, methods text not null, props text not null, events text not null, KEY id (id), KEY parentclass (parentclass) '); $filter = tcontentfilter::i(); $filter->lock(); $filter->beforecontent = $self->filterpost; $filter->seteventorder('beforecontent', $self, 0); $plugins = tplugins::i(); if (!isset($plugins->items['wikiwords'])) { $plugins->add('wikiwords'); } $filter->beforecontent = $self->afterfilter; $filter->unlock(); $linkgen = tlinkgenerator::i(); $linkgen->data['codedoc'] = '/doc/[title].htm'; $linkgen->save(); tposts::i()->deleted = $self->postdeleted; }
/** * Lite Publisher * Copyright (C) 2010 - 2015 Vladimir Yushko http://litepublisher.ru/ http://litepublisher.com/ * Dual licensed under the MIT (mit.txt) * and GPL (gpl.txt) licenses. **/ function titemsreplacerInstall($self) { $dir = basename(dirname(__FILE__)); litepublisher::$classes->add('tviewthemereplacer', 'themereplacer.class.php', $dir); litepublisher::$classes->add('tthemereplacer', 'themereplacer.class.php', $dir); $views = tviews::i(); $views->lock(); $view = new tviewthemereplacer(); $about = tplugins::getabout($dir); $view->name = $about['newview']; $id = $views->addview($view); $self->add($id); $view->themename = tview::i(1)->themename; $views->deleted = $self->delete; $views->unlock(); ttheme::clearcache(); }
public function getcontent() { $plugin = tcustomtitle::i(); $about = tplugins::getabout(tplugins::getname(__FILE__)); $args = targs::i(); $args->post = $plugin->post; $args->tag = $plugin->tag; $args->home = $plugin->home; $args->archive = $plugin->archive; $args->formtitle = $about['formtitle']; $args->data['$lang.tag'] = $about['tagcat']; $html = tadminhtml::i(); return $html->adminform('[text=post] [text=tag] [text=home] [text=archive]', $args); }
/** * Lite Publisher * Copyright (C) 2010 - 2015 Vladimir Yushko http://litepublisher.ru/ http://litepublisher.com/ * Dual licensed under the MIT (mit.txt) * and GPL (gpl.txt) licenses. **/ function tcontactsiteInstall($self) { $theme = ttheme::i(); $args = targs::i(); $about = tplugins::getabout(tplugins::getname(__FILE__)); $args->add($about); $self->title = $about['title']; $self->subject = $about['subject']; $self->success = $theme->parsearg('<p><strong>$success</strong></p>', $args); $self->errmesg = $theme->parsearg('<p><strong>$errmesg</strong></p>', $args); $form = $theme->parsearg(file_get_contents(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'form.tml'), $args); $self->data['content'] = $form; $self->data['rawcontent'] = $form; $self->order = 9; $menus = tmenus::i(); $menus->add($self); }
public function getcontent() { $plugin = tbackup2dropbox::i(); $html = tadminhtml::i(); $args = targs::i(); $about = tplugins::getabout(tplugins::getname(__FILE__)); tlocal::admin()->ini['dropbox'] = $about; $lang = tlocal::i('dropbox'); $args->add($plugin->data); $args->formtitle = $about['head']; $form = $html->adminform('[text=email] [password=password] [text=dir] [checkbox=uploadfiles] [checkbox=onlychanged]] [checkbox=useshell]', $args); $form .= '<form name="createnowform" action="" method="post" > <input type="hidden" name="createnow" value="1" /> <p><input type="submit" name="create_now" value="' . $lang->createnow . '"/></p> </form>'; return $form; }
public function getcontent() { $result = parent::getcontent(); $tagsmap = ''; foreach ($this->tagsmap as $key => $val) { $tagsmap .= "{$key} = {$val}\n"; } $args = targs::i(); $args->tagsmap = $tagsmap; $args->script = $this->script; $about = tplugins::getabout(tplugins::getname(__FILE__)); $args->maplabel = $about['maplabel']; $args->scriptlabel = $about['scriptlabel']; $tml = file_get_contents(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'form.tml'); $html = tadminhtml::i(); $result .= $html->parsearg($tml, $args); return $result; }
public function getcontent() { $openid = topenid::i(); $args = targs::i(); $args->confirm = $openid->confirm; $args->usebigmath = $openid->usebigmath; $args->trusted = implode("\n", $openid->trusted); $tml = '[checkbox:confirm] [checkbox:usebigmath] [editor:trusted]'; $about = tplugins::getabout(tplugins::getname(__FILE__)); $args->formtitle = $about['formtitle']; $args->data['$lang.confirm'] = $about['confirm']; $args->data['$lang.usebigmath'] = $about['usebigmath']; $args->data['$lang.trusted'] = $about['trusted']; $html = tadminhtml::i(); return $html->adminform($tml, $args); }
/** * Lite Publisher * Copyright (C) 2010 - 2013 Vladimir Yushko http://litepublisher.ru/ http://litepublisher.com/ * Dual licensed under the MIT (mit.txt) * and GPL (gpl.txt) licenses. **/ function tfoafInstall($self) { $merger = tlocalmerger::i(); $merger->addplugin(tplugins::getname(__FILE__)); $dir = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'resource' . DIRECTORY_SEPARATOR; $lang = tlocal::i('foaf'); if ($self->dbversion) { $manager = tdbmanager::i(); $manager->createtable($self->table, file_get_contents($dir . 'foaf.sql')); } $actions = TXMLRPCAction::i(); $actions->lock(); $actions->add('invatefriend', get_class($self), 'Invate'); $actions->add('rejectfriend', get_class($self), 'Reject'); $actions->add('acceptfriend', get_class($self), 'Accept'); $actions->unlock(); $urlmap = litepublisher::$urlmap; $urlmap->lock(); $urlmap->add('/foaf.xml', get_class($self), null); $name = tplugins::getname(__FILE__); $classes = litepublisher::$classes; $classes->lock(); $classes->add('tadminfoaf', 'admin.foaf.class.php', $name); $classes->add('tfoafutil', 'foaf.util.class.php', $name); $classes->add('tprofile', 'profile.class.php', $name); $classes->add('tfriendswidget', 'widget.friends.class.php', $name); $classes->unlock(); $admin = tadminmenus::i(); $admin->lock(); $id = $admin->createitem(0, 'foaf', 'admin', 'tadminfoaf'); $admin->createitem($id, 'profile', 'admin', 'tadminfoaf'); $admin->createitem($id, 'profiletemplate', 'admin', 'tadminfoaf'); $admin->unlock(); $urlmap->unlock(); $template = ttemplate::i(); $template->addtohead(' <link rel="meta" type="application/rdf+xml" title="FOAF" href="$site.url/foaf.xml" />'); $about = tplugins::getabout($name); $meta = tmetawidget::i(); $meta->lock(); $meta->add('foaf', '/foaf.xml', $about['name']); $meta->add('profile', '/profile.htm', $lang->profile); $meta->unlock(); ttheme::clearcache(); }
/** * Lite Publisher * Copyright (C) 2010 - 2015 Vladimir Yushko http://litepublisher.ru/ http://litepublisher.com/ * Dual licensed under the MIT (mit.txt) * and GPL (gpl.txt) licenses. **/ function tregservicesInstall($self) { $dir = litepublisher::$paths->data . 'regservices'; @mkdir($dir, 0777); @chmod($dir, 0777); $name = basename(dirname(__FILE__)); $about = tplugins::getabout($name); $self->lock(); $css = tcssmerger::i(); $css->addstyle("/plugins/{$name}/regservices.min.css"); $self->dirname = $name; $self->widget_title = sprintf('<h4>%s</h4>', $about['widget_title']); litepublisher::$classes->add('tregservice', 'service.class.php', $name); litepublisher::$classes->add('tregserviceuser', 'service.class.php', $name); litepublisher::$classes->add('tgoogleregservice', 'google.service.php', $name); litepublisher::$classes->add('tfacebookregservice', 'facebook.service.php', $name); litepublisher::$classes->add('ttwitterregservice', 'twitter.service.php', $name); litepublisher::$classes->add('tmailruregservice', 'mailru.service.php', $name); litepublisher::$classes->add('tyandexregservice', 'yandex.service.php', $name); litepublisher::$classes->add('tvkontakteregservice', 'vkontakte.service.php', $name); litepublisher::$classes->add('todnoklassnikiservice', 'odnoklassniki.service.php', $name); litepublisher::$classes->add('toauth', 'oauth.class.php', $name); $self->add(tgoogleregservice::i()); $self->add(tfacebookregservice::i()); $self->add(ttwitterregservice::i()); $self->add(tmailruregservice::i()); $self->add(tyandexregservice::i()); $self->add(tvkontakteregservice::i()); $self->add(todnoklassnikiservice::i()); $self->unlock(); tusers::i()->deleted = tregserviceuser::i()->delete; if (dbversion) { $names = implode("', '", array_keys($self->items)); tdbmanager::i()->createtable('regservices', "id int unsigned NOT NULL default 0,\n service enum('{$names}') default 'google',\n uid varchar(22) NOT NULL default '',\n \n key `id` (`id`),\n KEY (`service`, `uid`)\n "); } litepublisher::$urlmap->addget($self->url, get_class($self)); tcommentform::i()->oncomuser = $self->oncomuser; litepublisher::$urlmap->clearcache(); }
public function getcontent() { $widget = texcerptslide::i(); $about = tplugins::getabout(tplugins::getname(__FILE__)); $html = $this->html; $args = targs::i(); $id = (int) tadminhtml::getparam('idwidget', 0); if (isset($widget->items[$id])) { $args->add($widget->items[$id]); $args->idwidget = $id; $args->data['$lang.invertorder'] = $about['invertorder']; $args->formtitle = $widget->gettitle($id); return $html->adminform('[text=maxcount] [checkbox=invertorder] [hidden=idwidget]', $args); } $tags = array(); foreach ($widget->items as $id => $item) { $tags[] = $item['idtag']; } $args->formtitle = $about['formtitle']; return $html->adminform(tposteditor::getcategories($tags), $args); }
public function install() { if (!file_exists(litepublisher::$paths->home . 'mobile' . DIRECTORY_SEPARATOR . 'index.php')) { die("folder 'mobile' with requried files not exists. Please copy required folder from plugin."); } $about = tplugins::getabout(tplugins::getname(__FILE__)); $views = tviews::i(); if (!isset($views->defaults['mobile'])) { $views->defaults['mobile'] = $views->add($about['menutitle']); } $idview = $views->defaults['mobile']; $view = tview::i($idview); if ($view->themename != 'pda') { $view->themename = 'pda'; $view->disableajax = true; $view->save(); } $menus = tmenus::i(); $menus->addfake('/mobile/', $about['menutitle']); $robot = trobotstxt::i(); $robot->AddDisallow('/mobile/'); litepublisher::$urlmap->clearcache(); }