public function __construct() { // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= parent::__construct(); __extends($this); $this->instance = get_instance(); // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= $this->load->library('install'); $this->load->library('file'); // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= if ($this->instance->db_connected()) { $this->load->library('users_global'); $this->data['options'] = get_meta('all'); trigger_inits(); // For Core menu extension, they are called after default menu. /** * Declare Notices : Notices are internal(system) or module/theme alert. **/ set_core_vars('tendoo_notices', trigger_filters('declare_notices', array(get_core_vars('default_notices')))); // @since 1.4 } else { $this->users_global = FALSE; $this->data['options'] = FALSE; } }
public function index() { set_core_vars('options', $options = get_meta('all'), 'read_only'); if (riake('tendoo_registration_status', $options) == '0') { $this->instance->url->redirect(array('error', 'code', 'registration-not-allowed')); } $this->instance->form_validation->set_rules('user_pseudo', translate('Pseudo'), 'trim|required|min_length[5]|max_length[15]'); $this->instance->form_validation->set_rules('user_password', __('Password'), 'trim|required|min_length[6]|max_length[15]'); $this->instance->form_validation->set_rules('user_password_confirm', __('Confirm Password'), 'trim|required|min_length[6]|max_length[15]'); $this->instance->form_validation->set_rules('user_mail', __('Email'), 'trim|valid_email|required'); $this->instance->form_validation->set_rules('user_sex', __('Sex'), 'trim|required|min_length[3]|max_length[4]'); $this->instance->form_validation->set_rules('priv_id', __('Select Privilege'), 'trim|min_length[11]'); $this->instance->form_validation->set_rules('captchaCorrespondance', __('Captcha Code'), 'trim|required|min_length[6]'); $this->instance->form_validation->set_rules('user_captcha', __('Captcha validation Code'), 'matches[captchaCorrespondance]|trim|required|min_length[6]'); if ($this->instance->form_validation->run()) { $query = $this->instance->users_global->createUser($this->instance->input->post('user_pseudo'), $this->instance->input->post('user_password'), $this->instance->input->post('user_sex'), $this->instance->input->post('user_mail'), $active = 'FALSE', $this->instance->input->post('priv_id')); if ($query == 'userCreated') { $this->instance->url->redirect(array('login?notice=' . $query)); } notice('push', fetch_notice_output($query)); } set_core_vars('allowPrivilege', $this->roles->get_public_roles()); $this->instance->session->set_userdata('captcha_code', $this->instance->captcha->get()); set_core_vars('captcha', $this->instance->session->userdata('captcha_code')); set_core_vars('pageTitle', sprintf(__('Create an account - %s '), riake('site_name', $options))); set_page('title', get_core_vars('pageTitle')); set_core_vars('body', $this->load->the_view('registration/createUser', true)); $this->load->view('header'); $this->load->view('global_body'); }
public function __construct() { parent::__construct(); // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= $this->instance = get_instance(); // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= $this->load->library('users_global'); $this->load->library('file'); $this->load->library('pagination'); $this->load->library('form_validation'); // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= css_push_if_not_exists('font'); css_push_if_not_exists('../admin-lte/bootstrap/css/bootstrap.min'); css_push_if_not_exists('../admin-lte/font-awesome/font-awesome.4.3.0.min'); css_push_if_not_exists('../admin-lte/dist/css/AdminLTE.min'); css_push_if_not_exists('../admin-lte/plugins/iCheck/square/blue'); js_push_if_not_exists('../admin-lte/plugins/jQuery/jQuery-2.1.3.min'); js_push_if_not_exists('../admin-lte/bootstrap/js/bootstrap.min'); js_push_if_not_exists('../admin-lte/plugins/iCheck/icheck.min'); // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // Has admin ? $this->users_global->hasAdmin() === FALSE ? $this->url->redirect(array('registration', 'superAdmin')) : false; // is Connected ? $this->users_global->isConnected() === TRUE ? $this->url->redirect(array('index')) : false; $this->options = get_meta('all'); set_core_vars('tendoo_notices', trigger_filters('declare_notices', array(get_core_vars('default_notices')))); // @since 1.4 }
function check() { // Get Repo from Blair2004 // Check Version Releases // http://api.github.com/repos/Blair2004/tendoo-cms/releases $json_api = $this->curl->security(false)->get('https://api.github.com/repos/Blair2004/tendoo-cms/releases'); if ($json_api != '') { $array_api = json_decode($json_api, true); $lastest_release = return_if_array_key_exists(0, $array_api); $release_tag_name = return_if_array_key_exists('tag_name', $lastest_release); $release_id = (double) substr($release_tag_name, 1); $lastest_release = array('id' => $release_id, 'name' => return_if_array_key_exists('name', $lastest_release), 'description' => return_if_array_key_exists('body', $lastest_release), 'beta' => return_if_array_key_exists('prerelease', $lastest_release), 'published' => return_if_array_key_exists('published_at', $lastest_release), 'link' => return_if_array_key_exists('zipball_url', $lastest_release)); $tendoo_update['core'] = $lastest_release; set_meta('tendoo_core_update', $tendoo_update); } $core_id = (double) get('core_id'); if ($tendoo_update = get_meta('tendoo_core_update')) { $array = array(); // Setting Core Warning if ($release = return_if_array_key_exists('core', $tendoo_update)) { if ($release['id'] > $core_id) { // if ($release['beta'] == false) { $array[] = array('link' => $release['link'], 'content' => $release['description'], 'title' => $release['name'], 'date' => $release['published']); } } } return $array; } return false; }
public function __construct($data) { // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= parent::__construct(); __extends($this); // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= $this->load->library('gui'); $this->_config(); $this->data = $data; $this->instance = get_instance(); $this->opened_module = get_core_vars('opened_module'); $this->data['module'] = get_core_vars('opened_module'); $this->news = new blogster_library($this->data); set_core_vars('news', $this->news); $this->data['news'] =& $this->news; // Deprecated $this->read_slug = 'read'; $this->options = get_meta('blogster_settings'); set_core_vars('blogster_settings', $this->options); // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= $this->data['inner_head'] = $this->load->view('admin/inner_head', $this->data, true); $this->data['lmenu'] = $this->load->view(VIEWS_DIR . '/admin/left_menu', $this->data, true, TRUE); $this->link = MODULES_DIR . $this->opened_module['encrypted_dir'] . '/'; /* Intégration de la librarie FILE MANAGER : Gestionnaire des fichiers médias. */ // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= $fileManager = get_modules('filter_namespace', 'tendoo_contents'); if ($fileManager) { include_once MODULES_DIR . $fileManager['encrypted_dir'] . '/utilities.php'; set_core_vars('fmlib', new tendoo_contents_utility()); // Loading library } // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= }
/** * Add "title" macros for "html" service location. * * @param \Illuminate\Contracts\Foundation\Application $app * * @return void */ protected function addHtmlExtensions(Application $app) { $html = $app->make('html'); $html->macro('title', function ($title = null) use($html) { $builder = new Title($html, memorize('site.name'), ['site' => get_meta('html::title.format.site', '{site.name} (Page {page.number})'), 'page' => get_meta('html::title.format.page', '{page.title} — {site.name}')]); return $builder->title($title ?: trim(get_meta('title', ''))); }); }
/** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/index * - or - * Since this controller is set as the default controller in * config/routes.php, it's displayed at http://example.com/ * * So any other public methods not prefixed with an underscore will * map to /index.php/welcome/<method_name> * @see http://codeigniter.com/user_guide/general/urls.html */ public function index() { $packages = $this->object->getList(array('type' => 'package', 'with' => array('tag', 'meta'))); $price_levels = array(); foreach ($packages['data'] as $package) { $price_levels[get_tag($package, '价格档次')] = get_meta($package, '价格'); } $products = $this->object->getList(array('type' => 'product', 'meta' => array('首页推荐' => true), 'with_meta' => true)); $this->load->view('home', compact('price_levels', 'products')); }
public function timestamp() { // $this->load->helper('date'); $timezone = get_meta('site_timezone'); if ($timezone == false) { $timezone = 'Etc/UTC'; } // $tz_object = new DatetimeZone($timezone); $date = new DateTime(null, new DatetimeZone($timezone)); $timestamp = strtotime($date->format('Y-m-d H:i:s')); return $timestamp; }
function __construct() { // Saving Theme Settings $active_theme = get_core_vars('active_theme'); if (riake('namespace', $active_theme)) { $settings = get_meta($active_theme['namespace'] . '_theme_settings'); if ($settings) { push_core_vars('active_theme', 'theme_settings', $settings); } } $this->module = get_modules('filter_namespace', 'tim'); if (is_admin()) { $this->menu = new Menu(); $this->menu = new Menu(); $this->menu->add_admin_menu_core('themes', array('title' => __('Theme Options'), 'icon' => 'fa fa-columns', 'href' => get_instance()->url->site_url(array('admin', 'open', 'modules', $this->module['namespace'])))); } }
public function __construct($data) { $this->instance = get_instance(); $this->data =& $data; $this->theme = get_core_vars('active_theme_object'); $this->location = MODULES_DIR . $this->data['currentWidget']['WIDGET_MODULE']['encrypted_dir']; if (!class_exists('News_smart')) { include_once $this->location . '/library.php'; } $this->news = new News_smart(); $this->data['mostViewed'] = $this->news->getMostViewed(0, 10); $end = '<ul>'; if ($this->instance->users_global->isConnected()) { $this->instance->load->library('tendoo_admin'); if ($this->instance->users_global->isAdmin()) { $priv = $this->instance->users_global->current('REF_ROLE_ID'); if ($this->instance->users_global->isSuperAdmin()) { $end .= '<li><a href="' . $this->instance->url->site_url(array('admin', 'modules')) . '">Liste des modules</a></li>'; $end .= '<li><a href="' . $this->instance->url->site_url(array('admin', 'setting')) . '">Paramètres</a></li>'; $end .= '<li><a href="' . $this->instance->url->site_url(array('admin', 'system', 'manage_actions')) . '">Gestion d\'actions</a></li>'; $end .= '<li><a href="' . $this->instance->url->site_url(array('admin', 'installer')) . '">Installer une application</a></li>'; } else { if (!$this->instance->tendoo_admin->is_public_role($priv)) { $end .= '<li><a href="' . $this->instance->url->site_url(array('admin')) . '">Espace administration</a></li>'; } } } $end .= '<li><a href="' . $this->instance->url->site_url(array('account')) . '">Mon profil</a></li>'; $end .= '<li><a href="' . $this->instance->url->site_url(array('account', 'messaging', 'home')) . '">Ma messagerie</a></li>'; } else { $options = get_meta('all'); if (riake('allow_registration', $options) == '1') { $end .= '<li><a href="' . $this->instance->url->site_url(array('registration')) . '">Inscription</a></li>'; } $end .= '<li><a href="' . $this->instance->url->site_url(array('login')) . '">Connexion</a></li>'; } $end .= '</ul>'; // For Zones if (in_array($this->data['widgets']['requestedZone'], array('LEFT', 'BOTTOM', 'RIGHT'))) { $widget_title = $this->data['currentWidget']['WIDGET_INFO']['WIDGET_TITLE']; $zone = $this->data['widgets']['requestedZone']; // requestedZone set_widget(strtolower($zone), $widget_title, $end, 'text'); } }
public function index() { $active_theme = get_core_vars('active_theme'); $setting_key = $active_theme['namespace'] . '_theme_settings'; $this->load->library('form_validation'); $this->form_validation->set_rules('api_limit', 'API LIMIT', 'required'); $this->form_validation->set_rules('declared_apis', 'Declared API', 'required'); $this->form_validation->set_rules('declared_item', 'Declared Item', 'required'); // For Static using API if ($this->form_validation->run()) { if ($active_theme) { $datas_get = get_meta($setting_key); $saved_settings = $datas_get ? $datas_get : array(); // If there are same setting already saved, they'll be overwrited $saved_settings[$this->input->post('declared_item')] = array('api_limit' => $this->input->post('api_limit'), 'declared_apis' => $this->input->post('declared_apis'), 'declared_item' => $this->input->post('declared_item')); if (set_meta($active_theme['namespace'] . '_theme_settings', $saved_settings)) { notice('push', fetch_notice_output('done')); } } } // For Static not draggable if ($this->input->post('is_static_item')) { $this->load->library('form_validation'); if ($static = return_if_array_key_exists('static', $_POST)) { if (is_array($static)) { $active_theme = get_core_vars('active_theme'); $saved_settings = get_meta($active_theme['namespace'] . '_theme_settings'); foreach ($static as $namespace => $item) { if (is_array($item)) { foreach ($item as $name => $fields) { $saved_settings[$namespace][$name] = $fields; } } } if (set_meta($active_theme['namespace'] . '_theme_settings', $saved_settings)) { notice('push', fetch_notice_output('done')); } } } } // Add Settings to Core vars push_core_vars('active_theme', 'theme_settings', get_meta($setting_key)); set_page('title', 'TIM | ' . get('core_version')); return $this->load->view($this->module_metas['uri_path'] . 'views/body', $this->data, true, true); }
public function __construct() { // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= parent::__construct(); __extends($this); // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= $this->news = new News_smart(); $this->data['page'] = get_core_vars('page'); $this->data['theme'] = get_core_vars('active_theme_object'); $this->data['module'] = get_core_vars('module'); $this->data['news'] =& $this->news; $this->data['userUtil'] =& $this->users_global; $this->data['setting'] = get_meta('blogster_settings'); // Setting Bread $this->data['current_page'] = get_core_vars('page'); set_bread(array('link' => get_instance()->url->site_url(array($this->data['current_page'][0]['PAGE_CNAME'])), 'text' => $this->data['current_page'][0]['PAGE_CNAME'])); // End }
function process_message($msg) { global $debug; global $useragent; $json = $msg->body; $ob = json_decode($json); $id = $ob->id; $url = $ob->url; $aurl = $ob->avatar_url; print "*** FETCHING id: {$id}, {$url}\n"; mkdir("data/{$id}"); mkdir("data/{$id}/uploads"); file_put_contents("data/{$id}/profile.json", "{$json}\n"); get_meta($id, $aurl); crawl($id, $url); system("nice tar -cjvf data/{$id}.tar.bz2 data/{$id}"); system("rm -rf data/{$id}"); system("scp data/{$id}.tar.bz2 steve@10.0.0.77:/temp/soundcloud"); system("rm -rf data/{$id}.tar.bz2"); print "*** DONE id: {$id}, {$url}\n"; $msg->delivery_info['channel']->basic_ack($msg->delivery_info['delivery_tag']); }
function meta($meta, $id = '') { echo get_meta($meta, $id); }
<?php $this->view('header'); ?> <div class="article-page"> <a type="button" id="font-standard" class="btn pull-right">标准字体</a> <h1><?php echo $article['name']; ?> </h1> <?php echo get_meta($article, '内容'); ?> </div> <script type="text/javascript"> (function($){ $(function(){ $('#font-standard').on('click', function(){ $('.article-page').css('font-family', 'STZhongsong, Songti SC, SimSun, serif'); $(this).fadeOut(100); }); }); })(jQuery) </script> <?php $this->view('footer');
</tr> <?php } ?> </tbody> </table> </div> 送餐状态: <?php echo get_meta($user, '套餐'); ?> <?php if (get_meta($user, '下次送餐日期')) { ?> 每周送餐中,下次送餐日期:<?php echo get_meta($user, '下次送餐日期'); ?> <div class="pull-right"> <button type="submit" name="stop" class="btn">暂停送餐</button> </div> <?php } else { ?> 暂停送餐中 <div class="pull-right"> <div class="input-append date" id="datepicker" data-date="<?php echo date('Y-m-d', time() + 86400 * 7); ?> " data-date-format="yyyy-mm-dd"> <input name="下次送餐日期" class="span2" size="16" type="text" value="<?php echo date('Y-m-d', time() + 86400 * 7);
</div> </div> <div class="control-group"> <label class="control-label">内容分类</label> <div class="controls"> <input type="text" name="tag[内容分类]" value="<?php echo set_value('tag[内容分类]', isset($package) ? get_tag($package, '内容分类') : ''); ?> " /> </div> </div> <div class="control-group"> <label class="control-label">组成</label> <div class="controls"> <textarea name="meta[组成]"><?php echo set_value('tag[组成]', isset($package) ? get_meta($package, '组成') : ''); ?> </textarea> </div> </div> <button type="submit" name="submit" class="btn">提交</button> <button type="submit" name="remove" class="btn-link">删除</button> </form> </div> <script type="text/javascript" src="/js/tinymce/tinymce.min.js"></script> <script type="text/javascript"> $(function(){ tinymce.init({ selector: "textarea", language:'zh_CN',
/** * 支付完成返回页面 */ function paymentConfirm() { $notify_verify = file_get_contents('https://mapi.alipay.com/gateway.do?service=notify_verify&partner=' . $this->company->config('alipay_partner_id') . '¬ify_id=' . $this->input->get('notify_id')); if ($notify_verify !== 'true') { throw new Exception('支付校验失败', 400); } $order_id = $this->input->get('out_trade_no'); $order = $this->object->fetch($order_id); $this->object->addMeta('支付宝流水号', $this->input->get('trade_no')); $this->object->addStatus('支付完成'); // 如果是卡,那么拿一张卡并写入订单信息 if (get_meta($order, '是否卡片') === '是') { $card = $this->object->getRow(array('type' => 'card', 'meta' => array('已绑定套餐' => '否'))); if (!$card) { throw new Exception('获得卡片错误,请联系客服处理', 500); } $this->object->id = $card['id']; $this->object->authorize(array('read' => true, 'write' => true), null, false); $this->object->updateMeta('已绑定套餐', '是'); $this->object->addMeta(array('套餐' => get_meta($order, '套餐'), '价格档次' => get_meta($order, '价格档次'), '内容分类' => get_meta($order, '内容分类'), '次数' => get_meta($order, '次数'))); $this->object->addRelative('package', get_relative($order, 'package', 'id')); $this->object->authorize('public', null, false); $this->object->id = $order['id']; $this->object->addRelative('card', $card['id']); // 购买的卡并不立即充入用户账户,最终用户拿到卡,导入到自己的账号,才完成关联(直接导入“餐”,并不关联“卡”本身) } else { $this->user->getMeta(); $bought = isset($this->user->meta['已购']) ? json_decode($this->user->meta['已购'][0], JSON_OBJECT_AS_ARRAY) : false; if (!$bought) { $bought = array(); } if (array_key_exists(get_meta($order, '价格档次'), $bought)) { $bought[get_meta($order, '价格档次')] += get_meta($order, '次数'); } else { $bought[get_meta($order, '价格档次')] = get_meta($order, '次数'); } $this->user->updateMeta('已购', json_encode($bought)); $this->user->updateMeta('套餐', get_meta($order, '套餐')); $this->user->updateMeta('下次送餐日期', get_meta($order, '首次送货日期')); } redirect('user/order'); }
</thead> <tbody> <?php foreach ($orders['data'] as $order) { ?> <tr> <td><?php echo $order['id']; ?> </td> <td><?php echo get_relative($order, 'package', 'name'); ?> </td> <td><?php echo get_meta($order, '次数'); ?> </td> <td><?php echo get_status($order, '下单'); ?> </td> <td><?php echo get_status($order); ?> </td> <td><a href="/user/order/<?php echo $order['id']; ?> ">查看</a></td> </tr>
" /> </div> </div> <div class="control-group"> <div class="control-label">收货地址:</div> <div class="controls"> <input type="text" name="meta[收货地址]" value="<?php echo set_value('meta[收货地址]', get_meta($order, '收货地址')); ?> " /> </div> </div> <div class="control-group"> <div class="control-label">邮编:</div> <div class="controls"> <input type="text" name="meta[邮编]" value="<?php echo set_value('meta[邮编]', get_meta($order, '邮编')); ?> " /> </div> </div> <div class="control-group"> <div class="controls"> <button type="submit" name="next" class="btn">去支付宝支付</button> <button type="submit" name="cancel" class="btn">放弃此订单</button> </div> </div> </form> </div> <?php $this->view('footer');
<div class="navbar navbar-inverse navbar-fixed-top" <?php echo current_user('top_offset'); ?> > <div class="navbar-inner"> <div class="container"> <a class="brand" style="padding:10px;" href="<?php echo get_instance()->url->main_url(); ?> "><img style="height:35px" src="<?php echo get_meta('site_logo'); ?> " alt="logo"></a> <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <!-- <form class="navbar-search pull-right"> <input type="text" class="search-query" placeholder="Search"> </form> --> <div class="nav-collapse collapse"> <?php theme_parse_menu(array('parent' => false, 'base_ul_class' => 'nav navbar-nav navbar-right', 'active_class' => 'active', 'parent_class' => 'collapse navbar-collapse', 'li_has_child_class' => 'dropdown', 'li_a_has_child_class' => 'dropdown-toggle', 'li_a_has_child_attr' => 'data-toggle="dropdown"', 'menu_limitation' => 20, 'li_parents_class' => array('dropdown-menu'))); ?> </div> </div> </div> </div>
<?php $title = get_meta('title'); $description = get_meta('description'); ?> <section class="content-header"> @if (get_meta('header::add-button')) <div class="pull-right"> <a href="{!! app('url')->current() !!}/create" class="btn btn-primary"> {{ trans('orchestra/foundation::label.add') }} </a> </div> @endif <h1> {!! $title or '' !!} @if (! empty($description)) <small>{!! $description or '' !!}</small> @endif </h1> </section>
<div class="spell"><?php echo get_meta($product, '英文名称'); ?> </div> <div class="name"><?php echo $product['name']; ?> </div> </div> <a href="/product/<?php echo $product['id']; ?> "><img src="<?php echo site_url(); ?> img/<?php echo get_meta($product, '缩略图'); ?> " alt="<?php echo $product['name']; ?> "></a> </li> <?php } ?> </ul> </div> </div> <?php $this->view('footer');
<input type="radio" name="package" value="<?php echo $package['id']; ?> "> <?php echo $package['name']; ?> <a href="<?php echo site_url(); ?> package/<?php echo $package['id']; ?> " target="_blank"> <p class="description">¥<?php echo get_meta($package, '价格'); ?> /周 <?php echo get_tag($package, '内容分类'); ?> »</p> </a> </label> <?php } ?> </div> </li> <li class="step"> <div class="title">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# website: http://ogp.me/ns/website#"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta name="google-site-verification" content="3skbDWF2A0I9q_sQLyYR1BDA3qPEhMTtHQmyclKd3h0" /> <link rel="shortcut icon" href="/<?php echo $theme; ?> images/favicon.ico" type="image/x-icon"/> <link rel="icon" href="/<?php echo $theme; ?> images/favicon.ico" type="image/x-icon"/> <?php get_meta(); ?> <title><?php get_title(); ?> </title> <link href="/<?php echo $theme; ?> css/style.css?ver=0.2" rel="stylesheet" type="text/css" id="style" /> <?php if (get_banner('ბრენდირება L', $registry['post'][0]['cat_id']) == false) { ?> <link href="/<?php echo $theme; ?> css/responsive.css?ver=1.4" rel="stylesheet" type="text/css"/>
public function add_permission($role_id, $action) { $role = $this->get($role_id); if ($role) { $roles_permissions = get_meta('roles_permissions'); $permissions = riake($role_id, $roles_permissions, array($role_id => array())); if (!in_array($action, force_array($permissions))) { $roles_permissions[$role_id][] = $action; set_meta('roles_permissions', $roles_permissions); return true; } } return false; }
<!-- Content --> <div id="content"> <div class="contact"> <?php the_content(); ?> </div> <div class="cl"> </div> </div> <!-- End Content --> <div class="cl"> </div> <div class="map"> <?php $googlemap = get_meta('_googlemap'); $googleaddress = get_meta('_googleaddress'); $image = get_meta('_googlemap_icon'); if ($googlemap && $googleaddress && $image) { ?> <script src="http://maps.google.com/maps/api/js?sensor=true" type="text/javascript"></script> <script type="text/javascript"> jQuery(document).ready(function($) { //------- Google Maps ---------// // Creating a LatLng object containing the coordinate for the center of the map var latlng = new google.maps.LatLng(<?php echo $googlemap; ?> ); // Creating an object literal containing the properties we want to pass to the map var options = {
echo $relative[0]['name']; ?> "><?php echo $relative[0]['name']; ?> </td> </tr> <?php } ?> </tbody> </table> </div> <?php if (get_meta($order, '是否卡片') === '是') { ?> <?php if (!get_relative($order, 'card')) { ?> <div class="well well-small"> 该订单尚未关联到卡片 </div> <?php } else { ?> 卡片发送信息:<input type="text" name="card_delivery_comment"> <button type="submit" name="deliver_card" class="btn">发卡</button> <?php } ?>
<div class="table-border"> <table class="table"> <tbody> <?php foreach ($user['meta'] as $key => $value) { ?> <tr> <td><?php echo $key; ?> </td> <td><span class="meta-value" data-key="<?php echo $key; ?> "><?php echo get_meta($user, $key); ?> </span></td> </tr> <?php } ?> </tbody> </table> </div> <div class="well well-small">在这里修改你的用户信息</div> <div class="control-group"> <label class="control-label">用户名:</label> <div class="controls"><input type="text" name="name" value="<?php echo set_value('name', $user['name']);
<html class="no-js" lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title><?php echo get_meta('title'); ?> </title> <meta name="description" content="<?php echo get_meta('description'); ?> "> <meta name="keywords" content="<?php echo get_meta('keywords'); ?> "> <meta name="author" content="<?php echo $this->session->userdata('namadomain'); ?> "> <link rel="stylesheet" href="<?php echo base_url(); ?> assets/themes/<?php echo THEMESET; ?> /css/app.css"> <link rel="stylesheet" href="<?php echo base_url();