• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP get_template_directory_uri函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: montkailash_scripts

/**
 * Enqueue scripts and styles.
 *
 * @since Twenty Fifteen 1.0
 */
function montkailash_scripts()
{
    // Load our main stylesheet.
    wp_enqueue_style('bootstrap-style', get_template_directory_uri() . '/css/bootstrap.min.css');
    wp_enqueue_style('bootstrap-style', get_template_directory_uri() . '/css/bootstrap-theme.min.css');
    wp_enqueue_style('lightbox-style', get_template_directory_uri() . '/css/lightbox.css');
    wp_enqueue_style('montkailash-style', get_stylesheet_uri());
    if (is_page('Contact')) {
        wp_register_script('gmap', "http://maps.google.com/maps/api/js?sensor=true", '', '', true);
        wp_enqueue_script('gmap');
        wp_enqueue_script('gmaps', get_template_directory_uri() . '/js/gmaps.js', array('jquery'), '', true);
        wp_enqueue_script('function-map', get_template_directory_uri() . '/js/function_map.js', array('jquery'), '0.1', true);
    }
    if (!is_admin()) {
        wp_deregister_script('jquery');
        wp_register_script('jquery', "http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js", '', '1.8.3', true);
        wp_enqueue_script('jquery');
        wp_deregister_script('wonderplugin-slider-skins-script');
        wp_deregister_script('wonderplugin-slider-script');
        wp_deregister_script('wonderplugin-slider-creator-script');
        wp_deregister_script('woo-vou-public-script');
        wp_register_script('wonderplugin-slider-skins-script', plugins_url() . '/wonderplugin-slider/engine/wonderpluginsliderskins.js', array('jquery'), '4.9', true);
        wp_register_script('wonderplugin-slider-script', plugins_url() . '/wonderplugin-slider/engine/wonderpluginslider.js', array('jquery'), '4.9', true);
        wp_register_script('wonderplugin-slider-creator-script', plugins_url() . '/wonderplugin-slider/app/wonderplugin-slider-creator.js', array('jquery'), '4.9', true);
        wp_register_script('woo-vou-public-script', plugins_url() . '/woocommerce-pdf-vouchers/includes/js/woo-vou-public.js', array('jquery'), '2.4.4', true);
        wp_enqueue_script('bootstrap', get_template_directory_uri() . '/js/bootstrap.min.js', array('jquery'), '20150330', true);
        wp_enqueue_script('lightbox', get_template_directory_uri() . '/js/lightbox.js', array('jquery'), '2.8.1', true);
        wp_enqueue_script('montkailash-script', get_template_directory_uri() . '/js/functions.js', array('jquery'), '0.1', true);
    }
}
开发者ID:flasomm,项目名称:Montkailash,代码行数:35,代码来源:functions.php


示例2: md_add_footer

 function md_add_footer()
 {
     // Drone JS
     wp_register_script('drone', get_template_directory_uri() . '/js/drone.js');
     wp_enqueue_script('drone');
     wp_localize_script('drone', 'mdajaxurl', array('ajax' => admin_url('admin-ajax.php')));
 }
开发者ID:AndrewGerrie,项目名称:andrewgerrie-com,代码行数:7,代码来源:md-assets.php


示例3: pitch_slide_init

/**
 * Initialize Pitch's slide post type
 */
function pitch_slide_init()
{
    $labels = array('name' => _x('Slides', 'post type general name', 'pitch'), 'singular_name' => _x('Slide', 'post type singular name', 'pitch'), 'add_new' => _x('Add New', 'book', 'pitch'), 'add_new_item' => __('Add New Slide', 'pitch'), 'edit_item' => __('Edit Slide', 'pitch'), 'new_item' => __('New Slide', 'pitch'), 'all_items' => __('All Slide', 'pitch'), 'view_item' => __('View Slide', 'pitch'), 'search_items' => __('Search Slides', 'pitch'), 'not_found' => __('No slides found', 'pitch'), 'not_found_in_trash' => __('No slides found in Trash', 'pitch'), 'parent_item_colon' => '', 'menu_name' => __('Slides', 'pitch'));
    $args = array('labels' => $labels, 'public' => false, 'publicly_queryable' => false, 'show_ui' => true, 'show_in_menu' => true, 'query_var' => false, 'rewrite' => false, 'capability_type' => 'post', 'has_archive' => true, 'hierarchical' => false, 'menu_position' => null, 'supports' => array('title', 'thumbnail', 'excerpt', 'page-attributes'), 'menu_icon' => get_template_directory_uri() . '/images/post-types/slider-small.png');
    register_post_type('slide', $args);
    add_image_size('slide', 960, siteorigin_setting('slider_height'), true);
}
开发者ID:Ksajikyan,项目名称:poiskuslug.ru,代码行数:10,代码来源:slide.php


示例4: constants

 function constants($options)
 {
     define("THEME_DIR", get_template_directory());
     define("THEME_DIR_URI", get_template_directory_uri());
     define("THEME_NAME", $options["theme_name"]);
     if (defined("ICL_LANGUAGE_CODE")) {
         $lang = "_" . ICL_LANGUAGE_CODE;
     } else {
         $lang = "";
     }
     define("THEME_OPTIONS", $options["theme_name"] . '_options' . $lang);
     define("THEME_SLUG", $options["theme_slug"]);
     define("THEME_STYLES", THEME_DIR_URI . "/stylesheet/css");
     define("THEME_IMAGES", THEME_DIR_URI . "/images");
     define("THEME_JS", THEME_DIR_URI . "/js");
     define('FONTFACE_DIR', THEME_DIR . '/fontface');
     define('FONTFACE_URI', THEME_DIR_URI . '/fontface');
     define("THEME_FRAMEWORK", THEME_DIR . "/framework");
     define("THEME_PLUGINS", THEME_FRAMEWORK . "/plugins");
     define("THEME_ACTIONS", THEME_FRAMEWORK . "/actions");
     define("THEME_PLUGINS_URI", THEME_DIR_URI . "/framework/plugins");
     define("THEME_SHORTCODES", THEME_FRAMEWORK . "/shortcodes");
     define("THEME_WIDGETS", THEME_FRAMEWORK . "/widgets");
     define("THEME_SLIDERS", THEME_FRAMEWORK . "/sliders");
     define("THEME_HELPERS", THEME_FRAMEWORK . "/helpers");
     define("THEME_FUNCTIONS", THEME_FRAMEWORK . "/functions");
     define("THEME_CLASSES", THEME_FRAMEWORK . "/classes");
     define('THEME_ADMIN', THEME_FRAMEWORK . '/admin');
     define('THEME_METABOXES', THEME_ADMIN . '/metaboxes');
     define('THEME_ADMIN_POST_TYPES', THEME_ADMIN . '/post-types');
     define('THEME_GENERATORS', THEME_ADMIN . '/generators');
     define('THEME_ADMIN_URI', THEME_DIR_URI . '/framework/admin');
     define('THEME_ADMIN_ASSETS_URI', THEME_DIR_URI . '/framework/admin/assets');
 }
开发者ID:kevalbaxi,项目名称:dosomething-blog,代码行数:34,代码来源:functions.php


示例5: twentyhua_10_scripts_styles

function twentyhua_10_scripts_styles()
{
    // bootstrap
    wp_enqueue_script('twentyhua-script', get_template_directory_uri() . '/js/bootstrap.min.js', array('jquery'), '20150701', true);
    wp_enqueue_style('twentyhua-style', get_template_directory_uri() . '/css/bootstrap.min.css', array(), '20150701');
    wp_enqueue_style('twentyhua-style', get_template_directory_uri() . '/css/bootstrap-theme.min.css', array(), '20150701');
}
开发者ID:DonghuaLau,项目名称:myblog,代码行数:7,代码来源:10_functions.php


示例6: ukmtheme_metaboxes

/**
 * Define the metabox and field configurations.
 *
 * @param  array $meta_boxes
 * @return array
 */
function ukmtheme_metaboxes(array $meta_boxes)
{
    // Start with an underscore to hide fields from custom fields list
    $prefix = 'ut_';
    // Video
    $meta_boxes['video_metabox'] = array('id' => 'video_metabox', 'title' => __('Video Detail', 'ukmtheme'), 'pages' => array('video'), 'context' => 'normal', 'priority' => 'high', 'show_names' => true, 'fields' => array(array('name' => __('Video Link', 'ukmtheme'), 'desc' => __('Enter a youtube, twitter, or instagram URL. Supports services listed at <a href="http://codex.wordpress.org/Embeds">http://codex.wordpress.org/Embeds</a>.', 'ukmtheme'), 'id' => $prefix . 'video_url', 'type' => 'oembed')));
    // News Portal Link
    $meta_boxes['news_portal_metabox'] = array('id' => 'news_portal_metabox', 'title' => __('News Detail', 'ukmtheme'), 'pages' => array('news_portal'), 'context' => 'normal', 'priority' => 'high', 'show_names' => true, 'fields' => array(array('name' => __('News URL', 'ukmtheme'), 'desc' => __('field description (optional)', 'ukmtheme'), 'id' => $prefix . 'news_portal_url', 'type' => 'text_url')));
    // Press Release
    $meta_boxes['press_metabox'] = array('id' => 'press_metabox', 'title' => __('Press Release Detail', 'ukmtheme'), 'pages' => array('press'), 'context' => 'normal', 'priority' => 'high', 'show_names' => true, 'fields' => array(array('name' => __('Date', 'ukmtheme'), 'desc' => __('Press Release Date', 'ukmtheme'), 'id' => $prefix . 'press_date', 'type' => 'text_date'), array('name' => __('Document File', 'ukmtheme'), 'desc' => __('Upload document file.', 'ukmtheme'), 'id' => $prefix . 'press_file', 'type' => 'file', 'allow' => array('url'))));
    // GALLERY
    $meta_boxes['gallery_metabox'] = array('id' => 'gallery_metabox', 'title' => __('Gallery Detail', 'ukmtheme'), 'pages' => array('gallery'), 'context' => 'normal', 'priority' => 'high', 'show_names' => true, 'fields' => array(array('name' => __('Gallery Cover Image', 'ukmtheme'), 'desc' => __('Upload an image or enter a URL. dimensions of the image should be 300x300 pixels. <a href="' . get_template_directory_uri() . '/img/300_300.psd">PSD File</a>', 'ukmtheme'), 'id' => $prefix . 'gallery_cover', 'type' => 'file', 'allow' => array('url')), array('name' => __('Date', 'ukmtheme'), 'desc' => __('Gallery Date', 'ukmtheme'), 'id' => $prefix . 'gallery_date', 'type' => 'text_date'), array('name' => __('Phographer', 'ukmtheme'), 'desc' => __('Photo by.', 'ukmtheme'), 'id' => $prefix . 'gallery_photographer', 'type' => 'text'), array('name' => __('Image', 'ukmtheme'), 'desc' => __('Upload or add multiple images/attachments.', 'cmb'), 'id' => $prefix . 'gallery_image', 'type' => 'file_list', 'preview_size' => array(100, 100))));
    // SLIDESHOW
    $meta_boxes['slideshow_metabox'] = array('id' => 'slideshow_metabox', 'title' => __('Slideshow Detail', 'ukmtheme'), 'pages' => array('slideshow'), 'context' => 'normal', 'priority' => 'high', 'show_names' => true, 'fields' => array(array('name' => __('Slideshow Image', 'ukmtheme'), 'desc' => __('Upload an image or enter a URL. dimensions of the image should be 960x350 pixels. <a href="' . get_template_directory_uri() . '/img/960_350.psd">PSD File</a>', 'ukmtheme'), 'id' => $prefix . 'slideshow_image', 'type' => 'file', 'allow' => array('url')), array('name' => __('Slideshow Link', 'ukmtheme'), 'desc' => __('links to posts, pages or external web.', 'ukmtheme'), 'id' => $prefix . 'slideshow_link', 'type' => 'text')));
    // APPRECIATION
    $meta_boxes['appreciation_metabox'] = array('id' => 'appreciation_metabox', 'title' => __('Appreciation Detail', 'ukmtheme'), 'pages' => array('appreciation'), 'context' => 'normal', 'priority' => 'high', 'show_names' => true, 'fields' => array(array('name' => __('By', 'ukmtheme'), 'desc' => __('e.g. Jamaludin Rajalu', 'ukmtheme'), 'id' => $prefix . 'appreciation_by', 'type' => 'text'), array('name' => __('PTJ', 'ukmtheme'), 'desc' => __('e.g. Pusat Teknologi Maklumat', 'ukmtheme'), 'id' => $prefix . 'appreciation_ptj', 'type' => 'text'), array('name' => __('Date', 'ukmtheme'), 'desc' => __('Date of appreciation', 'ukmtheme'), 'id' => $prefix . 'appreciation_date', 'type' => 'text_date'), array('name' => __('Greeting', 'ukmtheme'), 'desc' => __('e.g. Terima kasih atas sumbangan sebagai urusetia majlis', 'ukmtheme'), 'id' => $prefix . 'appreciation_greeting', 'type' => 'wysiwyg', 'options' => array('textarea_rows' => 5))));
    // EVENT MANAGER
    $meta_boxes['event_metabox'] = array('id' => 'event_metabox', 'title' => __('Event Detail', 'ukmtheme'), 'pages' => array('event'), 'context' => 'normal', 'priority' => 'high', 'show_names' => true, 'fields' => array(array('name' => __('Date', 'ukmtheme'), 'desc' => __('Date of event', 'ukmtheme'), 'id' => $prefix . 'event_date', 'type' => 'text_date'), array('name' => __('Time: Start', 'ukmtheme'), 'desc' => __('Start time of the event', 'ukmtheme'), 'id' => $prefix . 'event_time_start', 'type' => 'text_time'), array('name' => __('Time: End', 'ukmtheme'), 'desc' => __('End time of the event', 'ukmtheme'), 'id' => $prefix . 'event_time_end', 'type' => 'text_time'), array('name' => __('Venue', 'ukmtheme'), 'desc' => __('Venue of the event', 'ukmtheme'), 'id' => $prefix . 'event_venue', 'type' => 'text'), array('name' => __('Summary', 'ukmtheme'), 'desc' => __('Event Summary', 'ukmtheme'), 'id' => $prefix . 'event_summary', 'type' => 'wysiwyg', 'options' => array('textarea_rows' => 5))));
    // PUBLICATION
    $meta_boxes['publication_metabox'] = array('id' => 'publication_metabox', 'title' => __('Publication Detail', 'ukmtheme'), 'pages' => array('publication'), 'context' => 'normal', 'priority' => 'high', 'show_names' => true, 'fields' => array(array('name' => __('Cover Image', 'ukmtheme'), 'desc' => __('Upload an image or enter a URL. dimensions of the image should be 300x380 pixels. <a href="' . get_template_directory_uri() . '/img/300_380.psd">PSD File</a>', 'ukmtheme'), 'id' => $prefix . 'publication_cover', 'type' => 'file', 'allow' => array('url')), array('name' => __('Author', 'ukmtheme'), 'desc' => __('e.g. Jamaludin Rajalu', 'ukmtheme'), 'id' => $prefix . 'publication_author', 'type' => 'text'), array('name' => __('Publisher', 'ukmtheme'), 'desc' => __('e.g. Pusat Teknologi Maklumat', 'ukmtheme'), 'id' => $prefix . 'publication_publisher', 'type' => 'text'), array('name' => __('Year', 'ukmtheme'), 'desc' => __('e.g. 2014', 'ukmtheme'), 'id' => $prefix . 'publication_year', 'type' => 'text'), array('name' => __('Number of Pages', 'ukmtheme'), 'desc' => __('e.g. 199', 'ukmtheme'), 'id' => $prefix . 'publication_pages', 'type' => 'text'), array('name' => __('Reference/Download', 'ukmtheme'), 'desc' => __('e.g. http://www.ukm.my', 'ukmtheme'), 'id' => $prefix . 'publication_reference', 'type' => 'text_url')));
    // STAFF DIRECTORY
    $meta_boxes['staff_metabox'] = array('id' => 'staff_metabox', 'title' => __('Staff Detail', 'ukmtheme'), 'pages' => array('staff'), 'context' => 'normal', 'priority' => 'high', 'show_names' => true, 'fields' => array(array('name' => __('Staff Photo', 'ukmtheme'), 'desc' => __('Upload an image or enter a URL. dimensions of the image should be 300x380 pixels. <a href="' . get_template_directory_uri() . '/img/300_380.psd">PSD File</a>', 'ukmtheme'), 'id' => $prefix . 'staff_photo', 'type' => 'file', 'allow' => array('url')), array('name' => __('Phone No.', 'ukmtheme'), 'desc' => __('e.g. 03-8921-7070', 'ukmtheme'), 'id' => $prefix . 'staff_phone', 'type' => 'text'), array('name' => __('Email', 'ukmtheme'), 'desc' => __('e.g. [email protected]', 'ukmtheme'), 'id' => $prefix . 'staff_email', 'type' => 'text_email'), array('name' => __('Display Job Scope', 'ukmtheme'), 'desc' => __('Please check if want to display Scope of Work', 'ukmtheme'), 'id' => $prefix . 'staff_work_scope', 'type' => 'checkbox'), array('name' => __('Hide Title', 'ukmtheme'), 'desc' => __('Please check if want to hide Scope of Work title "Scope of Work"', 'ukmtheme'), 'id' => $prefix . 'staff_work_scope_title', 'type' => 'checkbox'), array('name' => __('New Title', 'ukmtheme'), 'desc' => __('e.g. "Expertise". Please leave it blank if do not want to display', 'ukmtheme'), 'id' => $prefix . 'staff_work_scope_title_custom', 'type' => 'text'), array('name' => __('Job Scope Detail', 'ukmtheme'), 'desc' => __('e.g. Do Multimedia Work', 'ukmtheme'), 'id' => $prefix . 'staff_work_scope_desc', 'type' => 'wysiwyg', 'options' => array('textarea_rows' => 5))));
    // EXPERTISE
    $meta_boxes['expertise_metabox'] = array('id' => 'expertise_metabox', 'title' => __('Expertise Detail', 'ukmtheme'), 'pages' => array('expertise'), 'context' => 'normal', 'priority' => 'high', 'show_names' => true, 'fields' => array(array('name' => __('Expert Photo', 'ukmtheme'), 'desc' => __('Upload an image or enter a URL. dimensions of the image should be 300x380 pixels. <a href="' . get_template_directory_uri() . '/img/300_380.psd">PSD File</a>', 'ukmtheme'), 'id' => $prefix . 'expertise_photo', 'type' => 'file', 'allow' => array('url')), array('name' => __('Biography', 'ukmtheme'), 'desc' => __('A brief biography', 'ukmtheme'), 'id' => $prefix . 'expertise_biography', 'type' => 'wysiwyg', 'options' => array('textarea_rows' => 5)), array('name' => __('Contact', 'ukmtheme'), 'desc' => __('e.g. 03-8921-7070', 'ukmtheme'), 'id' => $prefix . 'expertise_contact', 'type' => 'text'), array('name' => __('Email', 'ukmtheme'), 'desc' => __('e.g. [email protected]', 'ukmtheme'), 'id' => $prefix . 'expertise_email', 'type' => 'text_email'), array('name' => __('Current Position', 'ukmtheme'), 'desc' => __('e.g. Professor', 'ukmtheme'), 'id' => $prefix . 'expertise_position', 'type' => 'text'), array('name' => __('Specialisation', 'ukmtheme'), 'desc' => __('Tourism and Hospitality Marketing, &amp; Services Marketing', 'ukmtheme'), 'id' => $prefix . 'expertise_specialisation', 'type' => 'text'), array('name' => __('Qualifications', 'ukmtheme'), 'desc' => __('e.g. Doctor of Philosophy (University of Malaya) [2002-2005]', 'ukmtheme'), 'id' => $prefix . 'expertise_qualification', 'type' => 'wysiwyg', 'options' => array('textarea_rows' => 5)), array('name' => __('Areas of Research', 'ukmtheme'), 'desc' => __('e.g. Services Marketing and Consumer Behavior Analysis', 'ukmtheme'), 'id' => $prefix . 'expertise_research_area', 'type' => 'wysiwyg', 'options' => array('textarea_rows' => 5)), array('name' => __('Research/<br/>Consultation/<br/>Expansion', 'ukmtheme'), 'desc' => __('e.g. Developing A Higher Education Brand Index for Malaysia. Jan1, 2009-June 30,2010. GSB-001-2009 (External Grant). Ongoing.', 'ukmtheme'), 'id' => $prefix . 'expertise_research_consultation', 'type' => 'wysiwyg', 'options' => array('textarea_rows' => 5)), array('name' => __('Publications Journals', 'ukmtheme'), 'desc' => __('e.g. Ahmad Azmi M. Ariffin & Mohd Safar Hashim. 2009. Marketing Malaysia to the Middle East Tourists: Towards a Prime Inter-Regional Destination. International Journal of West Asian Studies. 1(1): 43-58. ISSN 1394-0902.', 'ukmtheme'), 'id' => $prefix . 'expertise_journal', 'type' => 'wysiwyg', 'options' => array('textarea_rows' => 5)), array('name' => __('Proceedings', 'ukmtheme'), 'desc' => __('e.g. Ahmad Azmi M.Ariffin, Aliah Hanim M.Salleh, Norzalita A.Aziz & Astuti A.Asbudin. 2009. Determining Passengers’ Expectation, Service Quality and Satisfaction for Low Cost Carriers. The Proceeding of The 11th. International Business Research Conference. Sydney Australia. Dec 2-4, 2009. ISBN: 978-0-980-4557-0-7 (Presenter).', 'ukmtheme'), 'id' => $prefix . 'expertise_proceedings', 'type' => 'wysiwyg', 'options' => array('textarea_rows' => 5)), array('name' => __('Book', 'ukmtheme'), 'desc' => __('e.g. Ahmad Azmi Mohd. Ariffin, Norzalita Abd. Aziz. 2009. Chapter 5: Service Quality and Zone of Tolerance in Malaysian Banking Services. In Services Management and Marketing: Studies in Malaysia. Edited by Aliah Hanim Mohd. Salleh, Ahmad Azmi Mohd. Ariffin, June M. L. Poon & Aini Aman. GSB-UKM. Bangi.', 'ukmtheme'), 'id' => $prefix . 'expertise_book', 'type' => 'wysiwyg', 'options' => array('textarea_rows' => 5)), array('name' => __('Articles in Antologi/<br/>Chapters in Book', 'ukmtheme'), 'desc' => __('e.g. Ahmad Azmi Mohd. Ariffin, Norzalita Abd. Aziz. 2009. Chapter 5: Service Quality and Zone of Tolerance in Malaysian Banking Services. In Services Management and Marketing: Studies in Malaysia. Edited by Aliah Hanim Mohd. Salleh, Ahmad Azmi Mohd. Ariffin, June M. L. Poon & Aini Aman. GSB-UKM. Bangi.', 'ukmtheme'), 'id' => $prefix . 'expertise_antologi', 'type' => 'wysiwyg', 'options' => array('textarea_rows' => 5)), array('name' => __('Monograph,<br/> Working Papers<br/> and Non-Periodical<br/> Publications', 'ukmtheme'), 'desc' => __('e.g. Module ”Tourism Marketing” (Code: BBAS 3103).  Open University Malaysia. 2007/2008', 'ukmtheme'), 'id' => $prefix . 'expertise_monograph', 'type' => 'wysiwyg', 'options' => array('textarea_rows' => 5)), array('name' => __('Seminar', 'ukmtheme'), 'desc' => __('e.g. Ahmad Azmi Mohd. Ariffin, Norzalita Abd. Aziz. 2009. Chapter 5: Service Quality and Zone of Tolerance in Malaysian Banking Services. In Services Management and Marketing: Studies in Malaysia. Edited by Aliah Hanim Mohd. Salleh, Ahmad Azmi Mohd. Ariffin, June M. L. Poon & Aini Aman. GSB-UKM. Bangi.', 'ukmtheme'), 'id' => $prefix . 'expertise_seminar', 'type' => 'wysiwyg', 'options' => array('textarea_rows' => 5)), array('name' => __('Award', 'ukmtheme'), 'desc' => __('e.g. EXCELLENT SERVICE AWARD 2007. Faculty of Economics and BusinessUniversiti Kebangsaan Malaysia', 'ukmtheme'), 'id' => $prefix . 'expertise_award', 'type' => 'wysiwyg', 'options' => array('textarea_rows' => 5)), array('name' => __('Supervision', 'ukmtheme'), 'desc' => __('e.g. Lim Chui Seong (DBA. Disertasi) The Influence of e-Hospitality on Websites Satisfaction and Loyalty (Ongoing)', 'ukmtheme'), 'id' => $prefix . 'expertise_supervision', 'type' => 'wysiwyg', 'options' => array('textarea_rows' => 5)), array('name' => __('Administrative<br/> Services/Committee', 'ukmtheme'), 'desc' => __('e.g. MANAGING EDITOR OF JURNAL PENGURUSAN 1 April 2007 – Present Graduate School of Business, Universiti Kebangsaan Malaysia', 'ukmtheme'), 'id' => $prefix . 'expertise_administrative', 'type' => 'wysiwyg', 'options' => array('textarea_rows' => 5)), array('name' => __('Reports: Technical/<br/>Research/<br/>Consultation', 'ukmtheme'), 'desc' => __('e.g. Mohd Fauzi Mohd Jani, Zaimah Derawi, Tih Sio Hong, Rozita Amirudin, Ahmad Azmi Ariffin, Zafir Makhbul, Aini Aman, Mohd Radzuan Rahid, Ahmad Raflis Omar, Kamalrudin Mohamed Saleh. 2008. “Laporan Akhir Program Latihan Keusahawanan: Kerjasama Pelajar Universiti dan Entepris Kecil dan Sederhana (EKS)”. SMIDEC.', 'ukmtheme'), 'id' => $prefix . 'expertise_reports', 'type' => 'wysiwyg', 'options' => array('textarea_rows' => 5)), array('name' => __('Research Grant', 'ukmtheme'), 'desc' => __('e.g. Ahmad Azmi Mohd. Ariffin, Norzalita Abd. Aziz. 2009. Chapter 5: Service Quality and Zone of Tolerance in Malaysian Banking Services. In Services Management and Marketing: Studies in Malaysia. Edited by Aliah Hanim Mohd. Salleh, Ahmad Azmi Mohd. Ariffin, June M. L. Poon & Aini Aman. GSB-UKM. Bangi.', 'ukmtheme'), 'id' => $prefix . 'expertise_research_grant', 'type' => 'wysiwyg', 'options' => array('textarea_rows' => 5)), array('name' => __('Teaching', 'ukmtheme'), 'desc' => __('e.g. Courses Taught at Ph.D./DBA Level Hospitality Marketing: Theory and Research', 'ukmtheme'), 'id' => $prefix . 'expertise_teaching', 'type' => 'wysiwyg', 'options' => array('textarea_rows' => 5))));
    // HIDE ITEM EXPERTISE
    $meta_boxes['expertise_metabox_hide'] = array('id' => 'expertise_metabox_hide', 'title' => __('Hide Option (Please check if want to hide)', 'ukmtheme'), 'pages' => array('expertise'), 'context' => 'normal', 'priority' => 'high', 'show_names' => false, 'fields' => array(array('name' => __('Hide Research/Consultation/Expansion', 'ukmtheme'), 'desc' => __('Hide Research/Consultation/Expansion', 'ukmtheme'), 'id' => $prefix . 'expertise_research_consultation_hide', 'type' => 'checkbox'), array('name' => __('Hide Publications Journals', 'ukmtheme'), 'desc' => __('Hide Publications Journals', 'ukmtheme'), 'id' => $prefix . 'expertise_journal_hide', 'type' => 'checkbox'), array('name' => __('Hide Proceedings', 'ukmtheme'), 'desc' => __('Hide Proceedings', 'ukmtheme'), 'id' => $prefix . 'expertise_proceedings_hide', 'type' => 'checkbox'), array('name' => __('Hide Book', 'ukmtheme'), 'desc' => __('Hide Book', 'ukmtheme'), 'id' => $prefix . 'expertise_book_hide', 'type' => 'checkbox'), array('name' => __('Hide Articles in Antologi/Chapters in Book', 'ukmtheme'), 'desc' => __('Hide Articles in Antologi/Chapters in Book', 'ukmtheme'), 'id' => $prefix . 'expertise_antologi_hide', 'type' => 'checkbox'), array('name' => __('Hide Monograph, Working Papers and Non-Periodical Publications', 'ukmtheme'), 'desc' => __('Hide Monograph, Working Papers and Non-Periodical Publications', 'ukmtheme'), 'id' => $prefix . 'expertise_monograph_hide', 'type' => 'checkbox'), array('name' => __('Hide Seminar', 'ukmtheme'), 'desc' => __('Hide Seminar', 'ukmtheme'), 'id' => $prefix . 'expertise_seminar_hide', 'type' => 'checkbox'), array('name' => __('Hide Award', 'ukmtheme'), 'desc' => __('Hide Award', 'ukmtheme'), 'id' => $prefix . 'expertise_award_hide', 'type' => 'checkbox'), array('name' => __('Hide Supervision', 'ukmtheme'), 'desc' => __('Hide Supervision', 'ukmtheme'), 'id' => $prefix . 'expertise_supervision_hide', 'type' => 'checkbox'), array('name' => __('Hide Administrative Services/Committee', 'ukmtheme'), 'desc' => __('Hide Administrative Services/Committee', 'ukmtheme'), 'id' => $prefix . 'expertise_administrative_hide', 'type' => 'checkbox'), array('name' => __('Hide Reports: Technical/Research/Consultation', 'ukmtheme'), 'desc' => __('Hide Reports: Technical/Research/Consultation', 'ukmtheme'), 'id' => $prefix . 'expertise_reports_hide', 'type' => 'checkbox'), array('name' => __('Hide Research Grant', 'ukmtheme'), 'desc' => __('Hide Research Grant', 'ukmtheme'), 'id' => $prefix . 'expertise_research_grant_hide', 'type' => 'checkbox'), array('name' => __('Hide Teaching', 'ukmtheme'), 'desc' => __('Hide Teaching', 'ukmtheme'), 'id' => $prefix . 'expertise_teaching_hide', 'type' => 'checkbox')));
    // END HERE
    return $meta_boxes;
}
开发者ID:RobbiNespu,项目名称:ukmtheme,代码行数:35,代码来源:theme-metabox.php


示例7: add_scripts_after_footer

function add_scripts_after_footer()
{
    // Register the script like this for a plugin:
    //wp_register_script( 'custom-script', plugins_url( '/js/custom-script.js', __FILE__ ) );
    // or
    // Register the script like this for a theme:
    wp_register_script('jquery1.7', "https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js", false);
    wp_register_script('bootstrap-alert', get_template_directory_uri() . '/js/bootstrap-alert.js');
    wp_register_script('bootstrap-button', get_template_directory_uri() . '/js/bootstrap-button.js');
    wp_register_script('bootstrap-carousel', get_template_directory_uri() . '/js/bootstrap-carousel.js');
    wp_register_script('bootstrap-collapse', get_template_directory_uri() . '/js/bootstrap-collapse.js');
    wp_register_script('bootstrap-dropdown', get_template_directory_uri() . '/js/bootstrap-dropdown.js');
    wp_register_script('bootstrap-modal', get_template_directory_uri() . '/js/bootstrap-modal.js');
    wp_register_script('bootstrap-popover', get_template_directory_uri() . '/js/bootstrap-popover.js');
    wp_register_script('bootstrap-scrollspy', get_template_directory_uri() . '/js/bootstrap-scrollspy.js');
    wp_register_script('bootstrap-tab', get_template_directory_uri() . '/js/bootstrap-tab.js');
    wp_register_script('bootstrap-tooltip', get_template_directory_uri() . '/js/bootstrap-tooltip.js');
    wp_register_script('bootstrap-transition', get_template_directory_uri() . '/js/bootstrap-transition.js');
    wp_register_script('bootstrap-typeahead', get_template_directory_uri() . '/js/bootstrap-typeahead.js');
    // For either a plugin or a theme, you can then enqueue the script:
    wp_enqueue_script('jquery1.7');
    wp_enqueue_script('bootstrap-transition');
    wp_enqueue_script('bootstrap-alert');
    wp_enqueue_script('bootstrap-modal');
    wp_enqueue_script('bootstrap-dropdown');
    wp_enqueue_script('bootstrap-scrollspy');
    wp_enqueue_script('bootstrap-tab');
    wp_enqueue_script('bootstrap-tooltip');
    wp_enqueue_script('bootstrap-popover');
    wp_enqueue_script('bootstrap-button');
    wp_enqueue_script('bootstrap-collapse');
    wp_enqueue_script('bootstrap-carousel');
    wp_enqueue_script('bootstrap-typeahead');
}
开发者ID:roychoo,项目名称:twitterBSWPtheme,代码行数:34,代码来源:functions.php


示例8: wl_removeScripts

function wl_removeScripts()
{
    //De-Queuing Styles sheet
    wp_dequeue_style('default', get_template_directory_uri() . '/css/default.css');
    //EN-Queing Style sheet
    wp_enqueue_style('lite-brown', get_stylesheet_directory_uri() . '/green.css');
}
开发者ID:bigkey,项目名称:php-getting-started,代码行数:7,代码来源:functions.php


示例9: dazake_load_script

/**
 * Ladda script
 */
function dazake_load_script()
{
    if (!is_admin()) {
        /**
         * Deregister wordpress scripts
         */
        wp_deregister_script('jquery');
        /**
         * wp_register_script( $handle, $src, $deps, $ver, $in_footer );
         */
        wp_register_script('jquery', 'http://lib.sinaapp.com/js/jquery/1.7.2/jquery.min.js');
        wp_register_script('modernizr', get_template_directory_uri() . '/js/libs/modernizr.js');
        wp_register_script('bootstrap', get_template_directory_uri() . '/js/libs/bootstrap/js/bootstrap.min.js');
        wp_register_script('less', get_template_directory_uri() . '/js/libs/less.js');
        wp_register_script('main', get_template_directory_uri() . '/js/main.js');
        /**
         * Laddar skripten vi registrerat ovan.
         */
        wp_enqueue_script('jquery');
        wp_enqueue_script('modernizr');
        wp_enqueue_script('bootstrap');
        wp_enqueue_script('less');
        wp_enqueue_script('main');
        /**
         * load stylesheet
         */
        wp_enqueue_style('style', get_stylesheet_uri());
        wp_enqueue_style('bootstrap', get_template_directory_uri() . '/js/libs/bootstrap/css/bootstrap.min.css');
        wp_enqueue_style('bootstrap-responsive', get_template_directory_uri() . '/js/libs/bootstrap/css/bootstrap-responsive.min.css');
    }
}
开发者ID:joaosigno,项目名称:dazake-job,代码行数:34,代码来源:functions.php


示例10: _s_scripts

/**
 * Enqueue scripts and styles.
 */
function _s_scripts()
{
    /**
     * If WP is in script debug, or we pass ?script_debug in a URL - set debug to true.
     */
    $debug = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG == true || isset($_GET['script_debug']) ? true : false;
    /**
     * If we are debugging the site, use a unique version every page load so as to ensure no cache issues.
     */
    $version = '1.0.0';
    /**
     * Should we load minified scripts? Also enqueue live reload to allow for extensionless reloading.
     */
    $suffix = '.min';
    if (true === $debug) {
        $suffix = '';
        wp_enqueue_script('live-reload', '//localhost:35729/livereload.js', array(), $version, true);
    }
    wp_enqueue_style('_s-google-font', _s_font_url(), array(), null);
    wp_enqueue_style('_s-style', get_stylesheet_directory_uri() . '/style' . $suffix . '.css', array(), $version);
    wp_enqueue_script('_s-project', get_template_directory_uri() . '/assets/js/project' . $suffix . '.js', array('jquery'), $version, true);
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
}
开发者ID:mukeshkumar108,项目名称:wd_s,代码行数:28,代码来源:scripts.php


示例11: ieseg2_scripts

/**
 * Enqueue scripts and styles for the front end.
 *
 * @since Twenty Fourteen 1.0
 */
function ieseg2_scripts()
{
    //<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700,300,400italic' rel='stylesheet' type='text/css'>
    // Add Source Sans.
    wp_enqueue_style('ieseg-source-sans', 'http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700,300,400italic', array(), null);
    // Add Genericons font, used in the main stylesheet.
    //wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.0.2' );
    // Load our main stylesheet.
    //wp_enqueue_style( 'twentyfourteen-style', get_stylesheet_uri(), array( 'genericons' ) );
    wp_enqueue_style('bootstrap', get_template_directory_uri() . '/css/bootstrap.min.css', false, '1.0');
    wp_enqueue_style('bootstrap-theme', get_template_directory_uri() . '/css/bootstrap-theme.min.css', array('bootstrap'), '1.0');
    wp_enqueue_style('animate', get_template_directory_uri() . '/css/animate.css', false, '1.0');
    // utile pour wow.js
    wp_enqueue_style('style-ieseg', get_template_directory_uri() . '/css/ieseg.min.css', array('bootstrap'), '1.0');
    if (is_page(array(1766, 59))) {
        wp_enqueue_style('style-timeline', get_template_directory_uri() . '/css/timeline.css');
    }
    //wp_enqueue_style('fancybox','/wp-content/themes/'.get_template().'/lib/fancybox/jquery.fancybox-1.3.4.css',false,'1.0');
    // Load the Internet Explorer specific stylesheet.
    //wp_enqueue_style( 'twentyfourteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentyfourteen-style', 'genericons' ), '20131205' );
    //wp_style_add_data( 'twentyfourteen-ie', 'conditional', 'lt IE 9' );
    //BX slider
    if (is_front_page() || is_page_template('template-page-programs.php')) {
        wp_enqueue_script('bxslider', get_template_directory_uri() . '/js/jquery.bxslider.min.js', array('jquery'), '1.0', true);
        wp_enqueue_style('style-bxslider', get_template_directory_uri() . '/css/jquery.bxslider.css', array('style-ieseg'), '1.0');
    }
    wp_enqueue_script('ieseg-script', get_template_directory_uri() . '/js/ieseg.js', array('jquery'), '1.0', true);
    wp_enqueue_script('bootstrap-script', get_template_directory_uri() . '/js/bootstrap.min.js', array('jquery'), '1.0', true);
    wp_enqueue_script('wow', get_template_directory_uri() . '/js/wow.min.js', array('jquery'), '1.0', true);
    //wp_enqueue_script( 'responsive-nav', get_template_directory_uri() . '/js/responsive-nav.min.js', array( 'jquery' ), '1.0', true ); //menu de gauche responsive
    if (is_page(array('mib-class-profile', 'mib-career-opportunities', 'mfm-student-profiles', 'msc-digital-marketing-crm-class-profile', 'msc-business-analysis-consulting-class-profile', 'msc-accounting-audit-control', 'msc-finance-class-profile', 'msc-banking-capital-markets-class-profile', 'msc-in-negotiation-for-organizations-class-profile', 'msc-big-data-analytics-business-class-profile', 'imba-class-profile', 'programme-grande-ecole', 33306, 33325))) {
        wp_enqueue_script('classprofiles', get_bloginfo('template_directory') . '/js/classprofiles.js', array(), '1.1', true);
    }
}
开发者ID:Guillaume4259,项目名称:theme2015,代码行数:39,代码来源:functions.php


示例12: enqueue

 /**
  * Enqueue the styles and scripts
  **/
 public function enqueue()
 {
     // styles
     wp_enqueue_style('lsx-font-picker-custom-control', get_template_directory_uri() . '/css/customizer-font.css');
     // scripts
     wp_enqueue_script('lsx-font-picker-custom-control', get_template_directory_uri() . '/js/customizer-font.js');
 }
开发者ID:LinaPeterssonOberg,项目名称:exam,代码行数:10,代码来源:customizer-font.php


示例13: theme_scripts_with_jquery

function theme_scripts_with_jquery()
{
    // For either a plugin or a theme, you can then enqueue the script:
    wp_enqueue_script('bootstrap', get_template_directory_uri() . '/js/bootstrap.js', array('jquery'), '', true);
    wp_enqueue_script('camera_js', get_template_directory_uri() . '/js/camera.js', array(), '', true);
    wp_enqueue_script('superfish_js', get_template_directory_uri() . '/js/superfish.js', array(), '', true);
}
开发者ID:ahmadnaufal,项目名称:iit-webhimpunan,代码行数:7,代码来源:functions.php


示例14: kingjoytravel_js

function kingjoytravel_js()
{
    global $wp_scripts;
    wp_enqueue_script('bootstrap-js', get_template_directory_uri() . '/js/vendor/bootstrap.min.js', array('jquery'), '', true);
    wp_enqueue_script('fastclick-js', get_template_directory_uri() . '/js/vendor/fastclick.js', '', '', true);
    wp_enqueue_script('app-js', get_template_directory_uri() . '/js/app.js', '', '', true);
}
开发者ID:eydreeyawn,项目名称:kingjoytravel,代码行数:7,代码来源:functions.php


示例15: fb_add_tinymce_plugin

function fb_add_tinymce_plugin($plugin_array)
{
    $plugin_array['td_shortcode_plugin'] = get_template_directory_uri() . '/includes/wp_booster/wp-admin/tinymce/customcodes.js';
    // Print all plugin js path
    //var_dump( $plugin_array );
    return $plugin_array;
}
开发者ID:luxifel,项目名称:Bionerd,代码行数:7,代码来源:tinymce.php


示例16: twentythirteen_custom_header_fonts

/**
 * Load our special font CSS files.
 *
 * @since Twenty Thirteen 1.0
 */
function twentythirteen_custom_header_fonts()
{
    // Add Source Sans Pro and Bitter fonts.
    wp_enqueue_style('twentythirteen-fonts', twentythirteen_fonts_url(), array(), null);
    // Add Genericons font.
    wp_enqueue_style('genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.03');
}
开发者ID:DonghuaLau,项目名称:myblog,代码行数:12,代码来源:custom-header.php


示例17: print_scripts

 public function print_scripts()
 {
     if (!isset($_REQUEST['page'])) {
         return;
     }
     $this->add_existed_script('jquery');
     $this->add_existed_script('plupload');
     //add de sort category
     $this->add_existed_script('jquery-ui-sortable');
     $this->add_script('lib-nested-sortable', ae_get_url() . '/assets/js/jquery.nestedSortable.js', array('jquery', 'jquery-ui-sortable'));
     // tam thoi add de xai
     $this->add_script('jquery-validator', ae_get_url() . '/assets/js/jquery.validate.min.js', 'jquery');
     $this->add_script('ae-colorpicker', ae_get_url() . '/assets/js/colorpicker.js', array('jquery'));
     $this->add_script('marionette', ae_get_url() . '/assets/js/marionette.js', array('jquery', 'underscore', 'backbone'));
     // control backend user list
     $this->add_script('gmap', ae_get_url() . '/assets/js/gmap.js', array('et-googlemap-api'));
     // ae core js appengine
     $this->add_script('appengine', ae_get_url() . '/assets/js/appengine.js', array('jquery', 'underscore', 'backbone', 'marionette', 'plupload', 'ae-colorpicker'));
     // control backend user list
     $this->add_script('backend-user', ae_get_url() . '/assets/js/user-list.js', array('appengine'));
     // control backend order list
     $this->add_script('order-list', ae_get_url() . '/assets/js/payment-list.js', array('appengine'));
     //  option settings and save
     $this->add_script('option-view', ae_get_url() . '/assets/js/option-view.js', array('appengine'));
     // control option translate
     $this->add_script('language-view', ae_get_url() . '/assets/js/language-view.js', array('appengine', 'option-view'));
     // control pack view add delete update pack
     $this->add_script('pack-view', ae_get_url() . '/assets/js/pack-view.js', array('appengine', 'option-view'));
     // backend js it should be separate by theme
     $this->add_script('backend', ae_get_url() . '/assets/js/backend.js', array('appengine'));
     wp_localize_script('appengine', 'ae_globals', array('ajaxURL' => admin_url('admin-ajax.php'), 'imgURL' => ae_get_url() . '/assets/img/', 'jsURL' => ae_get_url() . '/assets/js/', 'themeImgURL' => get_template_directory_uri() . '/img/', 'loadingImg' => '<img class="loading loading-wheel" src="' . ae_get_url() . '/assets/img/loading.gif" alt="' . __('Loading...', 'aecore-class-ae-page-backend') . '">', 'loading' => __('Loading', 'aecore-class-ae-page-backend'), 'texts' => array('limit_category_level' => __("Categories' level is limited to 3", 'aecore-class-ae-page-backend')), 'ae_is_mobile' => et_load_mobile() ? 1 : 0, 'plupload_config' => array('max_file_size' => '3mb', 'url' => admin_url('admin-ajax.php'), 'flash_swf_url' => includes_url('js/plupload/plupload.flash.swf'), 'silverlight_xap_url' => includes_url('js/plupload/plupload.silverlight.xap'), 'filters' => array(array('title' => __('Image Files', 'aecore-class-ae-page-backend'), 'extensions' => 'jpg,jpeg,gif,png')))));
 }
开发者ID:linniepinski,项目名称:perssistant,代码行数:32,代码来源:class-ae-page.php


示例18: pigeon_enqueue_scripts

该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_template_info函数代码示例发布时间:2022-05-15
下一篇:
PHP get_template_directory函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap