Updated : Website Settings are now visible
This commit is contained in:
parent
84a3d18718
commit
d3e7eb208c
3 changed files with 1300 additions and 1258 deletions
|
@ -109,6 +109,9 @@ $(document).ready(function(){
|
|||
</script>
|
||||
{/literal}
|
||||
|
||||
<!--Adding Fonts -->
|
||||
<link href='http://fonts.googleapis.com/css?family=Squada+One' rel='stylesheet' type='text/css'>
|
||||
|
||||
|
||||
<!-- Including Bootstrap -->
|
||||
<link rel="stylesheet" href="{$template_url}/bootstrap/css/bootstrap.min.css" type="text/css" media="all" />
|
||||
|
|
|
@ -1,15 +1,13 @@
|
|||
<script language="javascript">
|
||||
{literal}
|
||||
$(document).ready(function(){
|
||||
|
||||
var thehash = window.location.hash.substr(9,3);
|
||||
$("#tabbed_div > div").hide();
|
||||
if(thehash=='')
|
||||
{
|
||||
display_tab('#tab_1','div_1');
|
||||
}else{
|
||||
display_tab('#tab_'+thehash,'div_'+thehash);
|
||||
}
|
||||
$(document).ready(function(){
|
||||
|
||||
$('#cb_tabs a').click(function (e) {
|
||||
e.preventDefault();
|
||||
$(this).tab('show');
|
||||
})
|
||||
|
||||
$('#cb_tabs a:first').tab('show');
|
||||
|
||||
|
||||
$('#convProfile').change(function
|
||||
|
@ -85,36 +83,54 @@ $(document).ready(function(){
|
|||
|
||||
}
|
||||
|
||||
});
|
||||
{/literal}
|
||||
});
|
||||
|
||||
</script>
|
||||
<ul class="cbtab">
|
||||
<li onClick='display_tab(this,"div_1",true)' id="tab_1">Website Settings</li>
|
||||
<li onClick='display_tab(this,"div_2",true)' id="tab_2">Uploading and Conversion Settings</li>
|
||||
<li onClick='display_tab(this,"div_3",true)' id="tab_3">Display and Listing Settings</li>
|
||||
<li onClick='display_tab(this,"div_4",true)' id="tab_4">User Settings & registration</li>
|
||||
<h2>ClipBucket Website Settings & Configurations</h2>
|
||||
<div class="height20"></div>
|
||||
<ul class="nav nav-tabs" id="cb_tabs">
|
||||
<li class="">
|
||||
<a href="#div_1">Website Settings</a>
|
||||
</li>
|
||||
<li><a href="#div_2">Uploading & Conversion</a></li>
|
||||
<li><a href="#div_3">Display & Listing</a></li>
|
||||
<li><a href="#div_4">Users & Registration</a></li>
|
||||
</ul>
|
||||
|
||||
{$r=$row}
|
||||
|
||||
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<form name="form1" method="post" action="" id="main_form">
|
||||
<input name="baseurl" value="{$row.baseurl}" type="hidden" />
|
||||
<input name="basedir" value="{$row.baseurl}" type="hidden" />
|
||||
<div id="tabbed_div">
|
||||
<div id="div_1" class="main_page_div">
|
||||
<form name="website-settings" method="post" action="" id="main_form" class="form-horizontal">
|
||||
<input name="baseurl" value="{$row.baseurl}" type="hidden" />
|
||||
<input name="basedir" value="{$row.baseurl}" type="hidden" />
|
||||
<div class="tab-content">
|
||||
<div id="div_1" class="tab-pane">
|
||||
|
||||
<fieldset class="fieldset" style="border:none">
|
||||
<table width="100%" border="0" cellpadding="2" cellspacing="0" class="block">
|
||||
<tr>
|
||||
<td width="200" valign="top">Website title</td>
|
||||
<td valign="top"><input name="site_title" type="text" id="site_title" value="{$row.site_title}" size="45"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">Website slogan</td>
|
||||
<td valign="top"><input name="site_slogan" type="text" id="site_slogan" value="{$row.site_slogan}" size="45"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">Website closed</td>
|
||||
<td valign="top"><select name="closed" id="select">
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="site_title">Website Title</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="input-xlarge" id="site_title" name="site_title" value="{$r.site_title}">
|
||||
<p class="help-block">Enter website title</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="site_title">Website Slogan</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="input-xlarge" id="site_slogan" name="site_slogan" value="{$r.site_slogan}">
|
||||
<p class="help-block">A nice slogan or subtitle for your website</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="closed">Close Website</label>
|
||||
<div class="controls">
|
||||
<select name="closed" id="closed">
|
||||
<option value="1"
|
||||
{if $row.closed == 1}
|
||||
selected="selected"
|
||||
|
@ -125,8 +141,25 @@ $(document).ready(function(){
|
|||
selected="selected"
|
||||
{/if}
|
||||
>No</option>
|
||||
</select></td>
|
||||
</tr>
|
||||
</select>
|
||||
<p class="help-block">Turn off your website or make it offline.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<fieldset class="fieldset" style="border:none">
|
||||
<table width="100%" border="0" cellpadding="2" cellspacing="0" class="block">
|
||||
|
||||
|
||||
<tr>
|
||||
<td valign="top">Closed message</td>
|
||||
<td valign="top"><textarea name="closed_msg" id="closed_msg" cols="45" rows="5">{$row.closed_msg}</textarea></td>
|
||||
|
@ -521,12 +554,12 @@ $(document).ready(function(){
|
|||
Allow users to rate own channels </td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div id="div_2" class="main_page_div">
|
||||
<div id="div_2" class="tab-pane">
|
||||
<fieldset class="fieldset" style="border:none">
|
||||
<table width="100%" border="0" cellpadding="2" cellspacing="0" class="block">
|
||||
<table width="100%" border="0" cellpadding="2" cellspacing="0" class="block">
|
||||
<tr>
|
||||
<td valign="top">Upoad Options</td>
|
||||
<td valign="top">
|
||||
|
@ -554,7 +587,7 @@ $(document).ready(function(){
|
|||
<a href="http://docs.clip-bucket.com/clipbucket-docs/ffmpeg" target="_blank">
|
||||
<img src="{$imageurl}/help.png" border="0" class="tipsy_tip" title="FFMPEG Binary Paths - Click For More Details" /></a><br />
|
||||
Turn on VF
|
||||
<label>
|
||||
<label>
|
||||
<input type="radio" name="use_ffmpeg_vf" value="yes" id="use_ffmpeg_vf_0" {if $row.use_ffmpeg_vf=='yes'} checked{/if} />
|
||||
Yes</label>
|
||||
<label>
|
||||
|
@ -670,13 +703,13 @@ $(document).ready(function(){
|
|||
<tr>
|
||||
<td>Min - Max Video Description</td>
|
||||
<td><input name="min_video_desc" type="text" id="min_video_desc" value="{$row.min_video_desc}" size="20" />
|
||||
-
|
||||
-
|
||||
<input name="max_video_desc" type="text" id="php_path5" value="{$row.max_video_desc}" size="20" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Min - Max Video Tags</td>
|
||||
<td><input name="min_video_tags" type="text" id="php_path6" value="{$row.min_video_tags}" size="20" />
|
||||
-
|
||||
-
|
||||
<input name="max_video_tags" type="text" id="php_path7" value="{$row.max_video_tags}" size="20" /></td>
|
||||
</tr>
|
||||
|
||||
|
@ -777,11 +810,11 @@ $(document).ready(function(){
|
|||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div id="div_3" class="main_page_div" ><fieldset class="fieldset" style="border:none">
|
||||
<table width="100%" border="0" cellpadding="2" cellspacing="0" class="block">
|
||||
<div id="div_3" class="tab-pane" ><fieldset class="fieldset" style="border:none">
|
||||
<table width="100%" border="0" cellpadding="2" cellspacing="0" class="block">
|
||||
<tr>
|
||||
<td width="200" valign="top">Current Template</td>
|
||||
<td valign="top"><a href="templates.php">manage templates</a></td>
|
||||
|
@ -801,11 +834,11 @@ $(document).ready(function(){
|
|||
<td valign="top">Use cached pagination</td>
|
||||
<td valign="top"><select name="use_cached_pagin" id="use_cached_pagin">
|
||||
<option value="yes" {if $row.use_cached_pagin==yes}
|
||||
selected="selected"
|
||||
{/if}>Yes</option>
|
||||
selected="selected"
|
||||
{/if}>Yes</option>
|
||||
<option value="no" {if $row.use_cached_pagin!=yes}
|
||||
selected="selected"
|
||||
{/if}>No</option>
|
||||
selected="selected"
|
||||
{/if}>No</option>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -1014,12 +1047,12 @@ selected="selected"
|
|||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="div_4" class="main_page_div" ><fieldset class="fieldset" style="border:none">
|
||||
<table width="100%" border="0" cellpadding="2" cellspacing="0" class="block">
|
||||
<div id="div_4" class="tab-pane" ><fieldset class="fieldset" style="border:none">
|
||||
<table width="100%" border="0" cellpadding="2" cellspacing="0" class="block">
|
||||
<tr>
|
||||
<td valign="top">Anonymous UserID</td>
|
||||
<td valign="top"><input name="anonymous_id" type="text" id="anonymous_id" value="{$row.anonymous_id}" size="6" maxlength="3" />
|
||||
|
@ -1174,15 +1207,15 @@ selected="selected"
|
|||
<tr>
|
||||
<td valign="top">Use Gravatars</td>
|
||||
<td valign="top"><label>
|
||||
<select name="gravatars" id="gravatars">
|
||||
<option value="yes"
|
||||
{if $row.gravatars == yes}
|
||||
selected="selected"
|
||||
{/if}>Yes</option>
|
||||
<select name="gravatars" id="gravatars">
|
||||
<option value="yes"
|
||||
{if $row.gravatars == yes}
|
||||
selected="selected"
|
||||
{/if}>Yes</option>
|
||||
<option value=""
|
||||
{if $row.gravatars == ''}
|
||||
selected="selected"
|
||||
{/if}>No</option>
|
||||
{if $row.gravatars == ''}
|
||||
selected="selected"
|
||||
{/if}>No</option>
|
||||
</select>
|
||||
</label></td>
|
||||
</tr>
|
||||
|
@ -1199,25 +1232,25 @@ selected="selected"
|
|||
<tr>
|
||||
<td valign="top">Allow Picture URL</td>
|
||||
<td valign="top">
|
||||
<select name="picture_url" id="select4">
|
||||
<option value="yes"
|
||||
{if $row.picture_url == yes}
|
||||
selected="selected"
|
||||
{/if}>Yes</option>
|
||||
<option value="no" {if $row.picture_url == no}
|
||||
selected="selected"
|
||||
{/if}>No</option>
|
||||
<select name="picture_url" id="select4">
|
||||
<option value="yes"
|
||||
{if $row.picture_url == yes}
|
||||
selected="selected"
|
||||
{/if}>Yes</option>
|
||||
<option value="no" {if $row.picture_url == no}
|
||||
selected="selected"
|
||||
{/if}>No</option>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">Allow Picture Upload</td>
|
||||
<td valign="top"><select name="picture_upload" id="select5">
|
||||
<option value="yes" {if $row.picture_upload == yes}
|
||||
selected="selected"
|
||||
{/if}>Yes</option>
|
||||
selected="selected"
|
||||
{/if}>Yes</option>
|
||||
<option value="no" {if $row.picture_upload == no}
|
||||
selected="selected"
|
||||
{/if}>No</option>
|
||||
selected="selected"
|
||||
{/if}>No</option>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -1234,41 +1267,41 @@ selected="selected"
|
|||
<td valign="top">Allow Background URL</td>
|
||||
<td valign="top"><select name="background_url" id="select6">
|
||||
<option value="yes" {if $row.background_url == yes}
|
||||
selected="selected"
|
||||
{/if}>Yes</option>
|
||||
selected="selected"
|
||||
{/if}>Yes</option>
|
||||
<option value="no" {if $row.background_url == no}
|
||||
selected="selected"
|
||||
{/if}>No</option>
|
||||
selected="selected"
|
||||
{/if}>No</option>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">Allow Background Upload</td>
|
||||
<td valign="top"><select name="background_upload" id="select7">
|
||||
<option value="yes" {if $row.background_upload == yes}
|
||||
selected="selected"
|
||||
{/if}>Yes</option>
|
||||
selected="selected"
|
||||
{/if}>Yes</option>
|
||||
<option value="no" {if $row.background_upload == no}
|
||||
selected="selected"
|
||||
{/if}>No</option>
|
||||
selected="selected"
|
||||
{/if}>No</option>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">Allow Background Color</td>
|
||||
<td valign="top"><select name="background_color" id="background_color">
|
||||
<option value="yes" {if $row.background_color == yes}
|
||||
selected="selected"
|
||||
{/if}>Yes</option>
|
||||
selected="selected"
|
||||
{/if}>Yes</option>
|
||||
<option value="no" {if $row.background_color == no}
|
||||
selected="selected"
|
||||
{/if}>No</option>
|
||||
selected="selected"
|
||||
{/if}>No</option>
|
||||
</select></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
<div align="right"class="main_page_div" style="padding:5px; min-height:0px; margin-top:10px"><label>
|
||||
<input type="submit" name="update" class="button" value="Update Settings" id="udpate" />
|
||||
</label>
|
||||
</label>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
h2{font-family: 'Squada One', cursive;}
|
||||
|
||||
.inlineblock{display: inline-block}
|
||||
.inline{display:inline}
|
||||
.block{display: block}
|
||||
|
@ -16,6 +18,10 @@
|
|||
margin-left: -5px;
|
||||
}
|
||||
|
||||
|
||||
.height10{height: 10px}
|
||||
.height20{height: 20px}
|
||||
|
||||
.row-fluid .span150, .span150{width: 150px}
|
||||
.row-fluid .span200, .span200{width: 200px}
|
||||
.row-fluid .span250, .span250{width: 150px}
|
||||
|
|
Loading…
Add table
Reference in a new issue