本文整理汇总了PHP中osc_enqueue_style函数的典型用法代码示例。如果您正苦于以下问题:PHP osc_enqueue_style函数的具体用法?PHP osc_enqueue_style怎么用?PHP osc_enqueue_style使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了osc_enqueue_style函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: payment_load_lib
/**
* Load payment's js library
*/
function payment_load_lib()
{
if (Params::getParam('page') == 'custom') {
osc_enqueue_style('payment-plugin', osc_base_url() . 'oc-content/plugins/' . osc_plugin_folder(__FILE__) . 'style.css');
if (osc_get_preference('paypal_enabled', 'payment') == 1) {
osc_register_script('paypal', 'https://www.paypalobjects.com/js/external/dg.js', array('jquery'));
osc_enqueue_script('paypal');
}
if (osc_get_preference('blockchain_enabled', 'payment') == 1) {
osc_register_script('blockchain', 'https://blockchain.info/Resources/wallet/pay-now-button.js', array('jquery'));
osc_enqueue_script('blockchain');
}
if (osc_get_preference('stripe_enabled', 'payment') == 1) {
osc_register_script('stripe', 'https://checkout.stripe.com/v2/checkout.js', array('jquery'));
osc_enqueue_script('stripe');
}
}
}
开发者ID:virsoni,项目名称:plugin-payment,代码行数:21,代码来源:index.php
示例2: seo_init_admin
function seo_init_admin()
{
//scripts
osc_enqueue_style('seoCSS', osc_plugin_url(SEO_PLUGIN_FOLDER . '/css/style.css') . 'style.css');
//admin menu pages
osc_add_admin_menu_page(__('SEO Wiz', SEO_PLUGIN_FOLDER), osc_admin_render_plugin_url(osc_plugin_folder(__FILE__) . 'configure.php'), 'seo_dashboard');
osc_add_admin_submenu_page('seo_dashboard', __('Configure Plugin', SEO_PLUGIN_FOLDER), osc_admin_render_plugin_url(osc_plugin_folder(__FILE__) . 'configure.php'), 'configure');
osc_add_admin_submenu_page('seo_dashboard', __('Titles & Metas', SEO_PLUGIN_FOLDER), osc_admin_render_plugin_url(osc_plugin_folder(__FILE__) . 'titles_metas.php'), 'titles_metas');
//form actions
switch (Params::getParam('seo_action')) {
//configure page
case 'seo_configure':
$page_title_separator = Params::getParam('page_title_separator', false, false, false);
osc_set_preference('page_title_separator', $page_title_separator, 'seo_plugin');
osc_add_flash_ok_message(__('Saved correctly', SEO_PLUGIN_FOLDER), 'admin');
osc_redirect_to(osc_admin_render_plugin_url(osc_plugin_folder(__FILE__) . 'configure.php'));
break;
//titles_metas_home
//titles_metas_home
case 'titles_metas_home':
$seo_titles = Params::getParam('seo_titles');
if (!empty($seo_titles)) {
foreach ($seo_titles as $key => $value) {
osc_set_preference($key, trim($value), 'seo_plugin');
}
}
osc_add_flash_ok_message(__('Saved correctly', SEO_PLUGIN_FOLDER), 'admin');
osc_redirect_to(osc_admin_render_plugin_url(osc_plugin_folder(__FILE__) . 'titles_metas.php#home'));
break;
//titles_metas_pages
//titles_metas_pages
case 'titles_metas_pages':
$seo_titles = Params::getParam('seo_titles');
if (!empty($seo_titles)) {
foreach ($seo_titles as $key => $value) {
osc_set_preference($key, trim($value), 'seo_plugin');
}
}
osc_add_flash_ok_message(__('Saved correctly', SEO_PLUGIN_FOLDER), 'admin');
osc_redirect_to(osc_admin_render_plugin_url(osc_plugin_folder(__FILE__) . 'titles_metas.php#pages'));
break;
}
}
开发者ID:syedfiraat4,项目名称:bikade.com,代码行数:43,代码来源:index.php
示例3: osc_register_script
/* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License
* as published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public
* License along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
osc_register_script('jquery-cookie', osc_plugin_url(__FILE__) . 'jquery.cookie.js', array('jquery'));
osc_register_script('jquery-cookiecuttr', osc_plugin_url(__FILE__) . 'jquery.cookiecuttr.js', array('jquery', 'jquery-cookie'));
osc_enqueue_style('cookiecuttr-style', osc_plugin_url(__FILE__) . 'cookiecuttr.css');
osc_enqueue_script('jquery-cookiecuttr');
function cookie_load()
{
?>
<script type="text/javascript" >
$(document).ready(function () {
var options = new Object();
<?php
if (osc_get_preference('accept', 'cookie') == 1) {
echo 'options.cookieAcceptButton = true;';
}
if (osc_get_preference('decline', 'cookie') == 1) {
echo 'options.cookieDeclineButton = true;';
}
if (osc_get_preference('reset', 'cookie') == 1) {
开发者ID:oanav,项目名称:closetshare,代码行数:31,代码来源:index.php
示例4: load_admin_script
function load_admin_script()
{
osc_enqueue_style('admin', osc_base_url() . 'oc-content/themes/classified/admin/style.css');
osc_register_script('admin', osc_base_url() . 'oc-content/themes/classified/admin/admin.js');
osc_register_script('facebook-admin', osc_base_url() . 'oc-content/themes/classified/admin/facebook.js');
osc_enqueue_script('admin');
osc_enqueue_script('facebook-admin');
}
开发者ID:jhalendra,项目名称:classmandu,代码行数:8,代码来源:functions.php
示例5: define
* License along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/**
DEFINES
*/
define('OSCLASSWIZARDS_THEME_VERSION', '2.0.2');
define('OSCLASSWIZARDS_THEME_FOLDER', 'osclasswizards');
if (!osc_get_preference('keyword_placeholder', 'osclasswizards_theme')) {
osc_set_preference('keyword_placeholder', __('ie. PHP Programmer', OSCLASSWIZARDS_THEME_FOLDER), 'osclasswizards_theme');
}
osc_enqueue_style('font-awesome', osc_current_web_theme_url('css/font-awesome/css/font-awesome.min.css'));
// used for date/dateinterval custom fields
osc_enqueue_script('php-date');
if (!OC_ADMIN) {
osc_enqueue_style('fine-uploader-css', osc_assets_url('js/fineuploader/fineuploader.css'));
osc_enqueue_style('osclasswizards-fine-uploader-css', osc_current_web_theme_url('css/ajax-uploader.css'));
}
osc_enqueue_script('jquery-fineuploader');
/**
** DEFAULT VALUES
**/
if (!osc_get_preference('welcome_message', 'osclasswizards_theme')) {
osc_set_preference('welcome_message', 'Hello Guest, Welcome to OsclassWizards', 'osclasswizards_theme');
}
if (!osc_get_preference('sub_cat_limit', 'osclasswizards_theme')) {
osc_set_preference('sub_cat_limit', 5, 'osclasswizards_theme');
}
if (!osc_get_preference('popular_regions_limit', 'osclasswizards_theme')) {
osc_set_preference('popular_regions_limit', 10, 'osclasswizards_theme');
}
if (!osc_get_preference('popular_cities_limit', 'osclasswizards_theme')) {
开发者ID:syedfiraat4,项目名称:bikade.com,代码行数:31,代码来源:functions.php
示例6: osc_add_flash_error_message
<?php
// check requirements
if (!is_writable(ABS_PATH . 'oc-content/downloads/')) {
osc_add_flash_error_message(sprintf(_m('<code>downloads</code> folder has to be writable, i.e.: <code>chmod a+w %soc-content/downloads/</code>'), ABS_PATH), 'admin');
}
// fancybox
osc_register_script('fancybox', osc_current_admin_theme_js_url('fancybox/jquery.fancybox.js'));
osc_enqueue_script('fancybox');
osc_enqueue_style('fancybox', osc_current_admin_theme_js_url('fancybox/jquery.fancybox.css'));
osc_register_script('market-js', osc_current_admin_theme_js_url('market.js'));
osc_enqueue_script('market-js');
osc_add_hook('admin_header', 'add_market_jsvariables');
function add_market_jsvariables()
{
$marketPage = Params::getParam("mPage");
$version_length = strlen(osc_version());
$main_version = substr(osc_version(), 0, $version_length - 2) . "." . substr(osc_version(), $version_length - 2, 1);
if ($marketPage >= 1) {
$marketPage--;
}
$action = Params::getParam("action");
$js_lang = array('by' => __('by'), 'ok' => __('Ok'), 'error_item' => __('There was a problem, try again later please'), 'wait_download' => __('Please wait until the download is completed'), 'downloading' => __('Downloading'), 'close' => __('Close'), 'download' => __('Download'), 'update' => __('Update'), 'last_update' => __('Last update'), 'downloads' => __('Downloads'), 'requieres_version' => __('Requires at least'), 'compatible_with' => __('Compatible up to'), 'screenshots' => __('Screenshots'), 'preview_theme' => __('Preview theme'), 'download_manually' => __('Download manually'), 'proceed_anyway' => sprintf(__('Warning! This package is not compatible with your current version of Osclass (%s)'), $main_version), 'sure' => __('Are you sure?'), 'proceed_anyway_btn' => __('Ok, proceed anyway'), 'not_compatible' => sprintf(__('Warning! This theme is not compatible with your current version of Osclass (%s)'), $main_version), 'themes' => array('download_ok' => __('The theme has been downloaded correctly, proceed to activate or preview it.')), 'plugins' => array('download_ok' => __('The plugin has been downloaded correctly, proceed to install and configure.')), 'languages' => array('download_ok' => __('The language has been downloaded correctly, proceed to activate.')));
?>
<script type="text/javascript">
var theme = window.theme || {};
theme.adminBaseUrl = "<?php
echo osc_admin_base_url(true);
?>
";
theme.marketAjaxUrl = "<?php
开发者ID:jmcclenon,项目名称:Osclass,代码行数:31,代码来源:header.php
示例7: osc_esc_js
"/>
<?php
}
?>
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Expires" content="Fri, Jan 01 1970 00:00:00 GMT" />
<script type="text/javascript">
var fileDefaultText = '<?php
echo osc_esc_js(__('No file selected', 'modern'));
?>
';
var fileBtnText = '<?php
echo osc_esc_js(__('Choose File', 'modern'));
?>
';
</script>
<?php
osc_enqueue_style('style', osc_current_web_theme_url('style.css'));
osc_enqueue_style('tabs', osc_current_web_theme_url('tabs.css'));
osc_enqueue_style('jquery-ui-datepicker', osc_assets_url('css/jquery-ui/jquery-ui.css'));
osc_register_script('jquery-uniform', osc_current_web_theme_js_url('jquery.uniform.js'), 'jquery');
osc_register_script('global', osc_current_web_theme_js_url('global.js'));
osc_enqueue_script('jquery');
osc_enqueue_script('jquery-ui');
osc_enqueue_script('jquery-uniform');
osc_enqueue_script('tabber');
osc_enqueue_script('global');
osc_run_hook('header');
FieldForm::i18n_datePicker();
开发者ID:oanav,项目名称:closetshare,代码行数:31,代码来源:head.php
示例8: osc_add_flash_error_message
<?php
// check requirements
if (!is_writable(ABS_PATH . 'oc-content/downloads/')) {
osc_add_flash_error_message(sprintf(_m('<code>downloads</code> folder has to be writable, i.e.: <code>chmod a+w %soc-content/downloads/</code>'), ABS_PATH), 'admin');
}
// fancybox
osc_enqueue_script('fancybox');
osc_enqueue_style('fancybox', osc_assets_url('js/fancybox/jquery.fancybox.css'));
osc_register_script('market-js', osc_current_admin_theme_js_url('market.js'), array('jquery', 'jquery-ui'));
osc_enqueue_script('market-js');
osc_add_hook('admin_header', 'add_market_jsvariables');
function add_market_jsvariables()
{
$marketPage = Params::getParam("mPage");
$version_length = strlen(osc_version());
$main_version = substr(osc_version(), 0, $version_length - 2) . "." . substr(osc_version(), $version_length - 2, 1);
if ($marketPage >= 1) {
$marketPage--;
}
$action = Params::getParam("action");
$js_lang = array('by' => __('by'), 'ok' => __('Ok'), 'error_item' => __('There was a problem, try again later please'), 'wait_download' => __('Please wait until the download is completed'), 'downloading' => __('Downloading'), 'close' => __('Close'), 'download' => __('Download'), 'update' => __('Update'), 'last_update' => __('Last update'), 'downloads' => __('Downloads'), 'requieres_version' => __('Requires at least'), 'compatible_with' => __('Compatible up to'), 'screenshots' => __('Screenshots'), 'preview_theme' => __('Preview theme'), 'download_manually' => __('Download manually'), 'buy' => __('Buy'), 'proceed_anyway' => sprintf(__('Warning! This package is not compatible with your current version of Osclass (%s)'), $main_version), 'sure' => __('Are you sure?'), 'proceed_anyway_btn' => __('Ok, proceed anyway'), 'not_compatible' => sprintf(__('Warning! This theme is not compatible with your current version of Osclass (%s)'), $main_version), 'themes' => array('download_ok' => __('The theme has been downloaded correctly, proceed to activate or preview it.')), 'plugins' => array('download_ok' => __('The plugin has been downloaded correctly, proceed to install and configure.')), 'languages' => array('download_ok' => __('The language has been downloaded correctly, proceed to activate.')));
?>
<script type="text/javascript">
var theme = window.theme || {};
theme.adminBaseUrl = "<?php
echo osc_admin_base_url(true);
?>
";
theme.marketAjaxUrl = "<?php
echo osc_admin_base_url(true);
开发者ID:naneri,项目名称:Osclass,代码行数:31,代码来源:header.php
示例9: array
$location = array();
if (osc_item_region() !== '') {
$location[] = osc_item_region();
}
if (osc_item_city() !== '') {
$location[] = osc_item_city();
}
if (osc_item_city_area() !== '') {
$location[] = osc_item_city_area();
}
// meta tag robots
osc_add_hook('header', 'pop_follow_construct');
pop_add_body_class('item');
osc_enqueue_script('jquery-validate');
osc_enqueue_script('jquery-bxslider');
osc_enqueue_style('jquery-bxslider-css', osc_current_web_theme_url('css/jquery.bxslider.css'));
osc_enqueue_script('imgLiquid-js');
View::newInstance()->_exportVariableToView('user', User::newInstance()->findByPrimaryKey(osc_item_user_id()));
?>
<?php
osc_current_web_theme_path('header.php');
$class = '';
if (osc_count_item_resources() == 0) {
$class = "no-image";
}
?>
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-5">
<div class="item-photos">
开发者ID:oanav,项目名称:closetshare,代码行数:31,代码来源:item.php
示例10: define
/**
DEFINES
*/
define('BENDER_THEME_VERSION', '310');
if ((string) osc_get_preference('keyword_placeholder', 'bender') == "") {
Params::setParam('keyword_placeholder', __('ie. PHP Programmer', 'bender'));
}
osc_register_script('fancybox', osc_current_web_theme_url('js/fancybox/jquery.fancybox.pack.js'), array('jquery'));
osc_enqueue_style('fancybox', osc_current_web_theme_url('js/fancybox/jquery.fancybox.css'));
osc_enqueue_script('fancybox');
osc_enqueue_style('font-awesome', osc_current_web_theme_url('css/font-awesome-4.1.0/css/font-awesome.min.css'));
// used for date/dateinterval custom fields
osc_enqueue_script('php-date');
if (!OC_ADMIN) {
osc_enqueue_style('fine-uploader-css', osc_assets_url('js/fineuploader/fineuploader.css'));
osc_enqueue_style('bender-fine-uploader-css', osc_current_web_theme_url('css/ajax-uploader.css'));
}
osc_enqueue_script('jquery-fineuploader');
/**
FUNCTIONS
*/
// install options
if (!function_exists('bender_theme_install')) {
function bender_theme_install()
{
osc_set_preference('keyword_placeholder', Params::getParam('keyword_placeholder'), 'bender');
osc_set_preference('version', BENDER_THEME_VERSION, 'bender');
osc_set_preference('footer_link', '1', 'bender');
osc_set_preference('donation', '0', 'bender');
osc_set_preference('defaultShowAs@all', 'list', 'bender');
osc_set_preference('defaultShowAs@search', 'list');
开发者ID:mylastof,项目名称:os-class,代码行数:31,代码来源:functions.php
示例11: init_js
function init_js()
{
if (osclass_pm_is_inbox() || osclass_pm_is_outbox() || osclass_pm_is_drafts() || osclass_pm_is_send() || osclass_pm_is_messages() || osclass_pm_is_pmSettings()) {
osc_register_script('dataTables', osc_base_url() . 'oc-content/plugins/osclass_pm/js/jquery.dataTables.min.js', 'jquery');
osc_enqueue_script('dataTables');
osc_enqueue_style('pmTables', osc_base_url() . 'oc-content/plugins/osclass_pm/css/pmTables.css');
}
}
开发者ID:oanav,项目名称:closetshare,代码行数:8,代码来源:index.php
示例12: minify_admin_header
/**
* Admin script and css loading
*/
function minify_admin_header()
{
osc_enqueue_script('prism');
osc_enqueue_style('prism', osc_plugin_url('lz_item_code/admin/assets/css') . 'css/prism' . (minify_is_live() ? '.min' : '') . '.css');
}
开发者ID:oanav,项目名称:closetshare,代码行数:8,代码来源:index.php
示例13: load_admin_script
/**
*
* Script and CSS for admin pages
*/
function load_admin_script()
{
osc_register_script('tiny_mce', osc_base_url() . 'oc-includes/osclass/assets/js/tiny_mce/tiny_mce.js');
osc_enqueue_script('tiny_mce');
osc_enqueue_style('admin', osc_base_url() . 'oc-content/themes/classified/admin/style.css');
osc_register_script('admin', osc_base_url() . 'oc-content/themes/classified/admin/admin.js');
osc_enqueue_script('admin');
osc_register_script('facebook-admin', osc_base_url() . 'oc-content/themes/classified/admin/facebook.js');
osc_enqueue_script('facebook-admin');
}
开发者ID:Ashishr2,项目名称:Kathmandu,代码行数:14,代码来源:functions.php
示例14: define
if (file_exists(ABS_PATH . '.maintenance')) {
define('__OSC_MAINTENANCE__', true);
}
// register admin scripts
osc_register_script('admin-osc', osc_current_admin_theme_js_url('osc.js'), 'jquery');
osc_register_script('admin-ui-osc', osc_current_admin_theme_js_url('ui-osc.js'), 'jquery');
osc_register_script('admin-location', osc_current_admin_theme_js_url('location.js'), 'jquery');
// enqueue scripts
osc_enqueue_script('jquery');
osc_enqueue_script('jquery-ui');
osc_enqueue_script('admin-osc');
osc_enqueue_script('admin-ui-osc');
osc_add_hook('admin_footer', array('FieldForm', 'i18n_datePicker'));
// enqueue css styles
osc_enqueue_style('jquery-ui', osc_assets_url('css/jquery-ui/jquery-ui.css'));
osc_enqueue_style('admin-css', osc_current_admin_theme_styles_url('main.css'));
switch (Params::getParam('page')) {
case 'items':
require_once osc_admin_base_path() . 'items.php';
$do = new CAdminItems();
$do->doModel();
break;
case 'comments':
require_once osc_admin_base_path() . 'comments.php';
$do = new CAdminItemComments();
$do->doModel();
break;
case 'media':
require_once osc_admin_base_path() . 'media.php';
$do = new CAdminMedia();
$do->doModel();
开发者ID:oanav,项目名称:closetshare,代码行数:31,代码来源:index.php
示例15: osc_set_preference
if (!osc_get_preference('keyword_placeholder', 'osclasswizards_theme')) {
osc_set_preference('keyword_placeholder', __('ie. PHP Programmer', 'osclasswizards'), 'osclasswizards_theme');
}
osc_register_script('fancybox', osc_current_web_theme_url('js/fancybox/jquery.fancybox.pack.js'), array('jquery'));
osc_enqueue_style('fancybox', osc_current_web_theme_url('js/fancybox/jquery.fancybox.css'));
osc_enqueue_script('fancybox');
osc_enqueue_style('font-awesome', osc_current_web_theme_url('css/font-awesome-4.1.0/css/font-awesome.min.css'));
// used for date/dateinterval custom fields
osc_enqueue_script('php-date');
if (!OC_ADMIN) {
osc_enqueue_style('fine-uploader-css', osc_assets_url('js/fineuploader/fineuploader.css'));
osc_enqueue_style('osclasswizards-fine-uploader-css', osc_current_web_theme_url('css/ajax-uploader.css'));
}
osc_enqueue_script('jquery-fineuploader');
osc_register_script('sweetalert', osc_current_web_theme_url('js/sweetalert/sweetalert.min.js'));
osc_enqueue_style('sweetalert', osc_current_web_theme_url('js/sweetalert/sweetalert.css'));
osc_enqueue_script('sweetalert');
/**
FUNCTIONS
*/
// install options
if (!function_exists('osclasswizards_theme_install')) {
function osclasswizards_theme_install()
{
osc_set_preference('keyword_placeholder', Params::getParam('keyword_placeholder'), 'osclasswizards_theme');
osc_set_preference('version', OSCLASSWIZARDS_THEME_VERSION, 'osclasswizards_theme');
osc_set_preference('footer_link', '1', 'osclasswizards_theme');
osc_set_preference('donation', '0', 'osclasswizards_theme');
osc_set_preference('defaultShowAs@all', 'list', 'osclasswizards_theme');
osc_set_preference('defaultShowAs@search', 'list');
osc_set_preference('welcome_message', 'Hello Guest, Welcome to OsclassWizards', 'osclasswizards_theme');
开发者ID:oanav,项目名称:closetshare,代码行数:31,代码来源:functions.php
示例16: __get
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License
* as published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public
* License along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
$locales = __get('locales');
$user = osc_user();
osc_enqueue_style('jquery-ui-custom', osc_current_web_theme_styles_url('jquery-ui/jquery-ui-1.8.20.custom.css'));
?>
<!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" dir="ltr" lang="<?php
echo str_replace('_', '-', osc_current_user_locale());
?>
">
<head>
<?php
osc_current_web_theme_path('head.php');
?>
<meta name="robots" content="noindex, nofollow" />
<meta name="googlebot" content="noindex, nofollow" />
</head>
<body>
<?php
开发者ID:jmcclenon,项目名称:Osclass,代码行数:31,代码来源:user-profile.php
示例17: pop_admin_enqueue_assets
function pop_admin_enqueue_assets()
{
if (Params::getParam('file') == 'oc-content/themes/pop/admin/color_settings.php' && Params::getParam('page') == 'appearance' && Params::getParam('action') == 'render') {
osc_enqueue_style('pop_admin_css', osc_base_url() . 'oc-content/themes/pop/admin/css/admin.css');
osc_enqueue_script('colorpicker');
osc_enqueue_style('colorpicker', osc_assets_url('js/colorpicker/css/colorpicker.css'));
}
}
开发者ID:michaelxizhou,项目名称:myeden69-original-backup,代码行数:8,代码来源:functions.php
示例18: mdh_emailmagick_admin_controller
function mdh_emailmagick_admin_controller()
{
if (preg_match('/^' . mdh_current_plugin_name() . '.*$/', Params::getParam("route"))) {
osc_add_hook("admin_header", function () {
osc_enqueue_script(mdh_current_plugin_name() . "_admin");
osc_enqueue_style(mdh_current_plugin_name() . "_admin", mdh_current_plugin_url("assets/css/admin.css"));
});
$filter = function ($string) {
return __("Madhouse EmailMagick", mdh_current_plugin_name());
};
// Page title (in <head />)
osc_add_filter("admin_title", $filter);
// Page title (in <h1 />)
osc_add_filter("custom_plugin_title", $filter);
osc_add_filter("admin_body_class", function ($classes) {
array_push($classes, "madhouse");
return $classes;
});
// Add a .row-offset to wrapping <div /> element.
osc_add_filter("render-wrapper", function ($string) {
return "row-offset";
});
$do = new Madhouse_EmailMagick_Controllers_Admin();
$do->doModel();
}
}
开发者ID:bomvendador,项目名称:soroka_r,代码行数:26,代码来源:index.php
示例19: osc_add_hook
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public
* License along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
// meta tag robots
if (osc_item_is_spam() || osc_premium_is_spam()) {
osc_add_hook('header', 'osclasswizards_nofollow_construct');
} else {
osc_add_hook('header', 'osclasswizards_follow_construct');
}
osc_enqueue_script('fancybox');
osc_enqueue_style('fancybox', osc_current_web_theme_url('js/fancybox/jquery.fancybox.css'));
osc_enqueue_script('jquery-validate');
osclasswizards_add_body_class('item');
//osc_add_hook('after-main','sidebar');
if (osclasswizards_show_as() == 'gallery') {
$loop_template = 'loop-search-grid.php';
$buttonClass = 'active';
} else {
$loop_template = 'loop-search-list.php';
$buttonClass = '';
}
function sidebar()
{
osc_current_web_theme_path('item-sidebar.php');
}
osc_current_web_theme_path('header.php');
开发者ID:oanav,项目名称:closetshare,代码行数:31,代码来源:item.php
示例20: osc_enqueue_style
<?php
if (classified_is_fineuploader()) {
if (!OC_ADMIN) {
osc_enqueue_style('fine-uploader-css', osc_assets_url('js/fineuploader/fineuploader.css'));
}
osc_enqueue_script('jquery-fineuploader');
}
function classified_is_fineuploader()
{
return Scripts::newInstance()->registered['jquery-fineuploader'] && method_exists('ItemForm', 'ajax_photos');
}
osc_add_hook('init_admin', 'theme_classified_actions_admin');
osc_add_hook('init_admin', 'theme_classified_regions_map_admin');
if (function_exists('osc_admin_menu_appearance')) {
osc_admin_menu_appearance(__('Header logo', 'classified'), osc_admin_render_theme_url('oc-content/themes/classified/admin/header.php'), 'header_classified');
osc_admin_menu_appearance(__('Theme settings', 'classified'), osc_admin_render_theme_url('oc-content/themes/classified/admin/settings.php'), 'settings_classified');
} else {
function classified_admin_menu()
{
echo '<h3><a href="#">' . __('Classified theme', 'classified') . '</a></h3>
<ul>
<li><a href="' . osc_admin_render_theme_url('oc-content/themes/classified/admin/header.php') . '">» ' . __('Header logo', 'classified') . '</a></li>
<li><a href="' . osc_admin_render_theme_url('oc-content/themes/classified/admin/settings.php') . '">» ' . __('Theme settings', 'classified') . '</a></li>
</ul>';
}
osc_add_hook('admin_menu', 'classified_admin_menu');
}
开发者ID:jhalendra,项目名称:classmandu,代码行数:28,代码来源:inc.functions.php
注:本文中的osc_enqueue_style函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论