Esempio n. 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>
Esempio n. 2
0
?>
">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 
Esempio n. 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";
}