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


PHP libraries_get_path函数代码示例

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


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

示例1: circle_validate_libraries

/**
 * Theme settings validation.
 */
function circle_validate_libraries(&$form, &$form_state)
{
    $fn_css_checked = isset($form_state['values']['circle_css_foundation_local']) ? $form_state['values']['circle_css_foundation_local'] : 0;
    $fn_js_checked = isset($form_state['values']['circle_js_foundation_local']) ? $form_state['values']['circle_js_foundation_local'] : 0;
    $bs_css_checked = isset($form_state['values']['circle_css_bootstrap_local']) ? $form_state['values']['circle_css_bootstrap_local'] : 0;
    $bs_js_checked = isset($form_state['values']['circle_js_bootstrap_local']) ? $form_state['values']['circle_js_bootstrap_local'] : 0;
    $modernizer_checked = isset($form_state['values']['circle_modernizr_local']) ? $form_state['values']['circle_modernizr_local'] : 0;
    // Check if any library is enabled.
    $any_library_checked = $fn_css_checked || $fn_js_checked || $bs_css_checked || $bs_js_checked || $modernizer_checked;
    $libraries_exists = module_exists('libraries');
    if ($any_library_checked && $libraries_exists) {
        // Modernizr library check.
        if ($modernizer_checked && !libraries_get_path('modernizr')) {
            form_set_error('circle_modernizr_local', t('Please download Modernizr and insert it into sites/all/libraries/modernizr first, to use it locally.'));
        }
        // Foundation library check.
        if (($fn_css_checked || $fn_js_checked) && !libraries_get_path('foundation')) {
            form_set_error('circle_css_foundation_local', t('Please download Foundation and insert it into sites/all/libraries/foundation first, to use it locally.'));
        }
        if (($bs_css_checked || $bs_js_checked) && !libraries_get_path('bootstrap')) {
            form_set_error('circle_css_bootstrap_local', t('Please download Bootstrap and insert it into sites/all/libraries/bootstrap first, to use it locally.'));
        }
    } elseif ($any_library_checked && !$libraries_exists) {
        form_set_error('', t('Please download the libraries module if you want to include any components locally.'));
    }
}
开发者ID:hugronaphor,项目名称:moon,代码行数:29,代码来源:theme-settings.php

示例2: favrskovtheme_preprocess_html

/**
 * Preprocess html.tpl.php
 */
function favrskovtheme_preprocess_html(&$vars)
{
    drupal_add_library('system', 'ui.widget');
    drupal_add_js(libraries_get_path('swiper') . '/idangerous.swiper.min.js', array('scope' => 'header', 'group' => JS_LIBRARY, 'every_page' => TRUE));
    drupal_add_css('https://fast.fonts.net/cssapi/cb2b1123-533e-44b1-af78-e3702f6bd579.css', array('type' => 'external', 'group' => 'CSS_THEME', 'every_page' => TRUE, 'media' => 'projection, screen'));
    $jwplayer = drupal_get_js('jwplayer');
    $vars['jwplayer'] = $jwplayer;
    // Added meta tag for IE.
    $meta_ie_render_engine = array('#type' => 'html_tag', '#tag' => 'meta', '#attributes' => array('content' => 'IE=10', 'http-equiv' => 'X-UA-Compatible'));
    // Add header meta tag for IE to head
    drupal_add_html_head($meta_ie_render_engine, 'meta_ie_render_engine');
    $multisite_links = theme_get_setting('favrskovtheme_multisite_links');
    if (!empty($multisite_links)) {
        $vars['classes_array'][] = theme_get_setting('favrskovtheme_multisite_links');
    }
    $header_links = theme_get_setting('favrskovtheme_header_links');
    if (!empty($header_links)) {
        $vars['classes_array'][] = $header_links;
    }
    if (!empty($vars['background'])) {
        $vars['classes_array'][] = 'dynamic-background';
    }
    // jQuery custom content scroller
    drupal_add_js(libraries_get_path('malihu') . '/js/minified/jquery.mCustomScrollbar.min.js', array('scope' => 'header', 'group' => JS_LIBRARY, 'every_page' => TRUE));
    drupal_add_css(libraries_get_path('malihu') . '/jquery.mCustomScrollbar.min.css', array('scope' => 'header', 'group' => CSS_THEME, 'every_page' => TRUE));
}
开发者ID:GitError404,项目名称:favrskov.dk,代码行数:29,代码来源:template.php

示例3: kcfinder_find_library_path

/**
* Tries it's best to find and return the KCFinder library path, relative to drupal root.
* For common use, please call variable_get('kcfinder_library_path') instead.
*/
function kcfinder_find_library_path()
{
    static $library_path = NULL;
    // Try to locate the library path in any possible setup.
    if ($library_path == NULL) {
        // First check the default location.
        $path = variable_get('kcfinder_library_path', 'sites/all/libraries/kcfinder');
        if (is_dir($path)) {
            $library_path = $path;
        }
        // Ask the libraries module as a fallback.
        if ($library_path == NULL && module_exists('libraries')) {
            $path = libraries_get_path('kcfinder');
            if ($path != '') {
                $library_path = $path;
            }
        }
    }
    // If no path is found suggest the default one.
    if ($library_path == NULL) {
        $library_path = 'sites/all/libraries/kcfinder';
    }
    // Throw an error if we weren't able to find a suitable path
    if (!kcfinder_library_exists($library_path)) {
        drupal_set_message(t(KCFINDER_LIB_NOT_FOUND, array('!kcfinder_config' => l('configuration page', 'admin/config/content/kcfinder'))), 'error');
    }
    return $library_path;
}
开发者ID:DespinosaFA,项目名称:drupal-web,代码行数:32,代码来源:kcfinder.inc.php

示例4: unity_lab_directory

function unity_lab_directory($prefix = true)
{
    $result = '';
    $location = empty(variable_get('unity_lab_library_location')) ? theme_get_setting("unity_lab_library_location") : variable_get('unity_lab_library_location');
    if (!$location) {
        $location = 'library';
    }
    if ($location == 'library') {
        $ver = theme_get_setting('unity_lab_library_version');
        if (!$ver) {
            $ver = 'latest';
        }
        if (!file_exists(libraries_get_path('unity-lab') . '/' . $ver)) {
            $ver = 'latest';
        }
        if ($prefix) {
            $result = '/' . libraries_get_path('unity-lab') . '/' . $ver;
        } else {
            $result = libraries_get_path('unity-lab') . '/' . $ver;
        }
    } else {
        $result = $location;
    }
    return $result;
}
开发者ID:Stony-Brook-University,项目名称:doitsbu,代码行数:25,代码来源:template.php

示例5: testLibrariesGetPath

 /**
  * Tests libraries_get_path().
  */
 function testLibrariesGetPath()
 {
     // Note that, even though libraries_get_path() doesn't find the 'example'
     // library, we are able to make it 'installed' by specifying the 'library
     // path' up-front. This is only used for testing purposed and is strongly
     // discouraged as it defeats the purpose of Libraries API in the first
     // place.
     $this->assertEqual(libraries_get_path('example'), FALSE, 'libraries_get_path() returns FALSE for a missing library.');
 }
开发者ID:arnoutc,项目名称:catorarn.com,代码行数:12,代码来源:LibrariesUnitTest.php

示例6: idigitaltimes_preprocess_html

/**
 * Preprocesses the wrapping HTML.
 *
 * @param array &$variables
 *   Template variables.
 */
function idigitaltimes_preprocess_html(&$vars)
{
    $meta_tags['msapplication-TileColor'] = array('#tag' => 'meta', '#attributes' => array('name' => 'msapplication-TileColor', 'content' => '#8bc836'));
    foreach ($meta_tags as $key => $meta) {
        drupal_add_html_head($meta, $key);
    }
    $path = libraries_get_path('jquery_stiky_kit');
    if ($path) {
        drupal_add_js($path . '/jquery.sticky-kit.min.js');
    }
}
开发者ID:johnedelatorre,项目名称:fusion,代码行数:17,代码来源:template.php

示例7: onRequest

 /**
  * Initializes devel module requirements.
  */
 public function onRequest(GetResponseEvent $event)
 {
     if (!devel_silent()) {
         if ($this->account->hasPermission('access devel information')) {
             devel_set_handler(devel_get_handlers());
             // We want to include the class early so that anyone may call krumo()
             // as needed. See http://krumo.sourceforge.net/
             has_krumo();
             // See http://www.firephp.org/HQ/Install.htm
             $path = NULL;
             if (@(include_once 'fb.php') || @(include_once 'FirePHPCore/fb.php')) {
                 // FirePHPCore is in include_path. Probably a PEAR installation.
                 $path = '';
             } elseif ($this->moduleHandler->moduleExists('libraries')) {
                 // Support Libraries API - http://drupal.org/project/libraries
                 $firephp_path = libraries_get_path('FirePHPCore');
                 $firephp_path = $firephp_path ? $firephp_path . '/lib/FirePHPCore/' : '';
                 $chromephp_path = libraries_get_path('chromephp');
             } else {
                 $firephp_path = DRUPAL_ROOT . '/libraries/FirePHPCore/lib/FirePHPCore/';
                 $chromephp_path = './' . drupal_get_path('module', 'devel') . '/chromephp';
             }
             // Include FirePHP if it exists.
             if (!empty($firephp_path) && file_exists($firephp_path . 'fb.php')) {
                 include_once $firephp_path . 'fb.php';
                 include_once $firephp_path . 'FirePHP.class.php';
             }
             // Include ChromePHP if it exists.
             if (!empty($chromephp_path) && file_exists($chromephp_path .= '/ChromePhp.php')) {
                 include_once $chromephp_path;
             }
         }
     }
     if ($this->config->get('rebuild_theme')) {
         drupal_theme_rebuild();
         // Ensure that the active theme object is cleared.
         $theme_name = \Drupal::theme()->getActiveTheme()->getName();
         \Drupal::state()->delete('theme.active_theme.' . $theme_name);
         \Drupal::theme()->resetActiveTheme();
         /** @var \Drupal\Core\Extension\ThemeHandlerInterface $theme_handler*/
         $theme_handler = \Drupal::service('theme_handler');
         $theme_handler->refreshInfo();
         // @todo This is not needed after https://www.drupal.org/node/2330755
         $list = $theme_handler->listInfo();
         $theme_handler->addTheme($list[$theme_name]);
         if (\Drupal::service('flood')->isAllowed('devel.rebuild_theme_warning', 1)) {
             \Drupal::service('flood')->register('devel.rebuild_theme_warning');
             if (!devel_silent() && $this->account->hasPermission('access devel information')) {
                 drupal_set_message(t('The theme information is being rebuilt on every request. Remember to <a href="@url">turn off</a> this feature on production websites.', array('@url' => $this->urlGenerator->generateFromRoute('devel.admin_settings'))));
             }
         }
     }
     drupal_register_shutdown_function('devel_shutdown');
 }
开发者ID:atif-shaikh,项目名称:DCX-Profile,代码行数:57,代码来源:DevelEventSubscriber.php

示例8: da_vinci_preprocess_html

/**
 * Implements da_vinci_preprocess_html().
 */
function da_vinci_preprocess_html(&$vars)
{
    if (isset($vars['node'])) {
        // For full nodes.
        $vars['classes_array'][] = $vars['node'] ? 'full-node' : '';
        // For forums.
    }
    if (module_exists('panels') && function_exists('panels_get_current_page_display')) {
        $vars['classes_array'][] = panels_get_current_page_display() ? 'panels' : '';
    }
    if (module_exists('libraries')) {
        $lib_dv_dir = libraries_get_path('da-vinci-plugins');
        $lib_easymodal_dir = libraries_get_path('easymodal');
        drupal_add_js($lib_dv_dir . '/css_browser.js');
        if (theme_get_setting('styleguide') && module_exists('styleguide') && module_exists('jquery_update')) {
            $theme_path = drupal_get_path('theme', 'da_vinci');
            $lib_dv_dir = libraries_get_path('da-vinci-plugins');
            drupal_add_js($lib_dv_dir . '/jquery.actual.min.js');
            drupal_add_js($lib_easymodal_dir . '/jquery.easyModal.js');
            drupal_add_js($theme_path . '/js/modales.js');
        }
    }
    if (theme_get_setting('debug')) {
        $vars['html_classes'][] = 'debug';
    }
    // Since menu is rendered in preprocess_page we need to detect it
    // here to add body classes.
    $has_main_menu = theme_get_setting('toggle_main_menu');
    $has_secondary_menu = theme_get_setting('toggle_secondary_menu');
    // Add extra classes to body for more flexible theming.
    if ($has_main_menu or $has_secondary_menu) {
        $vars['classes_array'][] = 'with-navigation';
    }
    if ($has_secondary_menu) {
        $vars['classes_array'][] = 'with-subnav';
    }
    if (!empty($vars['page']['featured'])) {
        $vars['classes_array'][] = 'featured';
    }
    if ($vars['is_admin']) {
        $vars['classes_array'][] = 'admin';
    }
    if (!empty($vars['page']['header_top'])) {
        $vars['classes_array'][] = 'header_top';
    }
    // Add unique classes for each page and website section.
    $path = drupal_get_path_alias($_GET['q']);
    $temp = explode('/', $path, 2);
    $section = array_shift($temp);
    $page_name = array_shift($temp);
    // Add template suggestions.
    $vars['theme_hook_suggestions'][] = "page__section__" . $section;
    $vars['theme_hook_suggestions'][] = "page__" . $page_name;
}
开发者ID:nikasha,项目名称:refugiolahiguera,代码行数:57,代码来源:template.preprocess.html.php

示例9: watermans_2013_10_preprocess_html

/**
 * add IE conditional CSS 
 */
function watermans_2013_10_preprocess_html(&$vars)
{
    // add IE only CSS
    drupal_add_css(path_to_theme() . '/css/ie-lte-9.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'lte IE 9', '!IE' => FALSE), 'preprocess' => FALSE));
    if (arg(1) == 21) {
        drupal_add_js(libraries_get_path('colorbox') . '/jquery.colorbox-min.js', array('group' => JS_THEME, 'every_page' => TRUE));
        drupal_add_css(libraries_get_path('colorbox') . '/_watermans/colorbox.css', array('group' => CSS_THEME, 'preprocess' => TRUE));
        //    drupal_add_css(libraries_get_path('colorbox') . '/example5/colorbox.css', array('group' => CSS_THEME, 'preprocess' => TRUE));
        drupal_add_js(path_to_theme() . '/js/how-to-claim.js', array('group' => JS_THEME, 'every_page' => TRUE));
    }
}
开发者ID:The-Gate,项目名称:Watermans-Drupal,代码行数:14,代码来源:template.php

示例10: townsquare_bootstrap_preprocess_page

/**
 * Implements theme_preprocess_page().
 */
function townsquare_bootstrap_preprocess_page(&$vars)
{
    global $user;
    $vars['primary_local_tasks'] = menu_primary_local_tasks();
    $vars['secondary_local_tasks'] = menu_secondary_local_tasks();
    // The following menu stuff is lame
    foreach ($vars['main_menu'] as $item => $options) {
        $vars['main_menu'][$item]['html'] = TRUE;
        $vars['main_menu'][$item]['attributes']['id'] = 'menu-link-' . drupal_clean_css_identifier($options['href']);
    }
    $admin_menu = menu_tree_all_data('management');
    $children = array_pop($admin_menu);
    if ($children) {
        foreach ($children['below'] as $key => $value) {
            $children['below'][$key]['below'] = array();
        }
        $vars['admin_menu'] = menu_tree_output($children['below']);
    }
    // Add user picture if logged in
    if ($user->uid) {
        $vars['user_name'] = check_plain($user->name);
        if (!empty($user->picture)) {
            if (is_numeric($user->picture)) {
                $user->picture = file_load($user->picture);
            }
            if (!empty($user->picture->uri)) {
                $filepath = $user->picture->uri;
            }
        } elseif (variable_get('user_picture_default', '')) {
            $filepath = variable_get('user_picture_default', '');
        }
        if (isset($filepath)) {
            $alt = t("@user's picture", array('@user' => format_username($user)));
            if (module_exists('image') && file_valid_uri($filepath) && ($style = variable_get('user_picture_style', ''))) {
                $vars['user_picture'] = theme('image_style', array('style_name' => $style, 'path' => $filepath, 'alt' => $alt, 'title' => $alt));
            } else {
                $vars['user_picture'] = theme('image', array('path' => $filepath, 'alt' => $alt, 'title' => $alt));
            }
        } else {
            $vars['user_picture'] = '<i class="icon-user"></i>';
        }
    } else {
        unset($vars['secondary_menu']);
        $vars['login'] = drupal_get_form('user_login_block');
    }
    // Add Bootstrap
    $path = libraries_get_path('bootstrap');
    drupal_add_css($path . '/css/bootstrap.css');
    drupal_add_css($path . '/css/bootstrap-responsive.css');
    drupal_add_js($path . '/js/bootstrap.js');
    $path = libraries_get_path('font-awesome');
    drupal_add_css($path . '/css/font-awesome.css');
}
开发者ID:nningego,项目名称:townsquare,代码行数:56,代码来源:template.php

示例11: proud_base_preprocess_page

/**
 *
 * Implements template_prerocess_page().
 */
function proud_base_preprocess_page(&$vars)
{
    // If panels arent being used at all.
    $vars['no_panels'] = !(module_exists('page_manager') && page_manager_get_current_page());
    $vars['copyright'] = '';
    // Add select2
    if (module_exists('libraries')) {
        $path = libraries_get_path('select2');
        drupal_add_js($path . '/select2.min.js');
        drupal_add_css($path . '/select2.css');
    }
}
开发者ID:proudcity,项目名称:proudtheme,代码行数:16,代码来源:template.php

示例12: da_vinci_preprocess_views_view

/**
 * Implements da_vinci_preprocess_views_view().
 */
function da_vinci_preprocess_views_view(&$vars)
{
    if ($vars['view']->name == theme_get_setting('masonry')) {
        $theme_path = drupal_get_path('theme', 'da_vinci');
        $lib_dv_dir = libraries_get_path('da-vinci-plugins');
        $lib_masonry_dir = libraries_get_path('masonry');
        drupal_add_js($lib_masonry_dir . '/masonry.pkgd.min.js');
        drupal_add_js($lib_dv_dir . '/classie.js');
        drupal_add_js($lib_dv_dir . '/imageload.js');
        drupal_add_js($theme_path . '/js/masonry-view.js');
    }
}
开发者ID:juampynr,项目名称:DrupalCampEs,代码行数:15,代码来源:template.preprocess.view.php

示例13: __construct

    public function __construct () {
        foreach ( variable_get('gd_adfs_config',array()) as $key => $value ) {
            $this->$key = $value;
        }

        if (!isset($this->authSource)) {
            //  If no configuration is set, fail gracefully
            $this->disabled = true;
        } else {
            require_once(DRUPAL_ROOT . libraries_get_path('simplesamlphp', true) . '/lib/_autoload.php');
            $this->auth = new \SimpleSAML_Auth_Simple($this->authSource);
        }
    }
开发者ID:reisystems-india,项目名称:GovDashboard-Community,代码行数:13,代码来源:ADFSSessionAdapter.php

示例14: onRequest

 /**
  * Initializes devel module requirements.
  */
 public function onRequest(GetResponseEvent $event)
 {
     if (!devel_silent()) {
         if ($this->config->get('memory')) {
             global $memory_init;
             $memory_init = memory_get_usage();
         }
         if (devel_query_enabled()) {
             Database::startLog('devel');
         }
         if ($this->account->hasPermission('access devel information')) {
             devel_set_handler(devel_get_handlers());
             // We want to include the class early so that anyone may call krumo()
             // as needed. See http://krumo.sourceforge.net/
             has_krumo();
             // See http://www.firephp.org/HQ/Install.htm
             $path = NULL;
             if (@(include_once 'fb.php') || @(include_once 'FirePHPCore/fb.php')) {
                 // FirePHPCore is in include_path. Probably a PEAR installation.
                 $path = '';
             } elseif ($this->moduleHandler->moduleExists('libraries')) {
                 // Support Libraries API - http://drupal.org/project/libraries
                 $firephp_path = libraries_get_path('FirePHPCore');
                 $firephp_path = $firephp_path ? $firephp_path . '/lib/FirePHPCore/' : '';
                 $chromephp_path = libraries_get_path('chromephp');
             } else {
                 $firephp_path = DRUPAL_ROOT . '/libraries/FirePHPCore/lib/FirePHPCore/';
                 $chromephp_path = './' . drupal_get_path('module', 'devel') . '/chromephp';
             }
             // Include FirePHP if it exists.
             if (!empty($firephp_path) && file_exists($firephp_path . 'fb.php')) {
                 include_once $firephp_path . 'fb.php';
                 include_once $firephp_path . 'FirePHP.class.php';
             }
             // Include ChromePHP if it exists.
             if (!empty($chromephp_path) && file_exists($chromephp_path .= '/ChromePhp.php')) {
                 include_once $chromephp_path;
             }
         }
     }
     if ($this->config->get('rebuild_theme_registry')) {
         drupal_theme_rebuild();
         if (\Drupal::service('flood')->isAllowed('devel.rebuild_registry_warning', 1)) {
             \Drupal::service('flood')->register('devel.rebuild_registry_warning');
             if (!devel_silent() && $this->account->hasPermission('access devel information')) {
                 drupal_set_message(t('The theme registry is being rebuilt on every request. Remember to <a href="!url">turn off</a> this feature on production websites.', array("!url" => url('admin/config/development/devel'))));
             }
         }
     }
     drupal_register_shutdown_function('devel_shutdown');
 }
开发者ID:alnutile,项目名称:drunatra,代码行数:54,代码来源:DevelEventSubscriber.php

示例15: bootstrap_sst_preprocess_maintenance_page

/**
 * Implements hook_preprocess_maintenance_page().
 *
 * @see maintenance-page.tpl.php
 */
function bootstrap_sst_preprocess_maintenance_page(&$variables)
{
    global $conf;
    $db_down = FALSE;
    // WxT Settings.
    $wxt_active = variable_get('wetkit_wetboew_theme', 'wet-boew');
    $library_path = libraries_get_path($wxt_active, TRUE);
    $wxt_active = str_replace('-', '_', $wxt_active);
    $wxt_active = str_replace('wet_boew_', '', $wxt_active);
    // Dead databases will show error messages so supplying this template will
    // allow themers to override the page and the content completely
    // also aware db_is_active is deprecated but still used in theme.inc for D7.
    if (isset($variables['db_is_active']) && !$variables['db_is_active'] && MAINTENANCE_MODE != 'update') {
        $db_down = TRUE;
    }
    // Might want to leverage this variable in tpl files.
    $variables['db_down'] = $db_down;
    // Maintenance Page logic for when the site is in maintenance mode
    // and the database is down / not available in this instance we
    // will have to define our own translations.
    if ($db_down) {
        // Can override these values via $conf in settings.php
        $variables['head_title'] = isset($conf['head_title']) ? $conf['head_title'] : 'Site not available / Site non disponible';
        $variables['site_name'] = isset($conf['site_name']) ? $conf['site_name'] : 'Site not available / Site non disponible';
        $variables['wxt_title_en'] = isset($conf['wxt_title_en']) ? $conf['wxt_title_en'] : 'Site not available';
        $variables['wxt_content_en'] = isset($conf['wxt_content_en']) ? $conf['wxt_content_en'] : 'The site is currently not available due to technical problems.';
        $variables['wxt_title_fr'] = isset($conf['wxt_title_fr']) ? $conf['wxt_title_fr'] : 'Site non disponible';
        $variables['wxt_content_fr'] = isset($conf['wxt_content_fr']) ? $conf['wxt_content_fr'] : 'Le site n\'est pas disponible actuellement en raison de problèmes techniques.';
        // Since database is down determine which theme to use based on
        // conf variable in settings.php else revert to using the WxT theme.
        $variables['theme_hook_suggestion'] = isset($conf['maintenance_theme_suggestion']) ? $conf['maintenance_theme_suggestion'] : 'maintenance_page__wet_boew';
    }
    // Maintenance Page logic for when the site is in maintenance mode.
    // but database is not down.
    if (!$db_down) {
        if ($wxt_active == 'base') {
            $variables['theme_hook_suggestion'] = 'maintenance_page__' . $wxt_active;
        } elseif ($wxt_active == 'gc_intranet') {
            $variables['theme_hook_suggestion'] = 'maintenance_page__' . $wxt_active;
        } elseif ($wxt_active == 'gcweb') {
            $variables['theme_hook_suggestion'] = 'maintenance_page__' . $wxt_active;
        } elseif ($wxt_active == 'gcwu_fegc') {
            $variables['theme_hook_suggestion'] = 'maintenance_page__' . $wxt_active;
        } elseif ($wxt_active == 'ogpl') {
            $variables['theme_hook_suggestion'] = 'maintenance_page__' . $wxt_active;
        } else {
            $variables['theme_hook_suggestion'] = 'maintenance_page__wet_boew';
        }
    }
}
开发者ID:atssc-scdata,项目名称:bootstrap_sst,代码行数:55,代码来源:maintenance-page.vars.php


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