Index: openacs-4/packages/acs-subsite/lib/share-bar.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/lib/Attic/share-bar.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-subsite/lib/share-bar.adp 19 Sep 2010 10:51:06 -0000 1.1 @@ -0,0 +1,7 @@ +#acs-subsite.Share#: +TweetTweet +FacebookFacebook +StumbleUponStumbleUpon +DiggDigg +DeliciousDelicious + Index: openacs-4/packages/acs-subsite/lib/share-bar.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/lib/Attic/share-bar.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-subsite/lib/share-bar.tcl 19 Sep 2010 10:51:06 -0000 1.1 @@ -0,0 +1,8 @@ + +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] +} Index: openacs-4/www/blank-master.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/www/blank-master.tcl,v diff -u -r1.49 -r1.50 --- openacs-4/www/blank-master.tcl 19 Sep 2010 10:23:50 -0000 1.49 +++ openacs-4/www/blank-master.tcl 19 Sep 2010 10:51:06 -0000 1.50 @@ -248,6 +248,7 @@ # 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]