function _simpleads_theme_attributes_init in SimpleAds 7
Helper function.
4 calls to _simpleads_theme_attributes_init()
- simpleads_preprocess_simpleads_block in includes/
simpleads.theme.inc - Preprocess for simpleads_block.tpl.php
- simpleads_preprocess_simpleads_flash_element in includes/
simpleads.theme.inc - Preprocess for simpleads_flash_element.tpl.php
- simpleads_preprocess_simpleads_img_element in includes/
simpleads.theme.inc - Preprocess for simpleads_img_element.tpl.php
- simpleads_preprocess_simpleads_text_element in includes/
simpleads.theme.inc - Preprocess for simpleads_text_element.tpl.php
File
- includes/
simpleads.helper.inc, line 482 - SimpleAds Helper functions.
Code
function _simpleads_theme_attributes_init($vars) {
$vars['attributes_array'] = array();
$vars['title_attributes_array'] = array();
$vars['content_attributes_array'] = array();
$vars['classes_array'] = array(
'',
);
if (isset($vars['css_class']) && count($vars['css_class']) > 0) {
$vars['css_attributes'] = join(" ", $vars['css_class']);
}
else {
$vars['css_attributes'] = '';
}
return $vars;
}