<?php 
}
?>
					</div>
				</header>
				<div class="content">
					<div class="text">
						<?php 
echo kirbytext($article->text());
?>
					</div>
					<div class="gallery">
						<?php 
$filenames = $article->attachments()->split(',');
if (count($filenames) < 2) {
    $filenames = array_pad($filenames, 2, '');
}
$files = call_user_func_array(array($article->files(), 'find'), $filenames);
foreach ($files as $image) {
    echo kirbytag(array('image' => $image->filename(), 'taille' => 'image grid', 'thumbwidth' => 1200, 'originalPage' => $article, 'alt' => $image->caption()));
}
?>
					</div>
				</div>
			</article>
		</div>

	</main>

  <?php 
snippet('footer');
Example #2
0
                <strong>Local (<?php 
echo $site->city()->html();
?>
, <?php 
echo $site->state()->html();
?>
)</strong>
                <br>
                <?php 
echo $site->phoneLocal()->html();
?>
            </div>
            <div class="list-group-item">
                <strong>Email</strong>
                <br>
                <?php 
echo kirbytag(['email' => $site->email()->value()]);
?>
            </div>
            <div class="list-group-item">
                <a href="<?php 
echo url('/contact');
?>
" class="btn btn-default btn-block">
                    Contact Us 
                    <i class="fa fa-chevron-circle-right"></i>
                </a>
            </div>
        </div>
    </div>
</div>
Example #3
0
/**
 * Embeds a Github Gist
 *
 * @param string $url
 * @param string $file
 * @return string
 */
function gist($url, $file = null)
{
    return kirbytag(array('gist' => $url, 'file' => $file));
}
Example #4
0
    echo implode(', ', $city->airports()->toStructure()->pluck('code'));
    ?>
                        <br>
                    </td>
                    <td>
                        <strong><?php 
    echo $rep->title()->html();
    ?>
</strong>
                        <br>
                        <?php 
    echo $rep->phone();
    ?>
                        <br>
                        <?php 
    echo kirbytag(['email' => $rep->email()]);
    ?>
                    </td>
                </tr>
            <?php 
}
?>
  
            </table>
        </div>
    </div>
    <div class="col-sm-6">
        <div id="gmap-locations" data-lat="38" data-lng="-83.5" class="gmap"></div>
    </div>
</div>
Example #5
0
<?php

function webmentions($options = array())
{
    $webmentions = new Kirby\Webmentions\Mentions($options);
    $webmentions->ping();
    return $webmentions;
}
// like tag
kirbytext::$tags['like'] = array('attr' => array('text', 'title', 'rel', 'target', 'popup'), 'html' => function ($tag) {
    return kirbytag(array('link' => $tag->attr('like'), 'text' => $tag->attr('text'), 'title' => $tag->attr('title'), 'rel' => $tag->attr('rel'), 'target' => $tag->attr('target'), 'popup' => $tag->attr('popup'), 'class' => 'u-like-of'));
});
Example #6
0
function sublime($id, $width = false, $height = false, $uid = false, $name = false, $class = false)
{
    return kirbytag(array('sublime' => $id, 'width' => $width, 'height' => $height, 'uid' => $uid, 'name' => $name, 'class' => $class));
}