theme_info = array( 'extends' => 'duepuntozero', ); set_template_engine($a, 'smarty3'); function cleanzero_init(&$a) { $a->page['htmlhead'] .= <<< EOT EOT; // get resize configuration $resize=false; $site_resize = get_config('cleanzero', 'resize' ); if(local_user()) $resize = get_pconfig(local_user(), 'cleanzero', 'resize' ); if ($resize===false) $resize=$site_resize; if ($resize===false) $resize=0; if (intval($resize) > 0) { //load jquery.ae.image.resize.js $imageresizeJS = $a->get_baseurl($ssl_state)."/view/theme/cleanzero/js/jquery.ae.image.resize.js"; $a->page['htmlhead'] .= sprintf('', $imageresizeJS); $a->page['htmlhead'] .= ' ';} }