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 26-31    Link Here 
26
	var $journalId;
26
	var $journalId;
27
	var $enabled;
27
	var $enabled;
28
28
29
	var $sharingEnabled;
30
	var $sharingUserName;
31
	var $sharingButtonStyle;
32
	var $sharingDropDownMenu;
33
	var $sharingBrand;
34
	var $sharingDropDown;
35
	var $sharingLanguage;
36
	var $sharingLogo;
37
	var $sharingLogoBackground;
38
	var $sharingLogoColor;
39
29
	function JournalRT($journalId) {
40
	function JournalRT($journalId) {
30
		$this->setJournalId($journalId);
41
		$this->setJournalId($journalId);
31
	}
42
	}
 Lines 39-44    Link Here 
39
	function setJournalId($journalId) {
50
	function setJournalId($journalId) {
40
		$this->journalId = $journalId;
51
		$this->journalId = $journalId;
41
	}
52
	}
53
54
	function getSharingEnabled() {
55
		return $this->sharingEnabled;
56
	}
57
	function getSharingUserName() {
58
		return $this->sharingUserName;
59
	}
60
	function getSharingButtonStyle() {
61
		return $this->sharingButtonStyle;
62
	}
63
	function getSharingDropDownMenu() {
64
		return $this->sharingDropDownMenu;
65
	}
66
	function getSharingBrand() {
67
		return $this->sharingBrand;
68
	}
69
	function getSharingDropDown() {
70
		return $this->sharingDropDown;
71
	}
72
	function getSharingLanguage() {
73
		return $this->sharingLanguage;
74
	}
75
	function getSharingLogo() {
76
		return $this->sharingLogo;
77
	}
78
	function getSharingLogoBackground() {
79
		return $this->sharingLogoBackground;
80
	}
81
	function getSharingLogoColor() {
82
		return $this->sharingLogoColor;
83
	}
84
85
	function setSharingEnabled($sharingEnabled) {
86
		$this->sharingEnabled = $sharingEnabled;
87
	}
88
	
89
	function setSharingUserName($sharingUserName) {
90
		$this->sharingUserName = $sharingUserName;
91
	}
92
	
93
	function setSharingButtonStyle($sharingButtonStyle) {
94
		$this->sharingButtonStyle = $sharingButtonStyle;
95
	}
96
	
97
	function setSharingDropDownMenu($sharingDropDownMenu) {
98
		$this->sharingDropDownMenu = $sharingDropDownMenu;
99
	}
100
	
101
	function setSharingBrand($sharingBrand) {
102
		$this->sharingBrand = $sharingBrand;
103
	}
104
	
105
	function setSharingDropDown($sharingDropDown) {
106
		$this->sharingDropDown = $sharingDropDown;
107
	}
108
	
109
	function setSharingLanguage($sharingLanguage) {
110
		$this->sharingLanguage = $sharingLanguage;
111
	}
112
	
113
	function setSharingLogo($sharingLogo) {
114
		$this->sharingLogo = $sharingLogo;
115
	}
116
	
117
	function setSharingLogoBackground($sharingLogoBackground) {
118
		$this->sharingLogoBackground = $sharingLogoBackground;
119
	}
120
	
121
	function setSharingLogoColor($sharingLogoColor) {
122
		$this->sharingLogoColor = $sharingLogoColor;
123
	}
42
}
124
}
43
125
44
?>
126
?>
(-)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
(-) (+125 lines)
Added Link Here 
1
<?php
2
3
/**
4
 * @defgroup rt_ojs
5
 */
6
7
/**
8
 * @file classes/rt/ojs/SharingRT.inc.php
9
 *
10
 * Copyright (c) 2003-2009 John Willinsky
11
 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
12
 *
13
 * @class SharingRT
14
 * @ingroup rt_ojs
15
 *
16
 * @brief OJS-specific AddThis end-user interface.
17
 */
18
19
// $Id: JournalRT.inc.php,v 1.11 2009/04/08 19:54:22 asmecher Exp $
20
21
import('i18n.Locale');
22
23
class SharingRT {
24
	static $languages = array (
25
		'zh' => 'Chinese',
26
		'da' => 'Danish',
27
		'nl' => 'Dutch',
28
		'en' => 'English',
29
		'fi' => 'Finnish',
30
		'fr' => 'French',
31
		'de' => 'German',
32
		'he' => 'Hebrew',
33
		'it' => 'Italian',
34
		'ja' => 'Japanese',
35
		'ko' => 'Korean',
36
		'no' => 'Norwegian',
37
		'pl' => 'Polish',
38
		'pt' => 'Portugese',
39
		'ru' => 'Russian',
40
		'es' => 'Spanish',
41
		'sv' => 'Swedish'
42
	);
43
44
	static $btnStyles = array (
45
		'share' => array (
46
			'img' => 'lg-share-%lang%.gif',
47
			'w' => 125,
48
			'h' => 16
49
		),
50
		'bookmark' => array (
51
			'img' => 'lg-bookmark-en.gif',
52
			'w' => 125,
53
			'h' => 16
54
		),
55
		'addthis' => array (
56
			'img' => 'lg-addthis-en.gif',
57
			'w' => 125,
58
			'h' => 16
59
		),
60
		'share-small' => array (
61
			'img' => 'sm-share-%lang%.gif',
62
			'w' => 83,
63
			'h' => 16
64
		),
65
		'bookmark-small' => array (
66
			'img' => 'sm-bookmark-en.gif',
67
			'w' => 83,
68
			'h' => 16
69
		),
70
		'plus' => array (
71
			'img' => 'sm-plus.gif',
72
			'w' => 16,
73
			'h' => 16
74
		)
75
		/* Add your own style here, like this:
76
		 , 'custom' => array('img'=>'http://example.com/button.gif', 'w'=>16, 'h'=>16) */
77
	);
78
79
	/**
80
	 * Generate the information for the HTML tag for the sharing button
81
	 * @return array(url, width, height)
82
	 */
83
	function sharingButtonImage($journalRt) {
84
		$btnStyle = $journalRt->getSharingButtonStyle();
85
		if ($journalRt->getSharingLanguage() != 'en') {
86
			if ($btnStyle == 'bookmark' || $btnStyle == 'adthis' || $btnStyle == 'bookmark-sm') {
87
				$btnStyle = 'share';
88
			}
89
		}
90
		if (!isset (self :: $btnStyles[$btnStyle])) {
91
			$btnStyle = 'share';
92
		}
93
		$btnRecord = self :: $btnStyles[$btnStyle];
94
		$btnUrl = (strpos(trim($btnRecord['img']), 'http://') !== 0 ? "http://s7.addthis.com/static/btn/" : "") . $btnRecord['img'];
95
		$btnUrl = str_replace('%lang%', SharingRT :: sharingLocale($journalRt->getSharingLanguage()), $btnUrl);
96
		$btnWidth = $btnRecord['w'];
97
		$btnHeight = $btnRecord['h'];
98
		$btnHeight = Locale :: getLocale();
99
		return array (
100
			$btnUrl,
101
			$btnWidth,
102
			$btnHeight
103
		);
104
	}
105
106
	/**
107
	 * determine the correct language for the sharing button. Attempt to use the user's local
108
	 * setting if it is one that AddThis supports. If not, use the language the administrator
109
	 * has chosen.
110
	 *
111
	 * @return string
112
	 * @param $default string
113
	 */
114
	function sharingLocale($default) {
115
		//getLocal() returns a string like 'en_US'
116
		$locale = Locale :: getLocale();
117
		$lang = substr($locale, 0, 2);
118
		if (isset (self :: $languages[$lang])) {
119
			return $lang;
120
		}
121
		return $default;
122
	}
123
}
124
125
?>
(-)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 280-285    Link Here 
280
		$templateMgr->assign('galleyId', $galleyId);
281
		$templateMgr->assign('galleyId', $galleyId);
281
		$templateMgr->assign('defineTermsContextId', isset($defineTermsContextId)?$defineTermsContextId:null);
282
		$templateMgr->assign('defineTermsContextId', isset($defineTermsContextId)?$defineTermsContextId:null);
282
		$templateMgr->assign('comments', isset($comments)?$comments:null);
283
		$templateMgr->assign('comments', isset($comments)?$comments:null);
284
		
285
		$templateMgr->assign('sharingEnabled', $journalRt->getSharingEnabled());
286
		
287
		if($journalRt->getSharingEnabled()) {
288
			$templateMgr->assign('sharingRequestURL', Request::getRequestURL());
289
			$templateMgr->assign('sharingArticleTitle', $article->getArticleTitle());
290
			$templateMgr->assign_by_ref('sharingUserName', $journalRt->getSharingUserName());
291
			$templateMgr->assign_by_ref('sharingButtonStyle', $journalRt->getSharingButtonStyle());
292
			$templateMgr->assign_by_ref('sharingDropDownMenu', $journalRt->getSharingDropDownMenu());
293
			$templateMgr->assign_by_ref('sharingBrand', $journalRt->getSharingBrand());
294
			$templateMgr->assign_by_ref('sharingDropDown', $journalRt->getSharingDropDown());
295
			$templateMgr->assign_by_ref('sharingLanguage', $journalRt->getSharingLanguage());
296
			$templateMgr->assign_by_ref('sharingLogo', $journalRt->getSharingLogo());
297
			$templateMgr->assign_by_ref('sharingLogoBackground', $journalRt->getSharingLogoBackground());
298
			$templateMgr->assign_by_ref('sharingLogoColor', $journalRt->getSharingLogoColor());
299
			list($btnUrl, $btnWidth, $btnHeight) = SharingRT::sharingButtonImage($journalRt);
300
			$templateMgr->assign('sharingButtonUrl', $btnUrl);
301
			$templateMgr->assign('sharingButtonWidth', $btnWidth);
302
			$templateMgr->assign('sharingButtonHeight', $btnHeight);
303
		}
304
		$templateMgr->display('article/article.tpl');
305
		
306
		
283
		$templateMgr->display('article/article.tpl');
307
		$templateMgr->display('article/article.tpl');
284
	}
308
	}
285
309
(-)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
(-) (+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 (+29 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>
(-) (+81 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" values=$sharingButtonStyleOptions|@array_values output=$sharingButtonStyleOptions|@array_values selected=$sharingButtonStyle}
36
		</td>
37
	</tr>
38
	<tr>
39
		<td class="label"></td>
40
		<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>
41
	</tr>
42
</table>
43
44
<h3>{translate key="rt.admin.sharing.advanced"}</h3>
45
<p>{translate key="rt.admin.sharing.customizationLink"}</p>
46
<table width="100%" class="data">
47
	<tr valign="top">
48
		<td class="label" width="20%"><label for="sharingBrand">{translate key="rt.admin.sharing.brandLabel"}</label></td>
49
		<td width="80%"><input type="text" name="sharingBrand" id="sharingBrand" value="{$sharingBrand}"/></td>
50
	</tr>
51
	<tr valign="top">
52
		<td class="label"><label for="sharingDropDown">{translate key="rt.admin.sharing.dropDownLabel"}</label></td>
53
		<td><textarea rows="4" cols="20" name="sharingDropDown" id="sharingDropDown">{$sharingDropDown}</textarea></td>
54
	</tr>
55
	<tr valign="top">
56
		<td class="label"><label for="sharingLanguage">{translate key="rt.admin.sharing.languageLabel"}</label></td>
57
		<td>
58
			{html_options name="sharingLanguage" id="sharingLanguage" options="$sharingLanguageOptions" selected=$sharingLanguage}
59
		</td>
60
	</tr>
61
	<tr valign="top">
62
		<td class="label"><label for="sharingLogo">{translate key="rt.admin.sharing.logolabel"}</label></td>
63
		<td><input type="text" name="sharingLogo" id="sharingLogo" value="{$sharingLogo}" /></td>
64
	</tr>
65
	<tr valign="top">
66
		<td class="label"><label for="sharingLogoBackground">{translate key="rt.admin.sharing.logoBackgroundLabel"}</label></td>
67
		<td><input type="text" name="sharingLogoBackground" id="sharingLogoBackground" value="{$sharingLogoBackground}"/></td>
68
	</tr>
69
	<tr valign="top">
70
		<td class="label"><label for="sharingLogoColor">{translate key="rt.admin.sharing.logoColorLabel"}</label></td>
71
		<td><input type="text" name="sharingLogoColor" id="sharingLogoColor" value="{$sharingLogoColor}"/></td>
72
	</tr>
73
</table>
74
75
<p><input type="submit" value='{translate key="common.save"}' class="button defaultButton" /> 
76
<input type="button" value='{translate key="common.cancel"}' class="button" onclick="document.location.href='{url page=rtadmin escape=false}'" />
77
</p>
78
79
</form>
80
81
{include file="common/footer.tpl"}
(-)templates/rtadmin/index.tpl (+11 lines)
 Lines 12-17    Link Here 
12
{assign var="pageTitle" value="rt.readingTools"}
12
{assign var="pageTitle" value="rt.readingTools"}
13
{include file="common/header.tpl"}
13
{include file="common/header.tpl"}
14
{/strip}
14
{/strip}
15
15
<div id="rtAdminStatus">
16
<div id="rtAdminStatus">
16
<h3>{translate key="rt.admin.status"}</h3>
17
<h3>{translate key="rt.admin.status"}</h3>
17
<p>
18
<p>
 Lines 19-24    Link Here 
19
{translate key="rt.admin.selectedVersion"}: {if $versionTitle}{$versionTitle|escape}{else}{translate key="common.disabled"}{/if}
20
{translate key="rt.admin.selectedVersion"}: {if $versionTitle}{$versionTitle|escape}{else}{translate key="common.disabled"}{/if}
20
</p>
21
</p>
21
</div>
22
</div>
23
22
<div id="rtAdminConfig">
24
<div id="rtAdminConfig">
23
<h3>{translate key="rt.admin.configuration"}</h3>
25
<h3>{translate key="rt.admin.configuration"}</h3>
24
<ul class="plain">
26
<ul class="plain">
 Lines 26-35    Link Here 
26
	<li>&#187; <a href="{url op="versions"}">{translate key="rt.versions"}</a></li>
28
	<li>&#187; <a href="{url op="versions"}">{translate key="rt.versions"}</a></li>
27
</ul>
29
</ul>
28
</div>
30
</div>
31
29
<div id="rtAdminManage">
32
<div id="rtAdminManage">
30
<h3>{translate key="rt.admin.management"}</h3>
33
<h3>{translate key="rt.admin.management"}</h3>
31
<ul class="plain">
34
<ul class="plain">
32
	<li>&#187; <a href="{url op="validateUrls"}">{translate key="rt.admin.validateUrls"}</a></li>
35
	<li>&#187; <a href="{url op="validateUrls"}">{translate key="rt.admin.validateUrls"}</a></li>
33
</ul>
36
</ul>
34
</div>
37
</div>
38
39
<div id="rtAdminSharing">
40
<h3>{translate key="rt.admin.sharing"}</h3>
41
<ul class="plain">
42
	<li>&#187; <a href="{url op="configureSharing"}">{translate key="rt.admin.configureSharing"}</a></li>
43
</ul>
44
</div>
45
35
{include file="common/footer.tpl"}
46
{include file="common/footer.tpl"}

Return to bug 3910