这个function_preprocess在block.tpl.php中加载了css。如何将相同div 添加为itemscope itemtype="http://schema.org/Periodical", itemprop="image", itemprop="description" and more... Microdata elements
function floyd_preprocess_region(&$variables, $hook) {
if($variables['region'] == "top_c"){
$variables['classes_array'][] = 'uk-margin-top uk-margin-bottom uk- grid-width-small-1-1 uk-grid-width-medium-1-3 uk-grid-width-large-1-4';
}
“** itemscope itemtype =”http://schema.org/Article“**>
答案 0 :(得分:0)
而不是:
@Index
尝试:
$variables['classes_array'][] = ...
如果它是一个块,我想你应该试试这个钩子:
$variables['title_attributes_array']['class'][] = ...
(阻止而不是区域)