コード例 #1
0
<?php

$doc = documentation_get($page);
$install_url = path('documentation/general/theme-installation/');
if (!empty($doc['parent-theme'])) {
    $install_url = path('documentation/general/child-theme-installation/');
}
?>

    <h1><?php 
echo $doc['name'];
?>
 Documentation</h1>

    <div class="note intro breath">
        <p><?php 
echo $doc['description'];
?>
</p>
        <p><a href="<?php 
echo $doc['url-details'];
?>
" class="button">More Info <i class="fa fa-arrow-right" aria-hidden="true"></i></a></p>
    </div>
<?php 
if (!site_include_exists('_support/_theme/' . $page . '.php')) {
    ?>
    <img src="<?php 
    echo image_path('devices/' . $doc['image']);
    ?>
" alt="<?php 
コード例 #2
0
ファイル: theme.php プロジェクト: BinaryMoon/pro-theme-design
        <div class="wrapper block-wrapper">
            <header class="block-header">
                <h2>
                    <?php 
echo $theme['name'];
?>
 Features
                    <small><a href="<?php 
echo $theme['url-documentation'];
?>
">View Docs for complete list <i class="fa fa-arrow-right" aria-hidden="true"></i></a></small>
                </h2>
            </header>
<?php 
foreach ($theme['supports'] as $supports) {
    $feature = documentation_get($supports);
    if ($feature && isset($feature['icon'])) {
        ?>
            <div class="block">
                <div class="content">
                    <i class="fa fa-<?php 
        echo $feature['icon'];
        ?>
 icon"></i>
                    <h3><a href="<?php 
        echo $feature['url'];
        ?>
"><?php 
        echo $feature['name'];
        ?>
</a></h3>