if ($results != "") { ?> <?php foreach ($results as $result) { ?> <article class="post row"> <?php if ($result->template() == 'post') { ?> <header class="col-xs-12"> <h2> Post: <a href="<?php echo getPostUrl($result); ?> "> <?php echo $result->title()->html(); ?> </a> </h2> <div class="meta"> <span class="author">Posted by <a href="<?php echo $site->url(); ?> /author/<?php echo urlencode($result->author()); ?> "><?php
snippet('header'); ?> <div class="container"> <div class="row main"> <section id="posts" class="posts col-sm-9"> <?php foreach ($posts as $post) { ?> <article class="post row"> <header class="col-xs-12"> <h2> <a href="<?php echo getPostUrl($post); ?> "> <?php echo $post->title()->html(); ?> </a> </h2> <div class="meta"> <span class="author">Posted by <a href="<?php echo $site->url(); ?> /author/<?php echo urlencode($post->author()); ?> "><?php
?> <?php foreach ($items as $item) { ?> <item> <title><?php echo xml($item->title()); ?> </title> <link><?php echo xml(getPostUrl($item)); ?> </link> <guid><?php echo xml(getPostUrl($item)); ?> </guid> <pubDate><?php echo $datefield == 'modified' ? $item->modified('r') : $item->date('r', $datefield); ?> </pubDate> <description><![CDATA[<?php echo $item->{$textfield}()->kirbytext(); ?> ]]></description> </item> <?php } ?>
function disqus_counter($post) { $html .= tpl::load(__DIR__ . DS . 'counter.php', array('url' => getPostUrl($post), 'slug' => $post->slug())); return $html; }
require_once 'twitteroauth/twitteroauth.php'; require_once 'config.php'; require_once 'common.php'; session_start(); error_reporting(0); $user_id = $_SESSION['user_id']; $access_token = $_SESSION['access_token']; $pid = 0; if ('1' == $_POST['status']) { $message = $_POST['message']; $shrinked = $_POST['shrinked']; $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $access_token['oauth_token'], $access_token['oauth_token_secret']); $pid = savePost($user_id, $message); if ($shrinked) { $shortUrl = getPostUrl($pid); $message = "{$shrinked}... {$shortUrl}"; //echo $message; } $connection->post("statuses/update", array("status" => $message)); } ?> <html> <head> <title>Bangla Twitter Status</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link href="style/grid.css" type="text/css" rel="stylesheet" media="screen"/> <script src="js/jquery-1.5.min.js" type="text/javascript"></script> <script src="js/driver.phonetic.js" type="text/javascript"></script> <script src="js/engine.js" type="text/javascript"></script> <style type="text/css" media="screen">