<link href="<?php echo osc_base_url().'oc-content/themes/one/admin/admin.css'; ?>" rel="stylesheet" type="text/css" />
<div id="adminmenu">
	<ul>
		<li class="current"><a href="<?php echo osc_admin_render_theme_url("oc-content/themes/one/admin/header.php"); ?>"><?php echo __('General settings', 'one'); ?></a></li>
		<li><a href="<?php echo osc_admin_render_theme_url("oc-content/themes/one/admin/img_settings.php"); ?>"><?php echo __('Image settings', 'one'); ?></a></li>
		<li><a href="<?php echo osc_admin_render_theme_url("oc-content/themes/one/admin/color.php"); ?>"><?php echo __('Color settings', 'one'); ?></a></li>
		<li><a href="<?php echo osc_admin_render_theme_url("oc-content/themes/one/admin/settings.php"); ?>"><?php echo __('Ads', 'one'); ?></a></li>
	</ul>
</div>
<style type="text/css" media="screen">
    .command { background-color: white; color: #2E2E2E; border: 1px solid black; padding: 8px; }
    .theme-files { min-width: 500px; }
</style>

<div class="header_lg" style="float:left; width:47%;border:1px solid #ddd; padding:1%;margin-right:10px;">
	<h2 class="render-title"><?php _e('Header logo', 'one'); ?></h2>
	<?php if( is_writable( WebThemes::newInstance()->getCurrentThemePath() . "images/") ) { ?>
		<?php if(file_exists( WebThemes::newInstance()->getCurrentThemePath() . "images/logo.jpg" ) ) { ?>
			<h3 class="render-title"><?php _e('Preview', 'one') ?></h3>
			<img border="0" alt="<?php echo osc_esc_html( osc_page_title() ); ?>" src="<?php echo osc_current_web_theme_url('images/logo.jpg');?>" />
			<form action="<?php echo osc_admin_render_theme_url('oc-content/themes/one/admin/header.php');?>" method="post" enctype="multipart/form-data">
				<input type="hidden" name="action_specific" value="remove" />
				<fieldset>
					<div class="form-horizontal">
						<div class="form-actions">
							<input id="button_remove" type="submit" value="<?php echo osc_esc_html(__('Remove logo','one')); ?>" class="btn btn-red">
						</div>
					</div>
				</fieldset>
			</form>
		</p>
		<?php } else { ?>
        <div class="flashmessage flashmessage-warning flashmessage-inline" style="display: block;">
            <p><?php _e("No logo has been uploaded yet", 'one'); ?></p>
		</div>
	<?php } ?>
    <h2 class="render-title separate-top"><?php _e('Upload logo', 'one') ?></h2>
    <p>
        <?php _e('The preferred size of the logo is 600x100.', 'one'); ?>
        <?php if( file_exists( WebThemes::newInstance()->getCurrentThemePath() . "images/logo.jpg" ) ) { ?>
			<?php _e('<strong>Note:</strong> Uploading another logo will overwrite the current logo.', 'one'); ?>
		<?php } ?>
	</p>
    <form action="<?php echo osc_admin_render_theme_url('oc-content/themes/one/admin/header.php'); ?>" method="post" enctype="multipart/form-data">
        <input type="hidden" name="action_specific" value="upload_logo" />
        <fieldset>
            <div class="form-horizontal">
                <div class="form-row">
                    <div class="form-label"><?php _e('Logo image (png,gif,jpg)','one'); ?></div>
                    <div class="form-controls">
                        <input type="file" name="logo" id="package" />
					</div>
				</div>
                <div class="form-actions">
                    <input id="button_save" type="submit" value="<?php echo osc_esc_html(__('Upload','one')); ?>" class="btn btn-submit">
				</div>
			</div>
		</fieldset>
	</form>
	<?php } else { ?>
    <div class="flashmessage flashmessage-error" style="display: block;">
        <p>
            <?php
                $msg  = sprintf(__('The images folder <strong>%s</strong> is not writable on your server', 'one'), WebThemes::newInstance()->getCurrentThemePath() ."images/" ) .", ";
                $msg .= __("OSClass can't upload the logo image from the administration panel.", 'one') . ' ';
                $msg .= __("Please make the aforementioned image folder writable.", 'one') . ' ';
                echo $msg;
			?>
		</p>
        <p>
            <?php _e('To make a directory writable under UNIX execute this command from the shell:','one'); ?>
		</p>
        <p class="command">
            chmod a+w <?php echo WebThemes::newInstance()->getCurrentThemePath() ."images/" ; ?>
		</p>
	</div>
<?php } ?>
</div>
<div class="footer_lg" style="float:left; width:47%;border:1px solid #ddd;padding:1%;">
	<h2 class="render-title"><?php _e('Footer logo', 'one'); ?></h2>
	<?php if( is_writable( WebThemes::newInstance()->getCurrentThemePath() . "images/") ) { ?>
		<?php if(file_exists( WebThemes::newInstance()->getCurrentThemePath() . "images/logo_footer.jpg" ) ) { ?>
			<h3 class="render-title"><?php _e('Preview', 'one') ?></h3>
			<img border="0" alt="<?php echo osc_esc_html( osc_page_title() ); ?>" src="<?php echo osc_current_web_theme_url('images/logo_footer.jpg');?>" />
			<form action="<?php echo osc_admin_render_theme_url('oc-content/themes/one/admin/header.php');?>" method="post" enctype="multipart/form-data">
				<input type="hidden" name="action_specific" value="remove_footer"/>
				<fieldset>
					<div class="form-horizontal">
						<div class="form-actions">
							<input id="button_remove" type="submit" value="<?php echo osc_esc_html(__('Remove logo','one')); ?>" class="btn btn-red">
						</div>
					</div>
				</fieldset>
			</form>
		</p>
		<?php } else { ?>
        <div class="flashmessage flashmessage-warning flashmessage-inline" style="display: block;">
            <p><?php _e("No logo has been uploaded yet", 'one'); ?></p>
		</div>
	<?php } ?>
    <h2 class="render-title separate-top"><?php _e('Upload logo', 'one') ?></h2>
    <p>
        <?php _e('The preferred size of the logo is 175x108.', 'one'); ?>
        <?php if( file_exists( WebThemes::newInstance()->getCurrentThemePath() . "images/logo.jpg" ) ) { ?>
			<?php _e('<strong>Note:</strong> Uploading another logo will overwrite the current logo.', 'one'); ?>
		<?php } ?>
	</p>
    <form action="<?php echo osc_admin_render_theme_url('oc-content/themes/one/admin/header.php'); ?>" method="post" enctype="multipart/form-data">
        <input type="hidden" name="action_specific" value="upload_logo_footer" />
        <fieldset>
            <div class="form-horizontal">
                <div class="form-row">
                    <div class="form-label"><?php _e('Logo image (png,gif,jpg)','one'); ?></div>
                    <div class="form-controls">
                        <input type="file" name="logo_footer" id="package" />
					</div>
				</div>
                <div class="form-actions">
                    <input id="button_save" type="submit" value="<?php echo osc_esc_html(__('Upload','one')); ?>" class="btn btn-submit">
				</div>
			</div>
		</fieldset>
	</form>
	<?php } else { ?>
    <div class="flashmessage flashmessage-error" style="display: block;">
        <p>
            <?php
                $msg  = sprintf(__('The images folder <strong>%s</strong> is not writable on your server', 'one'), WebThemes::newInstance()->getCurrentThemePath() ."images/" ) .", ";
                $msg .= __("OSClass can't upload the logo image from the administration panel.", 'one') . ' ';
                $msg .= __("Please make the aforementioned image folder writable.", 'one') . ' ';
                echo $msg;
			?>
		</p>
        <p>
            <?php _e('To make a directory writable under UNIX execute this command from the shell:','one'); ?>
		</p>
        <p class="command">
            chmod a+w <?php echo WebThemes::newInstance()->getCurrentThemePath() ."images/" ; ?>
		</p>
	</div>
<?php } ?>
</div>
<form action="<?php echo osc_admin_render_theme_url('oc-content/themes/one/admin/header.php'); ?>" method="post" class="nocsrf" style="float:left;width:100%;margin-top:20px;">
    <input type="hidden" name="action_specific" value="sttings_one" /> 	  
    <fieldset>
		<div class="form-horizontal">
			<h2><?php _e('Settings', 'one'); ?></h2>
			<div class="form-row">
				<div class="form-label"><?php _e('Info text home', 'one'); ?></div>
				<div class="form-controls">
					<textarea style="height: 115px; width: 500px;"name="text_home"><?php echo osc_esc_html( osc_get_preference('text_home', 'one') ); ?></textarea>
					<p>	<?php _e('This text appears on home page below of main categories.','one'); ?></p>
				</div>
			</div>
			
			<div class="form-row">
				<div class="form-label"><?php _e('Facebook button', 'one'); ?></div>
				<div class="form-controls">
					<textarea style="height: 115px; width: 500px;"name="social_facebook"><?php echo osc_esc_html( osc_get_preference('social_facebook', 'one') ); ?></textarea>
					<p>	<?php _e('Include the code for facebook like button in this box, html accepted. This button appears in front page.','one'); ?></p>
				</div>
			</div>
			
			<div class="form-row">
				<div class="form-label"><?php _e('Twitter button', 'one'); ?></div>
				<div class="form-controls">
					<textarea style="height: 115px; width: 500px;"name="social_twitter"><?php echo osc_esc_html( osc_get_preference('social_twitter', 'one') ); ?></textarea>
					<p>	<?php _e('Include the code for twitter button in this box, html accepted. This button appears in front page.','one'); ?></p>
				</div>
			</div>
			
			<div class="form-row">
				<div class="form-label"><?php _e('Google button', 'one'); ?></div>
				<div class="form-controls">
					<textarea style="height: 115px; width: 500px;"name="social_google"><?php echo osc_esc_html( osc_get_preference('social_google', 'one') ); ?></textarea>
					<p>	<?php _e('Include the code for google button in this box, html accepted. This button appears in front page.','one'); ?></p>
				</div>
			</div>
			
			
			<div class="form-row">
				<div class="form-label"><?php _e('Social widget footer', 'one'); ?></div>
				<div class="form-controls">
					<textarea style="height: 115px; width: 500px;"name="social_widget"><?php echo osc_esc_html( osc_get_preference('social_widget', 'one') ); ?></textarea>
					<p>	<?php _e('You can include a social like box, and will appear in footer.Html accepted.','onex'); ?></p>
				</div>
			</div>
			
			<div class="form-row">
				<div class="form-label"><?php _e('Copyrights footer', 'one'); ?></div>
				<div class="form-controls">
					<textarea style="height: 115px; width: 500px;"name="autor"><?php echo osc_esc_html( osc_get_preference('autor', 'one') ); ?></textarea>
					<p>	<?php _e('Your copyright text.','one'); ?></p>
				</div>
			</div>
			
			<div class="form-row">
				<div class="form-label"><?php _e('Number of premium ads','one'); ?></div>
				<div class="form-controls">
					<input type="text" class="xlarge" name="premiumsearch" value="<?php echo osc_esc_html( osc_get_preference('premiumsearch', 'one') ); ?>">
					<p>	<?php _e('Number of premium ads on search page, in list mod.','one'); ?></p>		
				</div>		
			</div>
			
			<div class="form-row">
				<div class="form-label"><?php _e('Number of premium ads','one'); ?></div>
				<div class="form-controls">
					<input type="text" class="xlarge" name="premiumsearchgl" value="<?php echo osc_esc_html( osc_get_preference('premiumsearchgl', 'one') ); ?>">
					<p>	<?php _e('Number of premium ads on search page, in gallery mod.','one'); ?></p>		
				</div>		
			</div>
			
			<div class="form-row">
				<div class="form-label"><?php _e('Related ads','one'); ?></div>
				<div class="form-controls">
					<input type="text" class="xlarge" name="related" value="<?php echo osc_esc_html( osc_get_preference('related', 'one') ); ?>">
					<p>	<?php _e('Number of related ads on item page.','one'); ?></p>		
				</div>		
			</div>
			
			<div class="form-row">
				<div class="form-label"><?php _e('User ads','one'); ?></div>
				<div class="form-controls">
					<input type="text" class="xlarge" name="userads" value="<?php echo osc_esc_html( osc_get_preference('userads', 'one') ); ?>">
					<p>	<?php _e('Number of user ads on item page.','one'); ?></p>		
				</div>		
			</div>
			<div class="form-row">
				<div class="form-label"><?php _e('Show user ads','one'); ?></div>
				<div class="form-controls">
					<select name="useradspc" id="useradspc">
						<option name="useradspc" value="1" <?php if( osc_get_preference('useradspc', 'one') !== '0'){echo 'selected="selected"';}?>><?php _e('Yes', 'one'); ?></option> 
						<option name="useradspc" value="0"<?php if( osc_get_preference('useradspc', 'one') !== '1'){echo 'selected="selected"';}?>><?php _e('No', 'one'); ?></option>
					</select>
					<p>	<?php _e('This option show user ads only with picture.','one'); ?></p>		
				</div>		
			</div>
			<div class="form-row">
				<div class="form-label"><?php _e('Show top bar','one'); ?></div>
				<div class="form-controls">
					<select name="top_bar" id="top_bar">
						<option name="top_bar" value="1" <?php if( osc_get_preference('top_bar', 'one') !== '0'){echo 'selected="selected"';}?>><?php _e('Yes', 'one'); ?></option> 
						<option name="top_bar" value="0"<?php if( osc_get_preference('top_bar', 'one') !== '1'){echo 'selected="selected"';}?>><?php _e('No', 'one'); ?></option>
					</select>
					<p>	<?php _e('This option show the floating bar header','one'); ?></p>		
				</div>		
			</div>
			<div class="form-row">
				<div class="form-label"><?php _e('Latest listings','one'); ?></div>
				<div class="form-controls">
					<select name="latest" id="latest">
						<option name="latest" value="1" <?php if( osc_get_preference('latest', 'one') !== '0'){echo 'selected="selected"';}?>><?php _e('Yes', 'one'); ?></option> 
						<option name="latest" value="0"<?php if( osc_get_preference('latest', 'one') !== '1'){echo 'selected="selected"';}?>><?php _e('No', 'one'); ?></option>
					</select>
					<p>	<?php _e('This option show latest listings on home page','one'); ?></p>		
				</div>		
			</div>
			<div class="form-row">
				<div class="form-label"><?php _e('Region or publish','one'); ?></div>
				<div class="form-controls">
					<select name="region_pub" id="region_pub">
						<option name="region_pub" value="0" <?php if( osc_get_preference('region_pub', 'one') !== '1'){echo 'selected="selected"';}?>><?php _e('Publish button', 'one'); ?></option> 
						<option name="region_pub" value="1"<?php if( osc_get_preference('region_pub', 'one') !== '0'){echo 'selected="selected"';}?>><?php _e('Regions', 'one'); ?></option>
					</select>
					<p>	<?php _e('This option show all region or publish button on sidebar from homepage','one'); ?></p>		
				</div>		
			</div>
			<div class="form-row">
				<div class="form-label"><?php _e('After number of searches','one'); ?></div>
				<div class="form-controls">
					<input type="text" class="xlarge" name="number_order" value="<?php echo osc_esc_html( osc_get_preference('number_order', 'one') ); ?>">
					<p>	<?php _e('Set after how many number of search a word to appear on most searched items.','one'); ?></p>		
				</div>		
			</div>
			<div class="form-row">
				<div class="form-label"><?php _e('Number of most searched','one'); ?></div>
				<div class="form-controls">
					<input type="text" class="xlarge" name="number_set" value="<?php echo osc_esc_html( osc_get_preference('number_set', 'one') ); ?>">
					<p>	<?php _e('Set the number of most searched items, which will appear on homepage and search page.','one'); ?></p>		
				</div>		
			</div>
            <div class="form-actions">
                <input type="submit" value="<?php _e('Save changes', 'one'); ?>" class="btn btn-submit">
			</div>
		</div>
	</fieldset>	
</form>
<div class="author">
	<div>
		<span class="logo"><a href="http://theme.calinbehtuk.ro/"><img src="<?php echo osc_base_url().'oc-content/themes/one/admin/calinbehtuk.png'; ?>" /></a></span>
		<span class="text"><a href="http://theme.calinbehtuk.ro/"><?php _e('2015 All rights reserved ONE Theme by Puiu Calin', 'one'); ?></a></span>
	</div>
	<div>
		<span style="float:left;color:#777;"><?php _e('More plugin and themes osclass on market', 'one'); ?><a style="margin-left:20px;" href="http://theme.calinbehtuk.ro/">theme.calinbehtuk</a></span>
	</div>
	</div>	