Пример #1
0
<table width="100%">
    <tr class="cspBodyCells">
        <td>
            <div class="cspLeftCol">
			<?php 
echo htmlCsp::hidden('opt_values[favico]', array('value' => $this->optsModel->get('favico'), 'attrs' => 'id="favico_value_input"'));
?>
                <?php 
langCsp::_e('Favico for site');
?>
:
                <?php 
echo htmlCsp::ajaxfile('favico', array('url' => uriCsp::_(array('baseUrl' => admin_url('admin-ajax.php'), 'page' => 'options', 'action' => 'saveFavico', 'reqType' => 'ajax')), 'value' => $this->optsModel->get('favico'), 'onSubmit' => 'favicoPreLoading', 'onComplete' => 'favicoUploadComplete'));
?>
            </div>
        </td>
		<td>
		<a id='removeFavicoImage'>Remove</a>
			<div class='showUploadedFavico'>
				
				<img src='<?php 
echo frameCsp::_()->getModule('options')->getFavicoFullPath();
?>
'/>
				<div class='loader'>
					
				</div>
				<div id="cspAdminMetaOptionsMsg" class="cspSuccessMsg"></div>
			</div>
			
		</td>
<div class="cspLeftCol">
<?php 
echo htmlCsp::ajaxfile('logo_image', array('url' => uriCsp::_(array('baseUrl' => admin_url('admin-ajax.php'), 'page' => 'options', 'action' => 'saveLogoImg', 'reqType' => 'ajax')), 'buttonName' => 'Select Logo image', 'responseType' => 'json', 'onSubmit' => 'toeOptLogoImgOnSubmitNewFile', 'onComplete' => 'toeOptLogoImgCompleteSubmitNewFile'));
?>
<div id="cspOptLogoImgkMsg"></div>
<br />
<img id="cspOptLogoImgPrev" 
		src="<?php 
echo $this->optModel->isEmpty('logo_image') ? '' : frameCsp::_()->getModule('options')->getLogoImgFullPath();
?>
" 
style="max-width: 200px;" />
</div>
<div class="cspRightCol">
    <div class="cspTip cspTipArrowLeft nomargin">
        <?php 
langCsp::_e('Choose your logo, you can use png, jpg or gif image file.');
?>
        <span class="cspTipCorner"></span>
    </div>
    <br />
    <div class="cspTip cspTipArrowDown nomargin">
        <?php 
langCsp::_e('You can use default logo, your own or disable it. To disable logo on Coming Soon page click "Remove image" button bellow.');
?>
        <span class="cspTipCorner"></span>
    </div> <br /> 
    
    <?php 
echo htmlCsp::button(array('value' => langCsp::_('Remove image'), 'attrs' => 'id="cspLogoRemove" class="button button-large" style="width:100%;"'));
?>
            <?php 
langCsp::_e('Select Color:');
?>
			<?php 
echo htmlCsp::colorpicker('opt_values[bg_color]', array('value' => $this->optModel->get('bg_color')));
?>
			<br />
			<?php 
echo htmlCsp::button(array('value' => langCsp::_('Set default'), 'attrs' => 'id="cspColorBgSetDefault"'));
?>
			<div id="cspAdminOptColorDefaultMsg"></div>
		</td>
		<td id="cspBgTypeImage-selection" colspan="2">
            <div class="cspLeftCol">
                <?php 
echo htmlCsp::ajaxfile('bg_image', array('url' => uriCsp::_(array('baseUrl' => admin_url('admin-ajax.php'), 'page' => 'options', 'action' => 'saveBgImg', 'reqType' => 'ajax')), 'buttonName' => 'Select Background image', 'responseType' => 'json', 'attrs' => 'class="button button-large"', 'onSubmit' => 'toeOptImgOnSubmitNewFile', 'onComplete' => 'toeOptImgCompleteSubmitNewFile'));
?>
                <div id="cspOptImgkMsg"></div>            
                <br />
                <img id="cspOptBgImgPrev" src="<?php 
echo $this->optModel->isEmpty('bg_image') ? '' : frameCsp::_()->getModule('options')->getBgImgFullPath();
?>
" style="max-width: 200px;" />
			</div>
            <div class="cspRightCol">
                <div class="cspBgImgShowTypeWrapper">
                    <?php 
echo htmlCsp::radiobutton('opt_values[bg_img_show_type]', array('value' => 'stretch', 'attrs' => 'id="cspBgImgShowType-stretch"', 'checked' => $this->optModel->get('bg_img_show_type') == 'stretch'));
?>
                    <label for="cspBgImgShowType-stretch" class="button button-large"><?php 
langCsp::_e('Stretch');