/** * Create the link that will be added to the frontend */ public function add_link_to_html_for_frontend() { $preview = ''; if (true === $this->preview_mode) { // bypass browser caching of the css $now = strtotime('now'); $preview = "&preview=1&nocache={$now}&ai1ec_stylesheet=" . $_GET['ai1ec_stylesheet']; } $url = $this->get_css_url() . $preview; $this->template_adapter->enqueue_script('ai1ec_style', $url); }