Файл: adultscript-2.0.3-pro/files/admin/templates/default/mobile_config.tpl.php
Строк: 435
<?php defined('_VALID') or die('Restricted Access!'); ?>
<?php echo $this->fetch('errors'); ?>
<?php echo $this->fetch('messages'); ?>
<?php echo $this->fetch('warnings'); ?>
<script type="text/javascript">
</script>
<div id="container" class="clearfix">
<div id="page">
<?php echo $this->fetch('module_menu'); ?>
<div class="content clearfix">
<div class="clearfix tabbar barProds">
<ul class="tabs">
<li class="tab4"><a href="#" onclick="showOnly('tab4','barProds')"><img src="<?php echo TPL_REL; ?>/images/icons/plus-small.png" alt="" />Advanced</a></li>
<li class="tab3"><a href="#" onclick="showOnly('tab3','barProds')"><img src="<?php echo TPL_REL; ?>/images/icons/plus-small.png" alt="" />View</a></li>
<li class="tab2"><a href="#" onclick="showOnly('tab2','barProds')"><img src="<?php echo TPL_REL; ?>/images/icons/plus-small.png" alt="" />Browse</a></li>
<li class="tab1"><a href="#" onclick="showOnly('tab1','barProds')" class="selected"><img src="<?php echo TPL_REL; ?>/images/icons/plus-small.png" alt="" />Main</a></li>
</ul>
<div class="tabContent clearfix">
<form id="mobile-config-form" method="post" action="<?php echo ADMIN_URL; ?>/index.php?q=mobile/config">
<div class="tab1">
<fieldset>
<legend>Mobile Settings</legend>
<div class="required">
<label for="redirect">Redirect</label>
<input name="redirect" type="radio" id="redirect" class="radio" value="1"<?php if ($this->mcfg['redirect'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="redirect" type="radio" class="radio" value="0"<?php if ($this->mcfg['redirect'] == '0'): echo ' checked="checked"'; endif; ?> /> No
(Automatically redirect smartphone visitors to the mobile site?)
</div>
<?php if (VModule::enabled('premium') && VModule::enabled('payment')): ?>
<div class="required">
<label for="premium">Premium</label>
<input name="premium" type="radio" id="premium" class="radio" value="1"<?php if ($this->mcfg['premium'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="premium" type="radio" class="radio" value="0"<?php if ($this->mcfg['premium'] == '0'): echo ' checked="checked"'; endif; ?> /> No
(Enable premium membership functionality (works only with the premium/payment modules)?)
</div>
<?php endif; ?>
</fieldset>
<fieldset>
<legend>Mobile SEO Settings</legend>
<div class="required">
<label for="site_name">Site Name</label>
<input name="site_name" type="text" id="site_name" value="<?php echo e($this->mcfg['site_name']); ?>" />
</div>
<div class="required">
<label for="meta_desc">Meta Description</label>
<textarea name="meta_desc" id="meta_desc" class="mega"><?php echo e($this->mcfg['meta_desc']); ?></textarea>
</div>
<div class="required">
<label for="meta_keys">Meta Keyswords</label>
<textarea name="meta_keys" id="meta_keys" class="mega"><?php echo e($this->mcfg['meta_keys']); ?></textarea>
</div>
</fieldset>
</div>
<div class="tab2" style="display: none;">
<fieldset>
<legend>Browse Settings</legend>
<div class="required">
<label for="videos_per_page">Videos per Page</label>
<input name="videos_per_page" type="text" id="videos_per_page" class="small" value="<?php echo $this->mcfg['videos_per_page']; ?>" />
</div>
</fieldset>
<div<?php if (!VModule::enabled('photo')): echo ' style="display: none;"'; endif; ?>>
<fieldset>
<legend>Browse Photo Settings</legend>
<div class="required">
<label for="albums_per_page">Albums per Page</label>
<input name="albums_per_page" type="text" id="albums_per_page" class="small" value="<?php echo $this->mcfg['albums_per_page']; ?>" />
</div>
<div class="required">
<label for="photos_per_page">Photos per Page</label>
<input name="photos_per_page" type="text" id="photos_per_page" class="small" value="<?php echo $this->mcfg['photos_per_page']; ?>" />
</div>
</fieldset>
</div>
<div<?php if (!VModule::enabled('pornstar')): echo ' style="display: none;"'; endif; ?>>
<fieldset>
<legend>Browse Pornstar Settings</legend>
<div class="required">
<label for="pornstars_per_page">Pornstars per Page</label>
<input name="pornstars_per_page" type="text" id="pornstars_per_page" class="small" value="<?php echo $this->mcfg['pornstars_per_page']; ?>" />
</div>
<fieldset>
<legend>Pornstars Videos Settings</legend>
<div class="required">
<label for="pornstars_videos">Show Videos</label>
<input name="pornstars_videos" type="radio" id="pornstars_videos" class="radio" value="1"<?php if ($this->mcfg['pornstars_videos'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="pornstars_videos" type="radio" class="radio" value="0"<?php if ($this->mcfg['pornstars_videos'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="pornstars_videos_per_page">Pornstar Videos per Page</label>
<input name="pornstars_videos_per_page" type="text" id="pornstars_videos_per_page" class="small" value="<?php echo $this->mcfg['pornstars_videos_per_page']; ?>" />
</div>
</fieldset>
<fieldset>
<legend>Pornstars Photos Settings</legend>
<div class="required">
<label for="pornstars_photos">Show Photos</label>
<input name="pornstars_photos" type="radio" id="pornstars_photos" class="radio" value="1"<?php if ($this->mcfg['pornstars_photos'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="pornstars_photos" type="radio" class="radio" value="0"<?php if ($this->mcfg['pornstars_photos'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="pornstars_photos_per_page">Pornstar Photos per Page</label>
<input name="pornstars_photos_per_page" type="text" id="pornstars_photos_per_page" class="small" value="<?php echo $this->mcfg['pornstars_photos_per_page']; ?>" />
</div>
</fieldset>
</fieldset>
</div>
</div>
<div class="tab3" style="display: none;">
<fieldset>
<legend>View Settings</legend>
<div class="required">
<label for="view_access">View Access</label>
<select name="view_access" id="view_access">
<option value="all"<?php if ($this->mcfg['view_access'] == 'all'): echo ' selected="selected"'; endif; ?>>All</option>
<?php foreach ($this->groups as $group): ?>
<option value="<?php echo e($group['name']); ?>"<?php if ($this->mcfg['view_access'] == $group['name']): echo ' selected="selected"'; endif; ?>><?php echo e($group['name']); ?></option>
<?php endforeach; ?>
</select>
</div>
<div class="required">
<label for="view_desc">Show Description</label>
<input name="view_desc" type="radio" id="view_desc" class="radio" value="1"<?php if ($this->mcfg['view_desc'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="view_desc" type="radio" class="radio" value="0"<?php if ($this->mcfg['view_desc'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<fieldset>
<legend>Download Settings</legend>
<div class="required">
<label for="download">Allow Video Download</label>
<input name="download" type="radio" id="download" class="radio" value="1"<?php if ($this->mcfg['download'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="download" type="radio" class="radio" value="0"<?php if ($this->mcfg['download'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div id="download_container"<?php if ($this->mcfg['download'] == '0'): echo ' style="display: none;"'; endif; ?>>
<div class="required">
<label for="downoad_perms">Download Permissions</label>
<select name="download_perms" id="download_perms">
<option value="all"<?php if ($this->mcfg['download_perms'] == 'all'): echo ' selected="selected"'; endif; ?>>All</option>
<option value="registered"<?php if ($this->mcfg['download_perms'] == 'registered'): echo ' selected="selected"'; endif; ?>>Registered</option>
<option value="premium"<?php if ($this->mcfg['download_perms'] == 'premium'): echo ' selected="selected"'; endif; ?>>Premium</option>
</select>
</div>
</div>
</fieldset>
<fieldset>
<legend>Related Settings</legend>
<div class="required">
<label for="related_enabled">Related Videos</label>
<input name="related_enabled" type="radio" id="related_enabled" class="radio" value="1"<?php if ($this->mcfg['related_enabled'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="related_enabled" type="radio" class="radio" value="0"<?php if ($this->mcfg['related_enabled'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="related_per_page">Related per Page</label>
<input name="related_per_page" type="text" id="related_per_page" class="small" value="<?php echo $this->mcfg['related_per_page']; ?>" />
</div>
</fieldset>
<fieldset>
<legend>Comments Settings</legend>
<div class="required">
<label for="view_comments">Show Comments</label>
<input name="view_comments" type="radio" id="view_comments" class="radio" value="1"<?php if ($this->mcfg['view_comments'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="view_comments" type="radio" class="radio" value="0"<?php if ($this->mcfg['view_comments'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="allow_comment">Allow Comment</label>
<input name="allow_comment" type="radio" id="allow_comment" class="radio" value="1"<?php if ($this->mcfg['allow_comment'] == '1'): echo ' checked="checked"'; endif; ?> /> Registered
<input name="allow_comment" type="radio" class="radio" value="2"<?php if ($this->mcfg['allow_comment'] == '2'): echo ' checked="checked"'; endif; ?> /> All
<input name="allow_comment" type="radio" class="radio" value="0"<?php if ($this->mcfg['allow_comment'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="approve_comments">Approve Comments</label>
<input name="approve_comments" type="radio" id="approve_comments" class="radio" value="1"<?php if ($this->mcfg['approve_comments'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="approve_comments" type="radio" class="radio" value="0"<?php if ($this->mcfg['approve_comments'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="comments_per_page">Comments per page</label>
<input name="comments_per_page" type="text" id="comments_per_page" class="tiny" value="<?php echo $this->mcfg['comments_per_page']; ?>" />
</div>
</fieldset>
<fieldset>
<legend>Rating Settings</legend>
<div class="required">
<label for="allow_rating">Allow Rating</label>
<input name="allow_rating" type="radio" id="allow_rating" class="radio" value="1"<?php if ($this->mcfg['allow_rating'] == '1'): echo' checked="checked"'; endif; ?> /> Yes
<input name="allow_rating" type="radio" class="radio" value="0"<?php if ($this->mcfg['allow_rating'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="rating_count">Rating Count</label>
<select name="rating_count" id="rating_count">
<option value="1"<?php if ($this->mcfg['rating_count'] == '1'): echo ' selected="selected"'; endif; ?>>Once</option>
<option value="0"<?php if ($this->mcfg['rating_count'] == '0'): echo ' selected="selected"'; endif; ?>>Unlimited</option>
</select>
</div>
<div class="required">
<label for="rating_type">Rating Type</label>
<select name="rating_type" id="rating_type">
<option value="ip"<?php if ($this->mcfg['rating_type'] == 'ip'): echo ' selected="selected"'; endif; ?>>IP</option>
<option value="user"<?php if ($this->mcfg['rating_type'] == 'user'): echo ' selected="selected"'; endif; ?>>User</option>
</select>
</div>
</fieldset>
<fieldset>
<legend>Share Settings</legend>
<div class="required">
<label for="share_enabled">Share Widget</label>
<input name="share_enabled" type="radio" id="share_enabled" class="radio" value="1"<?php if ($this->mcfg['share_enabled'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="share_enabled" type="radio" class="radio" value="0"<?php if ($this->mcfg['share_enabled'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
</fieldset>
<fieldset>
<legend>Player Configuration</legend>
<div class="required">
<label for="player">HTML 5 Player</label>
<input name="player" type="radio" id="player" class="radio" value="1"<?php if ($this->mcfg['player'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="player" type="radio" class="radio" value="0"<?php if ($this->mcfg['player'] == '0'): echo ' checked="checked"'; endif; ?> /> No
<span class="help-info">Set to yes if you want to use a html5 video player!</span>
</div>
</fieldset>
</fieldset>
</div>
<div class="tab4" style="display: none;">
<fieldset>
<legend>Advertising Settings</legend>
<div class="required">
<label for="interstitial">Interstitial Advertising</label>
<input name="interstitial" type="radio" id="interstitial" class="radio" value="1"<?php if ($this->mcfg['interstitial'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="interstitial" type="radio" class="radio" value="0"<?php if ($this->mcfg['interstitial'] == '0'): echo ' checked="checked"'; endif; ?> /> No
(Display interstitial advertising before video play?)
</div>
<div class="required">
<label for="inter_session">Interstitial Session</label>
<input name="inter_session" type="radio" id="inter_session" class="radio" value="1"<?php if ($this->mcfg['inter_session'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="inter_session" type="radio" class="radio" value="0"<?php if ($this->mcfg['inter_session'] == '0'): echo ' checked="checked"'; endif; ?> /> No
(Display interstitial advertising once per session for every visitors?)
</div>
<div class="required">
<label for="inter_timeout">Interstitial Timeout</label>
<input name="inter_timeout" type="text" id="inter_timeout" class="tiny" value="<?php echo $this->mcfg['inter_timeout']; ?>" /> <i>Automatically play video after xx seconds!</i>
</div>
</fieldset>
</div>
<div class="submit">
<input name="submit_config" type="submit" id="submit_config" class="button butDef" value=" Save " />
<input name="submit_default" type="submit" id="submit_default" class="button butDef" value=" Default " />
</div>
</form>
</div>
</div>
</div>
</div>
</div>