当前位置: 首页>>代码示例>>PHP>>正文


PHP pll_e函数代码示例

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


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

示例1: the_title

>
		 	<header class="entry-header">
				<h1 class="fancy-title"><?php 
the_title();
?>
</h1>
			</header>
			<hr class="double-hr entry-header-hr"/>

			<div class="entry-content">

                <?php 
if (!$FilmRegister->visibleInFrontend(get_the_ID())) {
    ?>
                    <div class="alert alert-error"><?php 
    pll_e('Filmas nepaskelbtas, negaliojantis arba išregistruotas');
    ?>
</div>
                <?php 
}
?>

                <?php 
if ($FilmRegister->visibleInFrontend(get_the_ID()) || current_user_can('administrator') || current_user_can('semi_admin')) {
    ?>

                    <p class="ar"> <a href="#" class="js-print-btn" data-div="single-film-table-print-wrap"> <i class="icon-print"></i></a> </p>

                    <div id="single-film-table-print-wrap">
                        <table class="single-film-table film-print-table">
                            <?php 
开发者ID:uoyknaht,项目名称:kc,代码行数:31,代码来源:single-film.php

示例2: pll_e

<div class="contacts">
	<p><?php 
pll_e('1058, Rue des Plans 06510 CARROS');
?>
</p>
	<p><span><?php 
pll_e('Fax');
?>
:</span> 09 50 10 82 11</p>
	<div class="tel clearfix">
		<span><?php 
pll_e('Telephone');
?>
:</span>
		<ul>
			<li>+33 078 564 60 90</li>
			<li>+33 07 85 64 60 90</li>
		</ul>
	</div>
	<p><span>Email:</span> contact@buroarchdesign.com</p>
</div>
开发者ID:Boooober,项目名称:arch,代码行数:21,代码来源:contacts.php

示例3: pll_e

			</div>
			<div class="col">
				<lable for="name" class="lable"><?php 
pll_e('Your Email');
?>
</lable>
				<input class="form-input" name="femail" type="text" placeholder="<?php 
pll_e('Your Email');
?>
"/>
			</div>
			<div class="col">
				<lable for="name" class="lable"><?php 
pll_e('Your Phone');
?>
</lable>
				<input class="form-input" name="fphone" type="text" placeholder="<?php 
pll_e('Your Phone');
?>
"/>
			</div>
			<div class="col">
				<input type="submit" value="<?php 
pll_e('SEND');
?>
"/>
			</div>
		</div>
	</form>
	<div class="form-response"></div>
</div>
开发者ID:Boooober,项目名称:arch,代码行数:31,代码来源:contact-form.php

示例4: outputFilmsList

    /**
     * outputs [filtered] films list
     */
    function outputFilmsList($the_query)
    {
        // print_r($the_query);exit;
        global $staticVars;
        ob_start();
        ?>

       <?php 
        if ($the_query->post_count < 1) {
            ?>
            <div class="empty-lithfilm-output-list">
                <p><?php 
            pll_e('Pagal pasirinktus paieškos kriterijus filmų nerasta');
            ?>
</p>
            </div>
        <?php 
        } else {
            ?>

            <?php 
            if (!isset($_GET['do']) && $this->options[$this->optionSlugSeparateHomeFilmsByType] && get_the_ID() == $staticVars['lithuanianFilmsSearchPageId']) {
                // home landing page, need to show all posts separated by film type
                $output = array();
                while ($the_query->have_posts()) {
                    $the_query->the_post();
                    $postTaxonomies = wp_get_post_terms(get_the_ID(), $this->fields['type']['taxonomySlug']);
                    foreach ($postTaxonomies as $key2 => $val2) {
                        // print_r($val2);exit;
                        if (!isset($output[$val2->term_id])) {
                            // doing nice hack:
                            if (pll_current_language('slug') == 'en') {
                                $name = $val2->name . ' films';
                            } else {
                                $name = substr($val2->name, 0, -1) . 'ai filmai';
                            }
                            $output[$val2->term_id] = array('name' => $name, 'content' => '');
                        }
                        $output[$val2->term_id]['content'] .= $this->outputSingleFilmInList();
                    }
                }
                ksort($output);
                // print_r($output);exit;
                // 1.  Pakeisti titulinio puslapio filmų išdėstymo tvarką į:
                // a.  Vaidybiniai
                // b.  Dokumentiniai
                // c.  Animaciniai
                // d.  Eksperimentiniai
                // no other way but hardcode
                $output2 = array();
                if (pll_current_language('slug') == 'en') {
                    $sortedIds = array(130, 129, 128, 135);
                } else {
                    $sortedIds = array(40, 41, 42, 134);
                }
                foreach ($sortedIds as $val) {
                    $output2[] = $output[$val];
                    unset($output[$val]);
                }
                // if remains types unmentioned in the sorted order
                if (!empty($output)) {
                    foreach ($output as $val) {
                        $output2[] = $val;
                    }
                }
                foreach ($output2 as $key => $val) {
                    ?>
                    <h2 class="lithfilm-type-heading"><?php 
                    echo $val['name'];
                    ?>
</h2>
                    <ul class="lithfilm-list-wrap clearfix">
                        <?php 
                    echo $val['content'];
                    ?>
                    </ul>
                <?php 
                }
            } else {
                ?>

                <div class="lith-film-list-header">
                    <p><?php 
                echo pll__('Rasta filmų') . ': ' . $the_query->post_count;
                ?>
</p>
                </div>

                <ul class="lithfilm-list-wrap clearfix">
                    <?php 
                //print_r($the_query);exit;
                ?>
                <?php 
                while ($the_query->have_posts()) {
                    $the_query->the_post();
                    echo $this->outputSingleFilmInList();
                }
//.........这里部分代码省略.........
开发者ID:uoyknaht,项目名称:kc,代码行数:101,代码来源:lkc_lithuanian_films.php

示例5: pll__

echo pll__('Full name');
?>
</lable>
	</div>
	<div class="input-row">
		<input class="form-input" name="fphone" type="text" placeholder="<?php 
echo mb_strtoupper(pll__('Phone'));
?>
"/>
		<lable for="phone" class="lable"><?php 
echo pll__('Phone');
?>
</lable>
	</div>
	<div class="input-row">
		<input class="form-input" name="femail" type="text" placeholder="<?php 
echo mb_strtoupper(pll__('Email'));
?>
"/>
		<lable for="email" class="lable"><?php 
echo pll__('Email');
?>
</lable>
	</div>

	<button class="form-submit"><?php 
pll_e('Send');
?>
</button>

</form>
开发者ID:Boooober,项目名称:reef,代码行数:31,代码来源:reserve-form.php

示例6: pll_e

    ?>
</h1>

					</article>
					<!-- /article -->

<?php 
}
?>
			
				</div>
				<div class="row">
					<div class="col-8 pull-center text-center">
						<div class="konkurs-individual-apliciraj">
							<p><?php 
pll_e('podeli');
?>
</p>
							<div class="social social-konkurs-individual-bottom">
								<ul class="clearfix">
									<li><a class="facebook-share" href="#" data-name="<?php 
echo $title;
?>
" data-image="<?php 
echo $image;
?>
" data-caption="Dev9t - stvaraj dalje" data-description="<?php 
echo $excerpt;
?>
" data-link="<?php 
echo $link;
开发者ID:Mihailo23,项目名称:devet,代码行数:31,代码来源:single-vesti.php

示例7: tribe_get_events_link

	<!-- <a href="<?php 
echo tribe_get_events_link();
?>
" class="btn-block fr"><?php 
pll_e('Grįžti į renginių kalendorių');
?>
</a> -->
	<?php 
global $staticVars;
?>
	<a href="<?php 
echo $staticVars['eventsUrl'];
?>
" class="btn-block fr"><?php 
pll_e('Grįžti į renginių kalendorių');
?>
</a>

<!-- 		<div class="navlink tribe-previous"><?php 
tribe_previous_event_link();
?>
</div>
	<div class="navlink tribe-next"><?php 
tribe_next_event_link();
?>
</div> -->

</div>
	
开发者ID:uoyknaht,项目名称:kc,代码行数:28,代码来源:single.php

示例8: esc_url

                <div class="project-nav-icon prev-icon"></div>
            </a>
        <?php 
}
?>

        <?php 
if ($next_link) {
    ?>
            <a href="<?php 
    echo esc_url($next_link);
    ?>
" class="next-project js-single-ajax" data-project="<?php 
    echo $next_id;
    ?>
">
                <div class="project-nav-icon next-icon"></div>
                <span><?php 
    pll_e('Next project');
    ?>
</span>
            </a>
        <?php 
}
?>

        <?php 
get_template_part('parts/soc-icons');
?>
    </div>
</footer>
开发者ID:Boooober,项目名称:arch,代码行数:31,代码来源:project-page.php

示例9: shortcodeMovie

    function shortcodeMovie($atts, $content = null)
    {
        if (current_user_can('see_education_resource')) {
            extract(shortcode_atts(array("width" => '520', "height" => '320'), $atts));
            global $post;
            // $education = new Education();
            $current_user = wp_get_current_user();
            $user_id = $current_user->ID;
            $type = 'movie';
            $args = array('meta_key' => '_education_movie', 'meta_value' => 1, 'post_type' => 'attachment', 'orderby' => 'menu_order', 'order' => 'ASC', 'post_parent' => $post->ID);
            $image = get_posts($args);
            if ($image == null) {
                $output = current_user_can('manage_options') ? '<p>Neparinktas joks filmo paveikslėlis</p>' : '';
            } else {
                if (count($image) > 1) {
                    $output = current_user_can('manage_options') ? '<p>Filmui parinktas daugiau nei vienas paveiksėlis</p>' : '';
                } else {
                    $image = $image[0];
                    $resource_id = $image->ID;
                    $movie_path = get_post_meta($resource_id, '_education_movie_path', true);
                    // echo $this->movie_dir . $movie_path;
                    if (empty($movie_path)) {
                        $output = current_user_can('manage_options') ? '<p>Nenurodytas filmo failo pavadinimas</p>' : '';
                    } else {
                        if (!file_exists($this->movie_dir_path . $movie_path)) {
                            $output = current_user_can('manage_options') ? '<p>Pateikta nuoroda iki filmo failo klaidinga. Filmas nerastas</p>' : '';
                        } else {
                            ob_start();
                            $timesRemain = $this->getTimesRemainToDownload($resource_id, $user_id, 'movie');
                            ?>

    						<form method="post" action="<?php 
                            echo $_SERVER['REQUEST_URI'];
                            ?>
">
    							<div id="movie-frame">

    								<?php 
                            if (isset($_POST['movie_trigger']) && $timesRemain > 0) {
                                $this->incrementStats($resource_id, $user_id, $type);
                                $timesRemain--;
                                ?>
    									<video id="movie-frame-video" src="<?php 
                                echo $this->movie_dir_url . $movie_path;
                                ?>
" width="<?php 
                                echo $width;
                                ?>
" height="<?php 
                                echo $height;
                                ?>
"></video>

    									<script type="text/javascript">
                                    <!--//--><![CDATA[//><!--  
                                    // jQuery(document).ready(function(){
                                    	var frame = jQuery('#movie-frame-video');

                                                                                
                                        frame.mediaelementplayer({
                                            /*@cc_on
                                            @if (@_jscript_version == 9)
                                            @end
                                            @*/
                                                        // mode: 'shim',
                                    		success: function(mediaElement, domObject) {
                                    			mediaElement.play();
                                    		}                             
                                    	});
                                    	var newScrollTop = frame.offset().top + (frame.height()/2) - (jQuery(window).height()/2);
                                    	jQuery('html, body').animate({ scrollTop : newScrollTop }, 500);
                                    // })                     
                                    //--><!]]>
                                    </script>                 
                                    <?php 
                            } else {
                                if (isset($_POST['movie_trigger'])) {
                                    // can happen if refreshed page when watching movie last allowed time
                                    ?>
                                    <div class="alert alert-error"><?php 
                                    pll_e('Jūs jau išnaudojote peržiūrų limitą');
                                    ?>
</div>
                            <?php 
                                } else {
                                    // no $_POST, show image with button to trigger movie view
                                    // the_post_thumbnail($post->ID, 'medium-cropped');
                                    echo wp_get_attachment_image($resource_id, 'medium');
                                    // echo wp_get_attachment_image($resource_id, array(100, 300));
                                    if ($timesRemain > 0) {
                                        ?>
                            	<button type="submit" id="movie-trigger" name="movie_trigger">
                            		<span class="a"><?php 
                                        pll_e('Žiūrėti filmą');
                                        ?>
</span>
                            	</button>
                            	<?php 
                                    } else {
                                        $onclick = 'alert(&quot;' . pll__('Jūs jau išnaudojote peržiūrų limitą') . '&quot;); return false;';
//.........这里部分代码省略.........
开发者ID:uoyknaht,项目名称:kc,代码行数:101,代码来源:education.class.php

示例10: pll_e

<div class="col-right sponsors-frontpage">

<h3><?php 
pll_e('EVENT_TIME');
?>
 <br /> <?php 
pll_e('VENUE_LOCATION');
?>
</h3>
    <div class="separator"></div>
    <?php 
echo do_shortcode('[sponsors]');
?>
    <div class="separator"></div>
    <?php 
echo do_shortcode('[partners]');
?>
    <div class="separator"></div>
    <?php 
echo do_shortcode('[transport]');
?>
</div>
开发者ID:user890104,项目名称:initfest,代码行数:22,代码来源:sidebar.php

示例11: kcsite_nice_pagination

}
?>

		<?php 
// kcsite_nice_pagination($the_query->max_num_pages);
/*
 * for news page we need only 3 paged pages, older can be reached through archive
 */
$max = $the_query->max_num_pages > 3 ? 3 : $the_query->max_num_pages;
kcsite_nice_pagination($max);
?>
		<div class="clearfix newsarchive-btn-wrap">
			<a href="<?php 
echo $staticVars['newsArchiveUrl'];
?>
" class="btn-block fr"><?php 
pll_e('Naujienų archyvas');
?>
</a>
		</div>
		<?php 
wp_reset_query();
wp_reset_postdata();
?>

	</div><!-- .page-content -->

</div>

<?php 
get_footer();
开发者ID:uoyknaht,项目名称:kc,代码行数:31,代码来源:news.php

示例12: get_header

/**
 * The Template for displaying all single posts.
 *
 */
get_header();
?>

<div class="content-single">

	<div class="page-content">

		<?php 
global $post;
if ($post->post_type == 'education-resource' && !current_user_can('see_education_resource')) {
    ?>
			<div class="alert alert-error"><?php 
    pll_e('Jūs neturite teisės matyti šios informacijos');
    ?>
</div>
		<?php 
} else {
    the_post();
    get_template_part('content', 'single');
}
?>
	</div><!-- .page-content -->
</div>

<?php 
get_footer();
开发者ID:uoyknaht,项目名称:kc,代码行数:30,代码来源:single.php

示例13: get_header

/**
 * The template for displaying Search Results pages.
 *
 * @package WordPress
 * @subpackage Twenty_Eleven
 * @since Twenty Eleven 1.0
 */
get_header();
?>

<div class="content-search">

	<header class="page-header">
		<h1 class="page-title"><?php 
pll_e('Paieškos rezultatai raktažodžiams');
?>
:</h1>
		<p class="search-query"> <?php 
echo get_search_query();
?>
</p>
	</header>

	<div class="page-content">
	<?php 
if (have_posts()) {
    ?>

		<?php 
    while (have_posts()) {
开发者ID:uoyknaht,项目名称:kc,代码行数:30,代码来源:search.php

示例14: esc_url

/**
 * The template for displaying search forms in Twenty Eleven
 *
 * @package WordPress
 * @subpackage Twenty_Eleven
 * @since Twenty Eleven 1.0
 */
?>

<form method="get" action="<?php 
echo esc_url(home_url('/'));
?>
" class="search-form clearfix">
	<input type="text" name="s" onfocus="if(this.value=='<?php 
pll_e('Įveskite žodį ar frazę');
?>
') this.value='';" onblur="if(this.value=='') this.value='<?php 
pll_e('Įveskite žodį ar frazę');
?>
';" value="<?php 
pll_e('Įveskite žodį ar frazę');
?>
" class="search-form-text" /> 	
	<input type="submit" name="submit" class="search-form-submit" style="overflow: hidden" value="<?php 
pll_e('Rasti');
?>
" />
	<i class="icon-glass"></i><br><br>
<a style="color: #FFF; display: inline-block; text-transform: uppercase; font-size: 8.5pt; margin-top: 4px;" href="/vartotoju-sistema/">Vartotojų sistema</a>
</form>
开发者ID:uoyknaht,项目名称:kc,代码行数:30,代码来源:searchform.php

示例15: shortcodeFilmRegisterSearch

    /**
     * Main plugin function. Outputs film search and listing view
     */
    function shortcodeFilmRegisterSearch($atts, $content = null)
    {
        wp_enqueue_style('jquery-ui', $this->pluginUrl . '/vendors/jquery-ui.custom/css/smoothness/jquery-ui.custom.min.css');
        wp_enqueue_script('jquery-ui', $this->pluginUrl . '/vendors/jquery-ui.custom/js/jquery-ui.custom.min.js', array('jquery'), '1.0', true);
        wp_enqueue_script('jquery-ui-datepicker-lt', $this->pluginUrl . '/vendors/jquery-ui.custom/js/jquery.ui.datepicker-lt.js', array('jquery-ui'), '1.0', true);
        wp_enqueue_script('lkc-film-register-frontend', $this->pluginUrl . '/assets/js/frontend.js', array('jquery-ui'), '1.1', true);
        ob_start();
        ?>

        <div class="film-register-search-form-wrap">
          <hr class="single-hr"/>
          <h2 class="fancy-title"> <?php 
        pll_e('Paieškos forma');
        ?>
 </h2>

          <form method="get" action="<?php 
        echo $_SERVER['REQUEST_URI'];
        ?>
" class="film-register-search-form clearfix">
            <input type="hidden" name="do" value="search"/>   
            
            <table class="no-border">

              <?php 
        $shownFields = array();
        foreach ($this->fields as $key => $val) {
            if ($val['searchInFrontEnd'] == true) {
                ?>
                <tr>
                  <td class="first"><label>
                    <?php 
                $label = isset($val['labelFirst']) ? $val['labelFirst'] : $val['label'];
                echo $label;
                ?>
                  </label></td>
                  <td class="second">
                    <?php 
                $options = array();
                $options['name'] = $key;
                echo $this->sihf_output($options);
                ?>
                  </td>
                </tr>
                <?php 
                $shownFields[] = $key;
            }
        }
        // additional row - merging shower and first_record_producer as applier ("paraiskos teikejas"):
        if (isset($this->fields['applier'])) {
            $key = 'applier';
            $val = $this->fields[$key];
            $shownFields[] = $key;
            ?>
                <tr>
                  <td class="first"><label>
                    <?php 
            $label = isset($val['labelFirst']) ? $val['labelFirst'] : $val['label'];
            echo $label;
            ?>
                  </label></td>
                  <td class="second">
                    <?php 
            $options = array();
            $options['name'] = $key;
            echo $this->sihf_output($options);
            ?>
                  </td>
                </tr>

            <?php 
        }
        // show dynamically added options. Doing it here, so they appear in the bottom, not among for all users visible fields
        $currentDynamicFields = array();
        foreach ($this->fields as $key => $val) {
            if (!in_array($key, $shownFields) && ($val['searchHandleType'] != 'between_related_with_other_field' || $val['searchHandleType'] == 'between_related_with_other_field' && $val['searchRelatedFieldFirst'] == true)) {
                if ($val['searchInFrontEnd'] == false || current_user_can('administrator') || current_user_can('semi_admin')) {
                    if (isset($_GET[$key]) && !empty($_GET[$key]) || isset($_GET[$key . '_from']) && !empty($_GET[$key . '_from']) || isset($_GET[$key . '_to']) && !empty($_GET[$key . '_to'])) {
                        $currentDynamicFields[] = $key;
                        ?>

                    <tr>
                      <td class="first"><label>
                        <?php 
                        $label = isset($val['labelFirst']) ? $val['labelFirst'] : $val['label'];
                        echo $label;
                        ?>
                      </label></td>
                      <td class="second">
                        <?php 
                        $options = array();
                        $options['name'] = $key;
                        echo $this->sihf_output($options);
                        ?>
                        <?php 
                        echo $this->getHtmlRemoveRowIcon();
                        ?>
//.........这里部分代码省略.........
开发者ID:uoyknaht,项目名称:kc,代码行数:101,代码来源:lkc_film_register.php


注:本文中的pll_e函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。