예제 #1
0
<p><i><?php 
echo my_format_date($news_element['publish_date']);
?>
</i>&nbsp;&nbsp;&nbsp;<b><?php 
echo $news_element['title'];
?>
</b></p>
<p><?php 
echo cut_text($news_element['text']);
?>
</p>
<p><a href="<?php 
echo PROJECT_PATH;
?>
/news/?id=<?php 
echo $id;
?>
">подробнее</a></p>
<hr>
예제 #2
0
파일: home.php 프로젝트: katrincwl/kc_cms
?>
">Company News</a>
                </h2>
            </div>
            <div class="owl-carousel">
            <?php 
foreach ($newses as $count => $news) {
    ?>
                <div class="news_item">
                    <h4 class="news_title"><?php 
    echo $news->title;
    ?>
</h4>
                    <div class="news_publish_date">
                        <?php 
    echo my_format_date($news->publish_date);
    ?>
                    </div>
                    <div class="news_body">
                        <?php 
    echo $news->content;
    ?>
                    </div>
                </div>
                <?php 
    if ($count < sizeof($newses) - 1) {
        ?>
                <?php 
    }
    ?>
            <?php 
예제 #3
0
function create_entry($m_time, $path)
{
    $freq = freq_calc($m_time);
    echo "<url>\n";
    echo "<loc>{$path}</loc>";
    echo "<lastmod>";
    echo my_format_date($m_time);
    echo "</lastmod>\n";
    echo "<changefreq>{$freq}</changefreq>\n";
    echo "</url>\n";
}