- Migrate class.S → Shared\Helpers\Helpers (140+ files), remove 12 unused methods - Migrate class.Html → Shared\Html\Html - Migrate class.Email → Shared\Email\Email - Migrate class.Image → Shared\Image\ImageManipulator - Delete class.Log (unused), class.Mobile_Detect (outdated UA detection) - Remove grid library loading from admin (index.php, ajax.php) - Replace gridEdit usage in 10 admin templates with grid-edit-replacement.php - Fix grid-edit-replacement.php AJAX to send values as JSON (grid.js compat) - Remove mobile layout conditionals (m_html/m_css/m_js) from Site + LayoutsRepository - Remove \Log::save_log() calls from OrderAdminService, ShopOrder, Order Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
38 lines
1.6 KiB
PHP
38 lines
1.6 KiB
PHP
<? global $lang, $config, $settings;?>
|
|
<? foreach ( $this -> articles as $article ):?>
|
|
<div class="col-12 col-lg-6 col-xl-3">
|
|
<div class="article-list">
|
|
<? $article['language']['seo_link'] ? $url = $article['language']['seo_link'] : $url = 'a-' . $article['id'] . '-' . \Shared\Helpers\Helpers::seo( $article['language']['title'] );?>
|
|
<a href="/<?= $url;?>" title="<?= $article['language']['title'];?>" <? if ( $article['language']['noindex'] ):?>rel="nofollow"<? endif;?>>
|
|
<div class="blog-image">
|
|
<img src="<?= \front\Views\Articles::getImage( $article );?>" alt="<?= $article['language']['title'];?>">
|
|
<div class="date-add"><?= date( 'd.m.y', strtotime( $article['date_add'] ) );?></div>
|
|
</div>
|
|
<h3 class="article-title"><?= $article['language']['title'];?></h3>
|
|
<div class="article-entry">
|
|
<?
|
|
if ( $article['language']['entry'] )
|
|
{
|
|
$content = $article['language']['entry'];
|
|
|
|
$content = preg_replace( "/<img[^>]+\>/i", "", $content );
|
|
$content = preg_replace( "/<p[^>]*?>/", "", $content );
|
|
$content = preg_replace( "/[\n\r]/", " ", $content );
|
|
$content = mb_substr( $content, 0, 150, 'UTF-8' ) . '...';
|
|
echo $content;
|
|
|
|
if ( $article['language']['text'] )
|
|
$more = true;
|
|
}
|
|
else
|
|
{
|
|
echo $article['language']['text'];
|
|
|
|
$more = false;
|
|
}
|
|
?>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<? endforeach;?>
|