mirror of
https://github.com/danpros/htmly.git
synced 2026-04-18 19:46:21 +05:30
Improve resources
This commit is contained in:
parent
1d15d0fcc4
commit
4138142368
29 changed files with 1297 additions and 609 deletions
|
|
@ -1,12 +1,10 @@
|
|||
<link rel="stylesheet" type="text/css" href="<?php echo site_url() ?>system/admin/editor/css/editor.css"/>
|
||||
<?php if (config("jquery") != "enable"):?>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
||||
<?php endif;?>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
|
||||
<script src="<?php echo site_url() ?>system/resources/js/jquery.min.js"></script>
|
||||
<script src="<?php echo site_url() ?>system/resources/js/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Converter.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Sanitizer.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Editor.js"></script>
|
||||
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
|
||||
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/jquery-ui.css">
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/jquery.ajaxfileupload.js"></script>
|
||||
<?php if (isset($error)) { ?>
|
||||
<div class="error-message"><?php echo $error ?></div>
|
||||
|
|
|
|||
|
|
@ -1,12 +1,10 @@
|
|||
<link rel="stylesheet" type="text/css" href="<?php echo site_url() ?>system/admin/editor/css/editor.css"/>
|
||||
<?php if (config("jquery") != "enable"):?>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
||||
<?php endif;?>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
|
||||
<script src="<?php echo site_url() ?>system/resources/js/jquery.min.js"></script>
|
||||
<script src="<?php echo site_url() ?>system/resources/js/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Converter.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Sanitizer.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Editor.js"></script>
|
||||
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
|
||||
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/jquery-ui.css">
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/jquery.ajaxfileupload.js"></script>
|
||||
<?php if (isset($error)) { ?>
|
||||
<div class="error-message"><?php echo $error ?></div>
|
||||
|
|
|
|||
|
|
@ -1,12 +1,10 @@
|
|||
<link rel="stylesheet" type="text/css" href="<?php echo site_url() ?>system/admin/editor/css/editor.css"/>
|
||||
<?php if (config("jquery") != "enable"):?>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
||||
<?php endif;?>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
|
||||
<script src="<?php echo site_url() ?>system/resources/js/jquery.min.js"></script>
|
||||
<script src="<?php echo site_url() ?>system/resources/js/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Converter.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Sanitizer.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Editor.js"></script>
|
||||
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
|
||||
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/jquery-ui.css">
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/jquery.ajaxfileupload.js"></script>
|
||||
<?php if (isset($error)) { ?>
|
||||
<div class="error-message"><?php echo $error ?></div>
|
||||
|
|
|
|||
|
|
@ -1,12 +1,10 @@
|
|||
<link rel="stylesheet" type="text/css" href="<?php echo site_url() ?>system/admin/editor/css/editor.css"/>
|
||||
<?php if (config("jquery") != "enable"):?>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
||||
<?php endif;?>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
|
||||
<script src="<?php echo site_url() ?>system/resources/js/jquery.min.js"></script>
|
||||
<script src="<?php echo site_url() ?>system/resources/js/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Converter.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Sanitizer.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Editor.js"></script>
|
||||
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
|
||||
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/jquery-ui.css">
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/jquery.ajaxfileupload.js"></script>
|
||||
<?php if (isset($error)) { ?>
|
||||
<div class="error-message"><?php echo $error ?></div>
|
||||
|
|
|
|||
|
|
@ -1,12 +1,10 @@
|
|||
<link rel="stylesheet" type="text/css" href="<?php echo site_url() ?>system/admin/editor/css/editor.css"/>
|
||||
<?php if (config("jquery") != "enable"):?>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
||||
<?php endif;?>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
|
||||
<script src="<?php echo site_url() ?>system/resources/js/jquery.min.js"></script>
|
||||
<script src="<?php echo site_url() ?>system/resources/js/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Converter.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Sanitizer.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Editor.js"></script>
|
||||
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
|
||||
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/jquery-ui.css">
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/jquery.ajaxfileupload.js"></script>
|
||||
<?php if (isset($error)) { ?>
|
||||
<div class="error-message"><?php echo $error ?></div>
|
||||
|
|
|
|||
|
|
@ -1,12 +1,10 @@
|
|||
<link rel="stylesheet" type="text/css" href="<?php echo site_url() ?>system/admin/editor/css/editor.css"/>
|
||||
<?php if (config("jquery") != "enable"):?>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
||||
<?php endif;?>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
|
||||
<script src="<?php echo site_url() ?>system/resources/js/jquery.min.js"></script>
|
||||
<script src="<?php echo site_url() ?>system/resources/js/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Converter.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Sanitizer.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Editor.js"></script>
|
||||
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
|
||||
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/jquery-ui.css">
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/jquery.ajaxfileupload.js"></script>
|
||||
<?php if (isset($error)) { ?>
|
||||
<div class="error-message"><?php echo $error ?></div>
|
||||
|
|
|
|||
|
|
@ -1,12 +1,10 @@
|
|||
<link rel="stylesheet" type="text/css" href="<?php echo site_url() ?>system/admin/editor/css/editor.css"/>
|
||||
<?php if (config("jquery") != "enable"):?>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
||||
<?php endif;?>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
|
||||
<script src="<?php echo site_url() ?>system/resources/js/jquery.min.js"></script>
|
||||
<script src="<?php echo site_url() ?>system/resources/js/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Converter.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Sanitizer.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Editor.js"></script>
|
||||
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
|
||||
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/jquery-ui.css">
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/jquery.ajaxfileupload.js"></script>
|
||||
<?php if (isset($error)) { ?>
|
||||
<div class="error-message"><?php echo $error ?></div>
|
||||
|
|
|
|||
|
|
@ -34,17 +34,14 @@ $postdate = strtotime($timestamp);
|
|||
// The post URL
|
||||
$delete = site_url() . date('Y/m', $postdate) . '/' . $oldmd . '/delete?destination=' . $destination;
|
||||
|
||||
|
||||
?>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo site_url() ?>system/admin/editor/css/editor.css"/>
|
||||
<?php if (config("jquery") != "enable"):?>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
||||
<?php endif;?>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
|
||||
<script src="<?php echo site_url() ?>system/resources/js/jquery.min.js"></script>
|
||||
<script src="<?php echo site_url() ?>system/resources/js/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Converter.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Sanitizer.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Editor.js"></script>
|
||||
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
|
||||
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/jquery-ui.css">
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/jquery.ajaxfileupload.js"></script>
|
||||
<?php if (isset($error)) { ?>
|
||||
<div class="error-message"><?php echo $error ?></div>
|
||||
|
|
|
|||
|
|
@ -34,17 +34,14 @@ $postdate = strtotime($timestamp);
|
|||
// The post URL
|
||||
$delete = site_url() . date('Y/m', $postdate) . '/' . $oldmd . '/delete?destination=' . $destination;
|
||||
|
||||
|
||||
?>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo site_url() ?>system/admin/editor/css/editor.css"/>
|
||||
<?php if (config("jquery") != "enable"):?>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
||||
<?php endif;?>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
|
||||
<script src="<?php echo site_url() ?>system/resources/js/jquery.min.js"></script>
|
||||
<script src="<?php echo site_url() ?>system/resources/js/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Converter.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Sanitizer.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Editor.js"></script>
|
||||
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
|
||||
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/jquery-ui.css">
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/jquery.ajaxfileupload.js"></script>
|
||||
<?php if (isset($error)) { ?>
|
||||
<div class="error-message"><?php echo $error ?></div>
|
||||
|
|
|
|||
|
|
@ -34,17 +34,14 @@ $postdate = strtotime($timestamp);
|
|||
// The post URL
|
||||
$delete = site_url() . date('Y/m', $postdate) . '/' . $oldmd . '/delete?destination=' . $destination;
|
||||
|
||||
|
||||
?>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo site_url() ?>system/admin/editor/css/editor.css"/>
|
||||
<?php if (config("jquery") != "enable"):?>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
||||
<?php endif;?>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
|
||||
<script src="<?php echo site_url() ?>system/resources/js/jquery.min.js"></script>
|
||||
<script src="<?php echo site_url() ?>system/resources/js/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Converter.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Sanitizer.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Editor.js"></script>
|
||||
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
|
||||
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/jquery-ui.css">
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/jquery.ajaxfileupload.js"></script>
|
||||
<?php if (isset($error)) { ?>
|
||||
<div class="error-message"><?php echo $error ?></div>
|
||||
|
|
|
|||
|
|
@ -33,14 +33,12 @@ else {
|
|||
|
||||
?>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo site_url() ?>system/admin/editor/css/editor.css"/>
|
||||
<?php if (config("jquery") != "enable"):?>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
||||
<?php endif;?>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
|
||||
<script src="<?php echo site_url() ?>system/resources/js/jquery.min.js"></script>
|
||||
<script src="<?php echo site_url() ?>system/resources/js/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Converter.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Sanitizer.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Editor.js"></script>
|
||||
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
|
||||
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/jquery-ui.css">
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/jquery.ajaxfileupload.js"></script>
|
||||
<?php if (isset($error)) { ?>
|
||||
<div class="error-message"><?php echo $error ?></div>
|
||||
|
|
|
|||
|
|
@ -33,17 +33,14 @@ $postdate = strtotime($timestamp);
|
|||
// The post URL
|
||||
$delete = site_url() . date('Y/m', $postdate) . '/' . $oldmd . '/delete?destination=' . $destination;
|
||||
|
||||
|
||||
?>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo site_url() ?>system/admin/editor/css/editor.css"/>
|
||||
<?php if (config("jquery") != "enable"):?>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
||||
<?php endif;?>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
|
||||
<script src="<?php echo site_url() ?>system/resources/js/jquery.min.js"></script>
|
||||
<script src="<?php echo site_url() ?>system/resources/js/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Converter.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Sanitizer.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Editor.js"></script>
|
||||
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
|
||||
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/jquery-ui.css">
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/jquery.ajaxfileupload.js"></script>
|
||||
<?php if (isset($error)) { ?>
|
||||
<div class="error-message"><?php echo $error ?></div>
|
||||
|
|
|
|||
|
|
@ -17,14 +17,12 @@ if (file_exists($filename)) {
|
|||
|
||||
?>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo site_url() ?>system/admin/editor/css/editor.css"/>
|
||||
<?php if (config("jquery") != "enable"):?>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
||||
<?php endif;?>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
|
||||
<script src="<?php echo site_url() ?>system/resources/js/jquery.min.js"></script>
|
||||
<script src="<?php echo site_url() ?>system/resources/js/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Converter.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Sanitizer.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Editor.js"></script>
|
||||
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
|
||||
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/jquery-ui.css">
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/jquery.ajaxfileupload.js"></script>
|
||||
<?php if (isset($error)) { ?>
|
||||
<div class="error-message"><?php echo $error ?></div>
|
||||
|
|
|
|||
|
|
@ -34,17 +34,14 @@ $postdate = strtotime($timestamp);
|
|||
// The post URL
|
||||
$delete = site_url() . date('Y/m', $postdate) . '/' . $oldmd . '/delete?destination=' . $destination;
|
||||
|
||||
|
||||
?>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo site_url() ?>system/admin/editor/css/editor.css"/>
|
||||
<?php if (config("jquery") != "enable"):?>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
||||
<?php endif;?>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
|
||||
<script src="<?php echo site_url() ?>system/resources/js/jquery.min.js"></script>
|
||||
<script src="<?php echo site_url() ?>system/resources/js/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Converter.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Sanitizer.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Editor.js"></script>
|
||||
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
|
||||
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/jquery-ui.css">
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/jquery.ajaxfileupload.js"></script>
|
||||
<?php if (isset($error)) { ?>
|
||||
<div class="error-message"><?php echo $error ?></div>
|
||||
|
|
|
|||
|
|
@ -34,17 +34,14 @@ $postdate = strtotime($timestamp);
|
|||
// The post URL
|
||||
$delete = site_url() . date('Y/m', $postdate) . '/' . $oldmd . '/delete?destination=' . $destination;
|
||||
|
||||
|
||||
?>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo site_url() ?>system/admin/editor/css/editor.css"/>
|
||||
<?php if (config("jquery") != "enable"):?>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
||||
<?php endif;?>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
|
||||
<script src="<?php echo site_url() ?>system/resources/js/jquery.min.js"></script>
|
||||
<script src="<?php echo site_url() ?>system/resources/js/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Converter.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Sanitizer.js"></script>
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/Markdown.Editor.js"></script>
|
||||
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
|
||||
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/jquery-ui.css">
|
||||
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/jquery.ajaxfileupload.js"></script>
|
||||
<?php if (isset($error)) { ?>
|
||||
<div class="error-message"><?php echo $error ?></div>
|
||||
|
|
|
|||
|
|
@ -659,7 +659,7 @@ function get_related($tag, $custom = null, $count = null)
|
|||
if (empty($count)) {
|
||||
$count = config('related.count');
|
||||
if (empty($count)) {
|
||||
$count = 4;
|
||||
$count = 3;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1029,10 +1029,10 @@ function tab($p)
|
|||
$role = user('role', $user);
|
||||
if (isset($p->author)) {
|
||||
if ($user === $p->author || $role === 'admin') {
|
||||
echo '<div class="tab"><a href="' . $p->url . '">View</a><a href="' . $p->url . '/edit?destination=post">Edit</a></div>';
|
||||
echo '<div class="tab" style="margin-bottom:30px;"><ul class="nav nav-tabs"><li role="presentation" class="active"><a href="' . $p->url . '">View</a></li><li><a href="' . $p->url . '/edit?destination=post">Edit</a></li></ul></div>';
|
||||
}
|
||||
} else {
|
||||
echo '<div class="tab"><a href="' . $p->url . '">View</a><a href="' . $p->url . '/edit?destination=post">Edit</a></div>';
|
||||
echo '<div class="tab" style="margin-bottom:30px;><ul class="nav nav-tabs"><li role="presentation" class="active"><a href="' . $p->url . '">View</a><a href="' . $p->url . '/edit?destination=post">Edit</a></li></ul></div>';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1081,7 +1081,7 @@ function social($imgDir = null)
|
|||
function copyright()
|
||||
{
|
||||
$blogcp = blog_copyright();
|
||||
$credit = 'Proudly powered by <a href="http://www.htmly.com" target="_blank">HTMLy</a>.';
|
||||
$credit = 'Proudly powered by <a href="http://www.htmly.com" target="_blank">HTMLy</a>';
|
||||
|
||||
if (!empty($blogcp)) {
|
||||
return $copyright = '<p>' . $blogcp . '</p><p>' . $credit . '</p>';
|
||||
|
|
@ -1856,8 +1856,6 @@ function authorinfo($name = null, $about = null)
|
|||
// Output head contents
|
||||
function head_contents()
|
||||
{
|
||||
$styleImage = config('lightbox');
|
||||
$jq = config('jquery');
|
||||
$output = '';
|
||||
$wmt_id = config('google.wmt.id');
|
||||
|
||||
|
|
@ -1868,24 +1866,13 @@ function head_contents()
|
|||
$viewport = '<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />';
|
||||
$sitemap = '<link rel="sitemap" href="' . site_url() . 'sitemap.xml" />';
|
||||
$feed = '<link rel="alternate" type="application/rss+xml" title="' . blog_title() . ' Feed" href="' . site_url() . 'feed/rss" />';
|
||||
$lightboxcss = '<link href="' . site_url() . 'system/plugins/lightbox/css/lightbox.css" rel="stylesheet" />';
|
||||
$jquery = '<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>';
|
||||
$lightbox = '<script src="' . site_url() . 'system/plugins/lightbox/js/lightbox-2.6.min.js"></script>';
|
||||
$corejs = '<script src="' . site_url() . 'system/resources/htmly.js"></script>';
|
||||
$webmasterTools = '';
|
||||
if (!empty($wmt_id)) {
|
||||
$webmasterTools = '<meta name="google-site-verification" content="' . $wmt_id . '" />';
|
||||
}
|
||||
|
||||
if ($styleImage == 'on') {
|
||||
$output .= $charset . "\n" . $xua . "\n" . $viewport . "\n" . $generator . "\n" . $favicon . $sitemap . "\n" . $feed . "\n" . $lightboxcss . "\n" . $jquery . "\n" . $lightbox . "\n" . $corejs . "\n" . $webmasterTools . "\n";
|
||||
} else {
|
||||
if ($jq == 'enable') {
|
||||
$output .= $charset . "\n" . $xua . "\n" . $viewport . "\n" . $generator . "\n" . $favicon . "\n" . $sitemap . "\n" . $feed . "\n" . $jquery . "\n" . $webmasterTools. "\n";
|
||||
} else {
|
||||
$output .= $charset . "\n" . $xua . "\n" . $viewport . "\n" . $generator . "\n" . $favicon . "\n" . $sitemap . "\n" . $feed . "\n" . $webmasterTools. "\n";
|
||||
}
|
||||
}
|
||||
$output .= $charset . "\n" . $xua . "\n" . $viewport . "\n" . $generator . "\n" . $favicon . "\n" . $sitemap . "\n" . $feed . "\n" . $corejs . "\n" . $webmasterTools . "\n";
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +0,0 @@
|
|||
## Lightbox2
|
||||
by Lokesh Dhakar | [lokeshdhakar.com](http://www.lokeshdhakar.com) | [twitter.com/lokesh](http://twitter.com/lokesh)
|
||||
|
||||
### Information and support
|
||||
For examples, downloads, and information on using Lightbox, visit the Lightbox2 homepage:
|
||||
[http://lokeshdhakar.com/projects/lightbox2/](http://lokeshdhakar.com/projects/lightbox2/)
|
||||
|
||||
For personal support issues and feature requests, visit the Lightbox forums:
|
||||
[http://lokeshdhakar.com/forums/](http://lokeshdhakar.com/forums/)
|
||||
|
||||
### License
|
||||
Licensed under the Creative Commons Attribution 2.5 License - http://creativecommons.org/licenses/by/2.5/
|
||||
|
||||
* Free for use in both personal and commercial projects.
|
||||
* Attribution requires leaving author name, author homepage link, and the license info intact.
|
||||
|
|
@ -1,218 +0,0 @@
|
|||
/* line 7, ../sass/lightbox.sass */
|
||||
body:after {
|
||||
content: url(../img/close.png) url(../img/loading.gif) url(../img/prev.png) url(../img/next.png);
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* line 11, ../sass/lightbox.sass */
|
||||
.lightboxOverlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 9999;
|
||||
background-color: black;
|
||||
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
|
||||
opacity: 0.8;
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* line 20, ../sass/lightbox.sass */
|
||||
.lightbox {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
z-index: 10000;
|
||||
text-align: center;
|
||||
line-height: 0;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
/* line 28, ../sass/lightbox.sass */
|
||||
.lightbox .lb-image {
|
||||
display: block;
|
||||
height: auto;
|
||||
-webkit-border-radius: 3px;
|
||||
-moz-border-radius: 3px;
|
||||
-ms-border-radius: 3px;
|
||||
-o-border-radius: 3px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
/* line 32, ../sass/lightbox.sass */
|
||||
.lightbox a img {
|
||||
border: none;
|
||||
}
|
||||
|
||||
/* line 35, ../sass/lightbox.sass */
|
||||
.lb-outerContainer {
|
||||
position: relative;
|
||||
background-color: white;
|
||||
*zoom: 1;
|
||||
width: 250px;
|
||||
height: 250px;
|
||||
margin: 0 auto;
|
||||
-webkit-border-radius: 4px;
|
||||
-moz-border-radius: 4px;
|
||||
-ms-border-radius: 4px;
|
||||
-o-border-radius: 4px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
/* line 38, ../../../../.rvm/gems/ruby-1.9.3-p392/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss */
|
||||
.lb-outerContainer:after {
|
||||
content: "";
|
||||
display: table;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
/* line 44, ../sass/lightbox.sass */
|
||||
.lb-container {
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
/* line 47, ../sass/lightbox.sass */
|
||||
.lb-loader {
|
||||
position: absolute;
|
||||
top: 43%;
|
||||
left: 0%;
|
||||
height: 25%;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
line-height: 0;
|
||||
}
|
||||
|
||||
/* line 56, ../sass/lightbox.sass */
|
||||
.lb-cancel {
|
||||
display: block;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
margin: 0 auto;
|
||||
background: url(../img/loading.gif) no-repeat;
|
||||
}
|
||||
|
||||
/* line 63, ../sass/lightbox.sass */
|
||||
.lb-nav {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
/* line 71, ../sass/lightbox.sass */
|
||||
.lb-container > .nav {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
/* line 74, ../sass/lightbox.sass */
|
||||
.lb-nav a {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
/* line 77, ../sass/lightbox.sass */
|
||||
.lb-prev, .lb-next {
|
||||
width: 49%;
|
||||
height: 100%;
|
||||
cursor: pointer;
|
||||
/* Trick IE into showing hover */
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* line 84, ../sass/lightbox.sass */
|
||||
.lb-prev {
|
||||
left: 0;
|
||||
float: left;
|
||||
}
|
||||
|
||||
/* line 87, ../sass/lightbox.sass */
|
||||
.lb-prev:hover {
|
||||
background: url(../img/prev.png) left 48% no-repeat;
|
||||
}
|
||||
|
||||
/* line 90, ../sass/lightbox.sass */
|
||||
.lb-next {
|
||||
right: 0;
|
||||
float: right;
|
||||
}
|
||||
|
||||
/* line 93, ../sass/lightbox.sass */
|
||||
.lb-next:hover {
|
||||
background: url(../img/next.png) right 48% no-repeat;
|
||||
}
|
||||
|
||||
/* line 96, ../sass/lightbox.sass */
|
||||
.lb-dataContainer {
|
||||
margin: 0 auto;
|
||||
padding-top: 5px;
|
||||
*zoom: 1;
|
||||
width: 100%;
|
||||
-moz-border-radius-bottomleft: 4px;
|
||||
-webkit-border-bottom-left-radius: 4px;
|
||||
border-bottom-left-radius: 4px;
|
||||
-moz-border-radius-bottomright: 4px;
|
||||
-webkit-border-bottom-right-radius: 4px;
|
||||
border-bottom-right-radius: 4px;
|
||||
}
|
||||
|
||||
/* line 38, ../../../../.rvm/gems/ruby-1.9.3-p392/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss */
|
||||
.lb-dataContainer:after {
|
||||
content: "";
|
||||
display: table;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
/* line 103, ../sass/lightbox.sass */
|
||||
.lb-data {
|
||||
padding: 0 4px;
|
||||
color: #bbbbbb;
|
||||
}
|
||||
|
||||
/* line 106, ../sass/lightbox.sass */
|
||||
.lb-data .lb-details {
|
||||
width: 85%;
|
||||
float: left;
|
||||
text-align: left;
|
||||
line-height: 1.1em;
|
||||
}
|
||||
|
||||
/* line 111, ../sass/lightbox.sass */
|
||||
.lb-data .lb-caption {
|
||||
font-size: 13px;
|
||||
font-weight: bold;
|
||||
line-height: 1em;
|
||||
}
|
||||
|
||||
/* line 115, ../sass/lightbox.sass */
|
||||
.lb-data .lb-number {
|
||||
display: block;
|
||||
clear: left;
|
||||
padding-bottom: 1em;
|
||||
font-size: 12px;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
/* line 121, ../sass/lightbox.sass */
|
||||
.lb-data .lb-close {
|
||||
display: block;
|
||||
float: right;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
background: url(../img/close.png) top right no-repeat;
|
||||
text-align: right;
|
||||
outline: none;
|
||||
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=70);
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
/* line 130, ../sass/lightbox.sass */
|
||||
.lb-data .lb-close:hover {
|
||||
cursor: pointer;
|
||||
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* fix image preview */
|
||||
.lb-image {
|
||||
max-width: inherit !important;
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 280 B |
Binary file not shown.
|
Before Width: | Height: | Size: 8.3 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.3 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.3 KiB |
267
system/plugins/lightbox/js/lightbox-2.6.min.js
vendored
267
system/plugins/lightbox/js/lightbox-2.6.min.js
vendored
|
|
@ -1,267 +0,0 @@
|
|||
(function () {
|
||||
var b, d, c;
|
||||
b = jQuery;
|
||||
c = (function () {
|
||||
function b() {
|
||||
this.fadeDuration = 500;
|
||||
this.fitImagesInViewport = true;
|
||||
this.resizeDuration = 700;
|
||||
this.showImageNumberLabel = true;
|
||||
this.wrapAround = false
|
||||
}
|
||||
|
||||
b.prototype.albumLabel = function (b, c) {
|
||||
return "Image " + b + " of " + c
|
||||
};
|
||||
return b
|
||||
})();
|
||||
d = (function () {
|
||||
function c(b) {
|
||||
this.options = b;
|
||||
this.album = [];
|
||||
this.currentImageIndex = void 0;
|
||||
this.init()
|
||||
}
|
||||
|
||||
c.prototype.init = function () {
|
||||
this.enable();
|
||||
return this.build()
|
||||
};
|
||||
c.prototype.enable = function () {
|
||||
var c = this;
|
||||
return b('body').on('click', 'a[rel^=lightbox], area[rel^=lightbox], a[data-lightbox], area[data-lightbox]', function (d) {
|
||||
c.start(b(d.currentTarget));
|
||||
return false
|
||||
})
|
||||
};
|
||||
c.prototype.build = function () {
|
||||
var c = this;
|
||||
b("<div id='lightboxOverlay' class='lightboxOverlay'></div><div id='lightbox' class='lightbox'><div class='lb-outerContainer'><div class='lb-container'><img class='lb-image' src='' /><div class='lb-nav'><a class='lb-prev' href='' ></a><a class='lb-next' href='' ></a></div><div class='lb-loader'><a class='lb-cancel'></a></div></div></div><div class='lb-dataContainer'><div class='lb-data'><div class='lb-details'><span class='lb-caption'></span><span class='lb-number'></span></div><div class='lb-closeContainer'><a class='lb-close'></a></div></div></div></div>").appendTo(b('body'));
|
||||
this.$lightbox = b('#lightbox');
|
||||
this.$overlay = b('#lightboxOverlay');
|
||||
this.$outerContainer = this.$lightbox.find('.lb-outerContainer');
|
||||
this.$container = this.$lightbox.find('.lb-container');
|
||||
this.containerTopPadding = parseInt(this.$container.css('padding-top'), 10);
|
||||
this.containerRightPadding = parseInt(this.$container.css('padding-right'), 10);
|
||||
this.containerBottomPadding = parseInt(this.$container.css('padding-bottom'), 10);
|
||||
this.containerLeftPadding = parseInt(this.$container.css('padding-left'), 10);
|
||||
this.$overlay.hide().on('click', function () {
|
||||
c.end();
|
||||
return false
|
||||
});
|
||||
this.$lightbox.hide().on('click', function (d) {
|
||||
if (b(d.target).attr('id') === 'lightbox') {
|
||||
c.end()
|
||||
}
|
||||
return false
|
||||
});
|
||||
this.$outerContainer.on('click', function (d) {
|
||||
if (b(d.target).attr('id') === 'lightbox') {
|
||||
c.end()
|
||||
}
|
||||
return false
|
||||
});
|
||||
this.$lightbox.find('.lb-prev').on('click', function () {
|
||||
if (c.currentImageIndex === 0) {
|
||||
c.changeImage(c.album.length - 1)
|
||||
} else {
|
||||
c.changeImage(c.currentImageIndex - 1)
|
||||
}
|
||||
return false
|
||||
});
|
||||
this.$lightbox.find('.lb-next').on('click', function () {
|
||||
if (c.currentImageIndex === c.album.length - 1) {
|
||||
c.changeImage(0)
|
||||
} else {
|
||||
c.changeImage(c.currentImageIndex + 1)
|
||||
}
|
||||
return false
|
||||
});
|
||||
return this.$lightbox.find('.lb-loader, .lb-close').on('click', function () {
|
||||
c.end();
|
||||
return false
|
||||
})
|
||||
};
|
||||
c.prototype.start = function (c) {
|
||||
var f, e, j, d, g, n, o, k, l, m, p, h, i;
|
||||
b(window).on("resize", this.sizeOverlay);
|
||||
b('select, object, embed').css({visibility: "hidden"});
|
||||
this.$overlay.width(b(document).width()).height(b(document).height()).fadeIn(this.options.fadeDuration);
|
||||
this.album = [];
|
||||
g = 0;
|
||||
j = c.attr('data-lightbox');
|
||||
if (j) {
|
||||
h = b(c.prop("tagName") + '[data-lightbox="' + j + '"]');
|
||||
for (d = k = 0, m = h.length; k < m; d = ++k) {
|
||||
e = h[d];
|
||||
this.album.push({link: b(e).attr('href'), title: b(e).attr('title')});
|
||||
if (b(e).attr('href') === c.attr('href')) {
|
||||
g = d
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (c.attr('rel') === 'lightbox') {
|
||||
this.album.push({link: c.attr('href'), title: c.attr('title')})
|
||||
} else {
|
||||
i = b(c.prop("tagName") + '[rel="' + c.attr('rel') + '"]');
|
||||
for (d = l = 0, p = i.length; l < p; d = ++l) {
|
||||
e = i[d];
|
||||
this.album.push({link: b(e).attr('href'), title: b(e).attr('title')});
|
||||
if (b(e).attr('href') === c.attr('href')) {
|
||||
g = d
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
f = b(window);
|
||||
o = f.scrollTop() + f.height() / 10;
|
||||
n = f.scrollLeft();
|
||||
this.$lightbox.css({top: o + 'px', left: n + 'px'}).fadeIn(this.options.fadeDuration);
|
||||
this.changeImage(g)
|
||||
};
|
||||
c.prototype.changeImage = function (f) {
|
||||
var d, c, e = this;
|
||||
this.disableKeyboardNav();
|
||||
d = this.$lightbox.find('.lb-image');
|
||||
this.sizeOverlay();
|
||||
this.$overlay.fadeIn(this.options.fadeDuration);
|
||||
b('.lb-loader').fadeIn('slow');
|
||||
this.$lightbox.find('.lb-image, .lb-nav, .lb-prev, .lb-next, .lb-dataContainer, .lb-numbers, .lb-caption').hide();
|
||||
this.$outerContainer.addClass('animating');
|
||||
c = new Image();
|
||||
c.onload = function () {
|
||||
var m, g, h, i, j, k, l;
|
||||
d.attr('src', e.album[f].link);
|
||||
m = b(c);
|
||||
d.width(c.width);
|
||||
d.height(c.height);
|
||||
if (e.options.fitImagesInViewport) {
|
||||
l = b(window).width();
|
||||
k = b(window).height();
|
||||
j = l - e.containerLeftPadding - e.containerRightPadding - 20;
|
||||
i = k - e.containerTopPadding - e.containerBottomPadding - 110;
|
||||
if ((c.width > j) || (c.height > i)) {
|
||||
if ((c.width / j) > (c.height / i)) {
|
||||
h = j;
|
||||
g = parseInt(c.height / (c.width / h), 10);
|
||||
d.width(h);
|
||||
d.height(g)
|
||||
} else {
|
||||
g = i;
|
||||
h = parseInt(c.width / (c.height / g), 10);
|
||||
d.width(h);
|
||||
d.height(g)
|
||||
}
|
||||
}
|
||||
}
|
||||
return e.sizeContainer(d.width(), d.height())
|
||||
};
|
||||
c.src = this.album[f].link;
|
||||
this.currentImageIndex = f
|
||||
};
|
||||
c.prototype.sizeOverlay = function () {
|
||||
return b('#lightboxOverlay').width(b(document).width()).height(b(document).height())
|
||||
};
|
||||
c.prototype.sizeContainer = function (f, g) {
|
||||
var b, d, e, h, c = this;
|
||||
h = this.$outerContainer.outerWidth();
|
||||
e = this.$outerContainer.outerHeight();
|
||||
d = f + this.containerLeftPadding + this.containerRightPadding;
|
||||
b = g + this.containerTopPadding + this.containerBottomPadding;
|
||||
this.$outerContainer.animate({width: d, height: b}, this.options.resizeDuration, 'swing');
|
||||
setTimeout(function () {
|
||||
c.$lightbox.find('.lb-dataContainer').width(d);
|
||||
c.$lightbox.find('.lb-prevLink').height(b);
|
||||
c.$lightbox.find('.lb-nextLink').height(b);
|
||||
c.showImage()
|
||||
}, this.options.resizeDuration)
|
||||
};
|
||||
c.prototype.showImage = function () {
|
||||
this.$lightbox.find('.lb-loader').hide();
|
||||
this.$lightbox.find('.lb-image').fadeIn('slow');
|
||||
this.updateNav();
|
||||
this.updateDetails();
|
||||
this.preloadNeighboringImages();
|
||||
this.enableKeyboardNav()
|
||||
};
|
||||
c.prototype.updateNav = function () {
|
||||
this.$lightbox.find('.lb-nav').show();
|
||||
if (this.album.length > 1) {
|
||||
if (this.options.wrapAround) {
|
||||
this.$lightbox.find('.lb-prev, .lb-next').show()
|
||||
} else {
|
||||
if (this.currentImageIndex > 0) {
|
||||
this.$lightbox.find('.lb-prev').show()
|
||||
}
|
||||
if (this.currentImageIndex < this.album.length - 1) {
|
||||
this.$lightbox.find('.lb-next').show()
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
c.prototype.updateDetails = function () {
|
||||
var b = this;
|
||||
if (typeof this.album[this.currentImageIndex].title !== 'undefined' && this.album[this.currentImageIndex].title !== "") {
|
||||
this.$lightbox.find('.lb-caption').html(this.album[this.currentImageIndex].title).fadeIn('fast')
|
||||
}
|
||||
if (this.album.length > 1 && this.options.showImageNumberLabel) {
|
||||
this.$lightbox.find('.lb-number').text(this.options.albumLabel(this.currentImageIndex + 1, this.album.length)).fadeIn('fast')
|
||||
} else {
|
||||
this.$lightbox.find('.lb-number').hide()
|
||||
}
|
||||
this.$outerContainer.removeClass('animating');
|
||||
this.$lightbox.find('.lb-dataContainer').fadeIn(this.resizeDuration, function () {
|
||||
return b.sizeOverlay()
|
||||
})
|
||||
};
|
||||
c.prototype.preloadNeighboringImages = function () {
|
||||
var c, b;
|
||||
if (this.album.length > this.currentImageIndex + 1) {
|
||||
c = new Image();
|
||||
c.src = this.album[this.currentImageIndex + 1].link
|
||||
}
|
||||
if (this.currentImageIndex > 0) {
|
||||
b = new Image();
|
||||
b.src = this.album[this.currentImageIndex - 1].link
|
||||
}
|
||||
};
|
||||
c.prototype.enableKeyboardNav = function () {
|
||||
b(document).on('keyup.keyboard', b.proxy(this.keyboardAction, this))
|
||||
};
|
||||
c.prototype.disableKeyboardNav = function () {
|
||||
b(document).off('.keyboard')
|
||||
};
|
||||
c.prototype.keyboardAction = function (g) {
|
||||
var d, e, f, c, b;
|
||||
d = 27;
|
||||
e = 37;
|
||||
f = 39;
|
||||
b = g.keyCode;
|
||||
c = String.fromCharCode(b).toLowerCase();
|
||||
if (b === d || c.match(/x|o|c/)) {
|
||||
this.end()
|
||||
} else if (c === 'p' || b === e) {
|
||||
if (this.currentImageIndex !== 0) {
|
||||
this.changeImage(this.currentImageIndex - 1)
|
||||
}
|
||||
} else if (c === 'n' || b === f) {
|
||||
if (this.currentImageIndex !== this.album.length - 1) {
|
||||
this.changeImage(this.currentImageIndex + 1)
|
||||
}
|
||||
}
|
||||
};
|
||||
c.prototype.end = function () {
|
||||
this.disableKeyboardNav();
|
||||
b(window).off("resize", this.sizeOverlay);
|
||||
this.$lightbox.fadeOut(this.options.fadeDuration);
|
||||
this.$overlay.fadeOut(this.options.fadeDuration);
|
||||
return b('select, object, embed').css({visibility: "visible"})
|
||||
};
|
||||
return c
|
||||
})();
|
||||
b(function () {
|
||||
var e, b;
|
||||
b = new c();
|
||||
return e = new d(b)
|
||||
})
|
||||
}).call(this);
|
||||
1225
system/resources/css/jquery-ui.css
vendored
Normal file
1225
system/resources/css/jquery-ui.css
vendored
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -1,10 +0,0 @@
|
|||
(function ($) {
|
||||
|
||||
$(document).ready(function () {
|
||||
$('.teaser-body img, .post-body img').each(function () {
|
||||
var currentImage = $(this);
|
||||
currentImage.wrap("<a class='img-wrap' title='" + currentImage.attr("alt") + "' data-lightbox='lightbox' href='" + currentImage.attr("src") + "'></a>");
|
||||
});
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
3
system/resources/js/htmly.js
Normal file
3
system/resources/js/htmly.js
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
(function ($) {
|
||||
|
||||
})(jQuery);
|
||||
13
system/resources/js/jquery-ui.min.js
vendored
Normal file
13
system/resources/js/jquery-ui.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
5
system/resources/js/jquery.min.js
vendored
Normal file
5
system/resources/js/jquery.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
system/resources/readme.txt
Normal file
1
system/resources/readme.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
Resources for the system
|
||||
Loading…
Add table
Add a link
Reference in a new issue