function init() { parent::init(); PrettyPhoto::include_code(); Requirements::themedCSS("DesignersPage", "designers"); Config::inst()->Update("PrettyPhoto", "theme", "dark_rounded"); //"dark_rounded", "dark_square", "facebook", "light_rounded", "light_square" OR create your own! Config::inst()->Update("PrettyPhoto", "more_config", "AnimationSpeed: 'slow', opacity: 0.30, showTitle: false"); //see readme for some examples! }
function init() { parent::init(); Requirements::javascript(THIRDPARTY_DIR . "/jquery/jquery.js"); if (class_exists("PrettyPhoto")) { PrettyPhoto::include_code(); } else { user_error("It is recommended that you include the PrettyPhoto Module", E_USER_NOTICE); } Requirements::javascript("webportfolio/javascript/webportfolio.js"); Requirements::themedCSS("WebPortfolioPage", "webportfolio"); }
public function init() { parent::init(); if (class_exists("PrettyPhoto")) { PrettyPhoto::include_code(); } }
function init() { parent::init(); if (!Director::is_cli() && !Director::isDev() && !Permission::check('ADMIN')) { return Security::permissionFailure(); } Requirements::javascript(THIRDPARTY_DIR . "/jquery/jquery.js"); Requirements::javascript('templateoverview/javascript/TemplateOverviewPage.js'); Requirements::css("templateoverview/css/TemplateOverviewPage.css"); if (class_exists("PrettyPhoto")) { PrettyPhoto::include_code(); } else { user_error("It is recommended that you install the Sunny Side Up Pretty Photo Module", E_USER_NOTICE); } }
function init() { parent::init(); Requirements::javascript(THIRDPARTY_DIR . "/jquery/jquery.js"); if (class_exists("PrettyPhoto")) { PrettyPhoto::include_code(); } else { user_error("It is recommended that you include the PrettyPhoto Module", E_USER_NOTICE); } Requirements::javascript($this->Config()->get("ajax_file_location")); Requirements::javascript("webportfolio/thirdparty/TimelineJS/compiled/js/storyjs-embed.js"); Requirements::themedCSS("WebPortfolioPageTimeLine", "webportfolio"); }