/**
  * Registers styles based on it's parameters.
  *
  * @param WPSEO_Admin_Asset $style The style to register.
  */
 public function register_style(WPSEO_Admin_Asset $style)
 {
     wp_register_style(self::PREFIX . $style->get_name(), $style->get_url(WPSEO_Admin_Asset::TYPE_CSS, WPSEO_FILE), $style->get_deps(), $style->get_version(), $style->get_media());
 }
Ejemplo n.º 2
0
 /**
  * Registers styles based on it's parameters.
  *
  * @param WPSEO_Admin_Asset $style The style to register.
  */
 public function register_style(WPSEO_Admin_Asset $style)
 {
     wp_register_style(self::PREFIX . $style->get_name(), plugins_url('css/' . $style->get_src() . $style->get_suffix() . '.css', WPSEO_FILE), $style->get_deps(), $style->get_version(), $style->get_media());
 }