Advertisement
insightdes

header-home.php

May 6th, 2018
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.71 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The header for our theme.
  4.  *
  5.  * This is the template that displays all of the <head> section and everything up until <div id="content">
  6.  *
  7.  * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
  8.  *
  9.  * @package insight_design
  10.  */
  11.  
  12. wp_head();
  13. $titan = TitanFramework::getInstance( 'insight_design' );
  14.  
  15. $logo_m = $titan->getOption( 'logo_m' );
  16. $logoSrc_m = $logo_m; // For the default value
  17.     if ( is_numeric( $logo_m ) ) {
  18.         $imageAttachment = wp_get_attachment_image_src( $logo_m, 200, 98 );
  19.         $logoSrc_m = $imageAttachment[0];  
  20.     }
  21.  
  22. $keywords_id = $titan->getOption( 'keywords_id' );
  23.  
  24. ?><!DOCTYPE html>
  25. <html <?php language_attributes(); ?>>
  26. <head>
  27. <meta name="google-site-verification" content="srKxkNIwj6MdV0wTsu6Aj5jtkPz46wIpG1mWBDirmMk" />
  28. <meta charset="<?php bloginfo( 'charset' ); ?>">
  29. <meta name="viewport" content="width=device-width, initial-scale=1">
  30. <meta name="keywords" content="<?php echo $keywords_id; ?>">
  31. <link rel="profile" href="http://gmpg.org/xfn/11">
  32. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
  33.  
  34. <script src='https://www.google.com/recaptcha/api.js'></script>
  35. <script>
  36.    
  37.     jQuery(document).ready(function($){
  38.    
  39.     var homeslider = $(".home-slider").lightSlider({
  40.             item: 1,
  41.             slideMove: 1,
  42.             mode: 'fade',
  43.             useCSS: false,
  44.             controls: false,
  45.             slideMargin: 0,
  46.             speed: 2000,
  47.             auto: true,
  48.             slideEndAnimation: true,
  49.             pause:10000,
  50.             loop: true,
  51.             enableTouch:true
  52.         });
  53.        
  54.     homeslider.play();
  55.    
  56.        
  57.         /**
  58.    * jQuery function to prevent default anchor event and take the href * and the title to make a share pupup
  59.    *
  60.    * @param  {[object]} e           [Mouse event]
  61.    * @param  {[integer]} intWidth   [Popup width defalut 500]
  62.    * @param  {[integer]} intHeight  [Popup height defalut 400]
  63.    * @param  {[boolean]} blnResize  [Is popup resizeabel default true]
  64.    */
  65.     $.fn.customerPopup = function (e, intWidth, intHeight, blnResize) {
  66.    
  67.     // Prevent default anchor event
  68.     e.preventDefault();
  69.    
  70.     // Set values for window
  71.     intWidth = intWidth || '500';
  72.     intHeight = intHeight || '400';
  73.     strResize = (blnResize ? 'yes' : 'no');
  74.  
  75.     // Set title and open popup with focus on it
  76.     var strTitle = ((typeof this.attr('title') !== 'undefined') ? this.attr('title') : 'Social Share'),
  77.         strParam = 'width=' + intWidth + ',height=' + intHeight + ',resizable=' + strResize,            
  78.         objWindow = window.open(this.attr('href'), strTitle, strParam).focus();
  79.   }
  80.     });
  81. </script>
  82.  
  83. <?php wp_head(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement