/** * add a css file from the vendor sub folder * * @param string $application application id * @param string|null $file filename * @return void */ public static function addVendorStyle($application, $file = null) { $path = OC_Util::generatePath($application, 'vendor', $file); if (!in_array($path, self::$styles)) { self::$styles[] = $path; } }
/** * add a css file from the vendor sub folder * * @param string $application application id * @param string|null $file filename * @param bool $prepend prepend the Style to the beginning of the list * @return void */ public static function addVendorStyle($application, $file = null, $prepend = false) { $path = OC_Util::generatePath($application, 'vendor', $file); self::addExternalResource($application, $prepend, $path, "style"); }
/** * add a css file from the vendor sub folder * * @param string $application application id * @param string|null $file filename * @param bool $prepend prepend the Style to the beginning of the list * @return void */ public static function addVendorStyle($application, $file = null, $prepend = false) { $path = OC_Util::generatePath($application, 'vendor', $file); //TODO eliminate double code if (!in_array($path, self::$styles)) { if ($prepend === true) { array_unshift(self::$styles, $path); } else { self::$styles[] = $path; } } }
/** * add a css file from the vendor sub folder * * @param string $application application id * @param string|null $file filename * @return void */ public static function addVendorStyle($application, $file = null) { self::$styles[] = OC_Util::generatePath($application, 'vendor', $file); }