Пример #1
0
 public function changeLang()
 {
     changeLang($this->input->post('lang'), $this->input->post('disp'));
 }
Пример #2
0
							<a class="item ru <?php 
if ($this->lng == 'ru') {
    echo 'active';
}
?>
 " href="http://old.endurancerobots.com/about-endurance-3/" >Ru</a><!-- <?php 
echo changeLang('ru');
?>
 -->
							<a class="item en <?php 
if ($this->lng == 'en') {
    echo 'active';
}
?>
 " href="<?php 
echo changeLang('en');
?>
" >En</a>
						</div>
						
					</div>
				</div>
				
				<div class="clear" ></div>
			
			</div>
		</div>
	</div>
	
	
	
function cosurfing_menu()
{
    if (isset($_GET['cslan']) && $_GET['cslan'] == 'pl') {
        changeLang('pl');
    }
    if (isset($_GET['cslan']) && $_GET['cslan'] == 'en') {
        changeLang('en');
    }
    ?>

<link rel="stylesheet" type="text/css" href="/wp-content/plugins/cosurfing_wordpress/style.css">
<div id="container">
	<div id="logo">
		<a href="http://cosurfing.net/"> <img src="https://cosurfing.net/assets/img/logoCosurfingBlackBg.png" width="250" height="70" /> </a>
	</div>
	<div id="h">
		<?php 
    echo getTranslation('title');
    ?>
	</div>
	<div id="plugin">
		<form method="post" action="">
		<?php 
    echo getTranslation('label1');
    ?>
<br><br>
		<input type="text" name="cosurfing_option" value="<?php 
    echo esc_attr(get_option('cosurfing_option'));
    ?>
" /><br>
		<div id="button1"><?php 
    submit_button(getTranslation('button'), 'secondary');
    ?>
</div>
	    <?php 
    if (isset($_POST['submit'])) {
        update_option('cosurfing_option', $_POST['cosurfing_option'], 'yes');
        ?>
	    	<div id="msg1"><?php 
        echo getTranslation('alert');
        ?>
</div>
	    	<?php 
    }
    ?>
	    </form>
	    <div id="link">
	    	<?php 
    echo '<a href="https://cosurfing.net/cpanel/index.html?' . getEmailAndPageUrl() . '">' . getTranslation('link') . '</a>';
    ?>
	    </div>
	</div>
	<div id="monitor">
		<div id="monitorH">
				<?php 
    echo getTranslation('monitor');
    ?>
		</div>
		<div id="monitorB">
			<div class="subDoodleContainer">
					<img src="http://cosurfing.net/assets/img/subpages/screens.png" alt=""  id="screens" >
					<div id="subVscreen1" class="subVscreen"><img src="http://cosurfing.net/assets/img/cursor_ico.png" id="cursor1" class="vcursor" /></div>
					<div id="subVscreen2"   class="subVscreen"><img src="http://cosurfing.net/assets/img/cursor_ico.png" id="cursor2"  class="vcursor"/></div>
					<div id="subVlinker" class="subVlinker"></div>
					</div>
			<script src="http://cosurfing.net/js/agency.js"></script>
			<script src="https://cosurfing.net/assets/js/jquery-1.10.2.min.js"></script>
			<script src="https://cosurfing.net/assets/js/bootstrap.js"></script>
			<link href="https://cosurfing.net/assets/css/magic-bootstrap-cosurfing.min.css" rel="stylesheet">
			<link rel="https://cosurfing.net/assets/css/magic-bootstrap-cosurfing.less" type="text/css" href="style.less">
			<script src="https://cosurfing.net/assets/js/script.js" type="text/javascript"></script>
		</div>
	</div>
	<div id="footer">
			<?php 
    echo getTranslation('footer');
    ?>
	</div>
	<div id="footerAll">
		<div id="footerLeft">
			<span id="span1">WebLive Systems</span><br><br>  

			Phone: +48 602 885 891<br> 
			Fax: +48 022 247-82-57<br> 
			info@weblive.com.pl<br> 	
			www: weblive.com.pl<br><br>   

			NIP : 664-201-48-34<br> 
			REGON : 260618454<br> 
		</div>
		<div id="footerRight">
			<?php 
    echo '<span id="span1">' . getTranslation('language') . '</span><br><br>';
    ?>
			<table id="foot">
				<tr>
					<td>
						<img src="https://cosurfing.net/assets/img/flagaPolski.gif" width="22" height="13">
					</td>
					<td>
						<?php 
    echo '<a href="' . $_SERVER['REQUEST_URI'] . '&cslan=pl">Polski</a>';
    ?>
					</td>
				</tr>
				<tr>
					<td>
						<img src="https://cosurfing.net/assets/img/flagaBrytania.gif" width="22" height="13">
					</td>
					<td>
						<?php 
    echo '<a href="' . $_SERVER['REQUEST_URI'] . '&cslan=en">English</a>';
    ?>
					</td>
				</tr>
			</table>
		</div>
		<br class="clear" />
	</div>
</div>
<?php 
}