Example #1
0
    /**
     * Outputs markup for making minor changes to the admin page's styles
     *
     * @access private
     * @since 0.2
     */
    public function _add_admin_styles()
    {
        printf('
			<style type="text/css">
				#icon-class-blogs {
					background-image: url("%1$s/%2$s");
					height: 32px;
					width: 32px;
				}
			</style>
			<link rel="stylesheet" href="%3$sadmin.css" />', ClassBlogs_Utils::get_base_images_url(), $this->_get_admin_color_scheme() === 'fresh' ? 'icon32.png' : 'icon32-vs.png', ClassBlogs_Utils::get_base_css_url());
    }
Example #2
0
 /**
  * Adds the plugin's admin CSS to the page.
  *
  * This uses the value of the `$admin_media` member variable to determine
  * which admin files should be added.
  *
  * @access private
  * @since 0.1
  */
 public function _add_admin_css()
 {
     if (array_key_exists('css', $this->admin_media) && !empty($this->admin_media['css'])) {
         $css_url = esc_url(ClassBlogs_Utils::get_base_css_url());
         foreach ($this->admin_media['css'] as $css_file) {
             printf('<link rel="stylesheet" href="%s%s" />', $css_url, $css_file);
         }
     }
 }