当前位置: 首页>>代码示例>>PHP>>正文


PHP getCss函数代码示例

本文整理汇总了PHP中getCss函数的典型用法代码示例。如果您正苦于以下问题:PHP getCss函数的具体用法?PHP getCss怎么用?PHP getCss使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了getCss函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: AdkAdmin

function AdkAdmin()
{
    global $txt, $context, $settings, $adkportal, $boardurl, $adkFolder;
    //Is allowed to manage adkportal
    isAllowedTo('adk_portal');
    //Load my template
    adktemplate('Adk-Admin');
    //Load Adk Language
    adkLanguage('Adk-Admin');
    $subActions = array('view' => 'view', 'adksettings' => 'adksettings', 'adksavesettings' => 'adksavesettings', 'manageicons' => 'manageicons');
    //Set subactions for standalone mode
    if ($adkportal['adk_enable'] == 2) {
        $subActions += array('standalone' => 'SettingsStandAlone', 'save_stand' => 'SaveSettingsStandAlone');
    }
    $context['html_headers'] .= getCss('admin_adkportal');
    $context['html_headers'] .= getJs('admin');
    $context[$context['admin_menu_name']]['tab_data'] = array('title' => $txt['adkadmin_settings'], 'description' => $txt['adkadmin_news_desc'], 'tabs' => array('view' => array('description' => $txt['adkadmin_news_desc'], 'label' => '<img style="vertical-align: middle;" alt="" src="' . $settings['default_theme_url'] . '/images/admin/news.png" />&nbsp;' . $txt['adkadmin_news']), 'adksettings' => array('description' => $txt['adkadmin_setting_desc'], 'label' => '<img style="vertical-align: middle;" alt="" src="' . $settings['default_theme_url'] . '/images/admin/settings.png" />&nbsp;' . $txt['adkadmin_setting']), 'manageicons' => array('description' => $txt['adkadmin_icons_desc'], 'label' => '<img style="vertical-align: middle;" alt="" src="' . $settings['default_theme_url'] . '/images/admin/icons.png" />&nbsp;' . $txt['adkadmin_icons'])));
    //The last thing... print the stand alone menu
    if ($adkportal['adk_enable'] == 2) {
        $context[$context['admin_menu_name']]['tab_data']['tabs']['standalone'] = array('description' => $txt['adkadmin_stand_desc'], 'label' => '<img style="vertical-align: middle;" alt="" src="' . $adkFolder['images'] . '/php.png" />&nbsp;' . $txt['adkadmin_stand']);
    }
    // Follow the sa or just go to View function
    if (!empty($_GET['sa']) && !empty($subActions[$_GET['sa']])) {
        $subActions[@$_GET['sa']]();
    } else {
        $subActions['view']();
    }
}
开发者ID:lucasruroken,项目名称:adkportal,代码行数:28,代码来源:Adk-Admin.php

示例2: getCss

function getCss($mycss, $autoEcho = true, $noCache = false)
{
    if (!$mycss) {
        return '';
    }
    $str = '';
    if (!is_array($mycss) && strExists($mycss, ',')) {
        $mycss = explode(',', $mycss);
    }
    if (is_array($mycss)) {
        foreach ($mycss as $value) {
            $str .= getCss($value, $autoEcho, $noCache);
        }
    } else {
        if (strExists($mycss, '|')) {
            $ar = explode('|', $mycss);
            $mycss = $ar[0];
            $time = isset($ar[1]) ? '?v=' . $ar[1] : '';
        } else {
            $time = $noCache ? '?v=' . date('Ymd', TIME) : '';
        }
        $str = '<link rel="stylesheet" type="text/css" href="' . (strpos($mycss, './') === 0 ? LOCAL_PUBLIC_PATH . 'css/' : CSS_PATH) . $mycss . '.css' . $time . '" />' . "\n";
    }
    if ($autoEcho) {
        echo $str;
    } else {
        return $str;
    }
}
开发者ID:sdgdsffdsfff,项目名称:51jhome_customerservice,代码行数:29,代码来源:view.fun.php

示例3: index

 public function index($id = '')
 {
     $this->menu_m = $this->load->model('menu/menu_m');
     $menu = $this->menu_m->getmenu($id);
     if (count($menu) > 0) {
         $css = getCss($menu, 'module');
         $this->data['css'] = $css;
         $this->data['menu'] = $menu;
         // get menu type id
         $options = json_decode($menu->options);
         $menu_id = 0;
         if (isset($options->menu_type)) {
             $menu_id = $options->menu_type;
             // load menu items
             if ($menu_id > 0) {
                 $this->menu_m->_table_name = 'menus';
                 $this->menu_m->db->where('menu_type_id', $menu_id);
                 $items = $this->menu_m->get();
                 if (count($items) == 0) {
                     return false;
                 }
                 $this->data['items'] = $items;
             } else {
                 return false;
             }
         } else {
             return false;
         }
         $this->data['menu_id'] = $menu_id;
         $this->load->view('menu', $this->data);
     }
 }
开发者ID:Nnamso,项目名称:tbox,代码行数:32,代码来源:menu.php

示例4: ShowDownloads

function ShowDownloads()
{
    global $context, $smcFunc, $txt, $boardurl, $modSettings, $adkportal, $sourcedir;
    //Load your language or English Language
    adkLanguage('Adk-Downloads');
    //Load Subs-adkdownloads.php
    require_once $sourcedir . '/AdkPortal/Subs-adkdownloads.php';
    //Check fi adkportal is enabled or if you have permissions to manage it
    if ($adkportal['download_enable'] == 0 && !allowedTo('adk_downloads_manage')) {
        fatal_lang_error('adkfatal_this_module_doesnt_exist', false);
    }
    $adkportal['Designeds'] = array('borde' => !empty($adkportal['adkcolor_border']) ? $adkportal['adkcolor_border'] : '#99ABBF', 'fondo' => !empty($adkportal['adkcolor_fondo']) ? $adkportal['adkcolor_fondo'] : '#ffffff', 'titulo' => !empty($adkportal['adkcolor_fonttitle']) ? $adkportal['adkcolor_fonttitle'] : '#ffffff', 'letra' => !empty($adkportal['adkcolor_font']) ? $adkportal['adkcolor_font'] : '#444444', 'link' => !empty($adkportal['adkcolor_link']) ? $adkportal['adkcolor_link'] : '#334466', 'att' => !empty($adkportal['adkcolor_attach']) ? $adkportal['adkcolor_attach'] : '#CEE0F4');
    //Set the subations
    $subActions = array('index' => 'ShowIndexCategories', 'view' => 'AdkViewDownload', 'search' => 'AdkSearchDownloads', 'search2' => 'AdkSearchDownloads2', 'downfile' => 'AdkDownloadFile', 'addnewfile' => 'AddaNewDownload', 'addnewfile2' => 'AddaNewDownload2', 'deletedownload' => 'DeleteDownload', 'editdownload' => 'EditDownload', 'unapprovedownload' => 'UnApproveDownload', 'approvedownload' => 'ApproveDownload', 'saveeditdownload' => 'EditSaveDownload', 'viewstats' => 'AdkViewStats', 'myprofile' => 'AdkViewMyProfile', 'down' => 'DownCat', 'up' => 'UpCat');
    //Load css system
    $context['html_headers'] .= getCss('download_system');
    //Load Template
    adktemplate('Adk-Downloads');
    if (!empty($_GET['sa']) && !empty($subActions[$_GET['sa']])) {
        $subActions[@$_GET['sa']]();
    } elseif (!empty($_REQUEST['cat']) && is_numeric($_REQUEST['cat'])) {
        ShowCatDownload((int) $_REQUEST['cat']);
    } else {
        $subActions['index']();
    }
}
开发者ID:lucasruroken,项目名称:adkportal,代码行数:26,代码来源:Adk-Downloads.php

示例5: index

 public function index($id = '')
 {
     $this->tweet_m = $this->load->model('tweet/tweet_m');
     $tweet = $this->tweet_m->gettweet($id);
     if (count($tweet) > 0) {
         $css = getCss($tweet, 'module');
         $this->data['css'] = $css;
         $this->data['tweet'] = $tweet;
         $this->load->view('tweet', $this->data);
     }
 }
开发者ID:Nnamso,项目名称:tbox,代码行数:11,代码来源:tweet.php

示例6: index

 public function index($id = '')
 {
     $this->tab_m = $this->load->model('tab/tab_m');
     $tab = $this->tab_m->getTab($id);
     if (count($tab) > 0) {
         $css = getCss($tab, 'module');
         $this->data['css'] = $css;
         $this->data['tab'] = $tab;
         $this->load->view('index', $this->data);
     }
 }
开发者ID:Nnamso,项目名称:tbox,代码行数:11,代码来源:tab.php

示例7: index

 public function index($id = '')
 {
     $this->popup_m = $this->load->model('popup/popup_m');
     $popup = $this->popup_m->getPopup($id);
     if (count($popup) > 0) {
         $css = getCss($popup, 'module');
         $this->data['css'] = $css;
         $this->data['popup'] = $popup;
         $this->load->view('popup', $this->data);
     }
 }
开发者ID:Nnamso,项目名称:tbox,代码行数:11,代码来源:popup.php

示例8: index

 public function index($id = null)
 {
     $this->banner_m = $this->load->model('banner/banner_m');
     $banner = $this->banner_m->getBanner($id);
     if (count($banner) > 0) {
         $css = getCss($banner, 'module');
         $this->data['css'] = $css;
         $this->data['banner'] = $banner;
         $this->load->view('banner', $this->data);
     }
 }
开发者ID:Nnamso,项目名称:tbox,代码行数:11,代码来源:banner.php

示例9: index

 public function index($id = '')
 {
     $this->video_m = $this->load->model('video/video_m');
     $video = $this->video_m->getVideo($id);
     if (count($video) > 0) {
         $css = getCss($video, 'module');
         $this->data['css'] = $css;
         $this->data['video'] = $video;
         $this->load->view('video', $this->data);
     }
 }
开发者ID:Nnamso,项目名称:tbox,代码行数:11,代码来源:video.php

示例10: index

 public function index($id = null)
 {
     $this->m_slider_m = $this->load->model('m_slider/m_slider_m');
     $slider = $this->m_slider_m->getSlider($id);
     if (count($slider) > 0) {
         $css = getCss($slider, 'module');
         $this->data['css'] = $css;
         $this->data['slider'] = $slider;
         $this->load->view('m_slider', $this->data);
     }
 }
开发者ID:Nnamso,项目名称:tbox,代码行数:11,代码来源:m_slider.php

示例11: index

 public function index($id = '')
 {
     $this->custom_m = $this->load->model('m_custom/m_custom_m');
     $custom = $this->custom_m->getCustom($id);
     if (count($custom) > 0) {
         $css = getCss($custom, 'module');
         $this->data['css'] = $css;
         $this->data['custom'] = $custom;
         $this->load->view('m_custom', $this->data);
     }
 }
开发者ID:Nnamso,项目名称:tbox,代码行数:11,代码来源:m_custom.php

示例12: index

 public function index($id = '')
 {
     $this->share_m = $this->load->model('share/share_m');
     $share = $this->share_m->getshare($id);
     if (count($share) > 0) {
         $css = getCss($share, 'module');
         $this->data['css'] = $css;
         $this->data['share'] = $share;
         $this->load->view('share', $this->data);
     }
 }
开发者ID:Nnamso,项目名称:tbox,代码行数:11,代码来源:share.php

示例13: index

 public function index($id = '')
 {
     $this->likebox_m = $this->load->model('likebox/likebox_m');
     $likebox = $this->likebox_m->getLikebox($id);
     if (count($likebox) > 0) {
         $css = getCss($likebox, 'module');
         $this->data['css'] = $css;
         $this->data['likebox'] = $likebox;
         $this->load->view('likebox', $this->data);
     }
 }
开发者ID:Nnamso,项目名称:tbox,代码行数:11,代码来源:likebox.php

示例14: index

 public function index($id = '')
 {
     $this->social_m = $this->load->model('social/social_m');
     $social = $this->social_m->getSocial($id);
     if (count($social) > 0) {
         $css = getCss($social, 'module');
         $this->data['css'] = $css;
         $this->data['social'] = $social;
         $this->load->view('social', $this->data);
     }
 }
开发者ID:Nnamso,项目名称:tbox,代码行数:11,代码来源:social.php

示例15: index

 public function index($id = '')
 {
     $this->breadcrumbs_m = $this->load->model('breadcrumbs/breadcrumbs_m');
     $breadcrumbs = $this->breadcrumbs_m->getbreadcrumbs($id);
     if (count($breadcrumbs) > 0) {
         $css = getCss($breadcrumbs, 'module');
         $this->data['css'] = $css;
         $this->data['breadcrumbs'] = $breadcrumbs;
         $this->load->view('breadcrumbs', $this->data);
     }
 }
开发者ID:Nnamso,项目名称:tbox,代码行数:11,代码来源:breadcrumbs.php


注:本文中的getCss函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。