Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * The header for our theme.
- *
- * This is the template that displays all of the <head> section and everything up until <div id="content">
- *
- * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
- *
- * @package insight_design
- */
- wp_head();
- $titan = TitanFramework::getInstance( 'insight_design' );
- $logo_m = $titan->getOption( 'logo_m' );
- $logoSrc_m = $logo_m; // For the default value
- if ( is_numeric( $logo_m ) ) {
- $imageAttachment = wp_get_attachment_image_src( $logo_m, 200, 98 );
- $logoSrc_m = $imageAttachment[0];
- }
- $keywords_id = $titan->getOption( 'keywords_id' );
- ?><!DOCTYPE html>
- <html <?php language_attributes(); ?>>
- <head>
- <meta name="google-site-verification" content="srKxkNIwj6MdV0wTsu6Aj5jtkPz46wIpG1mWBDirmMk" />
- <meta charset="<?php bloginfo( 'charset' ); ?>">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="keywords" content="<?php echo $keywords_id; ?>">
- <link rel="profile" href="http://gmpg.org/xfn/11">
- <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
- <script src='https://www.google.com/recaptcha/api.js'></script>
- <script>
- jQuery(document).ready(function($){
- var homeslider = $(".home-slider").lightSlider({
- item: 1,
- slideMove: 1,
- mode: 'fade',
- useCSS: false,
- controls: false,
- slideMargin: 0,
- speed: 2000,
- auto: true,
- slideEndAnimation: true,
- pause:10000,
- loop: true,
- enableTouch:true
- });
- homeslider.play();
- /**
- * jQuery function to prevent default anchor event and take the href * and the title to make a share pupup
- *
- * @param {[object]} e [Mouse event]
- * @param {[integer]} intWidth [Popup width defalut 500]
- * @param {[integer]} intHeight [Popup height defalut 400]
- * @param {[boolean]} blnResize [Is popup resizeabel default true]
- */
- $.fn.customerPopup = function (e, intWidth, intHeight, blnResize) {
- // Prevent default anchor event
- e.preventDefault();
- // Set values for window
- intWidth = intWidth || '500';
- intHeight = intHeight || '400';
- strResize = (blnResize ? 'yes' : 'no');
- // Set title and open popup with focus on it
- var strTitle = ((typeof this.attr('title') !== 'undefined') ? this.attr('title') : 'Social Share'),
- strParam = 'width=' + intWidth + ',height=' + intHeight + ',resizable=' + strResize,
- objWindow = window.open(this.attr('href'), strTitle, strParam).focus();
- }
- });
- </script>
- <?php wp_head(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement