示例#1
0
>
		 	<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 
示例#2
0
<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>
示例#3
0
			</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>
示例#4
0
    /**
     * 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();
                }
                ?>
                </ul>
            <?php 
            }
            ?>



        <?php 
        }
        ?>

        <?php 
        //kcsite_nice_pagination($the_query->max_num_pages);
        ?>

        <?php 
        $output = ob_get_clean();
        return $output;
    }
示例#5
0
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>
示例#6
0
    ?>
</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;
示例#7
0
文件: single.php 项目: uoyknaht/kc
	<!-- <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>
	
示例#8
0
                <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>
示例#9
0
    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;';
                                        ?>
                            		<div id="movie-trigger" onclick="<?php 
                                        echo $onclick;
                                        ?>
">
                            			<span class="a"><?php 
                                        pll_e('Žiūrėti filmą');
                                        ?>
</span>
                            		</div>
                            		<?php 
                                    }
                                    ?>

                            		<?php 
                                }
                            }
                            ?>
                            	</div>
                                <?php 
                            // IE7 and IE8 starts showing film only when it is fully loaded. There is no such problem if testing locally
                            ?>
                                <?php 
                            if (isset($_POST['movie_trigger']) && $timesRemain > 0) {
                                ?>
                                <!--[if lte IE 8]>
                                    <p style="font-size: 11px; color: #999; text-align: center; padding-bottom: 0;"><?php 
                                pll_e('Filmas bus pradėtas rodyti, kai įsikels į video grotuvą. Jei galite, prašome naudotis kita interneto naršykle');
                                ?>
</p>
                                <![endif]-->
                                <?php 
                            }
                            ?>
                                <p class="times-remain-under">(<?php 
                            pll_e('liko peržiūrų');
                            ?>
: <?php 
                            echo $timesRemain;
                            ?>
)</p>
                            </form>

                            <?php 
                            $output = ob_get_contents();
                            ob_end_clean();
                        }
                    }
                }
            }
            return do_shortcode($output);
        }
    }
示例#10
0
<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>
示例#11
0
文件: news.php 项目: uoyknaht/kc
}
?>

		<?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();
示例#12
0
文件: single.php 项目: uoyknaht/kc
/**
 * 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();
示例#13
0
文件: search.php 项目: uoyknaht/kc
/**
 * 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()) {
示例#14
0
/**
 * 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>
示例#15
0
    /**
     * 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();
                        ?>
                      </td>
                    </tr>
                  <?php 
                    }
                }
            }
        }
        ?>

              <?php 
        if (current_user_can('administrator') || current_user_can('semi_admin')) {
            ?>
                <tr id="dynamic-search-fields-add-wrap">
                  <td class="first">Pridėkite dar vieną kriterijų</td>
                  <td class="second">
                    <select>
                      <option value="0"><?php 
            echo pll_e('Pasirinkite');
            ?>
</option>
                      <?php 
            foreach ($this->fields as $key => $val) {
                if ($val['searchInFrontEnd'] == false) {
                    ?>
                          <option value="<?php 
                    echo $key;
                    ?>
" data-name="<?php 
                    echo $key;
                    ?>
" <?php 
                    if (in_array($key, $currentDynamicFields)) {
                        echo 'disabled="disabled"';
                    }
                    ?>
><?php 
                    echo $val['label'];
                    ?>
</option>
                          <?php 
                }
            }
            ?>
                    </select>
                    <a href="#" class="btn-block"><?php 
            echo pll_e('Pridėti');
            ?>
</a>
                  </td>
                </tr>
              <?php 
        }
        ?>

            </table>

            <input type="submit" class="" value="<?php 
        pll_e('Ieškoti');
        ?>
" />
          
            <br>
            <br>

            <?php 
        // http://www.wpbeginner.com/wp-tutorials/how-to-create-advanced-search-form-in-wordpress-for-custom-post-types/
        // http://scribu.net/wordpress/advanced-metadata-queries.html
        if (isset($_GET['do']) && $_GET['do'] == 'search') {
            $paged = get_query_var('paged') ? get_query_var('paged') : 1;
            $args = array('post_type' => $this->cptSlug, 'posts_per_page' => 20, 'paged' => $paged, 'offset' => ($paged - 1) * 20, 'numberposts' => -1);
            if (isset($_GET['show_amount'])) {
                $args['posts_per_page'] = $_GET['show_amount'];
            }
            if (isset($_GET['orderby']) && $_GET['orderby'] == 'title') {
                $args['orderby'] = 'title';
            } else {
                if (isset($_GET['orderby']) && $_GET['orderby'] != 'title' && isset($this->fields[$_GET['orderby']])) {
                    $key = $_GET['orderby'];
                    if ($this->fields[$key]['metaType'] == 'meta') {
                        $args['orderby'] = 'meta_value';
                        $args['meta_key'] = '_lkc_film_' . $_GET['orderby'];
                    } else {
                        if ($this->fields[$key]['metaType'] == 'taxonomy') {
                        }
                    }
                } else {
                    // default ordering
                    $args['orderby'] = 'meta_value';
                    $args['meta_key'] = '_lkc_film_identity_code';
                }
            }
            if (isset($_GET['order']) && strtoupper($_GET['order'] == 'DESC')) {
                $args['order'] = 'DESC';
            } else {
                $args['order'] = 'ASC';
            }
            foreach ($this->fields as $key => $val) {
                if ($val['searchInFrontEnd'] == true || 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'])) {
                        if ($val['searchHandleType'] == 's') {
                            $args['s'] = $_GET['title'];
                            // handle additionaly added search row - applier   // if any other such fields is going to be added, wpuld write separate method
                        } elseif ($val['searchHandleType'] == 'metaQueryLike' && $key == 'applier') {
                            $args['meta_query']['relation'] = 'OR';
                            $args['meta_query'][] = array('key' => '_lkc_film_shower', 'value' => $_GET[$key], 'compare' => 'LIKE');
                            $args['meta_query'][] = array('key' => '_lkc_film_first_record_producer', 'value' => $_GET[$key], 'compare' => 'LIKE');
                        } elseif ($val['searchHandleType'] == 'metaQueryLike') {
                            $args['meta_query'][] = array('key' => '_lkc_film_' . $key, 'value' => $_GET[$key], 'compare' => 'LIKE');
                        } elseif ($val['searchHandleType'] == 'metaQueryEqual') {
                            $args['meta_query'][] = array('key' => '_lkc_film_' . $key, 'value' => $_GET[$key]);
                        } elseif ($val['searchHandleType'] == 'metaQueryInArray') {
                            // multiple select
                            $args['meta_query'][] = array('key' => '_lkc_film_' . $key, 'value' => $_GET[$key], 'compare' => 'LIKE');
                        } elseif ($val['searchHandleType'] == 'taxonomy') {
                            $args[$val['taxonomySlug']] = $_GET[$key];
                        } elseif ($val['searchHandleType'] == 'between') {
                            if (isset($_GET[$key . '_from']) && !empty($_GET[$key . '_from'])) {
                                $args['meta_query'][] = array('key' => '_lkc_film_' . $key, 'value' => $_GET[$key . '_from'], 'compare' => '>=');
                            }
                            if (isset($_GET[$key . '_to']) && !empty($_GET[$key . '_to'])) {
                                $args['meta_query'][] = array('key' => '_lkc_film_' . $key, 'value' => $_GET[$key . '_to'], 'compare' => '<=');
                            }
                        } elseif ($val['searchHandleType'] == 'between_related_with_other_field') {
                            if ($val['searchRelatedFieldFirst'] == true) {
                                $compare = '>=';
                            } else {
                                $compare = '<=';
                            }
                            $args['meta_query'][] = array('key' => '_lkc_film_' . $key, 'value' => $_GET[$key], 'compare' => $compare);
                        }
                    }
                }
            }
            // print_r($args);exit;
            $the_query = new WP_Query($args);
            // $args2 = $args;
            // $args2['posts_per_page'] = -1;
            // unset($args2['offset']);
            // unset($args2['paged']);
            // $the_query2 = new WP_Query( $args2 );
            // print_r($the_query2);exit;
            // set ordering params for view display
            if (isset($_GET['order']) && strtoupper($_GET['order'] == 'DESC')) {
                $orderAlt = 'ASC';
                $orderAltTitle = pll__('Rikiuoti didėjimo tvarka');
                $orderIcon = 'desc';
            } else {
                $orderAlt = 'DESC';
                $orderAltTitle = pll__('Rikiuoti mažėjimo tvarka');
                $orderIcon = 'asc';
            }
            $listTableFields = $this->data->getListTableFields();
            ?>

              <hr class="single-hr"/>
              <div class="film-register-search-results-header clearfix">
                <h2 class="fancy-title">
                    <?php 
            pll_e('Paieškos rezultatai');
            ?>
                    <?php 
            /*if($the_query2) { ?>
                  <span class="film-count">(<?php echo $the_query2->post_count;?>)</span>
              <?php }*/
            ?>
                </h2>

                <?php 
            if ($the_query && $the_query->post_count > 0) {
                ?>
                    <div class="print-wrap">
                        <a href="#" class="js-print-btn" data-div="film-list-print-wrap"> <i class="icon-print"></i></a>
                    </div>
                <?php 
            }
            ?>
                
                <?php 
            if ($the_query && $the_query->post_count > 1) {
                ?>

                    <div class="show-amount-wrap">
                        <span><?php 
                pll_e('rodyti');
                ?>
</span>
                        <select name="show_amount">
                          <?php 
                $amounts = array(20 => 20, 50 => 50, 100 => 100, -1 => pll__('visus'));
                foreach ($amounts as $key => $val) {
                    ?>
                          <option value="<?php 
                    echo $key;
                    ?>
"<?php 
                    if ($_GET['show_amount'] == $key || !isset($_GET['show_amount']) && $key == 20) {
                        echo 'selected="selected"';
                    }
                    ?>
><?php 
                    echo $val;
                    ?>
</option>
                          <?php 
                }
                ?>
                      </select>
                    </div>

                    <div class="orderby-wrap">
                        <span><?php 
                pll_e('rikiuoti pagal');
                ?>
</span>
                        <select name="orderby" class="orderby">
                            <?php 
                foreach ($listTableFields as $key => $val) {
                    if ($val['metaType'] != 'taxonomy') {
                        ?>
                                    <option value="<?php 
                        echo $key;
                        ?>
"<?php 
                        if ($_GET['orderby'] == $key || !isset($_GET['orderby']) && $key == 'identity_code') {
                            echo 'selected="selected"';
                        }
                        ?>
><?php 
                        echo strtolower($val['label']);
                        ?>
</option>
                                <?php 
                    }
                }
                ?>
                        </select>
                        <a href="<?php 
                echo add_query_arg(array('order' => $orderAlt), $_SERVER['REQUEST_URI']);
                ?>
" class="order-direction" title="<?php 
                echo $orderAltTitle;
                ?>
">
                          <i class="icon-order-<?php 
                echo $orderIcon;
                ?>
"></i> 
                        </a>
                    </div>
                <?php 
            }
            ?>

              </div><!-- .film-register-search-results-header -->

              <?php 
            if ($the_query === false) {
                ?>
                <p><?php 
                pll_e('Prašome įvesti bent 1 paieškos kriterijų');
                ?>
</p>
              <?php 
            } elseif ($the_query->post_count < 1) {
                ?>
                <p><?php 
                pll_e('Pagal pasirinktus paieškos kriterijus filmų nerasta');
                ?>
</p>
              <?php 
            } else {
                ?>
              <div id="film-list-print-wrap">
                  <table class="film-register-list-table film-print-table">
                  	<tr>
                  	<?php 
                foreach ($listTableFields as $key => $val) {
                    $orderLink = add_query_arg(array('orderby' => $key), $_SERVER['REQUEST_URI']);
                    $orderIcon = '';
                    if (isset($_GET['orderby']) && $_GET['orderby'] == $key || !isset($_GET['orderby']) && $key == 'identity_code') {
                        if (isset($_GET['order']) && strtoupper($_GET['order'] == 'DESC')) {
                            $orderLink = add_query_arg(array('order' => 'ASC'), $orderLink);
                            $orderIcon = 'desc';
                        } else {
                            $orderLink = add_query_arg(array('order' => 'DESC'), $orderLink);
                            $orderIcon = 'asc';
                        }
                    }
                    ?>
              			<th>
                            <?php 
                    if ($val['metaType'] != 'taxonomy') {
                        ?>
                                <a href="<?php 
                        echo $orderLink;
                        ?>
">
                            <?php 
                    }
                    ?>
                            <?php 
                    echo $val['label'];
                    ?>
                            <?php 
                    if ($orderIcon != '') {
                        ?>
                                <i class="icon-order-<?php 
                        echo $orderIcon;
                        ?>
"></i> 
                            <?php 
                    }
                    ?>
                            <?php 
                    if ($val['metaType'] != 'taxonomy') {
                        ?>
                                </a>
                            <?php 
                    }
                    ?>
                        </th>
                  	<?php 
                }
                ?>
                  	</tr>
                    <?php 
                while ($the_query->have_posts()) {
                    $the_query->the_post();
                    ?>
                        <tr>
                        <?php 
                    foreach ($listTableFields as $key => $val) {
                        ?>
                          <td>
                            <?php 
                        if ($key == 'title') {
                            ?>
                            <a href="<?php 
                            the_permalink();
                            ?>
">
                            <?php 
                        }
                        ?>
                                <?php 
                        echo $this->data->getFieldData(get_the_ID(), $key);
                        ?>
                            <?php 
                        if ($key == 'title') {
                            ?>
                            </a>
                            <?php 
                        }
                        ?>
                            </td>
                        <?php 
                    }
                    ?>
                        </tr>
                      <?php 
                }
                ?>
                  	</table>
                </div>

                <?php 
                kcsite_nice_pagination($the_query->max_num_pages);
                wp_reset_query();
                wp_reset_postdata();
            }
        }
        ?>
          </form> 
        </div> <!-- film-register-search-form-wrap -->

        <script type="text/javascript">
        jQuery(document).ready(function(){
            jQuery('.js-print-btn').click(function(){
                handlePrintBtnClick(jQuery(this), '<?php 
        echo $this->pluginUrl;
        ?>
/assets/css/print.css');
            });
        });
        </script>

        <?php 
        $output = ob_get_clean();
        return do_shortcode($output);
    }
示例#16
0
pll_e("Gestión de devoluciones");
?>
</a></li>
                <li><a href="<?php 
echo get_page_link_translated(208);
?>
" title="<?php 
pll_e("Reclamos y Sugerencias");
?>
"><?php 
pll_e("Reclamos y Sugerencias");
?>
</a></li>
            </ul>
        </li>
        <li class="<?php 
echo $nav[5];
?>
"><a href="<?php 
echo get_page_link_translated(210);
?>
" title="<?php 
pll_e("Contacto");
?>
"><i class="fa fa-envelope"></i><span><?php 
pll_e("Contacto");
?>
</span></a></li>
    </ul>

</nav>
示例#17
0
<?php

if (has_nav_menu('footer-menu1')) {
    ?>
                <div class="col-lg-2 col-md-2 col-sm-4 col-xs-12">
                    <h3>
                        <?php 
    $menu_location = 'footer-menu1';
    $menu_locations = get_nav_menu_locations();
    $menu_object = isset($menu_locations[$menu_location]) ? wp_get_nav_menu_object($menu_locations[$menu_location]) : null;
    $menu_name = isset($menu_object->name) ? $menu_object->name : '';
    echo esc_html($menu_name);
    ?>
                    </h3>
                    <ul class="footer-list">
                        <?php 
    wp_nav_menu(array('theme_location' => 'footer-menu1', 'container' => '', 'items_wrap' => '%3$s'));
    ?>
                        
                        <li><a href="<?php 
    echo get_post_type_archive_link('download');
    ?>
"><?php 
    pll_e('مركز المعلومات والملفات');
    ?>
</a></li>
                    </ul>
                </div>
            <?php 
}
示例#18
0
                    </div>
                    <div class="form-group">
                        <div class="col-xs-12 text-center">
                            <div class="btn-group">
                                <span type="button" class="btn btn-primary"><?php 
pll_e($illusive_redux['calc_field_button_more']);
?>
</span>
                                <button type="button" class="btn btn-primary toggleFields">
                                    <span class="caret"></span>
                                    <span class="sr-only">Toggle Dropdown</span>
                                </button>
                            </div>
                        </div>

                    </div>
                    <div id="cal-more-fields" style="display: none">
                        <div class="form-group">
                            <div class="col-xs-12"> <hr /></div>
                            <div class="col-xs-12 col-sm-4 col-sm-offset-1">  
                                <label><?php 
pll_e($illusive_redux['calc_field_cost_per_litre']);
?>
</label>
                                <div class="input-group input-group-lg">
                                    <span class="input-group-addon" id="cost_per_litre_addon"><i class="fa fa-dollar"></i></span>
                                    <input name="cost_per_litre" type="text" class="form-control cal-variable" placeholder="<?php 
echo $CostPerLitre;
?>
" aria-describedby="cost_per_litre_addon" value="<?php 
echo $CostPerLitre;
示例#19
0
            			<?php }*/
            wp_login_form(array('label_username' => pll__('El. paštas'), 'label_password' => pll__('Kodas'), 'label_remember' => pll__('Prisiminti mane')));
            ?>

		<?php 
        }
        ?>

		<script type="text/javascript">
			jQuery.extend(jQuery.validator.messages, {
			  required: '<?php 
        pll_e("Privalomas laukelis");
        ?>
',
			  email: '<?php 
        pll_e("Neteisingas el. pašto formatas");
        ?>
'
			})

			jQuery('#loginform').validate({
			    rules: {
					'log': {
			              required: true,
			              email: true
			        },
					'pwd': {
			              required: true
			        }        
			    },
				highlight: function(element, errorClass, validClass ) {
示例#20
0
                the_excerpt();
            } else {
                if ($post->post_excerpt) {
                    the_excerpt();
                } else {
                    //the_excerpt();
                    //the_content(__('Read more <span class="meta-nav">&raquo;</span>', 'kcsite'));
                    the_content('');
                }
            }
            ?>
				<a href="<?php 
            the_permalink();
            ?>
" class="btn-block read-more"><?php 
            pll_e('Skaityti daugiau');
            ?>
</a>
			</div>

		</article><!-- #post-<?php 
            the_ID();
            ?>
 -->

<?php 
        }
    }
    wp_reset_query();
    wp_reset_postdata();
    ?>
示例#21
0
<?php

/* Template Name: Schedule */
get_header();
wp_nav_menu(array('theme_location' => 'footer-schedule', 'container_class' => 'content subnav cf'));
require "schedule-config.php";
$content = (require __DIR__ . DIRECTORY_SEPARATOR . 'schedule' . DIRECTORY_SEPARATOR . 'parse.php');
//var_dump($data);
?>
<section class="content grid">
<div class="col-left">
<h1><?php 
pll_e('Програма');
?>
</h1>


	<table cellpadding="0" cellspacing="0" style="text-align: center;" class="schedule">
		<thead>
			<tr>
				<td>&nbsp;</td>
<?php 
foreach ($content['halls'] as $hall_name) {
    ?>
				<td><?php 
    echo htmlspecialchars($hall_name[$CF['lang']]);
    ?>
</td>
<?php 
}
?>
示例#22
0
文件: functions.php 项目: uoyknaht/kc
function kcsite_sidebar_poll()
{
    if (function_exists('get_poll')) {
        $poll = get_poll(null, false);
        if ($poll != 'Šiuo metų aktyvių apklausų nėra' && $poll != '' && pll_current_language('slug') == 'lt') {
            //default template text if no polls
            ?>
	

		<aside class="widget wp-polls-embeded-widget">
			<header>
				<h3 class="widget-title"><?php 
            echo pll_e('Apklausa');
            ?>
</h3>
			</header>
			<div class="widget-content">
				<?php 
            echo $poll;
            ?>
			</div>
		</aside>

		<hr class="double-hr" />

		<?php 
        }
    }
}
示例#23
0
}
?>

		<?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['industryNewsArchiveUrl'];
?>
" class="btn-block fr"><?php 
pll_e('Industrijos naujienų archyvas');
?>
</a>
		</div>
		<?php 
wp_reset_query();
wp_reset_postdata();
?>

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

</div>

<?php 
get_footer();
示例#24
0
						 data-yashareQuickServices="vkontakte,facebook,twitter,gplus"
						 data-yashareTheme="counter"></div>
				</footer>

				<!-- Begin MailChimp Signup Form -->
				<link href="//cdn-images.mailchimp.com/embedcode/slim-081711.css" rel="stylesheet" type="text/css">
				<style type="text/css">
					#mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; padding: 0px 10px 0px 10px;}
					/* Add your own MailChimp form style overrides in your site stylesheet or in this style block.
					   We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */
				</style>
				<div id="mc_embed_signup">
				<form action="//ninja.us11.list-manage.com/subscribe/post?u=39e02a0b24cc24daa5ca5a8b8&amp;id=b5b5434a1b" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
				    <div id="mc_embed_signup_scroll">
					<label for="mce-EMAIL"><?php 
    pll_e('Получать посты на почту, около 2 раз в месяц:');
    ?>
</label>
					<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="email address" required>
				    <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
				    <div style="position: absolute; left: -5000px;"><input type="text" name="b_39e02a0b24cc24daa5ca5a8b8_b5b5434a1b" tabindex="-1" value=""></div>
				    <div class="clear"><input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button"></div>
				    </div>
				</form>
				</div>

				<!--End mc_embed_signup-->

				<div id="disqus_thread"></div>
				<script type="text/javascript">
				    /* * * CONFIGURATION VARIABLES * * */
示例#25
0
文件: footer.php 项目: Boooober/bbc
    ?>
"/>
                            </form>
                            <div class="form-response"></div>
                        </div>

                    </div>
                    <!-- ./col right -->

                </div>
                <!--./row-->

                <div class="add-info">
                    <div class="contacts">
                        <h3><?php 
    pll_e('Contacts');
    ?>
</h3>
                        <p>33 753 67 43 42</p>
                        <p>bonjour@bbluxurytime.com</p>
                    </div>
                    <div class="soc-icons">
                        <ul>
                            <li><a class="icon-facebook" href="https://www.facebook.com/BourBonLifeStyle" target="_blank"></a></li>
                            <li><a class="icon-instagram" href="https://instagram.com/bourbonlifestyle/" target="_blank"></a></li>
                            <li><a class="icon-linkedin" href="https://www.linkedin.com/company/bourbon&co" target="_blank"></a></li>
                        </ul>
                    </div>
                </div>

            </div>
示例#26
0
文件: index.php 项目: uoyknaht/kc
 */
/**
 * Can be used for news categories views. Not prepared now (not used)
 */
get_header();
?>

<div class="content-page page-template-index">

<!-- 	<div class="page-header clearfix">
		<h2 class="fancy-title"><?php 
pll_e('Įdomūs faktai');
?>
</h2>
		<a href="" class="btn-block"><?php 
pll_e('Įdomūs faktai');
?>
</a>
	</div>
	<hr class="double-hr"/> -->
	
	<div class="page-content in-post-list">

	 	<header class="entry-header">
			<h1 class="fancy-title"><?php 
the_title();
?>
</h1>
		</header>
		<hr class="double-hr entry-header-hr"/>
		
示例#27
0
/*
Template Name: Naujienlaiskis
*/
get_header();
?>

<div class="content-page page-template-polls-newsletter">

<!-- 	<div class="page-header clearfix">
		<h2 class="fancy-title"><?php 
pll_e('Puslapiai');
?>
</h2>
		<a href="" class="btn-block"><?php 
pll_e('Puslapiai');
?>
</a>
	</div> -->
	

	<div class="page-content">

		<?php 
//start including slightly changed content-page.php
?>

		<?php 
global $kcsite_post_metabox;
$kcsite_post_metabox->the_meta();
?>
示例#28
0
function e_($word)
{
    if (function_exists("pll_e")) {
        return pll_e($word);
    } else {
        echo $word;
    }
}
示例#29
0
 <a href="mailto:<?php 
    echo $current_user->user_email;
    ?>
"><?php 
    echo $current_user->user_email;
    ?>
</a></li>
				<!-- <li><a href=""><?php 
    pll_e('Jūsų profilis');
    ?>
</a></li> -->
				<li><a href="<?php 
    echo wp_logout_url(add_query_arg('action', 'logout', get_permalink()));
    ?>
"><?php 
    pll_e('Atsijungti');
    ?>
</a></li>
			</ul>
		</div>
	</aside>
	<?php 
}
?>


    <?php 
wp_reset_postdata();
global $staticVars;
global $g_lithuanianFilms;
if (get_the_ID() == $staticVars['lithuanianFilmsSearchPageId'] || get_post_type() == $g_lithuanianFilms->cptSlug) {
示例#30
0
<?php

/* Template Name: Speakers */
get_header();
wp_nav_menu(array('theme_location' => 'footer-schedule', 'container_class' => 'content subnav cf'));
require "schedule-config.php";
$content = (require __DIR__ . DIRECTORY_SEPARATOR . 'schedule' . DIRECTORY_SEPARATOR . 'parse.php');
//var_dump($data);
?>
<section class="content grid">
<div class="col-left">
<h1><?php 
pll_e('Лектори');
?>
</h1>

<?php 
foreach ($content['gspk'] as $line) {
    echo $line, PHP_EOL;
}
?>
<div class="separator"></div>
<?php 
foreach ($content['fspk'] as $line) {
    echo $line, PHP_EOL;
}
?>
	</div>
	<?php 
get_sidebar();
?>