It looks like this is a web page, not a feed. I looked for a feed associated with this page, but couldn't find one. Please enter the address of your feed to validate.

Source: https://transcomfort.com.pl

  1.  
  2. <!DOCTYPE html>
  3. <html lang="pl-PL">
  4. <head>
  5.    <meta charset="UTF-8" />
  6.    <meta name="viewport" content="width=device-width, initial-scale=1">
  7.    <meta http-equiv="X-UA-Compatible" content="IE=edge">
  8.    <meta name="viewport" content="width=device-width, initial-scale=1">
  9.    <meta name="format-detection" content="telephone=no">
  10.    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  11. <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDQs7-ph_8kCQg3z0dk8mdOLhhf9M-pqbc" type="text/javascript"></script>
  12.    <script src="https://cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.carousel.js"></script>
  13.    <link rel="profile" href="http://gmpg.org/xfn/11" />
  14.    <link rel="pingback" href="https://transcomfort.com.pl/xmlrpc.php" />
  15.    <link href="https://fonts.googleapis.com/css?family=Lato:100,100i,300,300i,400,400i,700,700i,900,900i|Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i&amp;subset=latin-ext" rel="stylesheet">
  16.    <title>Przewozy krajowe i zagraniczne, wynajmen pojazdu z kierowcą Kraków - Trans-Comfort</title>
  17.    <!--[if lt IE 9]>
  18.        <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  19.        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  20.    <![endif]-->
  21.    <meta name='robots' content='index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1' />
  22.  
  23. <!-- This site is optimized with the Yoast SEO plugin v19.4 - https://yoast.com/wordpress/plugins/seo/ -->
  24. <link rel="canonical" href="https://transcomfort.com.pl/" />
  25. <meta property="og:locale" content="pl_PL" />
  26. <meta property="og:type" content="website" />
  27. <meta property="og:title" content="Przewozy krajowe i zagraniczne, wynajmen pojazdu z kierowcą Kraków - Trans-Comfort" />
  28. <meta property="og:url" content="https://transcomfort.com.pl/" />
  29. <meta property="og:site_name" content="Transcomfort" />
  30. <meta property="article:modified_time" content="2018-03-22T09:18:58+00:00" />
  31. <meta name="twitter:card" content="summary" />
  32. <script type="application/ld+json" class="yoast-schema-graph">{"@context":"https://schema.org","@graph":[{"@type":"WebSite","@id":"https://transcomfort.com.pl/#website","url":"https://transcomfort.com.pl/","name":"Transcomfort","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://transcomfort.com.pl/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"pl-PL"},{"@type":"WebPage","@id":"https://transcomfort.com.pl/","url":"https://transcomfort.com.pl/","name":"Przewozy krajowe i zagraniczne, wynajmen pojazdu z kierowcą Kraków - Trans-Comfort","isPartOf":{"@id":"https://transcomfort.com.pl/#website"},"datePublished":"2017-09-06T11:38:10+00:00","dateModified":"2018-03-22T09:18:58+00:00","breadcrumb":{"@id":"https://transcomfort.com.pl/#breadcrumb"},"inLanguage":"pl-PL","potentialAction":[{"@type":"ReadAction","target":["https://transcomfort.com.pl/"]}]},{"@type":"BreadcrumbList","@id":"https://transcomfort.com.pl/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Strona główna"}]}]}</script>
  33. <!-- / Yoast SEO plugin. -->
  34.  
  35.  
  36. <link rel='dns-prefetch' href='//s.w.org' />
  37. <script type="text/javascript">
  38. window._wpemojiSettings = {"baseUrl":"https:\/\/s.w.org\/images\/core\/emoji\/13.1.0\/72x72\/","ext":".png","svgUrl":"https:\/\/s.w.org\/images\/core\/emoji\/13.1.0\/svg\/","svgExt":".svg","source":{"concatemoji":"https:\/\/transcomfort.com.pl\/wp-includes\/js\/wp-emoji-release.min.js?ver=5.8.9"}};
  39. !function(e,a,t){var n,r,o,i=a.createElement("canvas"),p=i.getContext&&i.getContext("2d");function s(e,t){var a=String.fromCharCode;p.clearRect(0,0,i.width,i.height),p.fillText(a.apply(this,e),0,0);e=i.toDataURL();return p.clearRect(0,0,i.width,i.height),p.fillText(a.apply(this,t),0,0),e===i.toDataURL()}function c(e){var t=a.createElement("script");t.src=e,t.defer=t.type="text/javascript",a.getElementsByTagName("head")[0].appendChild(t)}for(o=Array("flag","emoji"),t.supports={everything:!0,everythingExceptFlag:!0},r=0;r<o.length;r++)t.supports[o[r]]=function(e){if(!p||!p.fillText)return!1;switch(p.textBaseline="top",p.font="600 32px Arial",e){case"flag":return s([127987,65039,8205,9895,65039],[127987,65039,8203,9895,65039])?!1:!s([55356,56826,55356,56819],[55356,56826,8203,55356,56819])&&!s([55356,57332,56128,56423,56128,56418,56128,56421,56128,56430,56128,56423,56128,56447],[55356,57332,8203,56128,56423,8203,56128,56418,8203,56128,56421,8203,56128,56430,8203,56128,56423,8203,56128,56447]);case"emoji":return!s([10084,65039,8205,55357,56613],[10084,65039,8203,55357,56613])}return!1}(o[r]),t.supports.everything=t.supports.everything&&t.supports[o[r]],"flag"!==o[r]&&(t.supports.everythingExceptFlag=t.supports.everythingExceptFlag&&t.supports[o[r]]);t.supports.everythingExceptFlag=t.supports.everythingExceptFlag&&!t.supports.flag,t.DOMReady=!1,t.readyCallback=function(){t.DOMReady=!0},t.supports.everything||(n=function(){t.readyCallback()},a.addEventListener?(a.addEventListener("DOMContentLoaded",n,!1),e.addEventListener("load",n,!1)):(e.attachEvent("onload",n),a.attachEvent("onreadystatechange",function(){"complete"===a.readyState&&t.readyCallback()})),(n=t.source||{}).concatemoji?c(n.concatemoji):n.wpemoji&&n.twemoji&&(c(n.twemoji),c(n.wpemoji)))}(window,document,window._wpemojiSettings);
  40. </script>
  41. <style type="text/css">
  42. img.wp-smiley,
  43. img.emoji {
  44. display: inline !important;
  45. border: none !important;
  46. box-shadow: none !important;
  47. height: 1em !important;
  48. width: 1em !important;
  49. margin: 0 .07em !important;
  50. vertical-align: -0.1em !important;
  51. background: none !important;
  52. padding: 0 !important;
  53. }
  54. </style>
  55. <link rel='stylesheet' id='wp-block-library-css'  href='https://transcomfort.com.pl/wp-includes/css/dist/block-library/style.min.css?ver=5.8.9' type='text/css' media='all' />
  56. <link rel='stylesheet' id='contact-form-7-css'  href='https://transcomfort.com.pl/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=5.5.6.1' type='text/css' media='all' />
  57. <link rel='stylesheet' id='collapscore-css-css'  href='https://transcomfort.com.pl/wp-content/plugins/jquery-collapse-o-matic/css/core_style.css?ver=1.0' type='text/css' media='all' />
  58. <link rel='stylesheet' id='collapseomatic-css-css'  href='https://transcomfort.com.pl/wp-content/plugins/jquery-collapse-o-matic/css/light_style.css?ver=1.6' type='text/css' media='all' />
  59. <link rel='stylesheet' id='responsive-lightbox-tosrus-css'  href='https://transcomfort.com.pl/wp-content/plugins/responsive-lightbox/assets/tosrus/jquery.tosrus.min.css?ver=2.4.7' type='text/css' media='all' />
  60. <script type='text/javascript' src='https://transcomfort.com.pl/wp-includes/js/jquery/jquery.min.js?ver=3.6.0' id='jquery-core-js'></script>
  61. <script type='text/javascript' src='https://transcomfort.com.pl/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.3.2' id='jquery-migrate-js'></script>
  62. <script type='text/javascript' src='https://transcomfort.com.pl/wp-content/plugins/responsive-lightbox/assets/tosrus/jquery.tosrus.min.js?ver=2.4.7' id='responsive-lightbox-tosrus-js'></script>
  63. <script type='text/javascript' src='https://transcomfort.com.pl/wp-includes/js/underscore.min.js?ver=1.13.1' id='underscore-js'></script>
  64. <script type='text/javascript' src='https://transcomfort.com.pl/wp-content/plugins/responsive-lightbox/assets/infinitescroll/infinite-scroll.pkgd.min.js?ver=5.8.9' id='responsive-lightbox-infinite-scroll-js'></script>
  65. <script type='text/javascript' id='responsive-lightbox-js-before'>
  66. var rlArgs = {"script":"tosrus","selector":"lightbox","customEvents":"","activeGalleries":true,"effect":"fade","infinite":true,"keys":true,"autoplay":true,"pauseOnHover":true,"timeout":6000,"pagination":true,"paginationType":"bullets","closeOnClick":true,"woocommerce_gallery":false,"ajaxurl":"https:\/\/transcomfort.com.pl\/wp-admin\/admin-ajax.php","nonce":"68e9d7cb76","preview":false,"postId":17,"scriptExtension":false};
  67. </script>
  68. <script type='text/javascript' src='https://transcomfort.com.pl/wp-content/plugins/responsive-lightbox/js/front.js?ver=2.4.7' id='responsive-lightbox-js'></script>
  69. <link rel="https://api.w.org/" href="https://transcomfort.com.pl/wp-json/" /><link rel="alternate" type="application/json" href="https://transcomfort.com.pl/wp-json/wp/v2/pages/17" /><link rel="EditURI" type="application/rsd+xml" title="RSD" href="https://transcomfort.com.pl/xmlrpc.php?rsd" />
  70. <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="https://transcomfort.com.pl/wp-includes/wlwmanifest.xml" />
  71. <meta name="generator" content="WordPress 5.8.9" />
  72. <link rel='shortlink' href='https://transcomfort.com.pl/' />
  73. <link rel="alternate" type="application/json+oembed" href="https://transcomfort.com.pl/wp-json/oembed/1.0/embed?url=https%3A%2F%2Ftranscomfort.com.pl%2F" />
  74. <link rel="alternate" type="text/xml+oembed" href="https://transcomfort.com.pl/wp-json/oembed/1.0/embed?url=https%3A%2F%2Ftranscomfort.com.pl%2F&#038;format=xml" />
  75. <link rel="icon" href="https://transcomfort.com.pl/wp-content/uploads/2021/08/cropped-android-chrome-512x512-1-32x32.png" sizes="32x32" />
  76. <link rel="icon" href="https://transcomfort.com.pl/wp-content/uploads/2021/08/cropped-android-chrome-512x512-1-192x192.png" sizes="192x192" />
  77. <link rel="apple-touch-icon" href="https://transcomfort.com.pl/wp-content/uploads/2021/08/cropped-android-chrome-512x512-1-180x180.png" />
  78. <meta name="msapplication-TileImage" content="https://transcomfort.com.pl/wp-content/uploads/2021/08/cropped-android-chrome-512x512-1-270x270.png" />
  79. <style type="text/css" id="wp-custom-css">
  80. .col.two.right p {
  81. margin-top: 30px;
  82. margin-bottom: 60px;
  83. }
  84. .col.two.right .czytaj {
  85. margin-top: -50px;
  86. } </style>
  87. <!-- Global site tag (gtag.js) - Google Analytics -->
  88. <script async src="https://www.googletagmanager.com/gtag/js?id=UA-30153092-1"></script>
  89. <script>
  90.  window.dataLayer = window.dataLayer || [];
  91.  function gtag(){dataLayer.push(arguments);}
  92.  gtag('js', new Date());
  93.  
  94.  gtag('config', 'UA-30153092-1');
  95. </script>
  96.  
  97. </head>
  98.  
  99. <body  >
  100.  
  101.    <div id="burger">
  102.        <a href="javascript:void(0)" onclick="closeNav()" class="closebth">&times;</a>
  103.        <ul id="menu-menu_pl" class="menu"><li id="menu-item-9" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-9"><a href="https://transcomfort.com.pl/home/">Home</a></li>
  104. <li id="menu-item-19" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-home current-menu-item page_item page-item-17 current_page_item menu-item-19"><a href="https://transcomfort.com.pl/" aria-current="page">O&nbsp;Firmie</a></li>
  105. <li id="menu-item-132" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-132"><a href="https://transcomfort.com.pl/wynajem_autokary_krakow/">Oferta</a></li>
  106. <li id="menu-item-55" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-55"><a href="https://transcomfort.com.pl/klienci/">Klienci</a></li>
  107. <li id="menu-item-63" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-63"><a href="https://transcomfort.com.pl/referencje/">Referencje</a></li>
  108. <li id="menu-item-73" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-73"><a href="https://transcomfort.com.pl/aktualnosci/">Aktualności</a></li>
  109. <li id="menu-item-82" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-82"><a href="https://transcomfort.com.pl/kontakt/">Kontakt</a></li>
  110. </ul>    </div>
  111.  
  112. <header>
  113.        <nav class="navbar">
  114.            <div class="container clearfix">
  115.                <div class="navbar-brand">
  116.                    <a class="brand-link" href="https://transcomfort.com.pl">
  117.                        <img src="https://transcomfort.com.pl/wp-content/uploads/2017/09/logo-1.png" />
  118.                    </a>
  119.                </div>
  120.                <div class="navbar-header clearfix">
  121.                    <ul id="menu-menu_pl-1" class="menu"><li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-9"><a href="https://transcomfort.com.pl/home/">Home</a></li>
  122. <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-home current-menu-item page_item page-item-17 current_page_item menu-item-19"><a href="https://transcomfort.com.pl/" aria-current="page">O&nbsp;Firmie</a></li>
  123. <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-132"><a href="https://transcomfort.com.pl/wynajem_autokary_krakow/">Oferta</a></li>
  124. <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-55"><a href="https://transcomfort.com.pl/klienci/">Klienci</a></li>
  125. <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-63"><a href="https://transcomfort.com.pl/referencje/">Referencje</a></li>
  126. <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-73"><a href="https://transcomfort.com.pl/aktualnosci/">Aktualności</a></li>
  127. <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-82"><a href="https://transcomfort.com.pl/kontakt/">Kontakt</a></li>
  128. </ul>                </div>
  129.            </div>
  130.            <button id="openbth" href="javascript:void(0)" type="button" class="navbar-toggle collapsed">
  131.                <span class="sr-only">Toggle navigation</span>
  132.                <span class="icon-bar"></span>
  133.                <span class="icon-bar middle"></span>
  134.                <span class="icon-bar"></span>
  135.            </button>
  136.        </nav>
  137. </header>
  138.  
  139.        
  140. <section id="page">
  141.    <div class="banner bg" style="background: url(https://transcomfort.com.pl/wp-content/uploads/2017/09/bnr-akt.jpg)">
  142.        <div class="box">
  143.            <div class="slogan">
  144.                <h1>Wynajem pojazdu wraz z&nbsp;kierowcą Kraków</h1>            </div>
  145.        </div>
  146.    </div>
  147.  
  148.    <div class="container clearfix">
  149.  
  150.                <section id="about">
  151.            <div class="col two about">
  152.                <div class="text">
  153.                    <h2>Licencjonowany przewoźnik od&nbsp;2007r.</h2>
  154. <p>&nbsp;</p>
  155. <p>Firma istniejąca od&nbsp;2007 roku, powstała na&nbsp;bazie kilkunastoletnich doświadczeń, wyniesionych z&nbsp;praktyki w&nbsp;przedsiębiorstwach transportowych oraz&nbsp;biurach podróży.</p>
  156. <p>&nbsp;</p>
  157. <p>Jesteśmy licencjonowanym przewoźnikiem oferującym usługi w&nbsp;zakresie przewozu osób na&nbsp;terenie kraju jak i&nbsp;za&nbsp;granicą. Komfortowe pojazdy marki Scania, Temsa, Man, Mercedes wyposażone są&nbsp;w&nbsp;klimatyzacje, dvd, barek, rozkładane fotele, systemy nawigacji GPS.</p>
  158. <p>&nbsp;</p>
  159. <p>Zajmujemy się przewozem indywidualnych osób jak i&nbsp;zorganizowanych grup.</p>
  160. <p>&nbsp;</p>
  161. <p>Nasi kierowcy posiadają wieloletnie doświadczenie w&nbsp;prowadzeniu dużych pojazdów przeznaczonych do&nbsp;transportu osób oraz&nbsp;cechują się bardzo wysoką kulturą osobistą.</p>
  162. <p>&nbsp;</p>
  163. <p>Praca z&nbsp;nami to&nbsp;gwarancja bezpieczeństwa, punktualności, komfortu jazdy oraz&nbsp;konkurencyjnych cen! Zapraszamy do&nbsp;<a href="https://transcomfort.com.pl/kontakt/">kontaktu</a>.</p>                </div>
  164.            </div>
  165.            <div class="col two about shadow">
  166.                <div class="text">
  167.                    <h3><strong>Nasza</strong><br />oferta</h3>
  168. <p>&nbsp;</p>
  169. <ul>
  170. <li><a href="https://transcomfort.com.pl/">Przewozy osób</a>, krajowe i&nbsp;zagraniczne</li>
  171. <li>Obsługa turystyki przyjazdowej</li>
  172. <li>Transfery osób (lotniska, hotele)</li>
  173. <li>Wyjazdy narciarskie</li>
  174. <li>Obsługa imprez okolicznościowych (wesela, spotkania biznesowe, zjazdy, promocje itp.)</li>
  175. <li>Wynajem pojazdu wraz z&nbsp;kierowcą</li>
  176. </ul>                </div>
  177.                <div class="to-gallery bg" style="background: url(https://transcomfort.com.pl/wp-content/uploads/2017/09/bus_home_galery.jpg);">
  178.                    <a href="/autokary">
  179.                        Zobacz galerię                        <i class="fa fa-chevron-right" aria-hidden="true"></i>
  180.                    </a>
  181.                </div>
  182.            </div>
  183.        </section>
  184.            
  185.        
  186.        
  187.        
  188.    </div>
  189. </section>
  190.  
  191. <footer id="footer">
  192.    <div class="container clearfix">
  193.        <span class="underline"></span>
  194.        <div class="info">
  195.                                    <div class="col four">
  196.                                                            <img src="https://transcomfort.com.pl/wp-content/uploads/2017/09/tel_ico.png" class="ico" />
  197.                                                        <div class="text">
  198.                                <p>Szybki kontakt </p>
  199. <h3><a href="tel:+48604272396">604 272 396</a> </h3>                            </div>
  200.                        </div>
  201.                                            <div class="col four">
  202.                                                        <div class="text">
  203.                                <p><strong>Trans comfort</strong> <br />usługi transportowe</p>                            </div>
  204.                        </div>
  205.                                            <div class="col four">
  206.                                                        <div class="text">
  207.                                <p><strong>Biuro</strong><br />ul.&nbsp;Rodzinna 7a <br />30-377 Kraków</p>                            </div>
  208.                        </div>
  209.                                            <div class="col four">
  210.                                                        <div class="text">
  211.                                <p><strong>Baza transportowa</strong><br />ul.&nbsp;Tyniecka 156<br />30-376 Kraków</p>                            </div>
  212.                        </div>
  213.                                            <div class="col four">
  214.                                                        <div class="text">
  215.                                                            </div>
  216.                        </div>
  217.                                            <div class="col four">
  218.                                                        <div class="text">
  219.                                                            </div>
  220.                        </div>
  221.                            </div>
  222.        <div class="botline">
  223. <p>Tworzona strona internetowa wykorzystuje pliki cookies. Transcomfort - wynajem busów, <a href="http://transcomfort.com.pl/">przewozy osób Kraków</a></p>
  224.            <p>
  225. Agencja digital: <a href="https://www.hauerpower.com" target="_blank" title="hauerpower">hauerpower</a>
  226. </p>
  227.        </div>
  228.    </div>
  229. </footer>
  230.  
  231. <link rel='stylesheet' id='core-css'  href='https://transcomfort.com.pl/wp-content/themes/transcomfort/css/core.css?ver=1.1' type='text/css' media='all' />
  232. <link rel='stylesheet' id='responsive-css'  href='https://transcomfort.com.pl/wp-content/themes/transcomfort/css/responsive.css?ver=1.1' type='text/css' media='all' />
  233. <link rel='stylesheet' id='animate-css'  href='https://transcomfort.com.pl/wp-content/themes/transcomfort/css/animate.css?ver=1.1' type='text/css' media='all' />
  234. <link rel='stylesheet' id='owl.carousel-css'  href='https://cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.carousel.css?ver=1' type='text/css' media='all' />
  235. <link rel='stylesheet' id='owl.theme-css'  href='https://cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.theme.css?ver=1' type='text/css' media='all' />
  236. <link rel='stylesheet' id='font-awesome-css'  href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css?ver=1' type='text/css' media='all' />
  237. <script type='text/javascript' src='https://transcomfort.com.pl/wp-includes/js/dist/vendor/regenerator-runtime.min.js?ver=0.13.7' id='regenerator-runtime-js'></script>
  238. <script type='text/javascript' src='https://transcomfort.com.pl/wp-includes/js/dist/vendor/wp-polyfill.min.js?ver=3.15.0' id='wp-polyfill-js'></script>
  239. <script type='text/javascript' id='contact-form-7-js-extra'>
  240. /* <![CDATA[ */
  241. var wpcf7 = {"api":{"root":"https:\/\/transcomfort.com.pl\/wp-json\/","namespace":"contact-form-7\/v1"}};
  242. /* ]]> */
  243. </script>
  244. <script type='text/javascript' src='https://transcomfort.com.pl/wp-content/plugins/contact-form-7/includes/js/index.js?ver=5.5.6.1' id='contact-form-7-js'></script>
  245. <script type='text/javascript' id='collapseomatic-js-js-before'>
  246. const com_options = {"colomatduration":"fast","colomatslideEffect":"slideFade","colomatpauseInit":"","colomattouchstart":""}
  247. </script>
  248. <script type='text/javascript' src='https://transcomfort.com.pl/wp-content/plugins/jquery-collapse-o-matic/js/collapse.js?ver=1.7.2' id='collapseomatic-js-js'></script>
  249. <script type='text/javascript' src='https://transcomfort.com.pl/wp-includes/js/wp-embed.min.js?ver=5.8.9' id='wp-embed-js'></script>
  250. <script type='text/javascript' src='https://transcomfort.com.pl/wp-content/themes/transcomfort/js/main.js?ver=5.8.9' id='main-js'></script>
  251.  
  252. <script type="text/javascript">
  253.    (function($) {
  254.  
  255.        /*
  256.         *  new_map
  257.         *
  258.         *  This function will render a Google Map onto the selected jQuery element
  259.         *
  260.         *  @type function
  261.         *  @date 8/11/2013
  262.         *  @since 4.3.0
  263.         *
  264.         *  @param $el (jQuery element)
  265.         *  @return n/a
  266.         */
  267.  
  268.        function new_map( $el ) {
  269.  
  270.            // var
  271.            var $markers = $el.find('.marker');
  272.  
  273.  
  274.            // vars
  275.            var args = {
  276.                zoom : 16,
  277.                center : new google.maps.LatLng(0, 0),
  278.                mapTypeId : google.maps.MapTypeId.ROADMAP,
  279.                styles : [{featureType:'all',stylers:[{saturation:-100},{gamma:0.0}]}]
  280.            };
  281.  
  282.  
  283.            // create map
  284.            var map = new google.maps.Map( $el[0], args);
  285.  
  286.  
  287.            // add a markers reference
  288.            map.markers = [];
  289.  
  290.  
  291.            // add markers
  292.            $markers.each(function(){
  293.  
  294.                add_marker( $(this), map );
  295.  
  296.            });
  297.  
  298.  
  299.            // center map
  300.            center_map( map );
  301.  
  302.  
  303.            // return
  304.            return map;
  305.  
  306.        }
  307.  
  308.        /*
  309.         *  add_marker
  310.         *
  311.         *  This function will add a marker to the selected Google Map
  312.         *
  313.         *  @type function
  314.         *  @date 8/11/2013
  315.         *  @since 4.3.0
  316.         *
  317.         *  @param $marker (jQuery element)
  318.         *  @param map (Google Map object)
  319.         *  @return n/a
  320.         */
  321.  
  322.        function add_marker( $marker, map ) {
  323.  
  324.            // var
  325.            var latlng = new google.maps.LatLng( $marker.attr('data-lat'), $marker.attr('data-lng') );
  326.  
  327.            // create marker
  328.            var marker = new google.maps.Marker({
  329.                position : latlng,
  330.                map : map
  331.            });
  332.  
  333.            // add to array
  334.            map.markers.push( marker );
  335.  
  336.            // if marker contains HTML, add it to an infoWindow
  337.            if( $marker.html() )
  338.            {
  339.                // create info window
  340.                var infowindow = new google.maps.InfoWindow({
  341.                    content : $marker.html()
  342.                });
  343.  
  344.                // show info window when marker is clicked
  345.                google.maps.event.addListener(marker, 'click', function() {
  346.  
  347.                    infowindow.open( map, marker );
  348.  
  349.                });
  350.            }
  351.  
  352.        }
  353.  
  354.        /*
  355.         *  center_map
  356.         *
  357.         *  This function will center the map, showing all markers attached to this map
  358.         *
  359.         *  @type function
  360.         *  @date 8/11/2013
  361.         *  @since 4.3.0
  362.         *
  363.         *  @param map (Google Map object)
  364.         *  @return n/a
  365.         */
  366.  
  367.        function center_map( map ) {
  368.  
  369.            // vars
  370.            var bounds = new google.maps.LatLngBounds();
  371.  
  372.            // loop through all markers and create bounds
  373.            $.each( map.markers, function( i, marker ){
  374.  
  375.                var latlng = new google.maps.LatLng( marker.position.lat(), marker.position.lng() );
  376.  
  377.                bounds.extend( latlng );
  378.  
  379.            });
  380.  
  381.            // only 1 marker?
  382.            if( map.markers.length == 1 )
  383.            {
  384.                // set center of map
  385.                map.setCenter( bounds.getCenter() );
  386.                map.setZoom( 16 );
  387.            }
  388.            else
  389.            {
  390.                // fit to bounds
  391.                map.fitBounds( bounds );
  392.            }
  393.  
  394.        }
  395.  
  396.        /*
  397.         *  document ready
  398.         *
  399.         *  This function will render each map when the document is ready (page has loaded)
  400.         *
  401.         *  @type function
  402.         *  @date 8/11/2013
  403.         *  @since 5.0.0
  404.         *
  405.         *  @param n/a
  406.         *  @return n/a
  407.         */
  408.        // global var
  409.        var map = null;
  410.  
  411.        $(document).ready(function(){
  412.  
  413.            $('.acf-map').each(function(){
  414.  
  415.                // create map
  416.                map = new_map( $(this) );
  417.  
  418.            });
  419.  
  420.        });
  421.  
  422.    })(jQuery);
  423. </script>
  424. </body>
  425. </html>
  426.  
Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda