<div id="seotoaster" class="cpanel">
	<div id="showhide">{%Show/Hide panel%}</div>
    <div id="admincpanel">
		<div id="cpanellogowrap"><div id="cpanelimg"></div></div>
		<ul id="menu2" class="menu expandfirst">
			<!-- <ul id="menu2" class="menu expandfirst"> -->
			<?php if(!isset($this->newsData)):?>
				<li>
					<a href="javascript:;"><span>{%PAGES%}</span></a>
					<ul>
						<li class="cpanelsubtitle">{%This page%}</li>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_page/editpage/pageId/<?php echo $this->pageData['id']; ?>?TB_iframe=true&height=580&width=860','');" title="{%Edit page properties%}">{%Edit page properties%}</a></li>
							<?php if($this->pageData['url']!='index' && $this->pageData['url'] != RCMS_Object_QuickConfig_QuickConfig::$draftCategoryUrl) { ?>
						<li><a onclick="if(!confirm('Are you really want to delete this page?')){return false;};" href="<?php echo $this->websiteUrl; ?>sys/backend_page/deletepage/pageId/<?php echo $this->pageData['id']; ?>" title="{%Delete this page%}">{%Delete this page%}</a></li>
						  <?php } ?>
						<li class="cpanelsubtitle">{%Other pages%}</li>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_page/addpage/?TB_iframe=true&height=580&width=860','');" title="{%Create a page%}">{%Create a page%}</a></li>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_page/listall/?TB_iframe=true&height=580&width=860','');" title="{%Organize pages%}">{%Organize pages%}</a></li>
						<li><a id="edit404" href="javascript:;" title="{%Edit 404 page%}">{%Edit 404 page%}</a></li>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_page/draftlist/?TB_iframe=true&height=500&width=500','');" title="{%Draft%}">{%Draft pages%}&nbsp;(<?php echo $this->cntDraftPages; ?>)</a></li>
					</ul>
				</li>
				<li>
					<a href="javascript:;"><span>{%MEDIA%}</span></a>
					<ul>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_things/uploadthings/?TB_iframe=true&height=580&width=570','');" title="{%Upload things%}">{%Upload things%}</a></li>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_things/removethings/?TB_iframe=true&height=600&width=590','');" title="{%Remove things%}">{%Remove things%}</a></li>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_apiimages/login/?TB_iframe=true&height=500&width=620','');" title="{%Import images from your online galleries%}">{%Import images%}</a></li>
					</ul>
				</li>
				<li>
					<a href="javascript:;"><span>{%SEO%}</span></a>
					<ul>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_robots/editrobots/?TB_iframe=true&height=450&width=570','');" title="{%Edit Robots.txt%}">{%Edit Robots.txt%}</a></li>
						<!--<li><a href="javascript:;">Site Promotion</a></li>-->
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_redirect/manageredirect/?TB_iframe=true&height=580&width=830','');" title="{%Add/Edit 301%}" >{%Add/Edit 301%}</a></li>
						<li class="cpanelsubtitle">{%Link strategy%}</li>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_deeplink/managedeeplinks/?TB_iframe=true&height=510&width=790','');" title="{%Deeplinks%}">{%Deeplinks%}</a></li>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_prsculpting/index/?TB_iframe=true&height=590&width=590','');" title="{%Manage Page Rank Sculpting%}">{%Sculpting%}</a></li>
					</ul>
				</li>
			<?php endif; ?>
			<li>
				<a href="javascript:;"><span>{%LAYOUT%}</span></a>
				<ul>
					<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_template/add/?TB_iframe=true&height=540&width=730','');" title="{%Add Template%}">{%Add Template%}</a></li>
					<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_template/edit/id/<?php echo isset($this->pageData['templateId']) ? $this->pageData['templateId'] : $this->newsData['templateId']; ?>/?TB_iframe=true&height=540&width=750','');" title="{%Edit this Template%}">{%Edit this Template%}</a></li>
					<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_css/editcss/pageId/<?php echo $this->pageData['id']; ?>/?TB_iframe=true&height=590&width=570','');" title="{%Edit CSS%}">{%Edit CSS%}</a></li>
					<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_theme/index/?TB_iframe=true&height=660&width=600','');" title="{%Themes%}">{%Themes%}</a></li>
					<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_template/listvars/?TB_iframe=true&height=590&width=570','');" title="{%Widgets & Tokens%}">{%Widgets & Tokens%}</a></li>
				</ul>
			</li>
			<?php if(!isset($this->newsData)):?>
				<li>
					<a href="javascript:;"><span>{%OTHER%}</span></a>
					<ul>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_config/manageconfig/?TB_iframe=true&height=575&width=570','');" title="{%Manage Config%}">{%Manage Config%}</a></li>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_user/index/?TB_iframe=true&height=500&width=780','');" title="{%Manage users%}">{%Manage users%}</a></li>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_plugin/index/?TB_iframe=true&height=660&width=600','');" title="{%Plugins%}">{%Plugins%}</a></li>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_importer/index/?TB_iframe=true&height=250&width=600','');" title="{%Import Pages%}">{%Import pages%}</a></li>
					</ul>
				</li>
			<?php endif; ?>
			<li>
				<a href="javascript:;"><span>{%SERVICES%}</span></a>
				 <?php echo $this->servicesContent; ?>
			</li>
			<li>
				<a href="<?php echo $this->websiteUrl; ?>sys/login/logout" title="{%LOGOUT%}"><span>{%LOGOUT%}</span></a>
			</li>
		</ul>
		<?php echo '<div id="seotoasterversion">'.addslashes(htmlspecialchars(file_get_contents("../public/version.txt"))).'</div>'; ?>
	</div>
</div>
			