Permalink
Browse files

initial import

  • Loading branch information...
0 parents commit db76c87d48ed7e8305415d403d09176f29e7e5dc @ozgun ozgun committed Jul 4, 2010
Showing with 389 additions and 0 deletions.
  1. +6 −0 .gitignore
  2. +20 −0 MIT-LICENSE
  3. +41 −0 README
  4. +23 −0 Rakefile
  5. +5 −0 assets/images/social_icons/aquaticus/IconsPedia.url
  6. +5 −0 assets/images/social_icons/aquaticus/Quaqe9.url
  7. +52 −0 assets/images/social_icons/aquaticus/ReadMe.rtf
  8. BIN assets/images/social_icons/aquaticus/aquaticus.social.png
  9. BIN assets/images/social_icons/aquaticus/png/blogger.png
  10. BIN assets/images/social_icons/aquaticus/png/delicious.png
  11. BIN assets/images/social_icons/aquaticus/png/digg.png
  12. BIN assets/images/social_icons/aquaticus/png/facebook.png
  13. BIN assets/images/social_icons/aquaticus/png/feed.png
  14. BIN assets/images/social_icons/aquaticus/png/flickr.png
  15. BIN assets/images/social_icons/aquaticus/png/friendfeed.png
  16. BIN assets/images/social_icons/aquaticus/png/friendster.png
  17. BIN assets/images/social_icons/aquaticus/png/furl.png
  18. BIN assets/images/social_icons/aquaticus/png/google.png
  19. BIN assets/images/social_icons/aquaticus/png/lastfm.png
  20. BIN assets/images/social_icons/aquaticus/png/linkedin.png
  21. BIN assets/images/social_icons/aquaticus/png/livejournal.png
  22. BIN assets/images/social_icons/aquaticus/png/magnolia.png
  23. BIN assets/images/social_icons/aquaticus/png/mixx.png
  24. BIN assets/images/social_icons/aquaticus/png/myspace.png
  25. BIN assets/images/social_icons/aquaticus/png/netvibes.png
  26. BIN assets/images/social_icons/aquaticus/png/newsvine.png
  27. BIN assets/images/social_icons/aquaticus/png/picasa.png
  28. BIN assets/images/social_icons/aquaticus/png/pownce.png
  29. BIN assets/images/social_icons/aquaticus/png/reddit.png
  30. BIN assets/images/social_icons/aquaticus/png/stumbleupon.png
  31. BIN assets/images/social_icons/aquaticus/png/technorati.png
  32. BIN assets/images/social_icons/aquaticus/png/twitter.png
  33. BIN assets/images/social_icons/aquaticus/png/vimeo.png
  34. BIN assets/images/social_icons/aquaticus/png/webshots.png
  35. BIN assets/images/social_icons/aquaticus/png/wordpress.png
  36. BIN assets/images/social_icons/aquaticus/png/yahoo.png
  37. BIN assets/images/social_icons/aquaticus/png/yelp.png
  38. BIN assets/images/social_icons/aquaticus/png/youtube.png
  39. BIN assets/images/social_icons/default/16/Google.png
  40. BIN assets/images/social_icons/default/16/blogger.png
  41. BIN assets/images/social_icons/default/16/delicious.png
  42. BIN assets/images/social_icons/default/16/digg.png
  43. BIN assets/images/social_icons/default/16/ebay.png
  44. BIN assets/images/social_icons/default/16/facebook.png
  45. BIN assets/images/social_icons/default/16/feed.png
  46. BIN assets/images/social_icons/default/16/flickr.png
  47. BIN assets/images/social_icons/default/16/friendfeed.png
  48. BIN assets/images/social_icons/default/16/friendster.png
  49. BIN assets/images/social_icons/default/16/furl.png
  50. BIN assets/images/social_icons/default/16/lastfm.png
  51. BIN assets/images/social_icons/default/16/linkedin.png
  52. BIN assets/images/social_icons/default/16/livejournal.png
  53. BIN assets/images/social_icons/default/16/magnolia.png
  54. BIN assets/images/social_icons/default/16/mixx.png
  55. BIN assets/images/social_icons/default/16/myspace.png
  56. BIN assets/images/social_icons/default/16/netvibes.png
  57. BIN assets/images/social_icons/default/16/newsvine.png
  58. BIN assets/images/social_icons/default/16/picasa.png
  59. BIN assets/images/social_icons/default/16/pownce.png
  60. BIN assets/images/social_icons/default/16/reddit.png
  61. BIN assets/images/social_icons/default/16/stumbleupon.png
  62. BIN assets/images/social_icons/default/16/technorati.png
  63. BIN assets/images/social_icons/default/16/twitter.png
  64. BIN assets/images/social_icons/default/16/vimeo.png
  65. BIN assets/images/social_icons/default/16/webshots.png
  66. BIN assets/images/social_icons/default/16/wordpress.png
  67. BIN assets/images/social_icons/default/16/yelp.png
  68. BIN assets/images/social_icons/default/16/youtube.png
  69. BIN assets/images/social_icons/default/20/Google.png
  70. BIN assets/images/social_icons/default/20/blogger.png
  71. +9 −0 assets/images/social_icons/default/20/convert_jpg_to_1024_in_a_dir.sh
  72. BIN assets/images/social_icons/default/20/delicious.png
  73. BIN assets/images/social_icons/default/20/digg.png
  74. BIN assets/images/social_icons/default/20/ebay.png
  75. BIN assets/images/social_icons/default/20/facebook.png
  76. BIN assets/images/social_icons/default/20/feed.png
  77. BIN assets/images/social_icons/default/20/flickr.png
  78. BIN assets/images/social_icons/default/20/friendfeed.png
  79. BIN assets/images/social_icons/default/20/friendster.png
  80. BIN assets/images/social_icons/default/20/furl.png
  81. BIN assets/images/social_icons/default/20/lastfm.png
  82. BIN assets/images/social_icons/default/20/linkedin.png
  83. BIN assets/images/social_icons/default/20/livejournal.png
  84. BIN assets/images/social_icons/default/20/magnolia.png
  85. BIN assets/images/social_icons/default/20/mixx.png
  86. BIN assets/images/social_icons/default/20/myspace.png
  87. BIN assets/images/social_icons/default/20/netvibes.png
  88. BIN assets/images/social_icons/default/20/newsvine.png
  89. BIN assets/images/social_icons/default/20/picasa.png
  90. BIN assets/images/social_icons/default/20/pownce.png
  91. BIN assets/images/social_icons/default/20/reddit.png
  92. BIN assets/images/social_icons/default/20/stumbleupon.png
  93. BIN assets/images/social_icons/default/20/technorati.png
  94. BIN assets/images/social_icons/default/20/twitter.png
  95. BIN assets/images/social_icons/default/20/vimeo.png
  96. BIN assets/images/social_icons/default/20/webshots.png
  97. BIN assets/images/social_icons/default/20/wordpress.png
  98. BIN assets/images/social_icons/default/20/yelp.png
  99. BIN assets/images/social_icons/default/20/youtube.png
  100. BIN assets/images/social_icons/default/24/Google.png
  101. BIN assets/images/social_icons/default/24/blogger.png
  102. BIN assets/images/social_icons/default/24/delicious.png
  103. BIN assets/images/social_icons/default/24/digg.png
  104. BIN assets/images/social_icons/default/24/ebay.png
  105. BIN assets/images/social_icons/default/24/facebook.png
  106. BIN assets/images/social_icons/default/24/feed.png
  107. BIN assets/images/social_icons/default/24/flickr.png
  108. BIN assets/images/social_icons/default/24/friendfeed.png
  109. BIN assets/images/social_icons/default/24/friendster.png
  110. BIN assets/images/social_icons/default/24/furl.png
  111. BIN assets/images/social_icons/default/24/lastfm.png
  112. BIN assets/images/social_icons/default/24/linkedin.png
  113. BIN assets/images/social_icons/default/24/livejournal.png
  114. BIN assets/images/social_icons/default/24/magnolia.png
  115. BIN assets/images/social_icons/default/24/mixx.png
  116. BIN assets/images/social_icons/default/24/myspace.png
  117. BIN assets/images/social_icons/default/24/netvibes.png
  118. BIN assets/images/social_icons/default/24/newsvine.png
  119. BIN assets/images/social_icons/default/24/picasa.png
  120. BIN assets/images/social_icons/default/24/pownce.png
  121. BIN assets/images/social_icons/default/24/reddit.png
  122. BIN assets/images/social_icons/default/24/stumbleupon.png
  123. BIN assets/images/social_icons/default/24/technorati.png
  124. BIN assets/images/social_icons/default/24/twitter.png
  125. BIN assets/images/social_icons/default/24/vimeo.png
  126. BIN assets/images/social_icons/default/24/webshots.png
  127. BIN assets/images/social_icons/default/24/wordpress.png
  128. BIN assets/images/social_icons/default/24/yelp.png
  129. BIN assets/images/social_icons/default/24/youtube.png
  130. BIN assets/images/social_icons/default/48/Google.png
  131. BIN assets/images/social_icons/default/48/blogger.png
  132. BIN assets/images/social_icons/default/48/delicious.png
  133. BIN assets/images/social_icons/default/48/digg.png
  134. BIN assets/images/social_icons/default/48/ebay.png
  135. BIN assets/images/social_icons/default/48/facebook.png
  136. BIN assets/images/social_icons/default/48/feed.png
  137. BIN assets/images/social_icons/default/48/flickr.png
  138. BIN assets/images/social_icons/default/48/friendfeed.png
  139. BIN assets/images/social_icons/default/48/friendster.png
  140. BIN assets/images/social_icons/default/48/furl.png
  141. BIN assets/images/social_icons/default/48/lastfm.png
  142. BIN assets/images/social_icons/default/48/linkedin.png
  143. BIN assets/images/social_icons/default/48/livejournal.png
  144. BIN assets/images/social_icons/default/48/magnolia.png
  145. BIN assets/images/social_icons/default/48/mixx.png
  146. BIN assets/images/social_icons/default/48/myspace.png
  147. BIN assets/images/social_icons/default/48/netvibes.png
  148. BIN assets/images/social_icons/default/48/newsvine.png
  149. BIN assets/images/social_icons/default/48/picasa.png
  150. BIN assets/images/social_icons/default/48/pownce.png
  151. BIN assets/images/social_icons/default/48/reddit.png
  152. BIN assets/images/social_icons/default/48/stumbleupon.png
  153. BIN assets/images/social_icons/default/48/technorati.png
  154. BIN assets/images/social_icons/default/48/twitter.png
  155. BIN assets/images/social_icons/default/48/vimeo.png
  156. BIN assets/images/social_icons/default/48/webshots.png
  157. BIN assets/images/social_icons/default/48/wordpress.png
  158. BIN assets/images/social_icons/default/48/yelp.png
  159. BIN assets/images/social_icons/default/48/youtube.png
  160. BIN assets/images/social_icons/default/60/Google.psd
  161. BIN assets/images/social_icons/default/60/blogger.png
  162. BIN assets/images/social_icons/default/60/delicious.png
  163. BIN assets/images/social_icons/default/60/digg.png
  164. BIN assets/images/social_icons/default/60/ebay.png
  165. BIN assets/images/social_icons/default/60/facebook.png
  166. BIN assets/images/social_icons/default/60/feed.png
  167. BIN assets/images/social_icons/default/60/flickr.png
  168. BIN assets/images/social_icons/default/60/friendfeed.png
  169. BIN assets/images/social_icons/default/60/friendster.png
  170. BIN assets/images/social_icons/default/60/furl.png
  171. BIN assets/images/social_icons/default/60/lastfm.png
  172. BIN assets/images/social_icons/default/60/linkedin.png
  173. BIN assets/images/social_icons/default/60/livejournal.png
  174. BIN assets/images/social_icons/default/60/magnolia.png
  175. BIN assets/images/social_icons/default/60/mixx.png
  176. BIN assets/images/social_icons/default/60/myspace.png
  177. BIN assets/images/social_icons/default/60/netvibes.png
  178. BIN assets/images/social_icons/default/60/newsvine.png
  179. BIN assets/images/social_icons/default/60/picasa.png
  180. BIN assets/images/social_icons/default/60/pownce.png
  181. BIN assets/images/social_icons/default/60/reddit.png
  182. BIN assets/images/social_icons/default/60/stumbleupon.png
  183. BIN assets/images/social_icons/default/60/technorati.png
  184. BIN assets/images/social_icons/default/60/twitter.png
  185. BIN assets/images/social_icons/default/60/vimeo.png
  186. BIN assets/images/social_icons/default/60/webshots.png
  187. BIN assets/images/social_icons/default/60/wordpress.png
  188. BIN assets/images/social_icons/default/60/yelp.png
  189. BIN assets/images/social_icons/default/60/youtube.png
  190. +42 −0 assets/images/social_icons/default/readme.txt
  191. +14 −0 assets/stylesheets/social_icons.css
  192. +4 −0 init.rb
  193. +12 −0 install.rb
  194. +5 −0 lib/social_icons.rb
  195. +9 −0 lib/social_icons/version.rb
  196. +126 −0 lib/social_icons/view_helpers.rb
  197. +4 −0 lib/tasks/social_icons.rake
  198. +8 −0 test/social_icons_test.rb
  199. +3 −0 test/test_helper.rb
  200. +1 −0 uninstall.rb
@@ -0,0 +1,6 @@
+*.swp
+*~
+.loadpath
+.project
+.DS_Store
+.rvmrc
@@ -0,0 +1,20 @@
+Copyright (c) 2010 [name of plugin creator]
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,41 @@
+SocialIcons
+===========
+
+This is a simple plugin to help you display some social icons in your site.
+
+Icons supported so far:
+
+- Facebook like button
+- Facebook
+- Twitter
+- Delicious
+- Reddit
+- Digg
+
+
+Installation
+============
+
+Install plugin from github:
+
+$ .script/plugin install git://github.com/ozgun/social_icons.git
+
+Installation hooks will copy some files to application's "public" folder.
+
+images/social_icons/*
+stylesheets/social_icons.css
+
+Load social_icons.css file in your layout(i.e. application.html.erb)
+
+<%= stylesheet_link_tag 'social_icons' %>
+
+
+Usage
+============
+
+Call "print_social_icons" method in your partials or views.
+
+<%= print_social_icons %>
+
+
+Copyright (c) 2010 [Özgun Koyun (kozgun@gmail.com)], released under the MIT license
@@ -0,0 +1,23 @@
+require 'rake'
+require 'rake/testtask'
+require 'rake/rdoctask'
+
+desc 'Default: run unit tests.'
+task :default => :test
+
+desc 'Test the social_icons plugin.'
+Rake::TestTask.new(:test) do |t|
+ t.libs << 'lib'
+ t.libs << 'test'
+ t.pattern = 'test/**/*_test.rb'
+ t.verbose = true
+end
+
+desc 'Generate documentation for the social_icons plugin.'
+Rake::RDocTask.new(:rdoc) do |rdoc|
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = 'SocialIcons'
+ rdoc.options << '--line-numbers' << '--inline-source'
+ rdoc.rdoc_files.include('README')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+end
@@ -0,0 +1,5 @@
+[InternetShortcut]
+URL=http://iconspedia.com/
+IDList=
+[{000214A0-0000-0000-C000-000000000046}]
+Prop3=19,2
@@ -0,0 +1,5 @@
+[InternetShortcut]
+URL=http://www.quake9.com/
+IDList=
+[{000214A0-0000-0000-C000-000000000046}]
+Prop3=19,2
@@ -0,0 +1,52 @@
+{\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf330
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;\f1\fnil\fcharset0 Verdana;}
+{\colortbl;\red255\green255\blue255;}
+\paperw11900\paperh16840\margl1440\margr1440\vieww9000\viewh8400\viewkind0
+\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
+
+\f0\fs24 \cf0 Thank you for downloading for downloading this release from Quake9.com!\
+\
+Feel free to use these icons anywhere on your website, blog, or even in print. I do not request that you give credits to me. However, it will be a nice gesture if you do give me a credit when these icons are used in your design(s). \
+\
+I would also be interested to see how these icons are used in your designs! So if you want to share it with me, please email me at jwloh01 [at] gmail.com\
+\
+NOTICE: All the logos belong rightfully to the respective companies/websites, and they should not be altered or change in any other way. Below are the list of websites whose icons are being represented in this release.\
+\
+Blogger\
+Del.icio.us\
+Digg\
+Facebook\
+flickr\
+FriendFeed\
+Friendster\
+furl\
+Google\
+last.fm\
+LinkedIn\
+Livejournal\
+Ma.gnolia\
+Mixx\
+MySpace\
+NetVibes\
+NewsVine\
+Picasa Web Albums\
+Pownce\
+Reddit\
+StumbleUpon\
+Technorati\
+Twitter\
+Vimeo\
+Webshots\
+Wordpress\
+Yahoo!\
+Yelp\
+Youtube\
+\
+If you are the owner of the particular website represented above, and wish to see your website removed, please contact me at jwloh01 [at] gmail.com and I will remove it from the release right away.\
+\
+Special thanks to Marcelo Marfil from MacThemes forum for providing the icon template. \
+\
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural\pardirnatural
+
+\f1\fs22 \cf0 Some rights reserved. This work is licensed under a \
+{\field{\*\fldinst{HYPERLINK "http://creativecommons.org/licenses/by-nd/3.0/"}}{\fldrslt Creative Commons Attribution-No Derivative Works 3.0 License}}.}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
@@ -0,0 +1,9 @@
+#!/bin/bash
+cd `pwd`
+for i in `ls *.png`; do
+ echo $i
+ NAME=`basename $i .jpg`
+ #convert "$i" -resize 20 "${NAME}.png"
+ convert "$i" -resize 20 "$i"
+ #rm -f $i
+done
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
@@ -0,0 +1,42 @@
+Thank you for downloading for downloading this release from Quake9.com!
+
+Feel free to use these icons anywhere on your website, blog, or even in print. I do not request that you give credits to me. However, it will be a nice gesture if you do give me a credit when these icons are used in your design(s).
+
+I would also be interested to see how these icons are used in your designs! So if you want to share it with me, please email me at jwloh01 [at] gmail.com
+
+NOTICE: All the logos belong rightfully to the respective companies/websites, and they should not be altered or change in any other way. Below are the list of websites whose icons are being represented in this release.
+
+Blogger
+Del.icio.us
+Digg
+eBay
+Facebook
+flickr
+FriendFeed
+Friendster
+furl
+Google
+last.fm
+LinkedIn
+Livejournal
+Ma.gnolia
+Mixx
+MySpace
+NetVibes
+NewsVine
+Picasa Web Albums
+Pownce
+Reddit
+StumbleUpon
+Technorati
+Twitter
+Vimeo
+Webshots
+Wordpress
+Yelp
+Youtube
+
+If you are the owner of the particular website represented above, and wish to see your website removed, please contact me at jwloh01 [at] gmail.com and I will remove it from the release right away.
+
+Special thanks to Tim (www.lostpixel.net) from MacThemes forum for providing the icon template.
+1271
@@ -0,0 +1,14 @@
+.social_icons_container {
+ width: 272px;
+ /*background-color: silver;*/
+ padding: 0 0 20px 10px;
+}
+.social_icons {
+}
+.social_icons span {
+ margin-right: 5px;
+}
+
+.facebook_like_button {
+ height: 40px;
+}
@@ -0,0 +1,4 @@
+# Include hook code here
+require "social_icons/version"
+require "social_icons/view_helpers"
+ActionView::Base.send :include, SocialIcons::ViewHelpers
@@ -0,0 +1,12 @@
+# Install hook code here
+puts "Copying files..."
+
+dest_file = File.join(RAILS_ROOT, "public", "images")
+src_file = File.join(File.dirname(__FILE__), "assets", "images", "social_icons")
+FileUtils.cp_r(src_file, dest_file)
+
+dest_file = File.join(RAILS_ROOT, "public", "stylesheets")
+src_file = File.join(File.dirname(__FILE__), "assets", "stylesheets", "social_icons.css")
+FileUtils.cp_r(src_file, dest_file)
+
+puts "Files copied."
@@ -0,0 +1,5 @@
+# SocialIcons
+
+module ModuleName
+ #
+end
@@ -0,0 +1,9 @@
+module SocialIcons
+ module VERSION
+ MAJOR = 0
+ MINOR = 1
+ TINY = 0
+
+ STRING = [MAJOR, MINOR, TINY].join('.')
+ end
+end
@@ -0,0 +1,126 @@
+module SocialIcons
+
+ module ViewHelpers
+
+ # default options that can be overridden on the global level
+ @@social_icons_options = {
+ :icon_set => 'default'
+ }
+ mattr_reader :social_icons_options
+
+
+ # NOT: Methodunun ismi social_icons olursa partial ismi ile çakışıyor!
+ def print_social_icons(opts = {})
+ link = "http://" + request.env["HTTP_HOST"] + request.request_uri
+ default_opts = {:size => 48, :link => link, :title => "", :icon_set => "default"}
+ opts = default_opts.merge(opts)
+ #icon_css = "float: left; margin-right: 5px"
+ opts[:icon_path] = "social_icons/#{opts[:icon_set]}/#{opts[:size]}"
+ out = ""
+ #out = "<div class=\"social_icons\" style=\"overflow: hidden\">"
+ out << "<div class=\"facebook_like_button\">#{facebook_like_button(opts)}</div>"
+ out << "<div class=\"social_icons\">"
+ out << "<span class=\"social_icon_twitter\">#{social_icon_twitter(opts)}</span>"
+ out << "<span class=\"social_icon_facebook\">#{social_icon_facebook(opts)}</span>"
+ out << "<span class=\"social_icon_delicious\">#{social_icon_delicious(opts)}</span>"
+ out << "<span class=\"social_icon_digg\">#{social_icon_digg(opts)}</span>"
+ out << "<span class=\"social_icon_reddit\">#{social_icon_reddit(opts)}</span>"
+ out << "</div>"
+ #out << image_tag("social_icons/#{opts[:size]}/Google.png")
+ #out << "</div>"
+ out
+ end
+
+ def facebook_like_button(opts = {})
+ url = opts[:link]
+ out = '<iframe src="http://www.facebook.com/plugins/like.php?href=' + url + '&layout=standard&show_faces=true&width=272&action=like&colorscheme=light&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:272px; height:80px;" allowTransparency="true"></iframe>'
+ out
+ end
+
+ # <a title="Click to share this post on Twitter"
+ # href="http://twitter.com/home?status=Currently reading &lt;?php the_permalink(); ?&gt;" target="_blank" class="twitter">Share on Twitter</a>
+ #
+ def social_icon_twitter(opts = {})
+ url = "http://twitter.com/home?status=#{opts[:title]}+#{opts[:link]}"
+ out = link_to(image_tag("#{opts[:icon_path]}/twitter.png", :alt => t('social_icons.twitter')), url, :title => t('social_icons.twitter'), :target => "_blank")
+ out
+ end
+
+ # <a name="fb_share" type="button_count" share_url="http://google.com" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
+ #
+ # Facebook sayfa ile ilgili bilgiyi sayfaya bağlanıp da çekiyor.
+ # O yüzden title bilgisini göndermeye gerek yok.
+ #
+ # NOT: facebook encode edilmiş permalinkleri sevmiyor!
+ def social_icon_facebook(opts = {})
+ default_opts = {:title => "", :desc => "", :link => ""}
+ opts = default_opts.merge(opts)
+ link = "http://www.facebook.com/sharer.php?u=" +
+ CGI.unescape(opts[:link]) +
+ "&t=#{opts[:title]}"
+ out = "<a onclick=\"window.open('#{link}'" +
+ ",'sharer','toolbar=0,status=0,width=626,height=436');return false;\"" +
+ '" href="' + link + '">' +
+ image_tag("#{opts[:icon_path]}/facebook.png",
+ :alt => t("social_icons.facebook"),
+ :title => t("social_icons.facebook")) +
+ '</a>'
+ out
+ end
+
+ # <a title="Digg this post" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.weddingbee.com%2F2009%2F03%2F11%2Fadd-share-icons-for-social-media%2F" rel="nofollow" target="_blank"><img alt="Digg this post" src="http://www-static.weddingbee.com/images/digg.gif" style="border: medium none ;"></a>
+ def social_icon_digg(opts)
+ icon_label = t("social_icons.digg")
+ default_opts = {:title => "", :desc => "", :link => ""}
+ opts = default_opts.merge(opts)
+ out = '<a title="' +
+ icon_label +
+ '" href="http://digg.com/submit?phase=2&url=' +
+ opts[:link] +
+ '&title=' +
+ opts[:title] +
+ '" rel="nofollow" target="_blank">' +
+ image_tag("#{opts[:icon_path]}/digg.png", :alt => icon_label, :title => icon_label) +
+ '</a>'
+ end
+
+ # <a href="http://delicious.com/save?url=<?php urlencode(the_permalink()); ?>&amp;title=<?php urlencode(the_title()); ?>" onclick="window.open('http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url=<?php urlencode(the_permalink()); ?>&amp;title=<?php urlencode(the_title()); ?>', 'delicious', 'toolbar=no,width=550,height=550'); return false;" title="Bookmark this post on del.icio.us"> </a>
+ def social_icon_delicious(opts)
+ icon_label = t("social_icons.delicious")
+ default_opts = {:title => "", :desc => "", :link => ""}
+ opts = default_opts.merge(opts)
+ out = '<a href="http://delicious.com/save?url=' +
+ opts[:link] +
+ '&title=' +
+ opts[:title] +
+ '" onclick="' +
+ "window.open('http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url=" +
+ opts[:link] +
+ '&amp;title=' +
+ opts[:title] +
+ "', 'delicious', 'toolbar=no,width=550,height=550'); return false;\" title=\"" +
+ "Bookmark this post on del.icio.us" + '"> ' +
+ image_tag("#{opts[:icon_path]}/delicious.png", :alt => icon_label, :title => icon_label) +
+ '</a>'
+ end
+
+
+ # <a href="http://reddit.com/submit?url=<?php the_permalink(); ?>" rel="nofollow" title="Submit to Reddit" target="_blank"> </a>
+ def social_icon_reddit(opts)
+ icon_label = t("social_icons.reddit")
+ default_opts = {:title => "", :desc => "", :link => ""}
+ opts = default_opts.merge(opts)
+ out = '<a href="http://reddit.com/submit?url=' +
+ opts[:link] +
+ '&title=' +
+ opts[:title] +
+ '" rel="nofollow" title="' +
+ opts[:title] +
+ '" target="_blank">' +
+ image_tag("#{opts[:icon_path]}/reddit.png", :alt => icon_label, :title => icon_label) +
+ '</a>'
+ end
+
+ end
+
+end
@@ -0,0 +1,4 @@
+# desc "Explaining what the task does"
+# task :social_icons do
+# # Task goes here
+# end
Oops, something went wrong.

0 comments on commit db76c87

Please sign in to comment.