CMS  Version 3.9
chicklits.inc
Go to the documentation of this file.
1 <?
2 /**************************************************************
3 
4  Copyright (c) 2010 Sonjara, Inc
5 
6  Permission is hereby granted, free of charge, to any person
7  obtaining a copy of this software and associated documentation
8  files (the "Software"), to deal in the Software without
9  restriction, including without limitation the rights to use,
10  copy, modify, merge, publish, distribute, sublicense, and/or sell
11  copies of the Software, and to permit persons to whom the
12  Software is furnished to do so, subject to the following
13  conditions:
14 
15  The above copyright notice and this permission notice shall be
16  included in all copies or substantial portions of the Software.
17 
18  Except as contained in this notice, the name(s) of the above
19  copyright holders shall not be used in advertising or otherwise
20  to promote the sale, use or other dealings in this Software
21  without prior written authorization.
22 
23  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
25  OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
27  HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
28  WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
29  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
30  OTHER DEALINGS IN THE SOFTWARE.
31 
32 *****************************************************************/
33 
34 Fakoli::using("settings");
35 
36 $url = "http://{$_SERVER['SERVER_NAME']}{$_SERVER['REQUEST_URI']}";
37 
38 if (Settings::getValue("social_media", "Facebook"))
39 {
40 ?>
41  <a title="Share on Facebook" target="new_page" href="http://www.facebook.com/share.php?u=<?echo $url ?>"><img
42  src="/components/social_media/images/facebook_share_icon.gif"
43  alt="Share this page on Facebook" width="16" align="middle" border="0"
44  height="16"></a>
45 <?
46 }
47 
48 if (Settings::getValue("social_media", "Twitter"))
49 {
50 ?>
51  <a title="Share on Twitter" target="new_page" href="http://twitter.com/home?status=<?php echo $head_title?>: <?php echo $url ?>"> <img
52  src="/components/social_media/images/twitter.png"
53  alt="Share this page on Twitter" width="16" align="middle" border="0"
54  height="16"></a>
55 <?
56 }
57 
58 if (Settings::getValue("social_media", "Digg"))
59 {
60 ?>
61  <a title="Digg this page" target="new_page" href="http://digg.com/submit?url=<?echo $url ?>">
62  <img src="/components/social_media/images/digg.png" alt="Digg this page" width="16"
63  align="middle" border="0" height="14"></a>
64 <?
65 }
66 
67 
68 if (Settings::getValue("social_media", "StumbleUpon"))
69 {
70 ?>
71  <a title="Share on StumbleUpon" target="new_page" href="http://www.stumbleupon.com/submit?url=<?echo $url ?>"><img
72  src="/components/social_media/images/stumbleupon_16x16.gif"
73  alt="Share this page on StumbleUpon" width="16" align="middle"
74  border="0" height="16"></a>
75 <?
76 }
77 
78 if (Settings::getValue("social_media", "Del.icio.us"))
79 {
80 ?>
81  <a title="Post to Del.icio.us" target="new_page" href="http://del.icio.us/post?v=4%26noui%26jump=close%26url=<?echo $url ?>"><img
82  src="/components/social_media/images/delicious.png" alt="Post This Page to Del.icio.us"
83  width="16" align="middle" border="0" height="16"></a>
84 <?
85 }
86 
87 if (Settings::getValue("social_media", "Reddit"))
88 {
89 ?>
90  <a title="Save to Reddit" target="new_page" href="http://reddit.com/submit?url=<?echo $url ?>;"><img
91  src="/components/social_media/images/reddit.png" alt="Save this page to Reddit"
92  width="16" align="middle" border="0" height="18"></a>
93 <?
94 }
95 
96 if (Settings::getValue("social_media", "Yahoo_MyWeb"))
97 {
98 ?>
99  <a title="Save to Yahoo MyWeb" target="new_page" href="http://myweb.yahoo.com/myresults/bookmarklet?u=<?echo $url ?>&ei=UTF"><img
100  src="/components/social_media/images/yahoomyweb.png" alt="Save this page to Yahoo MyWeb"
101  width="16" align="middle" border="0" height="9"></a>
102 <?
103 }
104 
105 if (Settings::getValue("social_media", "Newsvine"))
106 {
107 ?>
108  <a title="Save to Newsvine" target="new_page" href="http://www.newsvine.com/_tools/seed%26save?url=<?echo $url ?>"><img
109  src="/components/social_media/images/newsvine.gif" alt="Save this page to Newsvine"
110  width="16" align="middle" border="0" height="16"></a>
111 <?
112 }
113 
114 if (Settings::getValue("social_media", "Google_Bookmarks"))
115 {
116 ?>
117  <a title="Save to Google Bookmarks" target="new_page" href="http://www.google.com/bookmarks/mark?op=edit%26bkmk=<?echo $url ?>"><img
118  src="/components/social_media/images/google.png" alt="Save this page to Google Bookmarks"
119  width="16" align="middle" border="0" height="16"></a>
120 <?
121 }
122 
123 if (Settings::getValue("social_media", "Mixx"))
124 {
125 ?>
126  <a title="Save to Mixx" target="new_page" href="http://www.mixx.com/submit?page_url=<?echo $url ?>"><img
127  src="/components/social_media/images/mixx.png" alt="Save this page to Mixx" width="16"
128  align="middle" border="0" height="14"></a>
129 <?
130 }
131 
132 if (Settings::getValue("social_media", "Technorati"))
133 {
134 ?>
135  <a title="Save to Technorati" target="new_page" href="http://technorati.com/faves?add=<?echo $url ?>"><img
136  src="/components/social_media/images/technorati.png" alt="Save this page to Technorati"
137  width="16" align="middle" border="0" height="16"></a>
138 <?
139 }
140 ?>
$helpTree width
Definition: tree.inc:45
$siteTree target
Definition: site_map.inc:56
$bookmark title
$url
Definition: chicklits.inc:36
static using()
Import the datamodels, views and manifest for the specified component(s).
Definition: core.inc:116
static getValue($component, $name)
Retrieve the value of the specified Setting.
Definition: settings.inc:104
$desc height
Definition: event_edit.inc:64
text align
Definition: redirects.inc:13