function admin_page()
    {
        ?>
		<?php 
        screen_icon();
        ?>
<h2><?php 
        _e('eCommerce Support', 'bre-bootstrap-ecommerce');
        ?>
</h2>
		<?php 
        bre_ecommerce_upgrade();
        ?>
		<h2>TheCartPress eCommerce plugin support</h2>
		To enable eCommerce features you need to install <a title="eCommerce pluygin for WordPress" href="http://wordpress.org/plugins/thecartpress/" target="_blank">ThecartPress eCommerce Plugin</a>, you have 2 options to install:
		<h3>1- From your WordPress backend:</h3>
		<ul>
			<li>Plugins &gt; Add plugin</li>
			<li>Search  "thecartpress"</li>
			<li>Install the plugin</li>
			<li>Activate the plugin</li>
			<li>Re-save permalink settings (Settings &gt; permalinks)</li>
		</ul>
		<h3>2- FTP</h3>
		<ul>
		<ul>
			<li><a title="Download TheCartPress eCommerce plugin" href="http://wordpress.org/plugins/thecartpress/" target="_blank">Download TheCartPress plugin</a> from WordPress repository</li>
			<li>Upload TheCartpress E-commerce plugin to the '/wp-content/plugins/' directory</li>
			<li>Activate the plugin through the 'Plugins' menu in WordPress</li>
			<li>Re-save permalink settings (Settings &gt; permalinks)</li>
		</ul>
		</ul>
		<h4>After activating the plugin, you can start working on your store. Take a look at the widgets section, you will see there a lot of power and flexibility to develop and structure your store and site</h4>
	<?php 
    }
    function admin_page()
    {
        $bre_primary_menu = get_option('bre_primary_menu', '');
        $bre_primary_menu_transparent = get_option('bre_primary_menu_transparent', true);
        $bre_secondary_menu = get_option('bre_secondary_menu', 'navbar-inverse');
        $bre_secondary_menu_transparent = get_option('bre_secondary_menu_transparent', false);
        $bre_label_one = get_option('bre_label_one', __('Label one', 'bre-bootstrap-ecommerce'));
        $bre_label_two = get_option('bre_label_two', __('Label two', 'bre-bootstrap-ecommerce'));
        $bre_label_three = get_option('bre_label_three', __('Label three', 'bre-bootstrap-ecommerce'));
        $bre_sidebar_style = get_option('bre_sidebar_style', false);
        $bre_layout = get_option('bre_layout', 'content-sidebar');
        $bre_carousel_hide = get_option('bre_carousel_hide', false);
        $bre_carousel_excerpt_length = get_option('bre_carousel_excerpt_length', 50);
        $bre_carousel_hide_more_details = get_option('bre_carousel_hide_more_details', false);
        $bre_carousel_opacity = get_option('bre_carousel_opacity', 0.6);
        $bre_site_description_hide = get_option('bre_site_description_hide', false);
        ?>
<div class="wrap">
	<?php 
        screen_icon();
        ?>
<h2><?php 
        _e('Theme options', 'bre-bootstrap-ecommerce');
        ?>
</h2>

	<?php 
        bre_ecommerce_upgrade();
        ?>
	
	<?php 
        if (!empty($this->updated)) {
            ?>
		<div id="message" class="updated">
		<p><?php 
            _e('Settings updated', 'bre-bootstrap-ecommerce');
            ?>
</p>
		</div>
	<?php 
        }
        ?>

	<div class="clear"></div>

	<form method="post" enctype="multipart/form-data">
	<?php 
        submit_button(null, 'primary', 'save-bootstrap_ecommerce_logo-settings');
        ?>

	<h3><?php 
        _e('Logo', 'bre-bootstrap-ecommerce');
        ?>
</h3>
	<p class="description"><?php 
        _e('Image logo replaces the site title text. Be careful with the size of your logo.', 'bre-bootstrap-ecommerce');
        ?>
<p>
	<div class="postbox">
		<div class="inside">
			<table class="form-table">
			<tbody>
			<tr valign="top">
				<th scope="row">
					<label for="bre_image_logo"><?php 
        _e('Select Image', 'bre-bootstrap-ecommerce');
        ?>
</label>
				</th>
				<td>
					<?php 
        $url = get_option('bre_image_logo', false);
        if ($url !== false) {
            $url = $url['url'];
            ?>
					<img src="<?php 
            echo $url;
            ?>
" alt="<?php 
            bloginfo('name');
            ?>
" />
					<br/>
					<input type="submit" name="remove_bootstrap_logo" value="<?php 
            _e('Remove logo', 'bre-bootstrap-ecommerce');
            ?>
" class="btn"/>
					<?php 
        }
        ?>
					<br/>
					<label for="bre_image_logo"><?php 
        _e('Choose an image from your computer:', 'bre-bootstrap-ecommerce');
        ?>
</label>
					<br/>
					<input type="file" name="bre_image_logo" id="bre_image_logo"/>
				</td>
			</tr>
			<tr valign="top">
				<th scope="row">
					<label for="bre_site_description_hide"><?php 
        _e('Hide Site Description', 'bre-bootstrap-ecommerce');
        ?>
</label>
				</th>
				<td>
					<input type="checkbox" name="bre_site_description_hide" id="bre_site_description_hide" value="yes" <?php 
        checked($bre_site_description_hide);
        ?>
/>
				</td>
			</tr>
			</tbody>
			</table>
		</div><!-- .inside -->
	</div><!-- .postbox -->

	<h3><?php 
        _e('Layout', 'bre-bootstrap-ecommerce');
        ?>
</h3>
	<p class="description"><?php 
        _e('If you do not assign widgets to sidebars you will see one column layout', 'bre-bootstrap-ecommerce');
        ?>
<p>
	<div class="postbox">
		<div class="inside">
			<table class="form-table">
			<tbody>
			<tr valign="top">
				<th scope="row">
					<label for="bre_layout"><?php 
        _e('Layout', 'bre-bootstrap-ecommerce');
        ?>
</label>
				</th>
				<td>
					<div style="display: inline-block; margin-right: 2em;">
						<input type="radio" name="bre_layout" id="bre_layout_content_sidebar" value="content-sidebar" <?php 
        checked($bre_layout, 'content-sidebar');
        ?>
 />
						<?php 
        _e('Sidebar on right', 'bre-bootstrap-ecommerce');
        ?>
						<br/>
						<img src="<?php 
        echo get_template_directory_uri();
        ?>
/images/content-sidebar.png" style="vertical-align: top;margin-left: 1em;"/>
					</div>
					<div style="display: inline-block">
						<input type="radio" name="bre_layout" id="bre_layout_sidebar_content" value="sidebar-content" <?php 
        checked($bre_layout, 'sidebar-content');
        ?>
 />
						<?php 
        _e('Sidebar on left', 'bre-bootstrap-ecommerce');
        ?>
						<br/>
						<img src="<?php 
        echo get_template_directory_uri();
        ?>
/images/sidebar-content.png" style="vertical-align: top;margin-left: 1em;"/>
					</div>
				</td>
			</tr>
			</tbody>
			</table>
		</div><!-- .inside -->
	</div><!-- .postbox -->

	<h3><?php 
        _e('Menus', 'bre-bootstrap-ecommerce');
        ?>
</h3>
	<p class="description"><?php 
        _e('To use these options you need to have WordPress menus defined. And don\'t forget to assign the menus to theme locations. (Appearance > menu)', 'bre-bootstrap-ecommerce');
        ?>
<p>
	<div class="postbox">
		<div class="inside">
			<table class="form-table">
			<tbody>
			<tr valign="top">
				<th scope="row">
					<label for="bre_primary_menu"><?php 
        _e('Primary top menu', 'bre-bootstrap-ecommerce');
        ?>
</label>
				</th>
				<td>
					<select name="bre_primary_menu" id="bre_primary_menu">
						<option value="navbar-inverse" <?php 
        selected('navbar-inverse', $bre_primary_menu);
        ?>
><?php 
        _e('Dark', 'bre-bootstrap-ecommerce');
        ?>
</option>
						<option value="" <?php 
        selected('', $bre_primary_menu);
        ?>
><?php 
        _e('Light', 'bre-bootstrap-ecommerce');
        ?>
</option>
					</select>
					<label><?php 
        _e('Transparent', 'bre-bootstrap-ecommerce');
        ?>
: <input type="checkbox" name="bre_primary_menu_transparent" <?php 
        checked($bre_primary_menu_transparent);
        ?>
 /></label>
				</td>
			</tr>
			<tr>
				<th>
					<label for="bre_secondary_menu"><?php 
        _e('Secondary top menu', 'bre-bootstrap-ecommerce');
        ?>
</label>
				</th>
				<td>
					<select name="bre_secondary_menu" id="bre_secondary_menu">
						<option value="navbar-inverse" <?php 
        selected('navbar-inverse', $bre_secondary_menu);
        ?>
><?php 
        _e('Dark', 'bre-bootstrap-ecommerce');
        ?>
</option>
						<option value="" <?php 
        selected('', $bre_secondary_menu);
        ?>
><?php 
        _e('Light', 'bre-bootstrap-ecommerce');
        ?>
</option>
					</select>
					<label><?php 
        _e('Transparent', 'bre-bootstrap-ecommerce');
        ?>
: <input type="checkbox" name="bre_secondary_menu_transparent" <?php 
        checked($bre_secondary_menu_transparent);
        ?>
 /></label>
				</td>
			</tr>
			<tr valign="top">
				<th scope="row">
					<label for="bre_sidebar_style"><?php 
        _e('Sidebar menus', 'bre-bootstrap-ecommerce');
        ?>
</label>
				</th>
				<td>
					<input type="checkbox" name="bre_sidebar_style" id="bre_sidebar_style" value="yes" <?php 
        checked($bre_sidebar_style);
        ?>
 />
					<span class="description"><?php 
        _e('Apply special styles to sidebar Navigation Trees, WordPress Menus, etc.', 'bre-bootstrap-ecommerce');
        ?>
</span>
				</td>
			</tr>
			</tbody>
			</table>
		</div><!-- .inside -->
	</div><!-- .postbox -->

	<h3><?php 
        _e('Titles for Product Detail Tabs', 'bre-bootstrap-ecommerce');
        ?>
</h3>
	<p class="description"><?php 
        printf(__('This tabs are for additional content in single product detail page. You can add content to each tab managing the different <a href="%swidgets.php">widgetizable areas</a>', 'bre-bootstrap-ecommerce'), get_admin_url());
        ?>
<p>
	<div class="postbox">
		<div class="inside">
			<table class="form-table">
			<tr valign="top">
				<th scope="row">
					<label for="bre_label_one"><?php 
        _e('Label One', 'bre-bootstrap-ecommerce');
        ?>
</label>
				</th>
				<td>
					<input type="text" name="bre_label_one" id="bre_label_one" value="<?php 
        echo $bre_label_one;
        ?>
">
				</td>
			</tr>
			<tr valign="top">
				<th scope="row">
					<label for="bre_label_two"><?php 
        _e('Label Two', 'bre-bootstrap-ecommerce');
        ?>
</label>
				</th>
				<td>
					<input type="text" name="bre_label_two" id="bre_label_two" value="<?php 
        echo $bre_label_two;
        ?>
">
				</td>
			</tr>
			<tr valign="top">
				<th scope="row">
					<label for="bre_label_three"><?php 
        _e('Label Three', 'bre-bootstrap-ecommerce');
        ?>
</label>
				</th>
				<td>
					<input type="text" name="bre_label_three" id="bre_label_three" value="<?php 
        echo $bre_label_three;
        ?>
" />
				</td>
			</tr>
			</table>
		</div><!-- .inside -->
	</div><!-- .postbox -->
	
	<h3><?php 
        _e('Carousel Setup', 'bre-bootstrap-ecommerce');
        ?>
</h3>
	<p class="description"><?php 
        _e('Carousel can be displayed or not in front page. When you use full-width-carousel.php template the carousel always will be visible if it has items', 'bre-bootstrap-ecommerce');
        ?>
<p>
	<div class="postbox">
		<div class="inside">
			<table class="form-table">
			<tr valign="top">
				<th scope="row">
					<label for="bre_carousel_hide"><?php 
        _e('Hide Carousel in front page', 'bre-bootstrap-ecommerce');
        ?>
</label>
				</th>
				<td>
					<input type="checkbox" name="bre_carousel_hide" id="bre_carousel_hide" value="yes" <?php 
        checked($bre_carousel_hide);
        ?>
 />
				</td>
			</tr>
			<tr valign="top">
				<th scope="row">
					<label for="bre_carousel_opacity"><?php 
        _e('Opacity', 'bre-bootstrap-ecommerce');
        ?>
</label>
				</th>
				<td>
					<input type="number" min="0" max="1" step="0.1" name="bre_carousel_opacity" id="bre_carousel_opacity" value="<?php 
        echo $bre_carousel_opacity;
        ?>
">
					<span class="description"><?php 
        _e('Number between 0 and 1, where 0 is transparent and 1 is total opacity.', 'bre-bootstrap-ecommerce');
        ?>
</span>
				</td>
			</tr>
			<tr valign="top">
				<th scope="row">
					<label for="bre_carousel_excerpt_length"><?php 
        _e('Excerpt length', 'bre-bootstrap-ecommerce');
        ?>
</label>
				</th>
				<td>
					<input type="number" min="0" step="1" name="bre_carousel_excerpt_length" id="bre_carousel_excerpt_length" value="<?php 
        echo $bre_carousel_excerpt_length;
        ?>
">
				</td>
			</tr>
			<tr valign="top">
				<th scope="row">
					<label for="bre_carousel_hide_more_details"><?php 
        _e('Hide More details button', 'bre-bootstrap-ecommerce');
        ?>
</label>
				</th>
				<td>
					<input type="checkbox" name="bre_carousel_hide_more_details" id="bre_carousel_hide_more_details" value="yes" <?php 
        checked($bre_carousel_hide_more_details);
        ?>
 />
				</td>
			</tr>
			</table>
		</div><!-- .inside -->
	</div><!-- .postbox -->

	<div class="postbox">
		<div class="inside">
			<table class="form-table">
			<tbody>
			<?php 
        $hide_home_shortcuts = get_option('bre_hide_home_shortcuts', false);
        ?>
			<tr valign="top">
				<th scope="row">
					<label for="hide_home_shortcuts"><?php 
        _e('Hide 3 Shortcuts', 'bre-bootstrap-ecommerce');
        ?>
</label>
				</th>
				<td>
					<input type="checkbox" name="hide_home_shortcuts" value="yes" <?php 
        checked($hide_home_shortcuts);
        ?>
 />
					<span class="description">
			<?php 
        _e('The 3 box shortcuts appears in front page. Also you can display them wherever you want using [3boxes] shortcode', 'bre-bootstrap-ecommerce');
        ?>
<br />
			<?php 
        _e('Recommended image width: 350px', 'bre-bootstrap-ecommerce');
        ?>
</span>
				</td>
			</tr>
			</tbody>
			</table>
		</div><!-- .inside -->
	</div><!-- .postbox -->
		<h2><?php 
        _e('Shortcuts, 3 Cols', 'bre-bootstrap-ecommerce');
        ?>
</h2>
		<h3><?php 
        _e('Left Box', 'bre-bootstrap-ecommerce');
        ?>
</h3>
		<div class="postbox">
			<div class="inside">
				<table class="form-table">
				<tbody>
				<?php 
        $url = get_option('bre_image_a', false);
        if ($url !== false) {
            $url = $url['url'];
        }
        if (strlen($url)) {
            ?>
				<tr valign="top">
					<th scope="row">
						<label for="bre_url_a"><?php 
            _e('Current image', 'bre-bootstrap-ecommerce');
            ?>
</label>
					</th>
					<td>
						<img src="<?php 
            echo $url;
            ?>
" alt="<?php 
            echo $url;
            ?>
" width="325px" />
						<br/><input type="submit" name="save-pagina_home-remove_image_a" value="<?php 
            _e('Remove file', 'bre-bootstrap-ecommerce');
            ?>
" />
					</td>
				</tr>
				<?php 
        }
        ?>
				<tr valign="top">
					<th scope="row">
						<label>link:</label>
					</th>
					<td>
						<input type="text" name="bre_url_a" id="bre_url_a" value="<?php 
        echo get_option('bre_url_a', '');
        ?>
" size="40" />
					</td>
				</tr>
				<tr valign="top">
					<th scope="row">
						<label>New image:</label>
					</th>
					<td>
						<input type="file" name="bre_image_a" />
					</td>
				</tr>
				<tr valign="top">
					<th scope="row">
						<label><?php 
        _e('Title', 'bre-bootstrap-ecommerce');
        ?>
:</label>
					</th>
					<td>
						<input type="text" name="bre_label_a" value="<?php 
        echo stripslashes(get_option('bre_label_a', ''));
        ?>
" />
					</td>
				</tr>
				<tr valign="top">
					<th scope="row">
						<label><?php 
        _e('Description', 'bre-bootstrap-ecommerce');
        ?>
:</label>
					<td>
						<textarea name="bre_description_a" cols="80" rows="5"><?php 
        echo stripslashes(get_option('bre_description_a', ''));
        ?>
</textarea>
					</td>
				</tr>
				</tbody>
				</table>
			</div><!-- .inside -->
		</div><!-- .postbox -->

		<h3><?php 
        _e('Center Box', 'bre-bootstrap-ecommerce');
        ?>
</h3>

		<div class="postbox">
			<div class="inside">
				<table class="form-table">
				<tbody>
				<?php 
        $url = get_option('bre_image_b', false);
        if ($url !== false) {
            $url = $url['url'];
        }
        if (strlen($url)) {
            ?>
				<tr valign="top">
					<th scope="row">
						<label for="bre_url_b"><?php 
            _e('Current image', 'bre-bootstrap-ecommerce');
            ?>
</label>
					</th>
					<td>
						<img src="<?php 
            echo $url;
            ?>
" alt="<?php 
            echo $url;
            ?>
" width="325px" />
						<br/><input type="submit" name="save-pagina_home-remove_image_b" value="<?php 
            _e('Remove file', 'bre-bootstrap-ecommerce');
            ?>
" />
					</td>
				</tr>
				<?php 
        }
        ?>
				<tr valign="top">
					<th scope="row">
						<label>link:</label>
					</th>
					<td>
						<input type="text" name="bre_url_b" id="bre_url_b" value="<?php 
        echo get_option('bre_url_b', '');
        ?>
" size="40" />
					</td>
				</tr>
				<tr valign="top">
					<th scope="row">
						<label>New image:</label>
					</th>
					<td>
						<input type="file" name="bre_image_b" />
					</td>
				</tr>
				<tr valign="top">
					<th scope="row">
						<label><?php 
        _e('Title', 'bre-bootstrap-ecommerce');
        ?>
:</label>
					</th>
					<td>
						<input type="text" name="bre_label_b" value="<?php 
        echo stripslashes(get_option('bre_label_b', ''));
        ?>
" />
					</td>
				</tr>
				<tr valign="top">
					<th scope="row">
						<label><?php 
        _e('Description', 'bre-bootstrap-ecommerce');
        ?>
:</label>
					<td>
						<textarea name="bre_description_b" cols="80" rows="5"><?php 
        echo stripslashes(get_option('bre_description_b', ''));
        ?>
</textarea>
					</td>
				</tr>
				</tbody>
				</table>
			</div><!-- .inside -->
		</div><!-- .postbox -->

		<h3><?php 
        _e('Right Box', 'bre-bootstrap-ecommerce');
        ?>
</h3>

		<div class="postbox">
			<div class="inside">
				<table class="form-table">
				<tbody>
				<?php 
        $url = get_option('bre_image_c', false);
        if ($url !== false) {
            $url = $url['url'];
        }
        if (strlen($url)) {
            ?>
				<tr valign="top">
					<th scope="row">
						<label for="bre_url_c"><?php 
            _e('Current image', 'bre-bootstrap-ecommerce');
            ?>
</label>
					</th>
					<td>
						<img src="<?php 
            echo $url;
            ?>
" alt="<?php 
            echo $url;
            ?>
" width="325px" />
						<br/><input type="submit" name="save-pagina_home-remove_image_c" value="<?php 
            _e('Remove file', 'bre-bootstrap-ecommerce');
            ?>
" />
					</td>
				</tr>
				<?php 
        }
        ?>
				<tr valign="top">
					<th scope="row">
						<label>link:</label>
					</th>
					<td>
						<input type="text" name="bre_url_c" id="bre_url_c" value="<?php 
        echo get_option('bre_url_c', '');
        ?>
" size="40" />
					</td>
				</tr>
				<tr valign="top">
					<th scope="row">
						<label>New image:</label>
					</th>
					<td>
						<input type="file" name="bre_image_c" />
					</td>
				</tr>
				<tr valign="top">
					<th scope="row">
						<label><?php 
        _e('Title', 'bre-bootstrap-ecommerce');
        ?>
:</label>
					</th>
					<td>
						<input type="text" name="bre_label_c" value="<?php 
        echo stripslashes(get_option('bre_label_c', ''));
        ?>
" />
					</td>
				</tr>
				<tr valign="top">
					<th scope="row">
						<label><?php 
        _e('Description', 'bre-bootstrap-ecommerce');
        ?>
:</label>
					<td>
						<textarea name="bre_description_c" cols="80" rows="5"><?php 
        echo stripslashes(get_option('bre_description_c', ''));
        ?>
</textarea>
					</td>
				</tr>
				</tbody>
				</table>
			</div><!-- .inside -->
		</div><!-- .postbox -->
		<?php 
        wp_nonce_field('bootstrap_ecommerce_settings');
        ?>
		<?php 
        submit_button(null, 'primary', 'save-bootstrap_ecommerce_logo-settings');
        ?>
	</form>
</div><!-- .wrap --><?php 
    }