diff --git a/share.plugin.php b/share.plugin.php index aa41f39..0f8bf94 100644 --- a/share.plugin.php +++ b/share.plugin.php @@ -4,18 +4,6 @@ class Share extends Plugin { - public function info() { - return array( - 'name' => 'Share Plugin', - 'version' => '0.1', - 'url' => 'http://mgdm.net/', - 'author' => 'Michael Maclean', - 'authorurl' => 'http://mgdm.net/', - 'license' => 'Apache License 2.0', - 'description' => 'This plugin generates Facebook OpenGraph data, and adds it to the header of posts. It can also embed a Facebook Like button, and a Twitter Share button to the bottom of posts.' - ); - } - public function action_init() { $this->add_template('share_metadata', dirname(__FILE__) . '/share_metadata.php'); $this->add_template('share_ui', dirname(__FILE__) . '/share_ui.php'); diff --git a/share.plugin.xml b/share.plugin.xml index 4a8f070..b10259b 100644 --- a/share.plugin.xml +++ b/share.plugin.xml @@ -15,7 +15,7 @@

To use, add code like this to the header of your theme:

               <?php if ($request->display_entry && isset($post)) {
-                  $theme->show_share_metadata($post);
+                  echo $theme->show_share_metadata($post);
               } ?>
             

To display the Facebook and Twitter widgets, add code like this to the single entry part of the theme: