{"id":45595,"date":"2014-02-01T23:06:42","date_gmt":"2014-02-01T23:06:42","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/jm-dashicons-shortcode\/"},"modified":"2014-06-10T14:11:27","modified_gmt":"2014-06-10T14:11:27","slug":"jm-dashicons-shortcode","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/jm-dashicons-shortcode\/","author":10765487,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.7.2","stable_tag":"trunk","tested":"3.9.40","requires":"3.9.1","requires_php":"","requires_plugins":"","header_name":"JM Dashicons Shortcode","header_author":"Julien Maury","header_description":"","assets_banners_color":"66acc7","last_updated":"2014-06-10 14:11:27","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.amazon.fr\/registry\/wishlist\/1J90JNIHBBXL8","header_plugin_uri":"http:\/\/www.tweetpress.fr","header_author_uri":"http:\/\/www.tweetpress.fr","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1121,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"849610","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"849605","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"849605","resolution":"2","location":"assets"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"849605","resolution":"3","location":"assets"},"screenshot-4.png":{"filename":"screenshot-4.png","revision":"854343","resolution":"4","location":"assets"}},"screenshots":{"1":"help button","2":"lists of icons","3":"quicktags","4":"menu with icons"}},"plugin_section":[],"plugin_tags":[15956,10479,1078,498,566],"plugin_category":[50],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-45595","plugin","type-plugin","status-closed","hentry","plugin_tags-dashicons","plugin_tags-font-icon","plugin_tags-icon-font","plugin_tags-icons","plugin_tags-ui","plugin_category-media"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/jm-dashicons-shortcode_66acc7.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/jm-dashicons-shortcode\/assets\/screenshot-1.png?rev=849605","caption":"help button"},{"src":"https:\/\/ps.w.org\/jm-dashicons-shortcode\/assets\/screenshot-2.png?rev=849605","caption":"lists of icons"},{"src":"https:\/\/ps.w.org\/jm-dashicons-shortcode\/assets\/screenshot-3.png?rev=849605","caption":"quicktags"},{"src":"https:\/\/ps.w.org\/jm-dashicons-shortcode\/assets\/screenshot-4.png?rev=854343","caption":"menu with icons"}],"raw_content":"<!--section=description-->\n<p>WordPress 3.8 known as Oscar offers an amazing font, Dashicons, this plugins allows you to use it for your posts.<\/p>\n\n<p>Once activated the plugin adds a shortcode in edit post. You can now enjoy Dashicons font added to the core in WordPress 3.8 to do what you want e.g page sections with icons.\nThe plugin adds a popup buton on visual editor so you can set it in WYSIWYG. Hit the help tab to get full list on widget and menu pages.<\/p>\n\n<p>Shortcode is available on posts, widgets and nav menus (see <a href=\"http:\/\/www.tweetpress.fr\" title=\"TweetPress - WordPress &amp; Twitter stuffs\">example on my blog<\/a>)<\/p>\n\n<p><a href=\"http:\/\/twitter.com\/intent\/user?screen_name=tweetpressfr\">Follow me on Twitter<\/a><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload plugin files to the \/wp-content\/plugins\/ directory<\/li>\n<li>Activate the plugin through the Plugins menu in WordPress<\/li>\n<li>Then go to your post edit and just use the shortcode e.g <code>[dashicon name=\"smartphone\" size=\"3\" color=\"#f83123\" class=\"myclass\"]<\/code><\/li>\n<li>The plugin adds a <strong>FULL LIST of available icons<\/strong> with their name on tinymce button<\/li>\n<li>You can easily know how to write the shortcode with quicktag buttons ( go the HTML tab in your edit post)<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Where can I find the name for icons?<\/dt>\n<dd><p>On post edits use the admin UI (tinymce to set your icon)\nOn widget and menu pages you have a help button (on the top right of the screen), when clicking on this button it slides a pannel with multiple tabs. You'll find all the icons available.<\/p><\/dd>\n<dt>If you care about accessibility<\/dt>\n<dd><p>Just use the text parameter like this :\n    [dashicon name=\"twitter\" text=\"share on Twitter\"]<\/p>\n\n<p>It won't change anything for you but it can improve experience for people using assistive technologies such as VoiceOver<\/p><\/dd>\n<dt>The text for accessibility is showing<\/dt>\n<dd><p>That's too bad. Maybe your theme missed it. To avoid this just put the following code in your CSS :<\/p>\n\n<pre><code>.screen-reader-text {\n    position: absolute;\n    left: -7000px;\n    overflow: hidden;\n}\n<\/code><\/pre><\/dd>\n<dt>The font does not appear on IE8<\/dt>\n<dd><p>You might add some stylesheet for IE8 and put in here :<\/p>\n\n<pre><code>.ds-fallback-text .dashicons:before { content: ''; }\n<\/code><\/pre>\n\n<p>Then you might add a little bit of JavaScript.<\/p><\/dd>\n<dt>Some icons do not show up<\/dt>\n<dd><p>Please check you WP version, Dashicons have been updated with WP 3.9<\/p><\/dd>\n<dt>I want to write a shortcode in a widget text but not to execute it<\/dt>\n<dd><p>The plugin activates shortcodes in widget text.\nIn this very very particular case, you can use this great trick : put the shortcode in double [] like that :<\/p>\n\n<pre><code>[[myshortcode]]\n<\/code><\/pre>\n\n<p><a href=\"http:\/\/www.geekpress.fr\/wordpress\/astuce\/execution-shortcode-article-1864\/\">Source<\/a><\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.7.2<\/h4>\n\n<ul>\n<li>14 May 2014<\/li>\n<li>fix array for arg color that triggers notice<\/li>\n<li>Remove extract from shortcode callback according to this trac : https:\/\/core.trac.wordpress.org\/ticket\/22400<\/li>\n<\/ul>\n\n<h4>1.7.1<\/h4>\n\n<ul>\n<li>02 May 2014<\/li>\n<li>Fix wrong file for widgetize function<\/li>\n<li>Localize tinymce popup<\/li>\n<li>Add admin UI (tinymce button for better UX)<\/li>\n<li>Be careful some of the icons won't work if you use older versions of WordPress<\/li>\n<li>Remove conditional load of dashicons.min.css , while it was good for performance it is not compatible with menu use<\/li>\n<\/ul>\n\n<h4>1.6<\/h4>\n\n<ul>\n<li>17 Apr 2014<\/li>\n<li>Add new dashicons available in 3.9<\/li>\n<li>Add help tabs in widgets page<\/li>\n<li>https:\/\/github.com\/melchoyce\/dashicons\/commit\/0158c5fb7e17ba71b9cdbb521dcc15efebdeaee9<\/li>\n<\/ul>\n\n<h4>1.5<\/h4>\n\n<ul>\n<li>09 Mar 2014<\/li>\n<li>Include is_a() as test to avoid bad warning on 404 and achives - (props to juliobox)<\/li>\n<\/ul>\n\n<h4>1.4.3<\/h4>\n\n<ul>\n<li>12 Feb 2014<\/li>\n<li>Add filter for developers, if you want to modify or disable this just use <code>add_filter('jmds_markup', 'your_callback');<\/code><\/li>\n<li>delete useless quicktags, if you need less parameters then delete them from shortcode <\/li>\n<li>Add a footage to explain how the plugin works<\/li>\n<\/ul>\n\n<h4>1.4.2<\/h4>\n\n<ul>\n<li>09 Feb 2014<\/li>\n<li>Add tutorial to FAQ especially for IE8<\/li>\n<li>Add screenshot (menu with icon)<\/li>\n<li>Replace int values with float values which should allow you to use more precise dimensions<\/li>\n<li>Fix wrong capability name edit_posts instead of edit_post<\/li>\n<\/ul>\n\n<h4>1.4.1<\/h4>\n\n<ul>\n<li>06 Feb 2014<\/li>\n<li>Add CSS code to FAQ in case your theme missed the .screen-reader-text class<\/li>\n<li>Prevent size from being screwed by decimal<\/li>\n<\/ul>\n\n<h4>1.4<\/h4>\n\n<ul>\n<li>04 Feb 2014<\/li>\n<li>Try to make font icon more accessible with new parameter text, if you do not use it will grab font icon name.<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>03 Feb 2014<\/li>\n<li>Fix wrong way to comment in inline CSS <\/li>\n<li>Add more precise description for icons (shortcode)<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>03 Feb 2014<\/li>\n<li>Add custom pointer for helper tab<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>03 Feb 2014<\/li>\n<li>Add has_shortcode() to optimize loading<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>31 Jan 2014<\/li>\n<li>Initial upload<\/li>\n<\/ul>","raw_excerpt":"Easy integration of Dashicons font in posts !","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/45595","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=45595"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/anonymized-10765487"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=45595"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=45595"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=45595"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=45595"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=45595"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=45595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}