Fisheye: Tag 1.3 refers to a dead (removed) revision in file `openacs-4/packages/acs-subsite/lib/share-bar.adp'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.3 refers to a dead (removed) revision in file `openacs-4/packages/acs-subsite/lib/share-bar.tcl'. Fisheye: No comparison available. Pass `N' to diff? Index: openacs-4/packages/ecommerce/lib/share-bar.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/lib/share-bar.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/ecommerce/lib/share-bar.adp 21 Sep 2010 22:54:10 -0000 1.1 @@ -0,0 +1,18 @@ +<if @icons_p@ true> +<span class="share-class">#acs-subsite.Share#: +<a href="http://twitter.com/share?url=@url@&text=@title@" target="_blank"><img src="http://twitter.com/favicon.ico" alt="Tweet" width="16" height="16" border="1">Tweet</a> +<a href="http://www.facebook.com/sharer.php?u=@url@&t=@title@" target="_blank" title="Share on Facebook" rel="nofollow"><img src="http://www.facebook.com/favicon.ico" alt="Facebook" width="16" height="16" border="1">Facebook</a> +<a href="http://www.stumbleupon.com/submit?url=@url@" target="_blank" title="Share on StumbleUpon" rel="nofollow"><img src="http://www.stumbleupon.com/favicon.ico" alt="StumbleUpon" width="16" height="16" border="1">StumbleUpon</a> +<a href="http://www.digg.com/submit?phase=2&url=@url@" target="_blank" title="Share on Digg" rel="nofollow"><img src="http://cdn1.diggstatic.com/img/favicon.a015f25c.ico" alt="Digg" width="16" height="16" border="1">Digg</a> +<a href="http://del.icio.us/post?url=@url@&title=@title@" target="_blank" title="Share on Delicious" rel="nofollow"><img src="http://del.icio.us/favicon.ico" alt="Delicious" width="16" height="16" border="1">Delicious</a> +</span> +</if><else> +<span class="share-class">#acs-subsite.Share#: +<a href="http://twitter.com/share?url=@url@&text=@title@" target="_blank">Tweet</a> +<a href="http://www.facebook.com/sharer.php?u=@url@&t=@title@" target="_blank" title="Share on Facebook" rel="nofollow">Facebook</a> +<a href="http://www.stumbleupon.com/submit?url=@url@" target="_blank" title="Share on StumbleUpon" rel="nofollow">StumbleUpon</a> +<a href="http://www.digg.com/submit?phase=2&url=@url@" target="_blank" title="Share on Digg" rel="nofollow">Digg</a> +<a href="http://del.icio.us/post?url=@url@&title=@title@" target="_blank" title="Share on Delicious" rel="nofollow">Delicious</a> +</span> + +</else> Index: openacs-4/packages/ecommerce/lib/share-bar.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/lib/share-bar.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/ecommerce/lib/share-bar.tcl 21 Sep 2010 22:54:10 -0000 1.1 @@ -0,0 +1,14 @@ + +if { ![info exists title] } { + set title [ad_conn instance_name] + ns_log Notice "acs-subsite/lib/share-bar: title has no value, substituting with instance_name" +} +if { ![info exists url] } { + set url [ad_return_url -qualified] +} +if { [security::secure_conn_p] } { + set icons_p 0 +} +if { ![info exists icons_p] } { + set icons_p 1 +} Index: openacs-4/www/blank-master.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/www/blank-master.tcl,v diff -u -r1.50 -r1.51 --- openacs-4/www/blank-master.tcl 19 Sep 2010 10:51:06 -0000 1.50 +++ openacs-4/www/blank-master.tcl 21 Sep 2010 22:54:10 -0000 1.51 @@ -246,20 +246,6 @@ } } -# OpenGraph protocol http://opengraphprotocol.org for social networking -# Should these use parameterized values instead? -# see packages/acs-subsite/lib/share-bar for an example of how to implement share -template::head::defaults_meta -name "og:title" -content $doc(title) -template::head::defaults_meta -name "og:type" -content "website" -template::head::defaults_meta -name "og:url" -content [ad_return_url -qualified] -template::head::defaults_meta -name "og:image" -content "[ad_url]/favicon.ico" -if { [info exists ::template::head::metas(,description)] } { - template::head::defaults_meta -name "og:description" -content "[lindex $::template::head::metas(,description) 3]" -} -template::head::defaults_meta -name "og:site_name" -content [ad_system_name] - - - template::head::prepare_multirows set event_handlers [template::get_body_event_handlers] # Retrieve headers and footers