/** * Print optional in-lne styles for Uploads submenu table * * @since 2.14 */ public static function mla_admin_print_styles_action() { if (MLATest::$wp_4dot3_plus) { echo "<style type='text/css'>\n"; // Any icon_type will do $image_info = MLAMime::mla_get_icon_type_size('image'); /* * Primary column including icon and some margin */ $icon_width = $image_info['width'] + 10 . 'px'; $icon_height = $image_info['height'] + 5 . 'px'; echo " table.upload_types td.column-primary {\n"; echo " position: relative;\n"; echo " }\n"; echo " table.upload_types div.upload_types-icon {\n"; echo " position: absolute;\n"; echo " top: 8px;\n"; echo " left: 10px;\n"; echo " }\n"; echo " table.upload_types div.upload_types-info {\n"; echo " margin-left: {$icon_width};\n"; echo " min-height: {$icon_height};\n"; echo " }\n"; echo "</style>\n"; } }