{"id":21957,"date":"2013-02-22T12:57:27","date_gmt":"2013-02-22T12:57:27","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wpshare-counter\/"},"modified":"2013-02-22T12:57:27","modified_gmt":"2013-02-22T12:57:27","slug":"wpshare-counter","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/wpshare-counter\/","author":395921,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.9","stable_tag":"trunk","tested":"","requires":"","requires_php":"","requires_plugins":"","header_name":"WPShare Counter","header_author":"GraveHeart","header_description":"","assets_banners_color":"","last_updated":"2013-02-22 12:57:27","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/phalkmin\/WPShare-Counter","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":0,"downloads":709,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-21957","plugin","type-plugin","status-closed","hentry","plugin_committers-graveheart"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wpshare-counter.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Usage<\/p>\n\n<h3><\/h3>\n\n<p>Install the plugin as usual, and activate it. In Settings &gt; Share Counter, you can choose if you want to count or don't count a social network (by default, all networks are counted).<\/p>\n\n<p>Now, open the single.php file of your theme (or any other file) and add this code in any place that you want to show the count:<\/p>\n\n<pre><code>  &lt;?php sharesCounter(); ?&gt;\n<\/code><\/pre>\n\n<p>It's possible to use CSS. For example:<\/p>\n\n<pre><code>  &lt;div class=\"sharecounter\"&gt;&lt;strong&gt;This post has been shared &lt;\/strong&gt; &lt;?php sharesCounter(); ?&gt; &lt;strong&gt; times &lt;\/strong&gt; &lt;\/div&gt;\n<\/code><\/pre>\n\n<p>You can also return the result as a variable instead of echoing the number:<\/p>\n\n<pre><code>  &lt;?php $variable = sharesCounter('', false); ?&gt;\n<\/code><\/pre>\n\n<p>Contributing<\/p>\n\n<h3><\/h3>\n\n<p>When commiting, try to follow the existing style.<\/p>\n\n<p>Before creating a pull request, squash your commits into a single commit.<\/p>\n\n<p>Add the comments where needed, and provide ample explanation in the commit message.<\/p>\n\n<p>Report Issues\/Bugs<\/p>\n\n<h3><\/h3>\n\n<p>Please, don't. This plugin is perfect as-is :P<\/p>\n\n<p>ok, ok... send a email to phalkmin@gmail.com if you find a bug. But, really, you won't.<\/p>","raw_excerpt":"Usage","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/21957","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=21957"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/graveheart"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=21957"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=21957"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=21957"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=21957"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=21957"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=21957"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}