code: private function renderArticlesBlock()
      {
          /** @var Articles_Entity_Table_Article $table */
          $table = ORM::getTable($this, 'Article');
          $q = $table->createSelectQuery();
          if ('manual' == $this->settings['blockMode'])
          {
              $q->where($q->expr->eq('block', $q->bindValue(true, null, PDO::PARAM_BOOL)));
          }
          /** @var Articles_Entity_Article[] $articles */
          $articles = $table->loadFromQuery($q, $this->settings['blockCount']);
  
          $vars = array(
              'settings' => $this->settings,
              'articles' => $articles,
          );
          $tmpl = $this->templates()->client('Block.html');
          $html = $tmpl->compile($vars);
          return $html;
      }
docs: Отрисовка блока статей
  
  @return string