clipbucket/upload/admin_area/styles/cb_2014/layout/global_header.html

197 lines
5.5 KiB
HTML
Raw Normal View History

<meta charset="UTF-8">
2014-05-06 13:36:47 +00:00
<title>{cbtitle}</title>
2015-02-25 10:51:26 +00:00
<link rel="stylesheet" href="{$theme_url}/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="{$theme_url}/assets/css/font-awesome.min.css" />
<link rel="stylesheet" href="{$theme_url}/css/styles.css" />
<!--[if IE 7]>
<link rel="stylesheet" href="{$theme_url}/assets/css/font-awesome-ie7.min.css" />
<![endif]-->
<!-- page specific plugin styles -->
<!-- fonts -->
2015-09-14 10:19:47 +00:00
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:400,300" />
<!-- ace styles -->
2015-02-25 10:50:37 +00:00
{if !this_page('admin_login')} <!-- these css file not includes in admin area login.html -->
<link rel="stylesheet" href="{$theme_url}/assets/css/ace.min.css" />
<link rel="stylesheet" href="{$theme_url}/assets/css/ace-rtl.min.css" />
<link rel="stylesheet" href="{$theme_url}/assets/css/ace-skins.min.css" />
2015-02-25 10:50:37 +00:00
{/if}
<!--[if lte IE 8]>
<link rel="stylesheet" href="{$theme_url}/assets/css/ace-ie.min.css" />
<![endif]-->
<!-- inline styles related to this page -->
2014-09-09 05:31:13 +00:00
<script type="text/javascript">
var baseurl = "{$baseurl}";
var imageurl = "{$imageurl}";
</script>
2014-02-26 06:15:30 +00:00
<!-- ace settings handler -->
<script src="{$theme_url}/assets/js/ace-extra.min.js"></script>
<script src="{$baseurl}/js/clipbucket.js"></script>
2015-09-14 10:19:47 +00:00
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="assets/js/html5shiv.js"></script>
<script src="assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript" src="{$theme_url}/../../../../js/functions.js"></script>
<script type="text/javascript" src="{$theme_url}/../../../../js/admin_functions.js"></script>
2015-09-14 10:19:47 +00:00
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
2014-02-26 06:15:30 +00:00
<!-- for bootstrap wysiwyg -->
<link rel="stylesheet" href="{$theme_url}/css/summernote.css" />
2014-02-27 05:54:56 +00:00
<script src="{$theme_url}/js/editor.js"></script>
2014-03-11 12:51:33 +00:00
<script src="{$theme_url}/js/main.js"></script>
2014-02-27 05:54:56 +00:00
2014-02-26 06:15:30 +00:00
<!-- for bootstrap wysiwyg -->
<!-- for popovers -->
<script>
$(function (){
2014-02-26 06:15:30 +00:00
$(".popoverButton").popover();
});
</script>
<!-- bootstrap x-editable -->
2015-02-26 06:14:08 +00:00
<link rel="stylesheet" href="{$theme_url}/bootstrap-editable/css/bootstrap-editable.css" />
<script src="{$theme_url}/bootstrap-editable/js/bootstrap-editable.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('.xedit').editable({
2014-05-05 14:19:11 +00:00
mode: 'inline',
2015-02-24 10:02:41 +00:00
url:baseurl+'/admin_area/index.php?mode=update_pharse',
2014-05-05 14:19:11 +00:00
pk: function(){
var id = $(this).attr("id");
2015-02-24 10:02:41 +00:00
2014-05-05 14:19:11 +00:00
id = id.match(/([0-9]+)$/g);
2015-02-24 10:02:41 +00:00
return id.pop();
2014-05-05 14:19:11 +00:00
},
});
});
2014-04-16 12:05:28 +00:00
</script>
2014-03-07 11:48:33 +00:00
<script>
2015-12-28 12:34:42 +00:00
2014-03-07 11:48:33 +00:00
$(document).ready(function(){
$(".drop").on({
click: function(e){
var ele = $(this).parent().nextAll("#content").get(0);
$(ele).toggle();
}
});
});
</script>
<script>
$(document).ready(function() {
$('#desc').summernote();
});
</script>
2014-04-16 12:05:28 +00:00
<script>
$(function(){
2014-05-05 14:19:11 +00:00
2014-04-16 12:05:28 +00:00
$(".saveTodo").click(function(e){
2014-05-05 14:19:11 +00:00
var self = this;
2014-04-16 12:05:28 +00:00
var newVal = $(this).parent().parent().find("input[name='todo']").val();
2014-05-05 14:19:11 +00:00
if(newVal.length){
var ajaxCall = $.ajax({
url: "{$baseurl}" + "/admin_area/index.php",
type: "post",
data: {
val: newVal,
mode: "add_todo",
},
});
ajaxCall.success(function(data){
data = $.parseJSON(data);
var p = document.createElement("p");
p.className = "xedit editable editable-click";
var input = document.createElement("input");
input.type = "hidden";
input.name = "todoid";
input.value = data.id;
var b = document.createElement("b");
b.innerHTML = data.todo;
p.appendChild(input);
p.appendChild(b);
console.log(p);
$(self).parents("form").after(p);
});
}else{
alert("Please enter a valid value");
2014-04-16 12:05:28 +00:00
}
});
2014-05-05 14:19:11 +00:00
$("#todolist").on("click", ".editable-clear-x", function(e){
e.preventDefault();
var self = this;
var id = $(this).parents(".editable-container").prev().attr("id");
id = id.match(/([0-9]+)$/g);
id = id.pop();
var ajaxCall = $.ajax({
url: "{$baseurl}" + "/admin_area/index.php",
type: "post",
data: {
id: id,
mode: "delete_todo",
},
});
ajaxCall.success(function(data){
$(self).parents("p").remove();
$(self).parents(".editable-container").remove();
});
e.stopPropagation();
});
2014-04-16 12:05:28 +00:00
});
2014-09-09 05:31:13 +00:00
</script>
{if $Cbucket->AdminJSArray}
<!-- Including JS Files-->
{foreach from=$Cbucket->AdminJSArray key=file item=type}
{if $curActive == $type || $type=='global' }
{include_js type=$type file=$file}
{/if}
{/foreach}
<!-- Including JS Files-->
{/if}
{if $Cbucket->admin_header_files}
<!-- Including Headers -->
{foreach from=$Cbucket->admin_header_files key=file item=type}
{include_header type=$type file=$file}
{/foreach}
<!-- Ending Headers -->
{/if}