Esempio n. 1
0
								<?php 
    }
}
?>

						</div><!-- /.footer-social-btn -->
					</div><!-- /.container -->
				</div><!-- /.parallax-overlay -->
			</div><!-- /.social-buttons -->
		</div><!-- /#social-buttons -->


		<div class="copyrights">
			<div class="container text-center">
				<?php 
print zels_get_option('copyright_txt');
?>
			</div><!-- /.container -->
		</div><!-- /.copyrights -->
	</footer>	
	<!-- Footer Section End -->


	<div id="scroll-to-top">
		<span>
			<i class="fa fa-chevron-up"></i>    
		</span>
	</div><!-- /#scroll-to-top -->

<?php 
wp_footer();
Esempio n. 2
0
	<!-- service Section -->
	<section id="over-mij" class="gray-bg section-padding">
		<div class="container">
			<h2 class="section-title sub"><?php 
echo esc_html(zels_get_option('section_title'));
?>
</h2>
			<div class="row">
				<div class="item-container">
					<div id="feature-slider"  class="owl-carousel owl-theme">

						<?php 
$items = zels_get_option('feature_section_group');
foreach ($items as $key => $value) {
    ?>
							<div class="item">
							<div class="service-item col-md-12">
								<div class="hex content-icon-hex">
									<span class="icon">
										<i class="<?php 
    echo esc_attr($value['feature_icon']);
    ?>
"></i>
									</span>
								</div><!-- /.hex -->
								<h3 class="service-title"><?php 
    echo esc_attr($value['feature_title']);
    ?>
</h3>
								<p class="service-content text-center">
Esempio n. 3
0
    }
    ?>
                           <?php 
} else {
    echo zels_get_option('logo_text');
}
?>
                           </a>
                    </div><!-- #logo end -->
					</div><!-- /.logo-big -->
					<div class="slide-container">
						<div id="top-slider" class="carousel slide" data-ride="carousel">
							<div class="carousel-inner">

							<?php 
$slider_items = zels_get_option("slider_settings");
$i = 0;
foreach ($slider_items as $key => $value) {
    ?>
									<div class="item <?php 
    echo !$i ? 'active' : '';
    ?>
">
									<h2 class="section-title top-section-title make-fittext wow zoomInUp center animated" data-wow-duration="1s" data-wow-delay=".0s">
										<?php 
    echo esc_html($value['codex_slider_text']);
    ?>
									</h2>
									<div class="topic-container text-center wow bounceInUp center animated"  data-wow-duration="1.5s" data-wow-delay=".5s">
										<p class="topic make-fittext">
											<span><?php 
Esempio n. 4
0
<?php

/**
 * The template for displaying home page content.
 * Template Name: Front Page
 * @package AWE
 */
get_header();
?>

<?php 
// Get Enabled Sections
$sections_settings = zels_get_option('section_sorter');
// Create Menu List By Using Section Name
if (array_key_exists('enabled', $sections_settings)) {
    $sections = $sections_settings['enabled'];
    while (current($sections)) {
        echo get_template_part('sections/section', key($sections));
        next($sections);
    }
}
?>

	<!-- Google Map Section -->
	<div id="google-map">
		<div class="map-container">
			<div id="googleMaps" class="google-map-container"></div>
		</div><!-- /.map-container -->
	</div><!-- /#google-map-->
	<!-- Google Map Section End -->	
Esempio n. 5
0
						<span class="texts">
							<?php 
print zels_get_option('detail_phone');
?>
						</span>
					</div><!-- /.contact-info-box -->

					<div class="col-md-3 col-sm-6 contact-info-box">
						<span class="icon skype"><i class="fa fa-linkedin-square"></i></span>
						<p class="contact-details-title"> <span><?php 
_e('LinkedIn', 'awe');
?>
 </span></p>
						<span class="texts">
							<a href="https://www.linkedin.com/in/maurice-moret-79557384" target="_blank"><?php 
print zels_get_option('detail_skype');
?>
</a>
						</span>
					</div><!-- /.contact-info-box -->
				</div><!-- /.contact-info -->
			</div>
		</div><!-- /.container --> 
	</div><!-- /.other-contact-details -->
</section><!-- /#contact -->
<!-- Contact Section  End -->



<!-- Subscribe Section -->
<!-- <div id="subscribe-box" class="subscribe-box gray-bg"> -->
Esempio n. 6
0
				<nav class="collapse navbar-collapse">

				<?php 
if (is_front_page()) {
    ?>
					<!-- Main navigation -->
					<ul id="headernavigation" class="nav navbar-nav pull-right">
					<li class="active"><a href="#top-section">Home</a></li>
					<?php 
    // Get Enabled Sections
    $sections_settings = zels_get_option('section_sorter');
    // Create Menu List By Using Section Name
    if (array_key_exists('enabled', $sections_settings)) {
        $sections = $sections_settings['enabled'];
        while (current($sections)) {
            $section_data = zels_get_option(key($sections));
            //print_r($section_data );
            $section_name = $section_data['name'];
            if (!empty($section_name)) {
                echo '<li><a href="#' . sanitize_title_with_dashes($section_name) . '">' . $section_name . '</a></li>';
            }
            next($sections);
        }
    }
    ?>
					</ul> <!-- /.nav .navbar-nav -->
					<?php 
} else {
    /**
     * Displays a navigation menu
     * @param array $args Arguments
Esempio n. 7
0
 */
get_header();
?>
<!-- Blog head -->
	<section id="blog-head" class="blog-head">
		<div class="blog-head-section parallax-style clearfix">
			<div class="parallax-overlay">
				<div class="container">
					<div class="fluid-section section-padding">
						<h2 class="section-title"><?php 
echo esc_html(zels_get_option('page_section_title'));
?>
</h2>
						<div class="section-details text-center">
							<?php 
echo esc_html(zels_get_option('page_section_des'));
?>
						</div><!-- /.section-details -->	
					</div><!-- /.fluid-section section-padding -->
				</div><!-- /.container -->
			</div><!-- /.parallax-overlay -->
		</div><!-- /.blog-head-section -->
	</section><!-- /#blog-head -->
	<!-- Blog head End -->
<div class="content-area">

	<div class="container">
		<div class="row">
			<!-- Main Container  -->
			<div id="main-content" class="main-content col-md-8">
Esempio n. 8
0
$section_menu = zels_get_option('portfolio');
$id = strtolower(str_replace(' ', '-', $section_menu['name']));
?>

<!-- portfolio Section -->
<section id="<?php 
echo esc_attr($id);
?>
" class="section-padding"> 
		<h2 class="section-title "><?php 
echo esc_html(zels_get_option('portfolio_section_title'));
?>
</h2>
		<div class="section-details text-center">
			<?php 
echo wp_kses_post(zels_get_option('portfolio_section_des'));
?>
		</div> 
		<div id="portfolio-container" class="portfolio-container">
			<div class="portfolioFilter">
				<button data-filter="" class="current">All</button>
				<?php 
$filters = get_terms('portfolio-category');
foreach ($filters as $filter) {
    echo "<button data-filter=\".{$filter->slug}\">{$filter->name}</button>";
}
?>
			</div> <!-- /.portfolioFilter -->

			<div id="portfolio-item" class="portfolio-item">
				<?php 
Esempio n. 9
0
							<a class="slide-nav left" href="#testimonial-slider" data-slide="prev"><span></span></a>
							<a class="slide-nav right" href="#testimonial-slider" data-slide="next"><span></span></a>
						</div><!-- /#testimonial-slider -->
					</div><!-- /.testimonial -->
				</div><!-- /.container -->
			</div><!-- /.parallax-overlay -->
		</div><!-- /.testimonial-section -->
	</section><!-- /#testimonial -->
	<!-- Testimonial Section End -->

	<!-- Clients Logo -->
	<div id="clients-logo" class="clients-logo text-center">
		<div class="container">
			<div class="row">
				<?php 
$items = zels_get_option('client_logo');
if (!empty($items)) {
    foreach ($items as $key => $value) {
        ?>
					<div class="col-sm-6 col-md-3">
						<a href="<?php 
        echo esc_url($value['client_logo_url']);
        ?>
" class="clinet-logo">
						<img src="<?php 
        echo esc_url($value['client_logo_img']);
        ?>
" alt="Clients Logo">
						</a>
					</div><!-- /.col-sm-6 -->
					<?php 
Esempio n. 10
0
/**
 * Mailchimp Email Subscription Handler
 *
 * @since 1.0.0
 * @version 1.0.0
 * @author Aminul Islam <*****@*****.**>
 */
function aw_chimp_subscribe()
{
    $mc_API = zels_get_option('mc_API');
    $mc_LID = zels_get_option('mc_lst');
    // Get the Server ID
    $srv = substr($mc_API, -3);
    $subscribe_url = 'https://' . $srv . '.api.mailchimp.com/2.0/lists/subscribe';
    // Prepare for MC
    $email_struct = new StdClass();
    $email_struct->email = $_REQUEST['email'];
    $parameters = array('apikey' => $mc_API, 'id' => $mc_LID, 'email' => $email_struct, 'double_optin' => false, 'send_welcome' => true);
    // Get data from MC
    $curl = curl_init($subscribe_url);
    curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
    curl_setopt($curl, CURLOPT_POST, true);
    curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($parameters));
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
    $response = curl_exec($curl);
    $response = json_decode($response, true);
    // Run Ajax request
    if (defined('DOING_AJAX') && DOING_AJAX) {
        if (!empty($_REQUEST['email'])) {
            if (!empty($response['error'])) {
                echo $response['error'];
            } else {
                _e('Added! Thank you for subscribing.', 'appsworld');
            }
        } else {
            _e('Please enter your email address.', 'appsworld');
        }
        die;
    } else {
        wp_redirect(home_url());
        exit;
    }
}
Esempio n. 11
0
						<span class="award-no"><span class="counter"><?php 
echo esc_html(zels_get_option('client_numb'));
?>
</span></span>
						<span class="award-details"><?php 
echo esc_html(zels_get_option('client_text'));
?>
</span>
					</div><!-- /.award -->
				</div><!-- /.col-md-3 -->
				<div class="col-md-3">
					<div class="award">
						<span class="award-icon"><i class="fa fa-drupal"></i></span>
						<span class="award-no"><span class="counter"><?php 
echo esc_html(zels_get_option('won_numb'));
?>
</span></span>
						<span class="award-details"><?php 
echo esc_html(zels_get_option('won'));
?>
</span>
					</div><!-- /.award -->
				</div><!-- /.col-md-3 -->
			</div><!-- /.row -->
		</div><!-- /.container -->
	</div><!-- /#award-section -->
	<!-- Award Section End -->



Esempio n. 12
0
 function zels_get_multilang_option($option_name = '', $default = '')
 {
     $value = zels_get_option($option_name, $default);
     $languages = zels_language_defaults();
     $default = $languages['default'];
     $current = $languages['current'];
     if (is_array($value) && is_array($languages) && isset($value[$current])) {
         return $value[$current];
     } else {
         if ($default != $current) {
             return '';
         }
     }
     return $value;
 }
Esempio n. 13
0
	<!-- Skills Section -->
	<section id="<?php 
echo esc_attr($id);
?>
" class="gray-bg section-padding">
		<div class="container">
			<h2 class="section-title sub"><?php 
echo esc_html(zels_get_option('skill_title'));
?>
</h2>

			<div class="skill-items">
				<div class="row">

					<?php 
$items = zels_get_option('skill_section_group');
foreach ($items as $key => $value) {
    ?>
					<div class="col-md-3 col-sm-6">
						<div class="row">
							<div id="<?php 
    echo esc_attr($value['skill_title']);
    ?>
-skill-circle" class="skill-item" data-dimension="260" data-text="<?php 
    echo esc_attr($value['skill_percentage']);
    ?>
%" data-info="<?php 
    echo esc_attr($value['skill_title']);
    ?>
" data-width="30" data-fontsize="55" data-percent="<?php 
    echo esc_attr($value['skill_percentage']);
Esempio n. 14
0
<!-- pricing table Section -->
<section id="<?php 
echo esc_attr($id);
?>
">
		<div class="pricing-section gray-bg section-padding">
			<div class="container">
				<h2 class="section-title sub"><?php 
echo esc_html(zels_get_option('pricing_section_title'));
?>
</h2>
				<div class="row">
				<div id="pricing-slider" class="owl-carousel owl-theme">
					
					<?php 
$items = zels_get_option('pricing_table_section_group');
if (!empty($items)) {
    foreach ($items as $key => $value) {
        ?>
						<div class="item col-md-12">
							<div class="price-plan-box">
								<h4 class="plan-title"><?php 
        echo esc_html($value['pricing_table_title']);
        ?>
</h4>
								<div class="plan-price-box">
									<div class="price-plan">
										<span class="price-currency"><?php 
        echo esc_html($value['pricing_table_sign']);
        ?>
</span>
Esempio n. 15
0
					<div class="about-details">
						<h3 class="about-title"><?php 
echo esc_html(zels_get_option('mission_title'));
?>
</h3>
						<?php 
echo wp_kses_post(zels_get_option('mission_description'));
?>
					</div><!-- /.about-details -->
				</div><!-- /.col-md-7 -->


				<div class="col-md-5">
					<div class="video-container" id="video-container">
						<?php 
$video_url = zels_get_option('mission_video');
//store the URL into a variable
$url = esc_url($video_url);
//extract the ID
if (preg_match('/\\/\\/(www\\.)?vimeo.com\\/(\\d+)($|\\/)/', $url, $matches)) {
    //the ID of the Vimeo URL: 71673549
    $id = $matches[2];
    //set a custom width and height
    //echo the embed code and wrap it in a class
    echo '<div class="vimeo-article"><iframe width="500" height="281" src="http://player.vimeo.com/video/' . $id . '?title=0&amp;byline=0&amp;portrait=0&amp;badge=0&amp;color=ffffff"></iframe></div>';
} elseif (preg_match('/[\\?\\&]v=([^\\?\\&]+)/', $url, $matches)) {
    //the ID of the YouTube URL: x6qe_kVaBpg
    $id = $matches[1];
    //set a custom width and height
    //echo the embed code. You can even wrap it in a class
    echo '<div class="youtube-article"><iframe class="dt-youtube" src="//www.youtube.com/embed/' . $id . '" allowfullscreen></iframe></div>';
Esempio n. 16
0
function codex_coder_load_script_on_footer()
{
    ?>
	

	<script type="text/javascript"> 

		/*----------- Google Map - with support of gmaps.js ----------------*/

		function isMobile() { 
			return ('ontouchstart' in document.documentElement);
		}

		function init_gmap() {
			if ( typeof google == 'undefined' ) return;
			var options = {
				center: [<?php 
    echo esc_html(zels_get_option('map_lati'));
    ?>
, <?php 
    echo esc_html(zels_get_option('map_langi'));
    ?>
],
				zoom: 15,
				mapTypeControl: true,
				mapTypeControlOptions: {
					style: google.maps.MapTypeControlStyle.DROPDOWN_MENU
				},
				navigationControl: true,
				scrollwheel: false,
				streetViewControl: true
			}

			if (isMobile()) {
				options.draggable = false;
			}

			jQuery('#googleMaps').gmap3({
				map: {
					options: options
				},
				marker: {
					latLng: [<?php 
    echo esc_html(zels_get_option('map_lati'));
    ?>
, <?php 
    echo esc_html(zels_get_option('map_langi'));
    ?>
],
					options: { icon: '<?php 
    echo esc_url(zels_get_option('map_icon'));
    ?>
' }
				}
			});
		}

		init_gmap();



		
		jQuery(document).ready(function($) {
			"use strict";

			/*---------------------- Current Menu Item -------------------------*/
			jQuery('#main-menu #headernavigation').onePageNav({
				currentClass: 'active',
				changeHash: false,
				scrollSpeed: 750,
				scrollThreshold: 0.5,
				scrollOffset: 160,
				filter: ':not(.sub-menu a, .not-in-home)',
				easing: 'swing'
			}); 
		});
		// document ready function End


		/**  mailchimp.
		--------------------------------------------------------------------------------------------------- */
		jQuery(".aw-mc-ajax-form").each(function () {
			var $this = $(this);

				// Newselleter Scripts
				$this.submit(function () {
					$this.find("button[type=\"submit\"]").addClass("clicked");
					var action = $(this).attr("action");
					$.ajax({
						url: action,
						type: "POST",
						data: {
							action: $this.find("input[name=\"action\"]").val(),
							email: $this.find("input[name=\"email\"]").val()
						},
						success: function success(data) {
							$this.find(".aw-mc-response").html(data).addClass("success").css("display", "block");
							$this.find("button[type=\"submit\"]").removeClass("clicked");
						},
						error: function error() {
							$this.find(".aw-mc-response").html("Sorry, an error occurred.").addClass("error").css("display", "block");
							$this.find("button[type=\"submit\"]").removeClass("clicked");
						}
					});
					return false;
				});
				
			});	

	</script>	

	<?php 
}
Esempio n. 17
0
$id = strtolower(str_replace(' ', '-', $section_menu['name']));
?>

	<!-- Blog Section -->
	<section id="<?php 
echo esc_attr($id);
?>
" class="section-padding">
		<div class="container">
			<h2 class="section-title"><?php 
echo esc_html(zels_get_option('blog_section_title'));
?>
</h2>
			<div class="section-details text-center">
				<?php 
echo esc_html(zels_get_option('blog_section_des'));
?>
			</div><!-- /.section-details -->	

		<div class="recent-blog">
			<div class="col-lg-8">
				<div class="row">

					<?php 
$num = 0;
query_posts('post_type=post&posts_per_page=2&ignore_sticky_posts=true');
if (have_posts()) {
    while (have_posts()) {
        the_post();
        if ($num++ % 2 == 0) {
            $style = 'style-1';
Esempio n. 18
0
								</div><!-- /.features-content -->  
							</div><!-- /.features-item -->
							<?php 
    }
}
?>
						


					</div><!-- /.col-md-5 -->
					<div class="col-md-7">
					<?php 
$service_bg = zels_get_option('core_feature_bg_image_right');
if (!empty($service_bg)) {
    ?>
						<img src="<?php 
    echo esc_url(zels_get_option('core_feature_bg_image_right'));
    ?>
" alt="Featured Image">
					<?php 
}
?>
					</div><!-- /.col-md-7 -->
				</div><!-- /.features-container -->
			</div><!-- /.container -->
		</div><!-- /.section-padding -->
	</div><!-- /.features-section -->
</section><!-- /#features -->
<!-- Features Section End -->

Esempio n. 19
0
}
?>


	<!-- Video Watch  -->
	<section id="watch-video" data-type="background" data-speed="30">
		<div class="watch-video parallax-style">
			<div class="parallax-overlay section-padding">
				<div class="container">

					<h2 class="section-title"><?php 
echo esc_html(zels_get_option('video_section_title'));
?>
</h2>
					<p class="section-details text-center">
						<?php 
echo wp_kses_post(zels_get_option('video_section_dsc'));
?>
					</p><!-- /.section-details -->	
					<div class="play-btn-container text-center wow rollIn animated">
						<?php 
print $video_link;
?>
					</div><!-- /.play-btn-container -->

				</div><!-- /.container -->
			</div><!-- /.parallax-overlay -->
		</div><!-- /.watch-video -->
	</section><!-- /#watch-video -->
	<!-- Video Watch End -->
Esempio n. 20
0
        $text = $tweet->text;
    }
    $text = preg_replace('/((http)+(s)?:\\/\\/[^<>\\s]+)/i', '<a href="$0" target="_blank" rel="nofollow">$0</a>', $text);
    $text = preg_replace('/[@]+([A-Za-z0-9-_]+)/', '<a href="http://twitter.com/$1" target="_blank" rel="nofollow">@$1</a>', $text);
    $text = preg_replace('/[#]+([A-Za-z0-9-_]+)/', '<a href="http://twitter.com/search?q=%23$1" target="_blank" rel="nofollow">$0</a>', $text);
    return $text;
}
$tweets_count = zels_get_option('tweet_count');
$name = zels_get_option('twitter_username');
$timeto_store = zels_get_option('tweet_cache_time');
$replies_excl = false;
$transName = 'list-tweets-' . $name;
$backupName = $transName . '-backup';
if (false === ($tweets = get_transient($transName))) {
    require_once get_template_directory() . '/inc/twitteroauth.php';
    $api_call = new TwitterOAuth(zels_get_option('consumer_key'), zels_get_option('consumer_secret'), zels_get_option('access_token'), zels_get_option('access_token_secret'));
    $totalToFetch = $replies_excl ? max(50, $tweets_count * 3) : $tweets_count;
    $fetchedTweets = $api_call->get('statuses/user_timeline', array('screen_name' => $name, 'count' => $totalToFetch, 'replies_excl' => $replies_excl));
    if ($api_call->http_code != 200) {
        $tweets = get_option($backupName);
    } else {
        $limitToDisplay = min($tweets_count, count($fetchedTweets));
        for ($i = 0; $i < $limitToDisplay; $i++) {
            $tweet = $fetchedTweets[$i];
            $name = $tweet->user->name;
            $screen_name = $tweet->user->screen_name;
            $permalink = 'http://twitter.com/' . $name . '/status/' . $tweet->id_str;
            $tweet_id = $tweet->id_str;
            $image = $tweet->user->profile_image_url;
            $text = sanitize_links($tweet);
            $time = $tweet->created_at;