本文整理汇总了PHP中parallax_get_file函数的典型用法代码示例。如果您正苦于以下问题:PHP parallax_get_file函数的具体用法?PHP parallax_get_file怎么用?PHP parallax_get_file使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了parallax_get_file函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_theme_mod
<!-- =========================
SECTION: CLIENTS LOGOs
============================== -->
<?php
$parallax_one_logos = get_theme_mod('parallax_one_logos_content', json_encode(array(array("image_url" => parallax_get_file('/images/companies/8.png'), "link" => "#"), array("image_url" => parallax_get_file('/images/companies/9.png'), "link" => "#"), array("image_url" => parallax_get_file('/images/companies/7.png'), "link" => "#"))));
if (!empty($parallax_one_logos)) {
$parallax_one_logos_decoded = json_decode($parallax_one_logos);
echo '<div class="clients white-bg" id="clients"><div class="container">';
echo '<ul class="client-logos">';
foreach ($parallax_one_logos_decoded as $parallax_one_logo) {
if (!empty($parallax_one_logo->image_url)) {
echo '<li>';
if (!empty($parallax_one_logo->link)) {
echo '<a href="' . $parallax_one_logo->link . '" title="">';
echo '<img src="' . $parallax_one_logo->image_url . '" alt="">';
echo '</a>';
} else {
echo '<img src="' . esc_url($parallax_one_logo->image_url) . '" alt="">';
}
echo '</li>';
}
}
echo '</ul>';
echo '</div></div>';
}
?>
示例2: the_title_attribute
?>
" alt="<?php
the_title_attribute();
?>
">
</picture>
<?php
} else {
?>
<picture>
<source media="(max-width: 600px)" srcset=" <?php
echo parallax_get_file('/images/no-thumbnail-mobile.jpg');
?>
">
<img src="<?php
echo parallax_get_file('/images/no-thumbnail.jpg');
?>
" alt="<?php
the_title_attribute();
?>
">
</picture>
<?php
}
?>
</a>
<div class="post-date">
<span class="post-date-day"><?php
the_time('d');
?>
示例3: get_theme_mod
<!-- CONTAINER -->
<?php
$paralax_one_header_logo = get_theme_mod('paralax_one_header_logo', parallax_get_file('/images/logo-2.png'));
$parallax_one_header_title = get_theme_mod('parallax_one_header_title', esc_html__('Simple, Reliable and Awesome.', 'parallax-one'));
$parallax_one_header_subtitle = get_theme_mod('parallax_one_header_subtitle', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.');
$parallax_one_header_button_text = get_theme_mod('parallax_one_header_button_text', esc_html__('GET STARTED', 'parallax-one'));
$parallax_one_header_button_link = get_theme_mod('parallax_one_header_button_link', '#');
$parallax_one_enable_move = get_theme_mod('paralax_one_enable_move');
$parallax_one_first_layer = get_theme_mod('paralax_one_first_layer', parallax_get_file('/images/background1.png'));
$parallax_one_second_layer = get_theme_mod('paralax_one_second_layer', parallax_get_file('/images/background2.png'));
if (!empty($paralax_one_header_logo) || !empty($parallax_one_header_title) || !empty($parallax_one_header_subtitle) || !empty($parallax_one_header_button_text)) {
?>
<?php
if (!empty($parallax_one_enable_move) && $parallax_one_enable_move) {
echo '<ul id="parallax_move">';
if (empty($parallax_one_first_layer) && empty($parallax_one_second_layer)) {
$parallax_one_header_image2 = get_header_image();
echo '<li class="layer layer1" data-depth="0.10" style="background-image: url(' . $parallax_one_header_image2 . ');"></li>';
} else {
if (!empty($parallax_one_first_layer)) {
echo '<li class="layer layer1" data-depth="0.10" style="background-image: url(' . $parallax_one_first_layer . ');"></li>';
}
if (!empty($parallax_one_second_layer)) {
echo '<li class="layer layer2" data-depth="0.20" style="background-image: url(' . $parallax_one_second_layer . ');"></li>';
}
}
echo '</ul>';
}
?>
示例4: the_permalink
</div>
<div itemscope itemprop="image" class="icon-container white-text">
<a href="<?php
the_permalink();
?>
" title="<?php
the_title();
?>
">
<?php
if (has_post_thumbnail()) {
the_post_thumbnail('parallax-one-post-thumbnail-latest-news');
} else {
?>
<img src="<?php
echo parallax_get_file('/images/no-thumbnail-latest-news.jpg');
?>
" width="150" height="150" alt="<?php
the_title();
?>
">
<?php
}
?>
</a>
</div>
<div class="info">
<header class="entry-header">
<h1 itemprop="headline" class="entry-title">
<a href="<?php
the_permalink();
示例5: get_theme_mod
<!-- =========================
SECTION: BRIEF LEFT
============================== -->
<?php
$paralax_one_our_story_image = get_theme_mod('paralax_one_our_story_image', parallax_get_file('/images/about-us.png'));
$parallax_one_our_story_title = get_theme_mod('parallax_one_our_story_title', 'Our Story');
$parallax_one_our_story_text = get_theme_mod('parallax_one_our_story_text', esc_html__('Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.', 'parallax-one'));
if (!empty($paralax_one_our_story_image) || !empty($parallax_one_our_story_title) || !empty($parallax_one_our_story_content)) {
?>
<section class="brief text-left brief-design-one brief-left" id="story">
<div class="section-overlay-layer">
<div class="container">
<div class="row">
<!-- BRIEF IMAGE -->
<?php
if (!empty($paralax_one_our_story_image)) {
echo '<div class="col-md-6 brief-content-two"><div class="brief-image-right"><img src="' . esc_url($paralax_one_our_story_image) . '" alt=""></div></div>';
} elseif (isset($wp_customize)) {
echo '<div class="col-md-6 brief-content-two paralax_one_only_customizer"><img src="" alt=""><div class="brief-image-right"></div></div>';
}
?>
<!-- BRIEF HEADING -->
<div class="col-md-6 content-section brief-content-one">
<?php
if (!empty($parallax_one_our_story_title)) {
echo '<h2 class="text-left dark-text">' . esc_attr($parallax_one_our_story_title) . '</h2><div class="colored-line-left"></div>';
} elseif (isset($wp_customize)) {
echo '<h2 class="text-left dark-text paralax_one_only_customizer"></h2><div class="colored-line-left paralax_one_only_customizer"></div>';
}
?>
示例6: parallax_one_ie
function parallax_one_ie()
{
echo '<!--[if lt IE 9]>' . "\n";
echo '<script src="' . parallax_get_file('/js/html5shiv.min.js') . '"></script>' . "\n";
echo '<![endif]-->' . "\n";
}
示例7: parallax_one_customizer_script
function parallax_one_customizer_script()
{
wp_enqueue_script('parallax_one_customizer_script', parallax_get_file('/js/parallax_one_customizer.js'), array("jquery", "jquery-ui-draggable"), '', true);
wp_register_script('parallax_one_buttons', parallax_get_file('/js/parallax_one_buttons_control.js'), array("jquery"), '20120206', true);
wp_enqueue_script('parallax_one_buttons');
wp_localize_script('parallax_one_buttons', 'objectL10n', array('documentation' => esc_html__('Documentation', 'parallax-one'), 'support' => esc_html__('Support Forum', 'parallax-one')));
}
示例8: parallax_one_php_style
function parallax_one_php_style()
{
echo '<style type="text/css">';
$parallax_one_title_color = get_theme_mod('parallax_one_title_color');
if (!empty($parallax_one_title_color)) {
echo '.dark-text, .entry-header h1, #sidebar-secondary .widget-title { color: ' . $parallax_one_title_color . ' }';
}
$parallax_one_text_color = get_theme_mod('parallax_one_text_color');
if (!empty($parallax_one_text_color)) {
echo 'body, .entry-content p, .pirate_forms_thankyou_wrap p { color: ' . $parallax_one_text_color . '}';
}
$parallax_one_enable_move = get_theme_mod('paralax_one_enable_move');
$parallax_one_first_layer = get_theme_mod('paralax_one_first_layer', parallax_get_file('/images/background1.png'));
$parallax_one_second_layer = get_theme_mod('paralax_one_second_layer', parallax_get_file('/images/background2.png'));
if ((empty($parallax_one_enable_move) || !$parallax_one_enable_move) && 'posts' == get_option('show_on_front') && is_front_page()) {
$parallax_one_header_image = get_header_image();
if (!empty($parallax_one_header_image)) {
echo '.header{ background-image: url(' . parallax_one_make_protocol_relative_url($parallax_one_header_image) . ');}';
}
}
$parallax_one_bigtitle_background = get_theme_mod('parallax_one_bigtitle_background', 'rgba(0, 0, 0, 0.7)');
if (!empty($parallax_one_bigtitle_background)) {
echo '.overlay-layer-wrap{ background:' . $parallax_one_bigtitle_background . ';}';
}
echo '</style>';
}
示例9: get_header
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package llorix-one
*/
get_header();
?>
</div>
<!-- /END COLOR OVER IMAGE -->
</header>
<!-- /END HOME / HEADER -->
<?php
$parallax_one_blog_header_image = get_theme_mod('parallax_one_blog_header_image', parallax_get_file('/images/background-images/background-blog.jpg'));
$parallax_one_blog_header_title = get_theme_mod('parallax_one_blog_header_title', esc_html__('BLOG', 'llorix-one'));
$parallax_one_blog_header_subtitle = get_theme_mod('parallax_one_blog_header_subtitle', esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus quis risus augue. Cras at mollis eros. Sed porttitor quam eget aliquam mattis. Fusce leo nibh, ornare at volutpat ut, luctus dictum elit. Mauris non vehicula eros, ac lacinia lorem. Quisque fermentum purus ac scelerisque suscipit. Morbi et iaculis tellus. Proin ut urna ac purus suscipit iaculis. Aliquam erat volutpat. Donec at viverra magna. Fusce efficitur eros a nunc volutpat ultrices. Aenean mattis purus lectus, quis fermentum diam placerat in.', 'llorix-one'));
if (!empty($parallax_one_blog_header_image) || !empty($parallax_one_blog_header_title) || !empty($parallax_one_blog_header_subtitle)) {
if (!empty($parallax_one_blog_header_image)) {
echo '<div class="archive-top" style="background-image: url(' . $parallax_one_blog_header_image . ');">';
} else {
echo '<div class="archive-top">';
}
echo '<div class="section-overlay-layer">';
echo '<div class="container">';
if (!empty($parallax_one_blog_header_title)) {
echo '<p class="archive-top-big-title">' . $parallax_one_blog_header_title . '</p>';
echo '<p class="colored-line"></p>';
}
if (!empty($parallax_one_blog_header_subtitle)) {
示例10: parallax_one_customizer_script
function parallax_one_customizer_script()
{
wp_enqueue_script('parallax_one_customizer_script', parallax_get_file('/js/parallax_one_customizer.js'), array("jquery", "jquery-ui-draggable"), '1.0.0', true);
wp_localize_script('parallax_one_customizer_script', 'parallaxOneCustomizerObject', array('documentation' => esc_html__('Documentation', 'parallax-one'), 'support' => esc_html__('Support Forum', 'parallax-one'), 'pro' => __('Upgrade to PRO', 'parallax-one')));
}
示例11: json_decode
if (!empty($parallax_one_testimonials_content)) {
echo '<ul class="row no-gutters testimonials-wrap">';
$parallax_one_testimonials_content_decoded = json_decode($parallax_one_testimonials_content);
foreach ($parallax_one_testimonials_content_decoded as $parallax_one_testimonial) {
if (!empty($parallax_one_testimonial->image_url) || !empty($parallax_one_testimonial->title) || !empty($parallax_one_testimonial->subtitle) || !empty($parallax_one_testimonial->text)) {
?>
<!-- SINGLE FEEDBACK -->
<div class="testimonials-box">
<div class="feedback border-bottom-hover">
<div class="pic-container">
<div class="pic-container-inner">
<?php
if (!empty($parallax_one_testimonial->image_url)) {
echo '<img src="' . esc_url($parallax_one_testimonial->image_url) . '" alt="">';
} else {
$default_image = parallax_get_file('/images/clients/client-no-image.jpg');
echo '<img src="' . esc_url($default_image) . '" alt="">';
}
?>
</div>
</div>
<?php
if (!empty($parallax_one_testimonial->title) || !empty($parallax_one_testimonial->subtitle) || !empty($parallax_one_testimonial->text)) {
?>
<div class="feedback-text-wrap">
<?php
if (!empty($parallax_one_testimonial->title)) {
?>
<h5 class="colored-text"><?php
echo esc_attr($parallax_one_testimonial->title);
?>
示例12: parallax_one_php_style
function parallax_one_php_style()
{
echo '<style type="text/css">';
$parallax_one_title_color = get_theme_mod('parallax_one_title_color');
if (!empty($parallax_one_title_color)) {
echo '.dark-text { color: ' . $parallax_one_title_color . ' }';
}
$parallax_one_text_color = get_theme_mod('parallax_one_text_color');
if (!empty($parallax_one_text_color)) {
echo 'body{ color: ' . $parallax_one_text_color . '}';
}
$parallax_one_enable_move = get_theme_mod('paralax_one_enable_move');
$parallax_one_first_layer = get_theme_mod('paralax_one_first_layer', parallax_get_file('/images/background1.png'));
$parallax_one_second_layer = get_theme_mod('paralax_one_second_layer', parallax_get_file('/images/background2.png'));
if ((empty($parallax_one_enable_move) || !$parallax_one_enable_move) && is_front_page()) {
$parallax_one_header_image = get_header_image();
if (!empty($parallax_one_header_image)) {
echo '.header{ background-image: url(' . $parallax_one_header_image . ');}';
}
}
echo '</style>';
}
示例13: _e
<button title='<?php
_e('Toggle Menu', 'parallax-');
?>
' aria-controls='menu-main-menu' aria-expanded='false' type="button" class="navbar-toggle menu-toggle" id="menu-toggle" data-toggle="collapse" data-target="#menu-primary">
<span class="screen-reader-text"><?php
esc_html_e('Toggle navigation', 'llorix-one');
?>
</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<?php
$parallax_one = get_theme_mod('paralax_one_logo', parallax_get_file('/images/logo-nav.png'));
if (!empty($parallax_one)) {
echo '<a href="' . esc_url(home_url('/')) . '" class="navbar-brand" title="' . get_bloginfo('title') . '">';
echo '<img src="' . esc_url($parallax_one) . '" alt="' . get_bloginfo('title') . '">';
echo '</a>';
echo '<div class="header-logo-wrap text-header paralax_one_only_customizer">';
echo '<h1 itemprop="headline" id="site-title" class="site-title"><a href="' . esc_url(home_url('/')) . '" title="' . esc_attr(get_bloginfo('name', 'display')) . '" rel="home">' . get_bloginfo('name') . '</a></h1>';
echo '<p itemprop="description" id="site-description" class="site-description">' . get_bloginfo('description') . '</p>';
echo '</div>';
} else {
if (isset($wp_customize)) {
echo '<a href="' . esc_url(home_url('/')) . '" class="navbar-brand paralax_one_only_customizer" title="' . get_bloginfo('title') . '">';
echo '<img src="" alt="' . get_bloginfo('title') . '">';
echo '</a>';
}
echo '<div class="header-logo-wrap text-header">';
示例14: get_theme_mod
<!-- CONTAINER -->
<?php
$paralax_one_header_logo = get_theme_mod('paralax_one_header_logo', parallax_get_file('/images/logo-2.png'));
$parallax_one_header_title = get_theme_mod('parallax_one_header_title', 'Simple, Reliable and Awesome.');
$parallax_one_header_subtitle = get_theme_mod('parallax_one_header_subtitle', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.');
// $parallax_one_header_button_text = get_theme_mod('parallax_one_header_button_text','GET STARTED');
$parallax_one_header_button_link = get_theme_mod('parallax_one_header_button_link', '#');
if (!empty($paralax_one_header_logo) || !empty($parallax_one_header_title) || !empty($parallax_one_header_subtitle) || !empty($parallax_one_header_button_text)) {
?>
<div class="container overlay-layer" id="parallax_header">
<!-- ONLY LOGO ON HEADER -->
<?php
if (!empty($paralax_one_header_logo)) {
echo '<div class="only-logo"><div class="navbar"><div class="navbar-header"><img src="' . esc_url($paralax_one_header_logo) . '" alt=""></div></div></div>';
} elseif (isset($wp_customize)) {
echo '<div class="only-logo"><div class="navbar"><div class="navbar-header"><img src="" alt=""></div></div></div>';
}
?>
<!-- /END ONLY LOGO ON HEADER -->
<div class="row">
<div class="col-md-12">
<!-- HEADING AND BUTTONS -->
<?php
if (!empty($paralax_one_header_logo) || !empty($parallax_one_header_title) || !empty($parallax_one_header_subtitle) || !empty($parallax_one_header_button_text)) {
?>
<div class="intro-section">
<!-- WELCOM MESSAGE -->
<?php
示例15: json_decode
$parallax_one_team_decoded = json_decode($parallax_one_team_content);
foreach ($parallax_one_team_decoded as $parallax_one_team_member) {
if (!empty($parallax_one_team_member->image_url) || !empty($parallax_one_team_member->title) || !empty($parallax_one_team_member->subtitle)) {
?>
<div class="col-md-3 team-member-box">
<div class="team-member border-bottom-hover">
<div class="member-pic">
<?php
if (!empty($parallax_one_team_member->image_url)) {
if (!empty($parallax_one_team_member->title)) {
echo '<img src="' . esc_url($parallax_one_team_member->image_url) . '" alt="' . esc_attr($parallax_one_team_member->title) . '">';
} else {
echo '<img src="' . esc_url($parallax_one_team_member->image_url) . '" alt="' . esc_html__('Avatar', 'parallax-one') . '">';
}
} else {
$default_url = parallax_get_file('/images/team/default.png');
echo '<img src="' . $default_url . '" alt="' . esc_html__('Avatar', 'parallax-one') . '">';
}
?>
</div><!-- .member-pic -->
<?php
if (!empty($parallax_one_team_member->title) || !empty($parallax_one_team_member->subtitle)) {
?>
<div class="member-details">
<div class="member-details-inner">
<?php
if (!empty($parallax_one_team_member->title)) {
if (function_exists('icl_translate')) {
echo '<h5 class="colored-text">' . icl_translate('Team', $parallax_one_team_member->id . '_team_title', esc_attr($parallax_one_team_member->title)) . '</h5>';
} else {