本文整理汇总了PHP中BYT_Theme_Utils::get_file_path方法的典型用法代码示例。如果您正苦于以下问题:PHP BYT_Theme_Utils::get_file_path方法的具体用法?PHP BYT_Theme_Utils::get_file_path怎么用?PHP BYT_Theme_Utils::get_file_path使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BYT_Theme_Utils
的用法示例。
在下文中一共展示了BYT_Theme_Utils::get_file_path方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
<?php
require_once BYT_Theme_Utils::get_file_path('/includes/post_types/reviews.php');
require_once BYT_Theme_Utils::get_file_path('/includes/post_types/locations.php');
require_once BYT_Theme_Utils::get_file_path('/includes/post_types/facilities.php');
require_once BYT_Theme_Utils::get_file_path('/includes/post_types/room_types.php');
require_once BYT_Theme_Utils::get_file_path('/includes/post_types/accommodations.php');
require_once BYT_Theme_Utils::get_file_path('/includes/post_types/tours.php');
require_once BYT_Theme_Utils::get_file_path('/includes/post_types/cabin_types.php');
require_once BYT_Theme_Utils::get_file_path('/includes/post_types/cruises.php');
require_once BYT_Theme_Utils::get_file_path('/includes/post_types/car_rentals.php');
require_once BYT_Theme_Utils::get_file_path('/includes/post_types/posts.php');
class BYT_Theme_Post_Types extends BYT_BaseSingleton
{
private $user_account_custom_meta_fields;
private $user_account_meta_box;
private $user_content_list_custom_meta_fields;
private $user_content_list_meta_box;
private $enable_accommodations;
protected function __construct()
{
global $byt_theme_globals;
$this->enable_accommodations = $byt_theme_globals->enable_accommodations();
if ($this->enable_accommodations) {
$this->user_account_custom_meta_fields = array(array('label' => __('Is partner page?', 'bookyourtravel'), 'desc' => __('If checked, will display partner (front end submit) pages and menus', 'bookyourtravel'), 'id' => 'user_account_is_partner_page', 'type' => 'checkbox'));
$user_content_types = array();
$user_content_types[] = array('value' => 'accommodation', 'label' => __('Accommodation', 'bookyourtravel'));
$user_content_types[] = array('value' => 'vacancy', 'label' => __('Accommodation vacancy', 'bookyourtravel'));
$user_content_types[] = array('value' => 'room_type', 'label' => __('Room type', 'bookyourtravel'));
$this->user_content_list_custom_meta_fields = array(array('label' => __('User content type', 'bookyourtravel'), 'id' => 'user_content_type', 'type' => 'select', 'options' => $user_content_types));
}
示例2: bookyourtravel_register_required_plugins
/**
* Register the required plugins for this theme.
*
*
* The variable passed to tgmpa_register_plugins() should be an array of plugin
* arrays.
*
* This function is hooked into tgmpa_init, which is fired within the
* TGM_Plugin_Activation class constructor.
*/
function bookyourtravel_register_required_plugins()
{
/**
* Array of plugin arrays. Required keys are name and slug.
* If the source is NOT from the .org repo, then source is also required.
*/
$plugins = array(array('name' => 'Revolution slider', 'slug' => 'revslider', 'source' => BYT_Theme_Utils::get_file_path('/includes/plugins/revslider/revslider.zip'), 'required' => true, 'version' => '4.6.92', 'force_activation' => false, 'force_deactivation' => false, 'external_url' => ''));
/**
* Array of configuration settings. Amend each line as needed.
* If you want the default strings to be available under your own theme domain,
* leave the strings uncommented.
* Some of the strings are added into a sprintf, so see the comments at the
* end of each line for what each argument will be.
*/
$config = array('id' => 'tgmpa', 'default_path' => '', 'menu' => 'tgmpa-install-plugins', 'has_notices' => true, 'dismissable' => false, 'dismiss_msg' => '', 'is_automatic' => false, 'message' => '', 'strings' => array('page_title' => __('Install Required Plugins', 'bookyourtravel'), 'menu_title' => __('Install Plugins', 'bookyourtravel'), 'installing' => __('Installing Plugin: %s', 'bookyourtravel'), 'oops' => __('Something went wrong with the plugin API.', 'bookyourtravel'), 'notice_can_install_required' => _n_noop('This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.', 'bookyourtravel'), 'notice_can_install_recommended' => _n_noop('This theme recommends the following plugin: %1$s.', 'This theme recommends the following plugins: %1$s.', 'bookyourtravel'), 'notice_cannot_install' => _n_noop('Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry, but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.', 'bookyourtravel'), 'notice_can_activate_required' => _n_noop('The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.', 'bookyourtravel'), 'notice_can_activate_recommended' => _n_noop('The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.', 'bookyourtravel'), 'notice_cannot_activate' => _n_noop('Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry, but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.', 'bookyourtravel'), 'notice_ask_to_update' => _n_noop('The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.', 'bookyourtravel'), 'notice_cannot_update' => _n_noop('Sorry, but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry, but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.', 'bookyourtravel'), 'install_link' => _n_noop('Begin installing plugin', 'Begin installing plugins', 'bookyourtravel'), 'activate_link' => _n_noop('Begin activating plugin', 'Begin activating plugins', 'bookyourtravel'), 'return' => __('Return to Required Plugins Installer', 'bookyourtravel'), 'plugin_activated' => __('Plugin activated successfully.', 'bookyourtravel'), 'complete' => __('All plugins installed and activated successfully. %s', 'bookyourtravel'), 'nag_type' => 'updated'));
tgmpa($plugins, $config);
}