* Maintainer: Alex * Screenshot: Screenshot */ $a->theme_info = array( 'extends' => 'smoothly', ); function smoothly_init(&$a) { $a->page['htmlhead'] .= <<< EOT EOT; // get resize configuration $resize=false; $site_resize = get_config('smoothly', 'resize' ); if(local_user()) $resize = get_pconfig(local_user(), 'smoothly', '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/smoothly/js/jquery.ae.image.resize.js"; $a->page['htmlhead'] .= sprintf('', $imageresizeJS); $a->page['htmlhead'] .= ' ';} }