Пример #1
0
<?php

if (perch_layout_has('analytics_id')) {
    ?>
<script>
    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

    ga('create', '<?php 
    perch_layout_var('analytics_id');
    ?>
', 'auto');
    ga('send', 'pageview');
</script>
<?php 
}
// if
Пример #2
0
    <!-- Page Title -->
    <title>
    <?php 
if (perch_layout_has('title')) {
    perch_layout_var('title');
    echo ' | Design and Development Work by Today I Should';
} else {
    perch_pages_title();
}
?>
    </title>


    <?php 
if (perch_layout_has('desc')) {
    ?>
    <meta name="description" content="Today I Should portfolio: <?php 
    perch_layout_var('title');
    echo " - ";
    perch_layout_var('desc');
    ?>
" />
    <?php 
} else {
    perch_page_attributes();
}
?>

    <!--<meta name="description" content="We build websites that work. We work differently.  We help you improve your online marketing with evidence, developing the website you need based on research, design, development and optimisation." />-->
Пример #3
0
<!doctype html>
<html class="no-js" lang="">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="x-ua-compatible" content="ie=edge">      
    <?php 
if (perch_layout_has('blog-post')) {
    perch_blog_post_meta(perch_get('s'));
} else {
    echo '<title>' . perch_pages_title(true) . '</title>';
    perch_page_attributes();
}
?>
           
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="/assets/css/style.css">
        <link rel="shortcut icon" href="/assets/favicon.ico">
        <link rel="apple-touch-icon-precomposed" href="/assets/apple-touch-icon-152x152-precomposed.png">
        <script>
          (function(d) {
            var config = {
              kitId: 'lea0liy',
              scriptTimeout: 3000,
              async: true
            },
            h=d.documentElement,t=setTimeout(function(){h.className=h.className.replace(/\bwf-loading\b/g,"")+" wf-inactive";},config.scriptTimeout),tk=d.createElement("script"),f=false,s=d.getElementsByTagName("script")[0],a;h.className+=" wf-loading";tk.src='https://use.typekit.net/'+config.kitId+'.js';tk.async=true;tk.onload=tk.onreadystatechange=function(){a=this.readyState;if(f||a&&a!="complete"&&a!="loaded")return;f=true;clearTimeout(t);try{Typekit.load(config)}catch(e){}};s.parentNode.insertBefore(tk,s)
          })(document);
        </script>
    </head>
    <body>
        <header class="main-header">