本文整理汇总了PHP中is_rtl函数的典型用法代码示例。如果您正苦于以下问题:PHP is_rtl函数的具体用法?PHP is_rtl怎么用?PHP is_rtl使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了is_rtl函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: easy_ads_manager_admin_eq
function easy_ads_manager_admin_eq()
{
if (is_rtl()) {
wp_enqueue_style('mian-css-admin_ads', plugin_dir_url(__FILE__) . 'css/easy-ads-manager.css');
wp_enqueue_style('mian-css-admin_rtl_ads', plugin_dir_url(__FILE__) . 'css/rtl.css');
} else {
wp_enqueue_style('mian-css-admin_ads', plugin_dir_url(__FILE__) . 'css/easy-ads-manager.css');
}
wp_enqueue_style('jquery-ui-datepicker-style', plugin_dir_url(__FILE__) . 'css/jquery-ui.css');
wp_enqueue_style('font_awesom-admin_ads', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css');
?>
<script type="text/javascript">
var pluginurl_ads = '<?php
echo plugin_dir_url(__FILE__);
?>
',
path_ads = '<?php
echo get_home_path();
?>
';
</script>
<?php
wp_enqueue_media();
wp_enqueue_script('jquery-ui-datepicker');
wp_enqueue_script('ajax-script_ads', plugin_dir_url(__FILE__) . 'js/easy-ads-manager.js', array('jquery'));
wp_localize_script('ajax-script_ads', 'ajax_object', array('ajax_url' => admin_url('admin-ajax.php')));
}
示例2: enqueue
/**
* Enqueue common scripts and styles.
*/
public function enqueue()
{
if (!$this->is_edit_screen()) {
return;
}
wp_enqueue_style('rwmb', RWMB_CSS_URL . 'style.css', array(), RWMB_VER);
if (is_rtl()) {
wp_enqueue_style('rwmb-rtl', RWMB_CSS_URL . 'style-rtl.css', array(), RWMB_VER);
}
// Load clone script conditionally
foreach ($this->fields as $field) {
if ($field['clone']) {
wp_enqueue_script('rwmb-clone', RWMB_JS_URL . 'clone.js', array('jquery-ui-sortable'), RWMB_VER, true);
break;
}
}
// Enqueue scripts and styles for fields
foreach ($this->fields as $field) {
RWMB_Field::call($field, 'admin_enqueue_scripts');
}
// Auto save
if ($this->meta_box['autosave']) {
wp_enqueue_script('rwmb-autosave', RWMB_JS_URL . 'autosave.js', array('jquery'), RWMB_VER, true);
}
/**
* Allow developers to enqueue more scripts and styles
* @param RW_Meta_Box $object Meta Box object
*/
do_action('rwmb_enqueue_scripts', $this);
}
示例3: display_header
/**
* Display install header.
*
* @since 2.5.0
* @package WordPress
* @subpackage Installer
*/
function display_header()
{
header('Content-Type: text/html; charset=utf-8');
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" <?php
language_attributes();
?>
>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php
_e('WordPress › Installation');
?>
</title>
<?php
wp_admin_css('install', true);
?>
</head>
<body class="wp-core-ui<?php
if (is_rtl()) {
echo ' rtl';
}
?>
">
<h1 id="logo"><a href="<?php
esc_attr_e('http://wordpress.org/');
?>
"><?php
_e('WordPress');
?>
</a></h1>
<?php
}
示例4: tc_set_header_hooks
/**
* Set all header hooks
* wp callback
* @return void
*
* @package Customizr
* @since Customizr 3.2.6
*/
function tc_set_header_hooks()
{
//html > head actions
add_action('__before_body', array($this, 'tc_head_display'));
//The WP favicon (introduced in WP 4.3) will be used in priority
add_action('wp_head', array($this, 'tc_favicon_display'));
//html > header actions
add_action('__before_main_wrapper', 'get_header');
//boolean filter to control the header's rendering
if (!apply_filters('tc_display_header', true)) {
return;
}
add_action('__header', array($this, 'tc_prepare_logo_title_display'), 10);
add_action('__header', array($this, 'tc_tagline_display'), 20, 1);
add_action('__header', array($this, 'tc_navbar_display'), 30);
//New menu view (since 3.2.0)
add_filter('tc_navbar_display', array($this, 'tc_new_menu_view'), 10, 2);
//body > header > navbar actions ordered by priority
// GY : switch order for RTL sites
if (is_rtl()) {
add_action('__navbar', array($this, 'tc_social_in_header'), 20, 2);
add_action('__navbar', array($this, 'tc_tagline_display'), 10, 1);
} else {
add_action('__navbar', array($this, 'tc_social_in_header'), 10, 2);
add_action('__navbar', array($this, 'tc_tagline_display'), 20, 1);
}
//add a 100% wide container just after the sticky header to reset margin top
if (1 == esc_attr(TC_utils::$inst->tc_opt('tc_sticky_header')) || TC___::$instance->tc_is_customizing()) {
add_action('__after_header', array($this, 'tc_reset_margin_top_after_sticky_header'), 0);
}
}
示例5: start_el
function start_el(&$output, $item, $depth = 0, $args = array(), $current_object_id = 0)
{
global $wp_query;
$indent = $depth > 0 ? str_repeat("\t", $depth) : '';
// code indent
// Passed classes
$classes = empty($item->classes) ? array() : (array) $item->classes;
$class_names = esc_attr(implode(' ', apply_filters('nav_menu_css_class', array_filter($classes), $item)));
// build html
$output .= $indent . '<li id="nav-menu-item-' . intval($item->ID) . '" class="' . esc_attr($class_names) . '">';
// link attributes
$attributes = !empty($item->attr_title) ? ' title="' . esc_attr($item->attr_title) . '"' : '';
$attributes .= !empty($item->target) ? ' target="' . esc_attr($item->target) . '"' : '';
$attributes .= !empty($item->xfn) ? ' rel="' . esc_attr($item->xfn) . '"' : '';
$attributes .= !empty($item->url) ? ' href="' . esc_attr($item->url) . '"' : '';
$attributes .= $args->has_children ? ' class="dropdown-toggle"' : '';
if (is_rtl()) {
$nav_arrow = 'fa-caret-left';
} else {
$nav_arrow = 'fa-caret-right';
}
if ($args->has_children) {
if ($depth > 0) {
$item_output = sprintf('%1$s<a%2$s>%3$s%4$s%5$s</a>%6$s', $args->before, $attributes, $args->link_before, apply_filters('the_title', $item->title . ' <i class="fa ' . $nav_arrow . '"></i>', $item->ID), $args->link_after, $args->after);
} else {
$item_output = sprintf('%1$s<a%2$s>%3$s%4$s%5$s</a>%6$s', $args->before, $attributes, $args->link_before, apply_filters('the_title', $item->title . ' <i class="fa fa-caret-down"></i>', $item->ID), $args->link_after, $args->after);
}
} else {
$item_output = sprintf('%1$s<a%2$s>%3$s%4$s%5$s</a>%6$s', $args->before, $attributes, $args->link_before, apply_filters('the_title', $item->title, $item->ID), $args->link_after, $args->after);
}
// build html
$output .= apply_filters('walker_nav_menu_start_el', $item_output, $item, $depth, $args);
}
示例6: compass_setup
/**
* Sets up theme defaults and registers support for various WordPress features.
*
* Note that this function is hooked into the after_setup_theme hook, which
* runs before the init hook. The init hook is too late for some features, such
* as indicating support for post thumbnails.
*
* @since 1.0.0
* @return void
*/
function compass_setup()
{
// http://themehybrid.com/docs/theme-layouts
add_theme_support('theme-layouts', array('1c' => __('1 Column Wide', 'compass'), '1c-narrow' => __('1 Column Narrow', 'compass'), '2c-l' => __('2 Columns: Content / Sidebar', 'compass'), '2c-r' => __('2 Columns: Sidebar / Content', 'compass')), array('default' => is_rtl() ? '2c-r' : '2c-l'));
// http://themehybrid.com/docs/hybrid_set_content_width
hybrid_set_content_width(1140);
// http://codex.wordpress.org/Automatic_Feed_Links
add_theme_support('automatic-feed-links');
// http://themehybrid.com/docs/hybrid-core-styles
add_theme_support('hybrid-core-styles', array('style', 'google-fonts'));
// https://github.com/FlagshipWP/flagship-library/wiki/Flagship-Site-Logo
add_theme_support('site-logo');
// https://developer.wordpress.org/themes/functionality/navigation-menus/
register_nav_menus(array('primary' => _x('Primary Menu', 'nav menu location', 'compass'), 'secondary' => _x('Secondary Menu', 'nav menu location', 'compass')));
// https://developer.wordpress.org/themes/functionality/post-formats/
add_theme_support('post-formats', array('aside', 'gallery', 'link', 'image', 'quote', 'status', 'video', 'audio', 'chat'));
// https://github.com/justintadlock/breadcrumb-trail
add_theme_support('breadcrumb-trail');
// https://github.com/justintadlock/get-the-image
add_theme_support('get-the-image');
// http://themehybrid.com/docs/template-hierarchy
add_theme_support('hybrid-core-template-hierarchy');
// https://github.com/FlagshipWP/flagship-library/wiki/Flagship-Author-Box
add_theme_support('flagship-author-box');
// https://github.com/FlagshipWP/flagship-library/wiki/Flagship-Footer-Widgets
add_theme_support('flagship-footer-widgets', 3);
}
示例7: setLanguageDirection
function setLanguageDirection()
{
// right to left language property
if (function_exists('is_rtl')) {
$this->_is_rtl = is_rtl();
}
}
示例8: nexus_pagination
function nexus_pagination()
{
$prev_arrow = is_rtl() ? '«' : '«';
$next_arrow = is_rtl() ? '»' : '»';
global $wp_query;
$total = $wp_query->max_num_pages;
$big = 999999999;
// need an unlikely integer
if ($total > 1) {
if (!($current_page = get_query_var('paged'))) {
$current_page = 1;
}
if (get_option('permalink_structure')) {
$format = 'page/%#%/';
} else {
$format = '&paged=%#%';
}
$pages = paginate_links(array('base' => str_replace($big, '%#%', esc_url(get_pagenum_link($big))), 'format' => $format, 'current' => max(1, get_query_var('paged')), 'total' => $total, 'mid_size' => 4, 'end_size' => 4, 'type' => 'array', 'prev_text' => $prev_arrow, 'next_text' => $next_arrow));
if (is_array($pages)) {
$paged = get_query_var('paged') == 0 ? 1 : get_query_var('paged');
echo '<div class="preview"><div class="cont text-center"><div class="pagination"><ul class="pagination">';
foreach ($pages as $page) {
echo "<li>{$page}</li>";
}
echo '</ul></div></div><div class="clear"> </div></div> ';
}
}
}
示例9: ratings_scripts
function ratings_scripts()
{
if (@file_exists(get_stylesheet_directory() . '/postratings-css.css')) {
wp_enqueue_style('wp-postratings', get_stylesheet_directory_uri() . '/postratings-css.css', false, WP_POSTRATINGS_VERSION, 'all');
} elseif (@file_exists(get_stylesheet_directory() . '/css/postratings-css.css')) {
wp_enqueue_style('wp-postratings', get_stylesheet_directory_uri() . '/css/postratings-css.css', false, WP_POSTRATINGS_VERSION, 'all');
} else {
wp_enqueue_style('wp-postratings', plugins_url('wp-postratings/css/postratings-css.css'), false, WP_POSTRATINGS_VERSION, 'all');
}
if (is_rtl()) {
if (@file_exists(get_stylesheet_directory() . '/postratings-css-rtl.css')) {
wp_enqueue_style('wp-postratings-rtl', get_stylesheet_directory_uri() . '/postratings-css-rtl.css', false, WP_POSTRATINGS_VERSION, 'all');
} elseif (@file_exists(get_stylesheet_directory() . '/css/postratings-css-rtl.css')) {
wp_enqueue_style('wp-postratings-rtl', get_stylesheet_directory_uri() . '/css/postratings-css-rtl.css', false, WP_POSTRATINGS_VERSION, 'all');
} else {
wp_enqueue_style('wp-postratings-rtl', plugins_url('wp-postratings/css/postratings-css-rtl.css'), false, WP_POSTRATINGS_VERSION, 'all');
}
}
$postratings_max = intval(get_option('postratings_max'));
$postratings_custom = intval(get_option('postratings_customrating'));
$postratings_ajax_style = get_option('postratings_ajax_style');
$postratings_javascript = '';
if ($postratings_custom) {
for ($i = 1; $i <= $postratings_max; $i++) {
$postratings_javascript .= 'var ratings_' . $i . '_mouseover_image=new Image();ratings_' . $i . '_mouseover_image.src=ratingsL10n.plugin_url+"/images/"+ratingsL10n.image+"/rating_' . $i . '_over."+ratingsL10n.image_ext;';
}
} else {
$postratings_javascript = 'var ratings_mouseover_image=new Image();ratings_mouseover_image.src=ratingsL10n.plugin_url+"/images/"+ratingsL10n.image+"/rating_over."+ratingsL10n.image_ext;';
}
wp_enqueue_script('wp-postratings', plugins_url('wp-postratings/js/postratings-js.js'), array('jquery'), WP_POSTRATINGS_VERSION, true);
wp_localize_script('wp-postratings', 'ratingsL10n', array('plugin_url' => plugins_url('wp-postratings'), 'ajax_url' => admin_url('admin-ajax.php'), 'text_wait' => __('Please rate only 1 item at a time.', 'wp-postratings'), 'image' => get_option('postratings_image'), 'image_ext' => RATINGS_IMG_EXT, 'max' => $postratings_max, 'show_loading' => intval($postratings_ajax_style['loading']), 'show_fading' => intval($postratings_ajax_style['fading']), 'custom' => $postratings_custom, 'l10n_print_after' => $postratings_javascript));
}
示例10: enqueue_script
/**
* Add chart scripts files + Creating Localize Objects
*
* @author Alimir
* @since 2.0
* @updated 2.3
* @return Void
*/
public function enqueue_script($hook)
{
$currentScreen = get_current_screen();
$get_option = get_option('wp_ulike_statistics_screen');
if ($currentScreen->id != $hook) {
return;
}
if (is_rtl()) {
wp_register_style('wp_ulike_stats_style', plugins_url('css/statistics-rtl.css', __FILE__));
} else {
wp_register_style('wp_ulike_stats_style', plugins_url('css/statistics.css', __FILE__));
}
//wp_enqueue_style
wp_enqueue_style('wp_ulike_stats_style');
wp_register_script('wp_ulike_chart', plugins_url('js/chart.min.js', __FILE__), array('jquery'), null, true);
wp_enqueue_script('wp_ulike_chart');
wp_register_script('wp_ulike_vmap', plugins_url('js/jquery.vmap.min.js', __FILE__), array('jquery'), null, true);
wp_enqueue_script('wp_ulike_vmap');
wp_register_script('wp_ulike_world', plugins_url('js/jquery.vmap.world.js', __FILE__), array('jquery'), null, true);
wp_enqueue_script('wp_ulike_world');
wp_register_script('wp_ulike_stats', plugins_url('js/statistics.js', __FILE__), array('jquery'), null, true);
wp_enqueue_script('wp_ulike_stats');
wp_localize_script('wp_ulike_stats', 'wp_ulike_statistics', array('posts_date_labels' => $this->posts_dataset('label'), 'comments_date_labels' => $this->comments_dataset('label'), 'activities_date_labels' => $this->activities_dataset('label'), 'topics_date_labels' => $this->topics_dataset('label'), 'posts_dataset' => $this->posts_dataset('dataset'), 'comments_dataset' => $this->comments_dataset('dataset'), 'activities_dataset' => $this->activities_dataset('dataset'), 'topics_dataset' => $this->topics_dataset('dataset'), 'data_map' => $get_option['likers_map'] == 1 ? $this->data_map() : null));
wp_enqueue_script('postbox');
}
示例11: get_gallery_images
function get_gallery_images($attr = array())
{
global $omnigallery, $SCFlickr, $post;
static $instance = 0;
$instance++;
$attr = array_merge(array('order' => 'ASC', 'orderby' => 'menu_order ID', 'id' => $post->ID, 'itemtag' => 'dl', 'icontag' => 'dt', 'captiontag' => 'dd', 'columns' => 3, 'size' => 'thumbnail', 'include' => '', 'exclude' => '', 'width' => '150', 'height' => '150'), $attr);
extract($attr);
$id = intval($id);
$f = $SCFlickr;
$recent = $f->people_getPublicPhotos(get_option('sc_username_flickr'), NULL, NULL, get_option('sc_piccount_flickr'), NULL);
$columns = intval($columns);
$itemwidth = $columns > 0 ? floor(100 / $columns) : 100;
$float = is_rtl() ? 'right' : 'left';
$selector = "sc_gallery_flickr-{$instance}";
$return = '';
$size_class = sanitize_html_class($size);
$return .= "\r\n\t\t<style type='text/css'>\r\n\t\t\t#{$selector} {\r\n\t\t\t\tmargin: auto;\r\n display: block\r\n\t\t\t}\r\n\t\t\t#{$selector}:after {\r\n width: 0;\r\n height: 0;\r\n clear: both;\r\n content: ' ';\r\n display: block;\r\n overflow: hidden;\r\n visibility: hidden;\r\n\t\t\t}\r\n\t\t\t#{$selector} .gallery-item {\r\n\t\t\t\tfloat: {$float};\r\n\t\t\t\tmargin-top: 10px;\r\n\t\t\t\ttext-align: center;\r\n\t\t\t\twidth: {$itemwidth}%;\r\n\t\t\t}\r\n\t\t\t#{$selector} img {\r\n\t\t\t\tborder: 2px solid #cfcfcf;\r\n\t\t\t}\r\n\t\t\t#{$selector} .gallery-caption {\r\n\t\t\t\tmargin-left: 0;\r\n\t\t\t}\r\n\t\t</style>";
$return .= "<div id='{$selector}' class='gallery galleryid-{$id} gallery-columns-{$columns} gallery-size-{$size_class}'>";
foreach ($recent['photos']['photo'] as $photo) {
$urlimg = $f->buildPhotoURL($photo, "small");
$urlimgori = $f->buildPhotoURL($photo, "large");
$return .= '
<dl class="gallery-item">
<dt class="gallery-icon">
<a href="' . $urlimgori . '" title="' . $photo['title'] . '" rel="lightbox-" target="_blank">
<img src="' . $omnigallery->plugin_url . '/includes/timthumb.php?src=' . $urlimg . '&w=' . $width . '&h=' . $height . '&zc=1&q=90" alt="Flickr Gallery" class="sc-image" width="' . $width . '" height="' . $height . '"/>
</a>
</dt>
</dl>';
}
$return .= '</div><!--/#gallery-->';
return $return;
}
示例12: stargazer_theme_setup
/**
* The theme setup function. This function sets up support for various WordPress and framework functionality.
*
* @since 1.0.0
* @access public
* @return void
*/
function stargazer_theme_setup()
{
/* Load files. */
require_once trailingslashit(get_template_directory()) . 'inc/stargazer.php';
require_once trailingslashit(get_template_directory()) . 'inc/customize.php';
/* Load widgets. */
add_theme_support('hybrid-core-widgets');
/* Theme layouts. */
add_theme_support('theme-layouts', array('1c' => __('1 Column Wide', 'stargazer'), '1c-narrow' => __('1 Column Narrow', 'stargazer'), '2c-l' => __('2 Columns: Content / Sidebar', 'stargazer'), '2c-r' => __('2 Columns: Sidebar / Content', 'stargazer')), array('default' => is_rtl() ? '2c-r' : '2c-l'));
/* Load stylesheets. */
add_theme_support('hybrid-core-styles', array('stargazer-fonts', 'one-five', 'gallery', 'stargazer-mediaelement', 'parent', 'style'));
/* Enable custom template hierarchy. */
add_theme_support('hybrid-core-template-hierarchy');
/* The best thumbnail/image script ever. */
add_theme_support('get-the-image');
/* Breadcrumbs. Yay! */
add_theme_support('breadcrumb-trail');
/* Pagination. */
add_theme_support('loop-pagination');
/* Nicer [gallery] shortcode implementation. */
add_theme_support('cleaner-gallery');
/* Better captions for themes to style. */
add_theme_support('cleaner-caption');
/* Automatically add feed links to <head>. */
add_theme_support('automatic-feed-links');
/* Whistles plugin. */
add_theme_support('whistles', array('styles' => true));
/* Post formats. */
add_theme_support('post-formats', array('aside', 'audio', 'chat', 'image', 'gallery', 'link', 'quote', 'status', 'video'));
/* Editor styles. */
add_editor_style(stargazer_get_editor_styles());
/* Handle content width for embeds and images. */
// Note: this is the largest size based on the theme's various layouts.
hybrid_set_content_width(1025);
}
示例13: wpsms_group_pointer
function wpsms_group_pointer()
{
?>
<script type="text/javascript">
jQuery(document).ready( function($) {
$('#wpsms_groups').pointer({
content: '<h3><?php
_e('Group', 'wp-sms');
?>
</h3><p><?php
_e('Outset Create group to better manage the subscribers.', 'wp-sms');
?>
</p>',
position: {
my: '<?php
echo is_rtl() ? 'right' : 'left';
?>
top',
at: 'center bottom',
offset: '-25 0'
},
/*close: function() {
setusernameSetting('wpsms_p1', '1');
}*/
}).pointer('open');
});
</script>
<?php
}
示例14: shrake_setup
/**
* Set up theme defaults and registers support for various WordPress features.
*
* @since 1.0.0
*/
function shrake_setup()
{
// Add support for translating strings in this theme.
// @link http://codex.wordpress.org/Function_Reference/load_theme_textdomain
load_theme_textdomain('shrake', get_template_directory() . '/languages');
// This theme styles the visual editor to resemble the theme style.
add_editor_style(array(is_rtl() ? 'assets/css/editor-style-rtl.css' : 'assets/css/editor-style.css', shrake_fonts_url(), shrake_fonts_icon_url()));
// Add default posts and comments RSS feed links to head.
add_theme_support('automatic-feed-links');
// Add support for the title tag.
// @link https://make.wordpress.org/core/2014/10/29/title-tags-in-4-1/
add_theme_support('title-tag');
// Add support for a logo.
add_theme_support('site-logo', array('size' => 'medium'));
// Add support for post thumbnails.
add_theme_support('post-thumbnails');
add_image_size('shrake-featured', 1280, 600, array('center', 'top'));
set_post_thumbnail_size(320, 9999);
// Add support for Custom Background functionality.
add_theme_support('custom-background', apply_filters('shrake_custom_background_args', array('default-color' => 'ffffff')));
// Add support for HTML5 markup.
add_theme_support('html5', array('caption', 'comment-form', 'comment-list', 'gallery', 'search-form'));
// Add support for Post Formats.
add_theme_support('post-formats', array('aside', 'link', 'quote'));
// Add support for page excerpts.
add_post_type_support('page', 'excerpt');
// Register default nav menus.
register_nav_menus(array('primary' => __('Primary Menu', 'shrake'), 'social' => __('Social Menu', 'shrake')));
// Register support for archive settings.
shrake_theme()->archive_content->add_support()->set_full_text_formats(array('aside', 'audio', 'link', 'quote', 'status'));
}
示例15: add_scripts
/**
* Enqueue scripts and styles
*/
function add_scripts()
{
if (empty($GLOBALS['posts']) || !is_array($GLOBALS['posts'])) {
return;
}
foreach ($GLOBALS['posts'] as $p) {
if (has_shortcode($p->post_content, 'recipe')) {
$this->scripts_and_style_included = true;
break;
}
}
if (!$this->scripts_and_style_included) {
return;
}
if (is_rtl()) {
wp_enqueue_style('jetpack-recipes-style', plugins_url('/css/rtl/recipes-rtl.css', __FILE__), array(), '20130919');
} else {
wp_enqueue_style('jetpack-recipes-style', plugins_url('/css/recipes.css', __FILE__), array(), '20130919');
}
wp_enqueue_script('jetpack-recipes-printthis', plugins_url('/js/recipes-printthis.js', __FILE__), array('jquery'), '20131230');
wp_enqueue_script('jetpack-recipes-js', plugins_url('/js/recipes.js', __FILE__), array('jquery', 'jetpack-recipes-printthis'), '20131230');
$title_var = wp_title('|', false, 'right');
$print_css_var = plugins_url('/css/recipes-print.css', __FILE__);
wp_localize_script('jetpack-recipes-js', 'jetpack_recipes_vars', array('pageTitle' => $title_var, 'loadCSS' => $print_css_var));
}