예제 #1
0
<div class="light-bg">
    <div class="plugin-head">
        <h2>
            <a href="<?php 
echo Router::pathFor('plugins.view', ['name' => $plugin->vendor_name]);
?>
"><?php 
echo $plugin->name;
?>
</a>
            <small><?php 
echo isset($plugin->last_version) ? htmlspecialchars($plugin->last_version) : '0.1.0';
?>
</small>
            <span class="plugin-last-update">Last updated: <?php 
echo htmlspecialchars(Utils::format_time($plugin->last_update));
?>
</span>
        </h2>

        <p>By <?php 
echo htmlspecialchars($plugin->author);
?>
</p>
        <em><?php 
echo isset($plugin->description) ? htmlspecialchars($plugin->description) : 'No description available';
?>
</em>
        <p><?php 
echo htmlspecialchars($plugin->nb_downloads);
?>
예제 #2
0
<div class="light-bg">
    <div class="plugin-head">
        <h2>
            <a href="<?php 
echo Router::pathFor('themes.view', ['name' => $theme->vendor_name]);
?>
"><?php 
echo $theme->name;
?>
</a>
            <small><?php 
echo isset($theme->last_version) ? htmlspecialchars($theme->last_version) : '0.1.0';
?>
</small>
            <span class="plugin-last-update">Last updated: <?php 
echo htmlspecialchars(Utils::format_time($theme->last_update));
?>
</span>
        </h2>

        <p>By <?php 
echo htmlspecialchars($theme->author);
?>
</p>
        <p><?php 
echo htmlspecialchars($theme->nb_downloads);
?>
 downloads</p>
        <p><?php 
echo implode(', ', $tag_links);
?>