Example #1
0
function wowslider_injection($output)
{
    if (preg_match_all('/\\[wowslider id="(\\d+)"\\]/', $output, $matches)) {
        $ids = array_unique($matches[1]);
        foreach ($ids as $id) {
            $output = str_replace('[wowslider id="' . $id . '"]', wowslider($id, false), $output);
        }
    }
    return $output;
}
Example #2
0
<?php

/**

 Template Name: Home Page

 **/
get_header();
?>
	 <div id="banner"><?php 
wowslider(5);
?>
 <?php 
/*?><?php echo do_shortcode("[easingsliderlite]"); ?><?php */
?>
</div>
     
	<div id="primary" class="site-content">
		<div id="content" role="main">
			<div id="contentArea">
			<?php 
while (have_posts()) {
    the_post();
    ?>
				<?php 
    get_template_part('content', 'page');
    ?>
				<?php 
    comments_template('', true);
    ?>
			<?php 
Example #3
0
<?php

include_once './_common.php';
auth_check($auth[$sub_menu], "r");
$g5['title'] = '슬라이더 보기';
include_once G5_PATH . '/head.sub.php';
$sql = 'select * from `' . $g5['ws_master_table'] . '` where ws_id = "' . $ws_id . '"';
$row = sql_fetch($sql);
?>
<script>
window.onload = function(){
	this.resizeTo(<?php 
echo $row['ws_image_width'];
?>
, <?php 
echo $row['ws_image_height'];
?>
);
}
</script>
<?php 
echo wowslider($ws_id);
?>

<?php 
include_once G5_PATH . '/tail.sub.php';


	$zerif_bigtitle_show = get_theme_mod('zerif_bigtitle_show');

	if( isset($zerif_bigtitle_show) && $zerif_bigtitle_show != 1 ):


	endif;


?>


</header> <!-- / END HOME SECTION  -->
<?  wowslider(12);?>



<div id="content" class="site-content">

<!--programu-->

<section class="our-team" id="team"><div class="container">
        <div class="section-header"><h2 class="dark-text">Програми</h2></div>
        <!-- кртинки заданы беграундом -->
        <div class="row" data-scrollreveal="enter left after 0s over 0.1s" data-sr-init="true" data-sr-complete="true">
            <div class="firstrow">
                <div class="programimages" id="navuku">
                <div class="cildimages"></div></div>
                <h4>Навчальна програма
<?php

/*
Template Name: Full Width Page
*/
get_header();
$post_id = get_the_ID();
//Dlya vidobragenya Slayda na golovniy storintsi
if ($post_id === 24) {
    wowslider(12);
}
?>

<div class="clear"></div>

</header> <!-- / END HOME SECTION  -->

    <div class="beforethtbestfooteronthesite"><?php 
$post_id = get_the_ID();
if ($post_id === 39) {
    echo do_shortcode("[mapsmarker marker='2']");
}
?>
</div>

	<div id="content" class="site-content">

<div class="container">