This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return array( | |
'default' => array( | |
// Разрешённые теги | |
'cfgAllowTags' => array( | |
// вызов метода с параметрами | |
array( | |
array('ls','cut','a', 'img', 'i', 'b', 'u', 's', 'video', 'em', 'strong', 'nobr', 'li', 'ol', 'ul', 'sup', 'abbr', 'sub', 'acronym', 'h2', 'h3', 'h4', 'h5', 'h6', 'br', 'hr', 'pre', 'code', 'object', 'param', 'embed', 'blockquote', 'iframe','table','th','tr','td','figure','meta','figcaption'), | |
), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function BuildHTML($sPath,$aParams) { | |
$sText='<figure itemprop="image"><img itemtype="https://schema.org/ImageObject" src="'.$sPath.'" '; | |
if (isset($aParams['title']) and $aParams['title']!='') { | |
$sText.=''; | |
/** | |
* Если не определен ALT заполняем его тайтлом | |
*/ | |
if(!isset($aParams['alt'])) $aParams['alt']=$aParams['title']; | |
} | |
if (isset($aParams['align']) and in_array($aParams['align'],array('left','right','center'))) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Темы | |
Темы не часто используются в проекте, из-за этого они не входят в основные типы. В некоторых проектах может быть необходимость в них, как мы делали при работе в Yahoo! Mail. | |
### Темы | |
Это, возможно, само собой разумеющееся, но тема определяет цвета и изображения, которые создают для приложения или сайта его внешний вид. Отделив тему в свой собственный набор стилей, позволяет использовать эти стили, чтобы потом применять в альтернативных темах. | |
Темы могут повлиять на любой из первичных типов. Они могут переопределить базовые стили, такие как цвет линии по умолчанию. Могут изменить элементы модули, такие как chrome colours и границ. Может управлять расположением в макете и изменять его, для демонстрации состояния. |