nesta-plugin-sharethis 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,189 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6
+ <title>
7
+ File: README
8
+
9
+ &mdash; Documentation by YARD 0.8.2.1
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '';
20
+ framesUrl = "frames.html#!" + escape(window.location.href);
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="_index.html">Index</a> &raquo;
35
+ <span class="title">File: README</span>
36
+
37
+
38
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
39
+ </div>
40
+
41
+ <div id="search">
42
+
43
+ <a class="full_list_link" id="class_list_link"
44
+ href="class_list.html">
45
+ Class List
46
+ </a>
47
+
48
+ <a class="full_list_link" id="method_list_link"
49
+ href="method_list.html">
50
+ Method List
51
+ </a>
52
+
53
+ <a class="full_list_link" id="file_list_link"
54
+ href="file_list.html">
55
+ File List
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <iframe id="search_frame"></iframe>
63
+
64
+ <div id="content"><div id='filecontents'><h1>Nesta::Plugin::Sharethis</h1>
65
+
66
+ <h3><a href="http://jmervine.github.com/nesta-plugin-sharethis/doc/">Documentation</a> | <a href="http://nestacms.com/">NestaCMS</a></h3>
67
+
68
+ <p>Add ShareThis to NestaCMS.</p>
69
+
70
+ <h4>Currently supported:</h4>
71
+
72
+ <ul>
73
+ <li>delicious</li>
74
+ <li>digg</li>
75
+ <li>dzone</li>
76
+ <li>email</li>
77
+ <li>facebook</li>
78
+ <li>facebook_like</li>
79
+ <li>google</li>
80
+ <li>google_reader</li>
81
+ <li>linkedin</li>
82
+ <li>reddit</li>
83
+ <li>tumblr</li>
84
+ <li>twitter</li>
85
+ </ul>
86
+
87
+
88
+ <h2>Installation</h2>
89
+
90
+ <p>Add this line to your application's Gemfile:</p>
91
+
92
+ <pre class="code ruby"><code><span class='id identifier rubyid_gem'>gem</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>nesta-plugin-sharethis</span><span class='tstring_end'>'</span></span>
93
+ </code></pre>
94
+
95
+ <p>And then execute:</p>
96
+
97
+ <pre class="code ruby"><code>$ bundle
98
+ </code></pre>
99
+
100
+ <p>Or install it yourself as:</p>
101
+
102
+ <pre class="code ruby"><code>$ gem install nesta-plugin-sharethis
103
+ </code></pre>
104
+
105
+ <h2>Usage</h2>
106
+
107
+ <ol>
108
+ <li><p>Add share this configs.</p>
109
+
110
+ <pre class="code ruby"><code> # file: config/config.yml
111
+ sharethis: SHARETHIS_PARTENT_ID
112
+
113
+ sharethis_buttons: # optional
114
+ - :twitter
115
+ - :linkedin
116
+ - :reddit
117
+ - :digg
118
+ - :facebook_like
119
+ # the aboce are the defaults
120
+ </code></pre></li>
121
+ </ol>
122
+
123
+
124
+ <blockquote><p>IMPORTANT: Notice the above sharethis_buttons are all Symbols
125
+ -- meaning, they start with a colon (:) -- which is required.</p>
126
+
127
+ <p>See lib/nesta-plugin-sharethis/sharethis.yml for a full list.</p>
128
+
129
+ <p>If you would like to add more see the Overrides section below.</p></blockquote>
130
+
131
+ <ol>
132
+ <li><p>Add the 'sharethis_javascript' helper to your your layout.haml:</p>
133
+
134
+ <pre class="code ruby"><code> -#- file: views/layout.haml
135
+ &lt;!DOCTYPE html&gt;
136
+ %html(lang=&quot;en&quot;)
137
+ %head
138
+ %meta(charset=&quot;utf-8&quot;)
139
+ - if @description
140
+ %meta(name=&quot;description&quot; content=@description)
141
+ - if @keywords
142
+ %meta(name=&quot;keywords&quot; content=@keywords)
143
+ = sharethis_javascript
144
+ %title= @title
145
+
146
+ -#- ... rest of layout.haml ...
147
+ </code></pre></li>
148
+ <li><p>Add the 'sharethis_buttons' helper to your layout, where you want
149
+ your buttons to appear.</p>
150
+
151
+ <pre class="code ruby"><code> -#- file: views/layout.haml
152
+
153
+ -#- ... rest of layout.haml ...
154
+ = sharethis_buttons
155
+ -#- ... rest of layout.haml ...
156
+ </code></pre></li>
157
+ </ol>
158
+
159
+
160
+ <blockquote><p>If you're using a theme like postal3, which already has share
161
+ functionality, simply replace it's buttons with the helper above.</p></blockquote>
162
+
163
+ <h2>Overrides</h2>
164
+
165
+ <p>To override defaults (see lib/nesta-plugin-sharethis/sharethis.yml)
166
+ create a sharethis.yml file in your config directory and this plugin
167
+ will merge it in to my defaults. Be sure to use the same format as
168
+ my sharethis.yml.</p>
169
+
170
+ <h2>Contributing</h2>
171
+
172
+ <ol>
173
+ <li>Fork it</li>
174
+ <li>Create your feature branch (<code>git checkout -b my-new-feature</code>)</li>
175
+ <li>Commit your changes (<code>git commit -am 'Added some feature'</code>)</li>
176
+ <li>Push to the branch (<code>git push origin my-new-feature</code>)</li>
177
+ <li>Create new Pull Request</li>
178
+ </ol>
179
+
180
+ </div></div>
181
+
182
+ <div id="footer">
183
+ Generated on Thu Aug 23 14:25:01 2012 by
184
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
185
+ 0.8.2.1 (ruby-1.9.3).
186
+ </div>
187
+
188
+ </body>
189
+ </html>
@@ -0,0 +1,55 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html>
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+
7
+ <link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" charset="utf-8" />
8
+
9
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
10
+
11
+
12
+
13
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
16
+
17
+
18
+ <base id="base_target" target="_parent" />
19
+ </head>
20
+ <body>
21
+ <script type="text/javascript" charset="utf-8">
22
+ if (window.top.frames.main) {
23
+ document.getElementById('base_target').target = 'main';
24
+ document.body.className = 'frames';
25
+ }
26
+ </script>
27
+ <div id="content">
28
+ <h1 id="full_list_header">File List</h1>
29
+ <div id="nav">
30
+
31
+ <span><a target="_self" href="class_list.html">
32
+ Classes
33
+ </a></span>
34
+
35
+ <span><a target="_self" href="method_list.html">
36
+ Methods
37
+ </a></span>
38
+
39
+ <span><a target="_self" href="file_list.html">
40
+ Files
41
+ </a></span>
42
+
43
+ </div>
44
+ <div id="search">Search: <input type="text" /></div>
45
+
46
+ <ul id="full_list" class="file">
47
+
48
+
49
+ <li class="r1"><a href="index.html" title="README">README</a></li>
50
+
51
+
52
+ </ul>
53
+ </div>
54
+ </body>
55
+ </html>
@@ -0,0 +1,28 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
3
+
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
7
+ <title>Documentation by YARD 0.8.2.1</title>
8
+ </head>
9
+ <script type="text/javascript" charset="utf-8">
10
+ window.onload = function() {
11
+ var match = window.location.hash.match(/^#!(.+)/);
12
+ var name = 'index.html';
13
+ if (match) {
14
+ name = unescape(match[1]);
15
+ }
16
+ document.writeln('<frameset cols="20%,*">' +
17
+ '<frame name="list" src="class_list.html" />' +
18
+ '<frame name="main" src="' + name + '" />' +
19
+ '</frameset>');
20
+ }
21
+ </script>
22
+ <noscript>
23
+ <frameset cols="20%,*">
24
+ <frame name="list" src="class_list.html" />
25
+ <frame name="main" src="index.html" />
26
+ </frameset>
27
+ </noscript>
28
+ </html>
@@ -0,0 +1,189 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6
+ <title>
7
+ File: README
8
+
9
+ &mdash; Documentation by YARD 0.8.2.1
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '';
20
+ framesUrl = "frames.html#!" + escape(window.location.href);
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="_index.html">Index</a> &raquo;
35
+ <span class="title">File: README</span>
36
+
37
+
38
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
39
+ </div>
40
+
41
+ <div id="search">
42
+
43
+ <a class="full_list_link" id="class_list_link"
44
+ href="class_list.html">
45
+ Class List
46
+ </a>
47
+
48
+ <a class="full_list_link" id="method_list_link"
49
+ href="method_list.html">
50
+ Method List
51
+ </a>
52
+
53
+ <a class="full_list_link" id="file_list_link"
54
+ href="file_list.html">
55
+ File List
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <iframe id="search_frame"></iframe>
63
+
64
+ <div id="content"><div id='filecontents'><h1>Nesta::Plugin::Sharethis</h1>
65
+
66
+ <h3><a href="http://jmervine.github.com/nesta-plugin-sharethis/doc/">Documentation</a> | <a href="http://nestacms.com/">NestaCMS</a></h3>
67
+
68
+ <p>Add ShareThis to NestaCMS.</p>
69
+
70
+ <h4>Currently supported:</h4>
71
+
72
+ <ul>
73
+ <li>delicious</li>
74
+ <li>digg</li>
75
+ <li>dzone</li>
76
+ <li>email</li>
77
+ <li>facebook</li>
78
+ <li>facebook_like</li>
79
+ <li>google</li>
80
+ <li>google_reader</li>
81
+ <li>linkedin</li>
82
+ <li>reddit</li>
83
+ <li>tumblr</li>
84
+ <li>twitter</li>
85
+ </ul>
86
+
87
+
88
+ <h2>Installation</h2>
89
+
90
+ <p>Add this line to your application's Gemfile:</p>
91
+
92
+ <pre class="code ruby"><code><span class='id identifier rubyid_gem'>gem</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>nesta-plugin-sharethis</span><span class='tstring_end'>'</span></span>
93
+ </code></pre>
94
+
95
+ <p>And then execute:</p>
96
+
97
+ <pre class="code ruby"><code>$ bundle
98
+ </code></pre>
99
+
100
+ <p>Or install it yourself as:</p>
101
+
102
+ <pre class="code ruby"><code>$ gem install nesta-plugin-sharethis
103
+ </code></pre>
104
+
105
+ <h2>Usage</h2>
106
+
107
+ <ol>
108
+ <li><p>Add share this configs.</p>
109
+
110
+ <pre class="code ruby"><code> # file: config/config.yml
111
+ sharethis: SHARETHIS_PARTENT_ID
112
+
113
+ sharethis_buttons: # optional
114
+ - :twitter
115
+ - :linkedin
116
+ - :reddit
117
+ - :digg
118
+ - :facebook_like
119
+ # the aboce are the defaults
120
+ </code></pre></li>
121
+ </ol>
122
+
123
+
124
+ <blockquote><p>IMPORTANT: Notice the above sharethis_buttons are all Symbols
125
+ -- meaning, they start with a colon (:) -- which is required.</p>
126
+
127
+ <p>See lib/nesta-plugin-sharethis/sharethis.yml for a full list.</p>
128
+
129
+ <p>If you would like to add more see the Overrides section below.</p></blockquote>
130
+
131
+ <ol>
132
+ <li><p>Add the 'sharethis_javascript' helper to your your layout.haml:</p>
133
+
134
+ <pre class="code ruby"><code> -#- file: views/layout.haml
135
+ &lt;!DOCTYPE html&gt;
136
+ %html(lang=&quot;en&quot;)
137
+ %head
138
+ %meta(charset=&quot;utf-8&quot;)
139
+ - if @description
140
+ %meta(name=&quot;description&quot; content=@description)
141
+ - if @keywords
142
+ %meta(name=&quot;keywords&quot; content=@keywords)
143
+ = sharethis_javascript
144
+ %title= @title
145
+
146
+ -#- ... rest of layout.haml ...
147
+ </code></pre></li>
148
+ <li><p>Add the 'sharethis_buttons' helper to your layout, where you want
149
+ your buttons to appear.</p>
150
+
151
+ <pre class="code ruby"><code> -#- file: views/layout.haml
152
+
153
+ -#- ... rest of layout.haml ...
154
+ = sharethis_buttons
155
+ -#- ... rest of layout.haml ...
156
+ </code></pre></li>
157
+ </ol>
158
+
159
+
160
+ <blockquote><p>If you're using a theme like postal3, which already has share
161
+ functionality, simply replace it's buttons with the helper above.</p></blockquote>
162
+
163
+ <h2>Overrides</h2>
164
+
165
+ <p>To override defaults (see lib/nesta-plugin-sharethis/sharethis.yml)
166
+ create a sharethis.yml file in your config directory and this plugin
167
+ will merge it in to my defaults. Be sure to use the same format as
168
+ my sharethis.yml.</p>
169
+
170
+ <h2>Contributing</h2>
171
+
172
+ <ol>
173
+ <li>Fork it</li>
174
+ <li>Create your feature branch (<code>git checkout -b my-new-feature</code>)</li>
175
+ <li>Commit your changes (<code>git commit -am 'Added some feature'</code>)</li>
176
+ <li>Push to the branch (<code>git push origin my-new-feature</code>)</li>
177
+ <li>Create new Pull Request</li>
178
+ </ol>
179
+
180
+ </div></div>
181
+
182
+ <div id="footer">
183
+ Generated on Thu Aug 23 14:25:01 2012 by
184
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
185
+ 0.8.2.1 (ruby-1.9.3).
186
+ </div>
187
+
188
+ </body>
189
+ </html>