Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made the changes as directed #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions share.plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion share.plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<p>To use, add code like this to the header of your theme:</p>
<pre>
&lt;?php if ($request->display_entry && isset($post)) {
$theme->show_share_metadata($post);
echo $theme->show_share_metadata($post);
} ?&gt;
</pre>
<p>To display the Facebook and Twitter widgets, add code like this to the single entry part of the theme:</p>
Expand Down