<meta name="msapplication-TileImage" content="http://todayishould.com/favicons/mstile-144x144.png">
    <meta name="theme-color" content="#ffffff">

    <!-- Twitter Card Settings -->
    <meta name="twitter:card" content="photo">
    <meta name="twitter:site" content="@todayishould">
    <meta name="twitter:title" content="<?php 
perch_pages_title();
?>
">
    <meta name="twitter:image:src" content="http://todayishould.com/favicons/apple-touch-icon-144x144.png">
    <!-- end twitter cards settings -->

    <!-- FACEBOOK OG SETTINGS -->
    <meta property="og:title" content="<?php 
perch_pages_title();
?>
">
    <meta property="og:site_name" content="Today I Should">
    <meta property="og:url" content="http://todayishould.com">
    <meta property="og:description" content="Web design, development, seo and maintenance in Sevenoaks, Kent. We make the internet a friendlier place for your digital marketing.">
    <meta property="fb:app_id" content="1675122402736276">
    <meta property="og:type" content="website">
    <!-- End FB Settings -->



    <!-- Fonts -->
    <link href='http://fonts.googleapis.com/css?family=Karla:400,400italic,700,700italic' rel='stylesheet' type='text/css'>
    <link href='http://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" href="/css/font-awesome.min.css">
Exemple #2
0
<?php

if (!defined('PERCH_RUNWAY')) {
    include $_SERVER['DOCUMENT_ROOT'] . '/perch/runtime.php';
}
$title = perch_pages_title(true);
perch_layout('header', ['title' => $title . ' | perch.io']);
// perch_layout('homepage-header');
?>
      
        <div class="outer-container">
            <main class="main-body">
                <h1>Addons</h1>
                <?php 
listings('listing', array('template' => 'addons_listing.html'));
?>
                <a class="button" href="/user/apps/new">Submit a new app</a>
            </main>
            <?php 
perch_layout('user-sidebar');
?>
        </div>
        
    <?php 
perch_layout('footer');
function perch_page_title($return = false)
{
    if ($return) {
        return perch_pages_title(true);
    }
    perch_pages_title();
}
Exemple #4
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">
function perch_comments_form($parentID, $parentTitle = false, $opts = false, $return = false)
{
    $API = new PerchAPI(1.0, 'perch_comments');
    $defaults = array();
    $defaults['template'] = 'comment_form.html';
    if (is_array($opts)) {
        $opts = array_merge($defaults, $opts);
    } else {
        $opts = $defaults;
    }
    if ($parentTitle == false) {
        $parentTitle = perch_pages_title(true);
    }
    $Template = $API->get('Template');
    $Template->set('comments/' . $opts['template'], 'comments');
    $html = $Template->render(array('parentID' => $parentID, 'parentTitle' => PerchUtil::html($parentTitle, true)));
    $html = $Template->apply_runtime_post_processing($html);
    if ($return) {
        return $html;
    }
    echo $html;
}