<?php
/*
 * Copyright 2015 osclass-pro.com
 *
 * You shall not distribute this theme and any its files (except third-party libraries) to third parties.
 * Rental, leasing, sale and any other form of distribution are not allowed and are strictly forbidden.
 */
?>

<?php if ( (!defined('ABS_PATH')) ) exit('ABS_PATH is not loaded. Direct access is not allowed.'); ?>
<?php if ( !OC_ADMIN ) exit('User access is not allowed.'); ?>
<h2 class="render-title"><b><?php _e('Ads management', 'next'); ?></b></h2>
	<form action="<?php echo osc_admin_render_theme_url('oc-content/themes/next/admin/settings.php'); ?>" method="post" class="nocsrf">
    <input type="hidden" name="action_specific" value="ads_revo" />
    <div class="form-row">
        <div class="form-label"></div>
        <div class="form-controls">
            <p><?php _e('In this section you can configure your site to display ads and start generating revenue.', 'next'); ?><br/><?php _e('If you are using an online advertising platform, such as Google Adsense, copy and paste here the provided code for ads.', 'next'); ?></p>
        </div>
    </div>
    <fieldset>
        <div class="form-horizontal">
		     <div class="form-row">
                <div class="form-label"><?php _e('Header', 'next'); ?></div>
                <div class="form-controls">
                    <textarea style="height: 115px; width: 500px;"name="header-next"><?php echo osc_esc_html( osc_get_preference('header-next', 'next') ); ?></textarea>
                    <br/><br/>
                    <div class="help-box"><?php _e('This ad will be shown at the Header of your site in all pages. Note that the  ad will be Adaptive.', 'next'); ?></div>
                </div>
            </div>
            <div class="form-row">
                <div class="form-label"><?php _e('Homepage top of latest listings', 'next'); ?></div>
                <div class="form-controls">
                    <textarea style="height: 115px; width: 500px;"name="main-next-top"><?php echo osc_esc_html( osc_get_preference('main-next-top', 'next') ); ?></textarea>
                    <br/><br/>
                    <div class="help-box"><?php _e('This ad will be shown at the top of your latest listings in main page. Note that the  ad will be Adaptive.', 'next'); ?></div>
                </div>
            </div>
            <div class="form-row">
                <div class="form-label"><?php _e('Homepage under of latest listings', 'next'); ?></div>
                <div class="form-controls">
                    <textarea style="height: 115px; width: 500px;" name="main-next-under"><?php echo osc_esc_html( osc_get_preference('main-next-under', 'next') ); ?></textarea>
                    <br/><br/>
                    <div class="help-box"><?php _e('This ad will be shown on the main page under of your latest listings. Note that the  ad will be Adaptive.', 'next'); ?></div>
                </div>
            </div>
            <div class="form-row">
                <div class="form-label"><?php _e('Homepage middle of latest listings', 'next'); ?></div>
                <div class="form-controls">
                    <textarea style="height: 115px; width: 500px;" name="main-next-middle"><?php echo osc_esc_html( osc_get_preference('main-next-middle', 'next') ); ?></textarea>
                    <br/><br/>
                    <div class="help-box"><?php _e('This ad will be shown on the main page middle of your latest listings. Note that the  ad will be Adaptive.', 'next'); ?></div>
                </div>
            </div>
            <div class="form-row">
                <div class="form-label"><?php _e('Search results top', 'next'); ?></div>
                <div class="form-controls">
                    <textarea style="height: 115px; width: 500px;" name="search-next-top"><?php echo osc_esc_html( osc_get_preference('search-next-top', 'next') ); ?></textarea>
                    <br/><br/>
                    <div class="help-box"><?php _e('This ad will be shown at the top search results of your site. Note that the  ad will be Adaptive.', 'next'); ?></div>
                </div>
            </div>
            <div class="form-row">
                <div class="form-label"><?php _e('Search results middle', 'next'); ?></div>
                <div class="form-controls">
                    <textarea style="height: 115px; width: 500px;" name="search-next_middle"><?php echo osc_esc_html( osc_get_preference('search-next_middle', 'next') ); ?></textarea>
                    <br/><br/>
                    <div class="help-box"><?php _e('This ad will be shown at middle of search results of your website. Note that the  ad will be Adaptive.', 'next'); ?></div>
                </div>
            </div>
			<div class="form-row">
                <div class="form-label"><?php _e('Search under of listings', 'next'); ?></div>
                <div class="form-controls">
                    <textarea style="height: 115px; width: 500px;" name="search-next_under"><?php echo osc_esc_html( osc_get_preference('search-next_under', 'next') ); ?></textarea>
                    <br/><br/>
                    <div class="help-box"><?php _e('This ad will be shown on the search page under of your listings. Note that the  ad will be Adaptive.', 'next'); ?></div>
                </div>
            </div>
			<div class="form-row">
                <div class="form-label"><?php _e('Item under of listing description', 'next'); ?></div>
                <div class="form-controls">
                    <textarea style="height: 115px; width: 500px;" name="item-next_desc"><?php echo osc_esc_html( osc_get_preference('item-next_desc', 'next') ); ?></textarea>
                    <br/><br/>
                    <div class="help-box"><?php _e('This ad will be shown on the item page under of listing description. Note that the  ad will be Adaptive.', 'next'); ?></div>
                </div>
            </div>
			<div class="form-row">
                <div class="form-label"><?php _e('Item under of listing images', 'next'); ?></div>
                <div class="form-controls">
                    <textarea style="height: 115px; width: 500px;" name="item-next_image"><?php echo osc_esc_html( osc_get_preference('item-next_image', 'next') ); ?></textarea>
                    <br/><br/>
                    <div class="help-box"><?php _e('This ad will be shown on the item page under of listing images. Note that the  ad will be Adaptive.', 'next'); ?></div>
                </div>
            </div>
            <div class="form-actions">
                <input type="submit" value="<?php _e('Save changes', 'next'); ?>" class="btn btn-submit">
            </div>
        </div>
    </fieldset>
</form>
