We are moving to Git Issues for bug tracking in future releases. During transition, content will be in both tools. If you'd like to file a new bug, please create an issue.

View | Details | Raw Unified | Return to bug 3910 | Differences between
and this patch

Collapse All | Expand All

(-)classes/rt/ojs/JournalRT.inc.php (+82 lines)
 Lines 27-32    Link Here 
27
	var $journalId;
27
	var $journalId;
28
	var $enabled;
28
	var $enabled;
29
29
30
	var $sharingEnabled;
31
	var $sharingUserName;
32
	var $sharingButtonStyle;
33
	var $sharingDropDownMenu;
34
	var $sharingBrand;
35
	var $sharingDropDown;
36
	var $sharingLanguage;
37
	var $sharingLogo;
38
	var $sharingLogoBackground;
39
	var $sharingLogoColor;
40
30
	function JournalRT($journalId) {
41
	function JournalRT($journalId) {
31
		$this->setJournalId($journalId);
42
		$this->setJournalId($journalId);
32
	}
43
	}
 Lines 40-45    Link Here 
40
	function setJournalId($journalId) {
51
	function setJournalId($journalId) {
41
		$this->journalId = $journalId;
52
		$this->journalId = $journalId;
42
	}
53
	}
54
55
	function getSharingEnabled() {
56
		return $this->sharingEnabled;
57
	}
58
	function getSharingUserName() {
59
		return $this->sharingUserName;
60
	}
61
	function getSharingButtonStyle() {
62
		return $this->sharingButtonStyle;
63
	}
64
	function getSharingDropDownMenu() {
65
		return $this->sharingDropDownMenu;
66
	}
67
	function getSharingBrand() {
68
		return $this->sharingBrand;
69
	}
70
	function getSharingDropDown() {
71
		return $this->sharingDropDown;
72
	}
73
	function getSharingLanguage() {
74
		return $this->sharingLanguage;
75
	}
76
	function getSharingLogo() {
77
		return $this->sharingLogo;
78
	}
79
	function getSharingLogoBackground() {
80
		return $this->sharingLogoBackground;
81
	}
82
	function getSharingLogoColor() {
83
		return $this->sharingLogoColor;
84
	}
85
86
	function setSharingEnabled($sharingEnabled) {
87
		$this->sharingEnabled = $sharingEnabled;
88
	}
89
	
90
	function setSharingUserName($sharingUserName) {
91
		$this->sharingUserName = $sharingUserName;
92
	}
93
	
94
	function setSharingButtonStyle($sharingButtonStyle) {
95
		$this->sharingButtonStyle = $sharingButtonStyle;
96
	}
97
	
98
	function setSharingDropDownMenu($sharingDropDownMenu) {
99
		$this->sharingDropDownMenu = $sharingDropDownMenu;
100
	}
101
	
102
	function setSharingBrand($sharingBrand) {
103
		$this->sharingBrand = $sharingBrand;
104
	}
105
	
106
	function setSharingDropDown($sharingDropDown) {
107
		$this->sharingDropDown = $sharingDropDown;
108
	}
109
	
110
	function setSharingLanguage($sharingLanguage) {
111
		$this->sharingLanguage = $sharingLanguage;
112
	}
113
	
114
	function setSharingLogo($sharingLogo) {
115
		$this->sharingLogo = $sharingLogo;
116
	}
117
	
118
	function setSharingLogoBackground($sharingLogoBackground) {
119
		$this->sharingLogoBackground = $sharingLogoBackground;
120
	}
121
	
122
	function setSharingLogoColor($sharingLogoColor) {
123
		$this->sharingLogoColor = $sharingLogoColor;
124
	}
43
}
125
}
44
126
45
?>
127
?>
(-)classes/rt/ojs/RTDAO.inc.php (+24 lines)
 Lines 42-47    Link Here 
42
		$rt->setEmailAuthor($journal->getSetting('rtEmailAuthor')?true:false);
42
		$rt->setEmailAuthor($journal->getSetting('rtEmailAuthor')?true:false);
43
		$rt->setEmailOthers($journal->getSetting('rtEmailOthers')?true:false);
43
		$rt->setEmailOthers($journal->getSetting('rtEmailOthers')?true:false);
44
		$rt->setFindingReferences($journal->getSetting('rtFindingReferences')?true:false);
44
		$rt->setFindingReferences($journal->getSetting('rtFindingReferences')?true:false);
45
46
		$rt->setSharingEnabled($journal->getSetting("rtSharingEnabled") ? $journal->getSetting("rtSharingEnabled") : "");
47
		$rt->setSharingUserName($journal->getSetting("rtSharingUserName") ? $journal->getSetting("rtSharingUserName") : "");
48
		$rt->setSharingButtonStyle($journal->getSetting("rtSharingButtonStyle") ? $journal->getSetting("rtSharingButtonStyle") : "");
49
		$rt->setSharingDropDownMenu($journal->getSetting("rtSharingDropDownMenu") ? $journal->getSetting("rtSharingDropDownMenu") : "");
50
		$rt->setSharingBrand($journal->getSetting("rtSharingBrand") ? $journal->getSetting("rtSharingBrand") : "");
51
		$rt->setSharingDropDown($journal->getSetting("rtSharingDropDown") ? $journal->getSetting("rtSharingDropDown") : "");
52
		$rt->setSharingLanguage($journal->getSetting("rtSharingLanguage") ? $journal->getSetting("rtSharingLanguage") : "");
53
		$rt->setSharingLogo($journal->getSetting("rtSharingLogo") ? $journal->getSetting("rtSharingLogo") : "");
54
		$rt->setSharingLogoBackground($journal->getSetting("rtSharingLogoBackground") ? $journal->getSetting("rtSharingLogoBackground") : "");
55
		$rt->setSharingLogoColor($journal->getSetting("rtSharingLogoColor") ? $journal->getSetting("rtSharingLogoColor") : "");
56
45
		return $rt;
57
		return $rt;
46
	}
58
	}
47
59
 Lines 61-66    Link Here 
61
		$journal->updateSetting('rtEmailAuthor', $rt->getEmailAuthor(), 'bool');
73
		$journal->updateSetting('rtEmailAuthor', $rt->getEmailAuthor(), 'bool');
62
		$journal->updateSetting('rtEmailOthers', $rt->getEmailOthers(), 'bool');
74
		$journal->updateSetting('rtEmailOthers', $rt->getEmailOthers(), 'bool');
63
		$journal->updateSetting('rtFindingReferences', $rt->getFindingReferences());
75
		$journal->updateSetting('rtFindingReferences', $rt->getFindingReferences());
76
77
		$journal->updateSetting("rtSharingEnabled", $rt->getSharingEnabled());
78
		$journal->updateSetting("rtSharingUserName", $rt->getSharingUserName());
79
		$journal->updateSetting("rtSharingButtonStyle", $rt->getSharingButtonStyle());
80
		$journal->updateSetting("rtSharingDropDownMenu", $rt->getSharingDropDownMenu());
81
		$journal->updateSetting("rtSharingBrand", $rt->getSharingBrand());
82
		$journal->updateSetting("rtSharingDropDown", $rt->getSharingDropDown());
83
		$journal->updateSetting("rtSharingLanguage", $rt->getSharingLanguage());
84
		$journal->updateSetting("rtSharingLogo", $rt->getSharingLogo());
85
		$journal->updateSetting("rtSharingLogoBackground", $rt->getSharingLogoBackground());
86
		$journal->updateSetting("rtSharingLogoColor", $rt->getSharingLogoColor());
87
64
		return true;
88
		return true;
65
	}
89
	}
66
90
(-)classes/rt/ojs/SharingRT.inc.php (+127 lines)
Added Link Here 
1
<?php
2
3
4
/**
5
 * @defgroup rt_ojs
6
 */
7
8
/**
9
 * @file classes/rt/ojs/SharingRT.inc.php
10
 *
11
 * Copyright (c) 2003-2009 John Willinsky
12
 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
13
 *
14
 * @class SharingRT
15
 * @ingroup rt_ojs
16
 *
17
 * @brief OJS-specific AddThis end-user interface.
18
 */
19
20
// $Id: JournalRT.inc.php,v 1.11 2009/04/08 19:54:22 asmecher Exp $
21
22
import('i18n.Locale');
23
24
class SharingRT {
25
26
	static $languages = array (
27
		'zh' => 'Chinese',
28
		'da' => 'Danish',
29
		'nl' => 'Dutch',
30
		'en' => 'English',
31
		'fi' => 'Finnish',
32
		'fr' => 'French',
33
		'de' => 'German',
34
		'he' => 'Hebrew',
35
		'it' => 'Italian',
36
		'ja' => 'Japanese',
37
		'ko' => 'Korean',
38
		'no' => 'Norwegian',
39
		'pl' => 'Polish',
40
		'pt' => 'Portugese',
41
		'ru' => 'Russian',
42
		'es' => 'Spanish',
43
		'sv' => 'Swedish'
44
	);
45
46
	static $btnStyles = array (
47
		'share' => array (
48
			'img' => 'lg-share-%lang%.gif',
49
			'w' => 125,
50
			'h' => 16
51
		),
52
		'bookmark' => array (
53
			'img' => 'lg-bookmark-en.gif',
54
			'w' => 125,
55
			'h' => 16
56
		),
57
		'addthis' => array (
58
			'img' => 'lg-addthis-en.gif',
59
			'w' => 125,
60
			'h' => 16
61
		),
62
		'share-small' => array (
63
			'img' => 'sm-share-%lang%.gif',
64
			'w' => 83,
65
			'h' => 16
66
		),
67
		'bookmark-small' => array (
68
			'img' => 'sm-bookmark-en.gif',
69
			'w' => 83,
70
			'h' => 16
71
		),
72
		'plus' => array (
73
			'img' => 'sm-plus.gif',
74
			'w' => 16,
75
			'h' => 16
76
		)
77
		/* Add your own style here, like this:
78
		 , 'custom' => array('img'=>'http://example.com/button.gif', 'w'=>16, 'h'=>16) */
79
		
80
	);
81
82
	/**
83
	 * Generate the information for the HTML tag for the sharing button
84
	 * @return array(url, width, height)
85
	 */
86
	function sharingButtonImage($journalRt) {
87
		$btnStyle = $journalRt->getSharingButtonStyle();
88
		if ($journalRt->getSharingLanguage() != 'en') {
89
			if ($btnStyle == 'bookmark' || $btnStyle == 'adthis' || $btnStyle == 'bookmark-sm') {
90
				$btnStyle = 'share';
91
			}
92
		}
93
		if (!isset (self :: $btnStyles[$btnStyle])) {
94
			$btnStyle = 'share';
95
		}
96
		$btnRecord = self :: $btnStyles[$btnStyle];
97
		$btnUrl = (strpos(trim($btnRecord['img']), 'http://') !== 0 ? "http://s7.addthis.com/static/btn/" : "") . $btnRecord['img'];
98
		$btnUrl = str_replace('%lang%', SharingRT :: sharingLocale($journalRt->getSharingLanguage()), $btnUrl);
99
		$btnWidth = $btnRecord['w'];
100
		$btnHeight = $btnRecord['h'];
101
		$btnHeight = Locale :: getLocale();
102
		return array (
103
			$btnUrl,
104
			$btnWidth,
105
			$btnHeight
106
		);
107
	}
108
109
	/**
110
	 * determine the correct language for the sharing button. Attempt to use the user's local 
111
	 * setting if it is one that AddThis supports. If not, use the language the administrator 
112
	 * has chosen.
113
	 * 
114
	 * @return string
115
	 * @param $default string
116
	 */
117
	function sharingLocale($default) {
118
		//getLocal() returns a string like 'en_US'
119
		$locale = Locale :: getLocale();
120
		$lang = substr($locale, 0, 2);
121
		if (isset (self :: $languages[$lang])) {
122
			return $lang;
123
		}
124
		return $default;
125
	}
126
}
127
?>
(-)pages/article/ArticleHandler.inc.php (+24 lines)
 Lines 19-24    Link Here 
19
import('rt.ojs.RTDAO');
19
import('rt.ojs.RTDAO');
20
import('rt.ojs.JournalRT');
20
import('rt.ojs.JournalRT');
21
import('handler.Handler');
21
import('handler.Handler');
22
import('rt.ojs.SharingRT');
22
23
23
class ArticleHandler extends Handler {
24
class ArticleHandler extends Handler {
24
	/** journal associated with the request **/
25
	/** journal associated with the request **/
 Lines 279-284    Link Here 
279
		$templateMgr->assign('galleyId', $galleyId);
280
		$templateMgr->assign('galleyId', $galleyId);
280
		$templateMgr->assign('defineTermsContextId', isset($defineTermsContextId)?$defineTermsContextId:null);
281
		$templateMgr->assign('defineTermsContextId', isset($defineTermsContextId)?$defineTermsContextId:null);
281
		$templateMgr->assign('comments', isset($comments)?$comments:null);
282
		$templateMgr->assign('comments', isset($comments)?$comments:null);
283
		
284
		$templateMgr->assign('sharingEnabled', $journalRt->getSharingEnabled());
285
		
286
		if($journalRt->getSharingEnabled()) {
287
			$templateMgr->assign('sharingRequestURL', Request::getRequestURL());
288
			$templateMgr->assign('sharingArticleTitle', $article->getArticleTitle());
289
			$templateMgr->assign_by_ref('sharingUserName', $journalRt->getSharingUserName());
290
			$templateMgr->assign_by_ref('sharingButtonStyle', $journalRt->getSharingButtonStyle());
291
			$templateMgr->assign_by_ref('sharingDropDownMenu', $journalRt->getSharingDropDownMenu());
292
			$templateMgr->assign_by_ref('sharingBrand', $journalRt->getSharingBrand());
293
			$templateMgr->assign_by_ref('sharingDropDown', $journalRt->getSharingDropDown());
294
			$templateMgr->assign_by_ref('sharingLanguage', $journalRt->getSharingLanguage());
295
			$templateMgr->assign_by_ref('sharingLogo', $journalRt->getSharingLogo());
296
			$templateMgr->assign_by_ref('sharingLogoBackground', $journalRt->getSharingLogoBackground());
297
			$templateMgr->assign_by_ref('sharingLogoColor', $journalRt->getSharingLogoColor());
298
			list($btnUrl, $btnWidth, $btnHeight) = SharingRT::sharingButtonImage($journalRt);
299
			$templateMgr->assign('sharingButtonUrl', $btnUrl);
300
			$templateMgr->assign('sharingButtonWidth', $btnWidth);
301
			$templateMgr->assign('sharingButtonHeight', $btnHeight);
302
		}
303
		$templateMgr->display('article/article.tpl');
304
		
305
		
282
		$templateMgr->display('article/article.tpl');
306
		$templateMgr->display('article/article.tpl');
283
	}
307
	}
284
308
(-)pages/rtadmin/RTAdminHandler.inc.php (+11 lines)
 Lines 17-22    Link Here 
17
17
18
import('rt.ojs.JournalRTAdmin');
18
import('rt.ojs.JournalRTAdmin');
19
import('handler.Handler');
19
import('handler.Handler');
20
import('rtadmin.RTSharingHandler');
20
21
21
class RTAdminHandler extends Handler {
22
class RTAdminHandler extends Handler {
22
	/**
23
	/**
 Lines 80-85    Link Here 
80
		}
81
		}
81
	}
82
	}
82
83
84
	function configureSharing() {
85
		import('pages.rtadmin.RTSharingHandler');
86
		RTSharingHandler::settings();
87
	}
88
89
	function saveConfigureSharing() {
90
		import('pages.rtadmin.RTSharingHandler');
91
		RTSharingHandler::saveSettings();
92
	}	
93
83
	function validateUrls($args) {
94
	function validateUrls($args) {
84
		$this->validate();
95
		$this->validate();
85
96
(-)pages/rtadmin/RTSharingHandler.inc.php (+79 lines)
Added Link Here 
1
<?php
2
3
/**
4
 * @file RTSharingHandler.inc.php
5
 *
6
 * Copyright (c) 2003-2009 John Willinsky
7
 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
8
 *
9
 * @class RTSharingHandler
10
 * @ingroup pages_rtadmin
11
 *
12
 * @brief Handle Reading Tools sharing requests -- setup section.
13
 */
14
15
// $Id: RTSharingHandler.inc.php,v 1.23 2009/04/08 19:54:33 asmecher Exp $
16
17
18
import('rt.ojs.JournalRTAdmin');
19
import('rtadmin.RTAdminHandler');
20
import('rt.ojs.SharingRT'); 
21
22
class RTSharingHandler { 
23
	function settings() {
24
		RTAdminHandler::validate();
25
		$journal = Request::getJournal();
26
		if ($journal) {
27
			RTAdminHandler::setupTemplate(true);
28
			$templateMgr = &TemplateManager::getManager();
29
30
			$rtDao = &DAORegistry::getDAO('RTDAO');
31
			$rt = $rtDao->getJournalRTByJournal($journal);
32
33
			$templateMgr->assign("sharingEnabled", $rt->getSharingEnabled());
34
			$templateMgr->assign("sharingUserName", $rt->getSharingUserName());
35
			$templateMgr->assign("sharingButtonStyle", $rt->getSharingButtonStyle());
36
			$templateMgr->assign_by_ref("sharingButtonStyleOptions", array_keys(SharingRT::$btnStyles));
37
			$templateMgr->assign("sharingDropDownMenu", $rt->getSharingDropDownMenu());
38
			$templateMgr->assign("sharingBrand", $rt->getSharingBrand());
39
			$templateMgr->assign("sharingDropDown", $rt->getSharingDropDown());
40
			$templateMgr->assign("sharingLanguage", $rt->getSharingLanguage());
41
			$templateMgr->assign_by_ref("sharingLanguageOptions", SharingRT::$languages);
42
			$templateMgr->assign("sharingLogo", $rt->getSharingLogo());
43
			$templateMgr->assign("sharingLogoBackground", $rt->getSharingLogoBackground());
44
			$templateMgr->assign("sharingLogoColor", $rt->getSharingLogoColor());
45
			 
46
			$templateMgr->assign('helpTopicId', 'journal.managementPages.readingTools.addthisSettings');
47
			$templateMgr->display('rtadmin/addthis.tpl');
48
		} else {
49
			Request::redirect(null, Request::getRequestedPage());
50
		}
51
	}
52
53
	function saveSettings() {
54
		RTAdminHandler::validate();
55
56
		$journal = Request::getJournal();
57
58
		if ($journal) {
59
			$rtDao = &DAORegistry::getDAO('RTDAO');
60
			$rt = $rtDao->getJournalRTByJournal($journal);
61
62
			$rt->setSharingEnabled(Request::getUserVar("sharingEnabled"));
63
			$rt->setSharingUserName(Request::getUserVar("sharingUserName"));
64
			$rt->setSharingButtonStyle(Request::getUserVar("sharingButtonStyle"));
65
			$rt->setSharingDropDownMenu(Request::getUserVar("sharingDropDownMenu"));
66
			$rt->setSharingBrand(Request::getUserVar("sharingBrand"));
67
			$rt->setSharingDropDown(Request::getUserVar("sharingDropDown"));
68
			$rt->setSharingLanguage(Request::getUserVar("sharingLanguage"));
69
			$rt->setSharingLogo(Request::getUserVar("sharingLogo"));
70
			$rt->setSharingLogoBackground(Request::getUserVar("sharingLogoBackground"));
71
			$rt->setSharingLogoColor(Request::getUserVar("sharingLogoColor"));
72
73
			$rtDao->updateJournalRT($rt);
74
		}
75
		Request::redirect(null, Request::getRequestedPage());
76
	}
77
}
78
79
?>
(-)templates/article/footer.tpl (+31 lines)
 Lines 8-13    Link Here 
8
 *
8
 *
9
 * $Id: footer.tpl,v 1.3 2009/04/29 15:43:58 mj Exp $
9
 * $Id: footer.tpl,v 1.3 2009/04/29 15:43:58 mj Exp $
10
 *}
10
 *}
11
12
<!-- start AddThis -->
13
{if $sharingEnabled}
14
{if isset($sharingDropDownMenu)}
15
16
{if isset($sharingUserName)}
17
<script type="text/javascript">var addthis_pub = '{$sharingUserName}';</script>
18
{/if}{* sharingUserName *}
19
20
<div class="addthis_container">
21
<a href="http://www.addthis.com/bookmark.php" 
22
	onmouseover="return addthis_open(this, '', '{$sharingArticleURL}', '{$sharingArticleTitle}')" 
23
	onmouseout="addthis_close()" onclick="return addthis_sendto()">
24
		<img src="{$sharingButtonUrl}" width="{$sharingButtonWidth}" height="{$sharingButtonHeight}" border="0" alt="Bookmark and Share" style="border:0;padding:0" />
25
	</a>
26
	<script type="text/javascript" src="http://s7.addthis.com/js/200/addthis_widget.js"></script>
27
</div>
28
{else}{* sharingUserName *}
29
<a href="http://www.addthis.com/bookmark.php" 
30
   onclick="window.open('http://www.addthis.com/bookmark.php?pub={$sharingUserName}&amp;url={$sharingRequestURL}&amp;title={$sharingArticleTitle}', 'addthis', 
31
	                    'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no'); 
32
			return false;" 
33
	title="Bookmark using any bookmark manager!" target="_blank">
34
	<img src="{$sharingButtonUrl}" width="{$sharingButtonWidth}" height="{$sharingButtonHeight}" border="0" alt="Bookmark and Share" style="border:0;padding:0" />
35
</a>
36
{/if}{* sharingDropdown *}
37
{/if}{* sharingEnabled *}
38
<!-- end AddThis -->
39
11
{if $currentJournal && $currentJournal->getSetting('includeCreativeCommons')}
40
{if $currentJournal && $currentJournal->getSetting('includeCreativeCommons')}
12
	<br /><br />
41
	<br /><br />
13
	<a rel="license" target="_new" href="http://creativecommons.org/licenses/by/3.0/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by/3.0/80x15.png" /></a>
42
	<a rel="license" target="_new" href="http://creativecommons.org/licenses/by/3.0/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by/3.0/80x15.png" /></a>
 Lines 15-20    Link Here 
15
	This <span xmlns:dc="http://purl.org/dc/elements/1.1/" href="http://purl.org/dc/dcmitype/Text" rel="dc:type">work</span> is licensed under a <a target="_new" rel="license" href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 License</a>.
44
	This <span xmlns:dc="http://purl.org/dc/elements/1.1/" href="http://purl.org/dc/dcmitype/Text" rel="dc:type">work</span> is licensed under a <a target="_new" rel="license" href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 License</a>.
16
{/if}
45
{/if}
17
46
47
18
{if $pageFooter}
48
{if $pageFooter}
19
<br /><br />
49
<br /><br />
20
{$pageFooter}
50
{$pageFooter}
 Lines 26-31    Link Here 
26
</div>
56
</div>
27
</div>
57
</div>
28
58
59
29
{if $defineTermsContextId}
60
{if $defineTermsContextId}
30
<script type="text/javascript">
61
<script type="text/javascript">
31
{literal}
62
{literal}
(-)templates/rtadmin/addthis.tpl (+86 lines)
Added Link Here 
1
{**
2
 * settings.tpl
3
 *
4
 * Copyright (c) 2003-2009 John Willinsky
5
 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
6
 *
7
 * RT Administration settings.
8
 *
9
 * $Id: settings.tpl,v 1.25 2009/04/08 19:54:52 asmecher Exp $
10
 *}
11
{strip}
12
{assign var="pageTitle" value="rt.admin.sharing"}
13
{include file="common/header.tpl"}
14
{/strip}
15
16
<form method="post" action='{url op="saveConfigureSharing"}'>
17
18
<p>{translate key="rt.admin.sharing.description"}</p>
19
20
<div class="separator">&nbsp;</div>
21
22
<h3>{translate key="rt.admin.sharing.basic"}</h3>
23
<table width="100%" class="data">
24
	<tr valign="top">
25
		<td class="label" width="20%"></td>
26
		<td width="80%"><input type="checkbox" name="sharingEnabled" id="sharingEnabled" {if isset($sharingEnabled) && $sharingEnabled} checked="checked" {/if} /> <label for="sharingEnabled">{translate key="rt.admin.sharing.enabled"}</label></td>
27
	</tr>
28
	<tr valign="top">
29
		<td class="label"><label for="sharingUserName">{translate key="rt.admin.sharing.userNameLabel"}</label></td>
30
		<td><input type="text" name="sharingUserName" id="sharingUserName" value="{$sharingUserName}"/></td>
31
	</tr>
32
	<tr valign="top">
33
		<td class="label"><label for="sharingButtonStyle">{translate key="rt.admin.sharing.buttonStyleLabel"}</label></td>
34
		<td>
35
		{html_options 	name="sharingButtonStyle" id="sharingButtonStyle" 
36
					  	values=$sharingButtonStyleOptions|@array_values 
37
 						output=$sharingButtonStyleOptions|@array_values 
38
						selected=$sharingButtonStyle}
39
		</td>
40
	</tr>
41
	<tr>
42
		<td class="label"></td>
43
		<td><input type="checkbox" name="sharingDropDownMenu" id="sharingDropDownMenu" {if isset($sharingDropDownMenu) && $sharingDropDownMenu} checked="checked" {/if} /> <label for="sharingDropDownMenu">{translate key="rt.admin.sharing.dropDownMenuLabel"}</label></td>
44
	</tr>
45
</table>
46
47
<h3>{translate key="rt.admin.sharing.advanced"}</h3>
48
<p>{translate key="rt.admin.sharing.customizationLink"}</p>
49
<table width="100%" class="data">
50
	<tr valign="top">
51
		<td class="label" width="20%"><label for="sharingBrand">{translate key="rt.admin.sharing.brandLabel"}</label></td>
52
		<td width="80%"><input type="text" name="sharingBrand" id="sharingBrand" value="{$sharingBrand}"/></td>
53
	</tr>
54
	<tr valign="top">
55
		<td class="label"><label for="sharingDropDown">{translate key="rt.admin.sharing.dropDownLabel"}</label></td>
56
		<td><textarea rows="4" cols="20" name="sharingDropDown" id="sharingDropDown">{$sharingDropDown}</textarea></td>
57
	</tr>
58
	<tr valign="top">
59
		<td class="label"><label for="sharingLanguage">{translate key="rt.admin.sharing.languageLabel"}</label></td>
60
		<td>
61
			{html_options 	name="sharingLanguage" id="sharingLanguage"
62
							options="$sharingLanguageOptions" 
63
							selected=$sharingLanguage}
64
		</td>
65
	</tr>
66
	<tr valign="top">
67
		<td class="label"><label for="sharingLogo">{translate key="rt.admin.sharing.logolabel"}</label></td>
68
		<td><input type="text" name="sharingLogo" id="sharingLogo" value="{$sharingLogo}" /></td>
69
	</tr>
70
	<tr valign="top">
71
		<td class="label"><label for="sharingLogoBackground">{translate key="rt.admin.sharing.logoBackgroundLabel"}</label></td>
72
		<td><input type="text" name="sharingLogoBackground" id="sharingLogoBackground" value="{$sharingLogoBackground}"/></td>
73
	</tr>
74
	<tr valign="top">
75
		<td class="label"><label for="sharingLogoColor">{translate key="rt.admin.sharing.logoColorLabel"}</label></td>
76
		<td><input type="text" name="sharingLogoColor" id="sharingLogoColor" value="{$sharingLogoColor}"/></td>
77
	</tr>
78
</table>
79
80
<p><input type="submit" value='{translate key="common.save"}' class="button defaultButton" /> 
81
<input type="button" value='{translate key="common.cancel"}' class="button" onclick="document.location.href='{url page=rtadmin escape=false}'" />
82
</p>
83
84
</form>
85
86
{include file="common/footer.tpl"}
(-)templates/rtadmin/index.tpl (+5 lines)
 Lines 30-33    Link Here 
30
	<li>&#187; <a href="{url op="validateUrls"}">{translate key="rt.admin.validateUrls"}</a></li>
30
	<li>&#187; <a href="{url op="validateUrls"}">{translate key="rt.admin.validateUrls"}</a></li>
31
</ul>
31
</ul>
32
32
33
<h3>{translate key="rt.admin.sharing"}</h3>
34
<ul class="plain">
35
	<li>&#187; <a href="{url op="configureSharing"}">{translate key="rt.admin.configureSharing"}</a></li>
36
</ul>
37
33
{include file="common/footer.tpl"}
38
{include file="common/footer.tpl"}

Return to bug 3910