當前位置: 首頁>>代碼示例>>PHP>>正文


PHP parallax_get_file函數代碼示例

本文整理匯總了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>';
}
?>

開發者ID:joysiriban,項目名稱:events,代碼行數:26,代碼來源:parallax_one_logos_section.php

示例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');
?>
開發者ID:liuminhan,項目名稱:wordpress,代碼行數:31,代碼來源:content-search.php

示例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>';
    }
    ?>
開發者ID:web-way,項目名稱:cabinetmagnetiseur,代碼行數:30,代碼來源:parallax_one_header_section.php

示例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();
開發者ID:konsultanblog,項目名稱:tagamon,代碼行數:31,代碼來源:parallax_one_latest_news_section.php

示例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>';
    }
    ?>
開發者ID:tsw38,項目名稱:wordpress,代碼行數:31,代碼來源:parallax_one_our_story_section.php

示例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";
}
開發者ID:tsw38,項目名稱:wordpress,代碼行數:6,代碼來源:functions.php

示例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')));
}
開發者ID:joysiriban,項目名稱:events,代碼行數:7,代碼來源:customizer.php

示例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>';
}
開發者ID:vanlight,項目名稱:wp,代碼行數:26,代碼來源:functions.php

示例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)) {
開發者ID:LdyNailih,項目名稱:RespaldoServidor,代碼行數:31,代碼來源:home.php

示例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')));
}
開發者ID:vanlight,項目名稱:wp,代碼行數:5,代碼來源:customizer.php

示例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);
                        ?>
開發者ID:joysiriban,項目名稱:events,代碼行數:31,代碼來源:parallax_one_happy_customers_section.php

示例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>';
}
開發者ID:LdyNailih,項目名稱:RespaldoServidor,代碼行數:22,代碼來源:functions.php

示例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">';
開發者ID:LdyNailih,項目名稱:RespaldoServidor,代碼行數:30,代碼來源:header.php

示例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 
開發者ID:joysiriban,項目名稱:events,代碼行數:31,代碼來源:parallax_one_header_section.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 {
開發者ID:liuminhan,項目名稱:wordpress,代碼行數:31,代碼來源:parallax_one_our_team_section.php


注:本文中的parallax_get_file函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。