예제 #1
0
 /**
  * Injects the assets (from INCLUDECSS/JS) in the output.
  *
  * @param string $output
  *
  * @return string
  */
 private function inject_assets($output)
 {
     $output = str_replace('__STYLESHEETS_PLACEHOLDER__', $this->assets_bag->get_stylesheets_content(), $output);
     $output = str_replace('__SCRIPTS_PLACEHOLDER__', $this->assets_bag->get_scripts_content(), $output);
     return $output;
 }
예제 #2
0
 /**
  * Injects the assets (from INCLUDECSS/JS) in the output.
  *
  * @param string $output
  *
  * @return string
  */
 private function inject_assets($output, $placeholder_salt)
 {
     $output = str_replace('__STYLESHEETS_' . $placeholder_salt . '__', $this->assets_bag->get_stylesheets_content(), $output);
     $output = str_replace('__SCRIPTS_' . $placeholder_salt . '__', $this->assets_bag->get_scripts_content(), $output);
     return $output;
 }