| @ -1,58 +1,61 @@ | |||||
| <!DOCTYPE html> | <!DOCTYPE html> | ||||
| <html lang="<?php echo $lang['lang']; ?>" dir="<?php echo $lang['dir']; ?>"> | <html lang="<?php echo $lang['lang']; ?>" dir="<?php echo $lang['dir']; ?>"> | ||||
| <head> | <head> | ||||
| <meta charset="<?php echo $lang['charset']; ?>" /> | |||||
| <title><?php echo $settings['website_title']; ?> - <?php echo $lang['administration']; if(isset($subtitle)) echo ' - ' . $subtitle; ?></title> | |||||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |||||
| <meta charset="<?php echo $lang['charset']; ?>"/> | |||||
| <title><?php echo $settings['website_title']; ?> - <?php echo $lang['administration']; | |||||
| if (isset($subtitle)) echo ' - ' . $subtitle; ?></title> | |||||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |||||
| <link href="<?php echo BOOTSTRAP_CSS; ?>" rel="stylesheet"> | |||||
| <link href="<?php echo STATIC_URL; ?>css/style_admin.css" rel="stylesheet"> | |||||
| <link href="<?php echo BOOTSTRAP_CSS; ?>" rel="stylesheet"> | |||||
| <link href="<?php echo STATIC_URL; ?>css/style_admin.css" rel="stylesheet"> | |||||
| <link rel="shortcut icon" href="<?php echo STATIC_URL; ?>img/favicon.png"> | |||||
| <link rel="shortcut icon" href="<?php echo STATIC_URL; ?>img/favicon.png"> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <?php include(BASE_PATH.'cms/templates/admin/subtemplates/admin_menu.inc.tpl'); ?> | |||||
| <?php include(BASE_PATH . 'cms/templates/admin/subtemplates/admin_menu.inc.tpl'); ?> | |||||
| <div class="container"> | <div class="container"> | ||||
| <div class="row"> | |||||
| <div class="col-lg-12"> | |||||
| <div class="row"> | |||||
| <div class="col-lg-12"> | |||||
| <?php if(isset($subtemplate)): ?> | |||||
| <?php if (isset($subtemplate)): ?> | |||||
| <?php include(BASE_PATH.'cms/templates/admin/subtemplates/'.$subtemplate); ?> | |||||
| <?php include(BASE_PATH . 'cms/templates/admin/subtemplates/' . $subtemplate); ?> | |||||
| <?php elseif(isset($content)): ?> | |||||
| <?php elseif (isset($content)): ?> | |||||
| <?php echo $content; ?> | |||||
| <?php echo $content; ?> | |||||
| <?php elseif(isset($error_message)): ?> | |||||
| <?php | |||||
| elseif (isset($error_message)): ?> | |||||
| <p class="caution"><?php echo $error_message; ?></p> | |||||
| <p class="caution"><?php echo $error_message; ?></p> | |||||
| <?php else: ?> | |||||
| <?php | |||||
| else: ?> | |||||
| <p class="caution"><?php echo $lang['invalid_request']; ?></p> | |||||
| <p class="caution"><?php echo $lang['invalid_request']; ?></p> | |||||
| <?php endif; ?> | |||||
| <?php endif; ?> | |||||
| </div> | |||||
| </div> | |||||
| </div> | |||||
| </div> | |||||
| </div> | </div> | ||||
| <script src="<?php echo JQUERY; ?>"></script> | <script src="<?php echo JQUERY; ?>"></script> | ||||
| <script src="<?php echo JQUERY_UI; ?>"></script> | <script src="<?php echo JQUERY_UI; ?>"></script> | ||||
| <script src="<?php echo BOOTSTRAP; ?>"></script> | <script src="<?php echo BOOTSTRAP; ?>"></script> | ||||
| <?php if(isset($wysiwyg)): ?> | |||||
| <script src="<?php echo WYSIWYG_EDITOR; ?>"></script> | |||||
| <script src="<?php echo WYSIWYG_EDITOR_INIT; ?>"></script> | |||||
| <?php if (isset($wysiwyg)): ?> | |||||
| <script src="<?php echo WYSIWYG_EDITOR; ?>"></script> | |||||
| <script src="<?php echo WYSIWYG_EDITOR_INIT; ?>"></script> | |||||
| <?php endif; ?> | <?php endif; ?> | ||||
| <script src="<?php echo STATIC_URL; ?>js/admin_backend.js"></script> | <script src="<?php echo STATIC_URL; ?>js/admin_backend.js"></script> | ||||
| <?php if($mode=='galleries'): ?> | |||||
| <script src="<?php echo STATIC_URL; ?>js/mylightbox.js" type="text/javascript"></script> | |||||
| <?php if ($mode == 'galleries'): ?> | |||||
| <script src="<?php echo STATIC_URL; ?>js/mylightbox.js" type="text/javascript"></script> | |||||
| <?php endif; ?> | <?php endif; ?> | ||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @ -1,29 +1,48 @@ | |||||
| <h1><?php echo $lang['administration']; ?></h1> | <h1><?php echo $lang['administration']; ?></h1> | ||||
| <?php if(isset($msg)): ?> | |||||
| <p class="ok"><?php if(isset($lang[$msg])) echo $lang[$msg]; else echo $msg; ?></p> | |||||
| <?php endif;?> | |||||
| <?php if (isset($msg)): ?> | |||||
| <p class="ok"><?php if (isset($lang[$msg])) echo $lang[$msg]; else echo $msg; ?></p> | |||||
| <?php endif; ?> | |||||
| <ul class="list-unstyled"> | <ul class="list-unstyled"> | ||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=pages"><span class="glyphicon glyphicon-file"></span> <?php echo $lang['admin_menu_page_overview']; ?></a></li> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=edit"><span class="glyphicon glyphicon-plus-sign"></span> <?php echo $lang['admin_menu_new_page']; ?></a></li> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=pages"><span | |||||
| class="glyphicon glyphicon-file"></span> <?php echo $lang['admin_menu_page_overview']; ?></a></li> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=edit"><span | |||||
| class="glyphicon glyphicon-plus-sign"></span> <?php echo $lang['admin_menu_new_page']; ?></a></li> | |||||
| </ul> | </ul> | ||||
| <ul class="list-unstyled"> | <ul class="list-unstyled"> | ||||
| <?php if($user_type==1): ?><li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=settings"><span class="glyphicon glyphicon-wrench"></span> <?php echo $lang['admin_menu_settings']; ?></a></li><?php endif; ?> | |||||
| <?php if($user_type==1): ?><li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=menus"><span class="glyphicon glyphicon-list-alt"></span> <?php echo $lang['admin_menu_edit_menus']; ?></a></li><?php endif; ?> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=galleries"><span class="glyphicon glyphicon-picture"></span> <?php echo $lang['admin_menu_edit_galleries']; ?></a></li> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=comments"><span class="glyphicon glyphicon-comment"></span> <?php echo $lang['admin_menu_edit_comments']; ?></a></li> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=notes"><span class="glyphicon glyphicon-edit"></span> <?php echo $lang['admin_menu_edit_notes']; ?></a></li> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=gcb"><span class="glyphicon glyphicon-th-large"></span> <?php echo $lang['admin_menu_edit_gcb']; ?></a></li> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=filemanager"><span class="glyphicon glyphicon-folder-open"></span> <?php echo $lang['admin_menu_filemanager']; ?></a></li> | |||||
| <?php if($user_type==1): ?><li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=spam_protection"><span class="glyphicon glyphicon-ban-circle"></span> <?php echo $lang['admin_menu_spam_protection']; ?></a></li><?php endif; ?> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=users"><span class="glyphicon glyphicon-user"></span> <?php if($user_type==1) echo $lang['admin_menu_user_administr']; else echo $lang['admin_menu_edit_userdata']; ?></a></li> | |||||
| <?php if ($user_type == 1): ?> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=settings"><span | |||||
| class="glyphicon glyphicon-wrench"></span> <?php echo $lang['admin_menu_settings']; ?></a> | |||||
| </li><?php endif; ?> | |||||
| <?php if ($user_type == 1): ?> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=menus"><span | |||||
| class="glyphicon glyphicon-list-alt"></span> <?php echo $lang['admin_menu_edit_menus']; ?></a> | |||||
| </li><?php endif; ?> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=galleries"><span | |||||
| class="glyphicon glyphicon-picture"></span> <?php echo $lang['admin_menu_edit_galleries']; ?></a></li> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=comments"><span | |||||
| class="glyphicon glyphicon-comment"></span> <?php echo $lang['admin_menu_edit_comments']; ?></a></li> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=notes"><span | |||||
| class="glyphicon glyphicon-edit"></span> <?php echo $lang['admin_menu_edit_notes']; ?></a></li> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=gcb"><span | |||||
| class="glyphicon glyphicon-th-large"></span> <?php echo $lang['admin_menu_edit_gcb']; ?></a></li> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=filemanager"><span | |||||
| class="glyphicon glyphicon-folder-open"></span> <?php echo $lang['admin_menu_filemanager']; ?></a></li> | |||||
| <?php if ($user_type == 1): ?> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=spam_protection"><span | |||||
| class="glyphicon glyphicon-ban-circle"></span> <?php echo $lang['admin_menu_spam_protection']; ?></a> | |||||
| </li><?php endif; ?> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=users"><span | |||||
| class="glyphicon glyphicon-user"></span> <?php if ($user_type == 1) echo $lang['admin_menu_user_administr']; else echo $lang['admin_menu_edit_userdata']; ?> | |||||
| </a></li> | |||||
| </ul> | </ul> | ||||
| <?php if($settings['caching']): ?> | |||||
| <ul class="list-unstyled"> | |||||
| <li><a href="index.php?clear_cache=true"><span class="glyphicon glyphicon-remove"></span> <?php echo $lang['admin_menu_clear_cache']; ?></a></li> | |||||
| </ul> | |||||
| <?php if ($settings['caching']): ?> | |||||
| <ul class="list-unstyled"> | |||||
| <li><a href="index.php?clear_cache=true"><span | |||||
| class="glyphicon glyphicon-remove"></span> <?php echo $lang['admin_menu_clear_cache']; ?></a></li> | |||||
| </ul> | |||||
| <?php endif; ?> | <?php endif; ?> | ||||
| @ -1,48 +1,84 @@ | |||||
| <div class="navbar navbar-default navbar-fixed-top"> | <div class="navbar navbar-default navbar-fixed-top"> | ||||
| <div class="container"> | |||||
| <div class="container"> | |||||
| <div class="navbar-header"> | <div class="navbar-header"> | ||||
| <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> | |||||
| <span class="icon-bar"></span> | |||||
| <span class="icon-bar"></span> | |||||
| <span class="icon-bar"></span> | |||||
| </button> | |||||
| <a class="navbar-brand" href="<?php echo BASE_URL; ?>"><?php echo $settings['website_title']; ?></a> | |||||
| <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> | |||||
| <span class="icon-bar"></span> | |||||
| <span class="icon-bar"></span> | |||||
| <span class="icon-bar"></span> | |||||
| </button> | |||||
| <a class="navbar-brand" href="<?php echo BASE_URL; ?>"><?php echo $settings['website_title']; ?></a> | |||||
| </div> | </div> | ||||
| <div class="navbar-collapse collapse"> | <div class="navbar-collapse collapse"> | ||||
| <?php if($admin): ?> | |||||
| <ul class="nav navbar-nav"> | |||||
| <li class="dropdown"> | |||||
| <a href="<?php echo BASE_URL; ?>cms/" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-cog"></span> <?php echo $lang['admin_menu_admin']; ?> <b class="caret"></b></a> | |||||
| <ul class="dropdown-menu"> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=pages"><span class="glyphicon glyphicon-file"></span> <?php echo $lang['admin_menu_page_overview']; ?></a></li> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=edit"><span class="glyphicon glyphicon-plus-sign"></span> <?php echo $lang['admin_menu_new_page']; ?></a></li> | |||||
| <li class="divider"></li> | |||||
| <?php if($user_type==1): ?><li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=settings"><span class="glyphicon glyphicon-wrench"></span> <?php echo $lang['admin_menu_settings']; ?></a></li><?php endif; ?> | |||||
| <?php if($user_type==1): ?><li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=menus"><span class="glyphicon glyphicon-list-alt"></span> <?php echo $lang['admin_menu_edit_menus']; ?></a></li><?php endif; ?> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=galleries"><span class="glyphicon glyphicon-picture"></span> <?php echo $lang['admin_menu_edit_galleries']; ?></a></li> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=comments"><span class="glyphicon glyphicon-comment"></span> <?php echo $lang['admin_menu_edit_comments']; ?></a></li> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=notes"><span class="glyphicon glyphicon-edit"></span> <?php echo $lang['admin_menu_edit_notes']; ?></a></li> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=gcb"><span class="glyphicon glyphicon-th-large"></span> <?php echo $lang['admin_menu_edit_gcb']; ?></a></li> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=filemanager"><span class="glyphicon glyphicon-folder-open"></span> <?php echo $lang['admin_menu_filemanager']; ?></a></li> | |||||
| <?php if($user_type==1): ?><li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=spam_protection"><span class="glyphicon glyphicon-ban-circle"></span> <?php echo $lang['admin_menu_spam_protection']; ?></a></li><?php endif; ?> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=users"><span class="glyphicon glyphicon-user"></span> <?php if($user_type==1) echo $lang['admin_menu_user_administr']; else echo $lang['admin_menu_edit_userdata']; ?></a></li> | |||||
| <?php if($settings['caching']): ?> | |||||
| <li class="divider"></li> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?clear_cache=true"><span class="glyphicon glyphicon-remove"></span> <?php echo $lang['admin_menu_clear_cache']; ?></a></li> | |||||
| <?php endif; ?> | |||||
| </ul> | |||||
| </li> | |||||
| </ul> | |||||
| <?php endif; ?> | |||||
| <?php if($admin): ?> | |||||
| <ul class="nav navbar-nav navbar-right"> | |||||
| <?php if(defined('PAGE') && $authorized_to_edit): ?> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=edit&id=<?php echo $id; ?>"><span class="glyphicon glyphicon-pencil"></span> <?php echo $lang['admin_menu_edit_page']; ?></a></li> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=pages&delete_page=<?php echo $id; ?>" onclick="return confirm_link('<?php echo rawurlencode($lang['admin_menu_delete_page_conf']); ?>',this)"><span class="glyphicon glyphicon-remove"></span> <?php echo $lang['admin_menu_delete_page']; ?></a></li> | |||||
| <?php endif; ?> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=logout"><span class="glyphicon glyphicon-off"></span> <?php echo $lang['admin_menu_logout']; ?></a></li> | |||||
| </ul> | |||||
| <?php endif; ?> | |||||
| <?php if ($admin): ?> | |||||
| <ul class="nav navbar-nav"> | |||||
| <li class="dropdown"> | |||||
| <a href="<?php echo BASE_URL; ?>cms/" class="dropdown-toggle" data-toggle="dropdown"><span | |||||
| class="glyphicon glyphicon-cog"></span> <?php echo $lang['admin_menu_admin']; ?> <b | |||||
| class="caret"></b></a> | |||||
| <ul class="dropdown-menu"> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=pages"><span | |||||
| class="glyphicon glyphicon-file"></span> <?php echo $lang['admin_menu_page_overview']; ?> | |||||
| </a></li> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=edit"><span | |||||
| class="glyphicon glyphicon-plus-sign"></span> <?php echo $lang['admin_menu_new_page']; ?> | |||||
| </a></li> | |||||
| <li class="divider"></li> | |||||
| <?php if ($user_type == 1): ?> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=settings"><span | |||||
| class="glyphicon glyphicon-wrench"></span> <?php echo $lang['admin_menu_settings']; ?> | |||||
| </a></li><?php endif; ?> | |||||
| <?php if ($user_type == 1): ?> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=menus"><span | |||||
| class="glyphicon glyphicon-list-alt"></span> <?php echo $lang['admin_menu_edit_menus']; ?> | |||||
| </a></li><?php endif; ?> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=galleries"><span | |||||
| class="glyphicon glyphicon-picture"></span> <?php echo $lang['admin_menu_edit_galleries']; ?> | |||||
| </a></li> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=comments"><span | |||||
| class="glyphicon glyphicon-comment"></span> <?php echo $lang['admin_menu_edit_comments']; ?> | |||||
| </a></li> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=notes"><span | |||||
| class="glyphicon glyphicon-edit"></span> <?php echo $lang['admin_menu_edit_notes']; ?> | |||||
| </a></li> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=gcb"><span | |||||
| class="glyphicon glyphicon-th-large"></span> <?php echo $lang['admin_menu_edit_gcb']; ?> | |||||
| </a></li> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=filemanager"><span | |||||
| class="glyphicon glyphicon-folder-open"></span> <?php echo $lang['admin_menu_filemanager']; ?> | |||||
| </a></li> | |||||
| <?php if ($user_type == 1): ?> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=spam_protection"><span | |||||
| class="glyphicon glyphicon-ban-circle"></span> <?php echo $lang['admin_menu_spam_protection']; ?> | |||||
| </a></li><?php endif; ?> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=users"><span | |||||
| class="glyphicon glyphicon-user"></span> <?php if ($user_type == 1) echo $lang['admin_menu_user_administr']; else echo $lang['admin_menu_edit_userdata']; ?> | |||||
| </a></li> | |||||
| <?php if ($settings['caching']): ?> | |||||
| <li class="divider"></li> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?clear_cache=true"><span | |||||
| class="glyphicon glyphicon-remove"></span> <?php echo $lang['admin_menu_clear_cache']; ?> | |||||
| </a></li> | |||||
| <?php endif; ?> | |||||
| </ul> | |||||
| </li> | |||||
| </ul> | |||||
| <?php endif; ?> | |||||
| <?php if ($admin): ?> | |||||
| <ul class="nav navbar-nav navbar-right"> | |||||
| <?php if (defined('PAGE') && $authorized_to_edit): ?> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=edit&id=<?php echo $id; ?>"><span | |||||
| class="glyphicon glyphicon-pencil"></span> <?php echo $lang['admin_menu_edit_page']; ?> | |||||
| </a></li> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=pages&delete_page=<?php echo $id; ?>" | |||||
| onclick="return confirm_link('<?php echo rawurlencode($lang['admin_menu_delete_page_conf']); ?>',this)"><span | |||||
| class="glyphicon glyphicon-remove"></span> <?php echo $lang['admin_menu_delete_page']; ?> | |||||
| </a></li> | |||||
| <?php endif; ?> | |||||
| <li><a href="<?php echo BASE_URL; ?>cms/index.php?mode=logout"><span | |||||
| class="glyphicon glyphicon-off"></span> <?php echo $lang['admin_menu_logout']; ?></a> | |||||
| </li> | |||||
| </ul> | |||||
| <?php endif; ?> | |||||
| </div> | </div> | ||||
| </div> | |||||
| </div> | </div> | ||||
| </div> | |||||
| @ -1,20 +1,21 @@ | |||||
| <ol class="breadcrumb"> | <ol class="breadcrumb"> | ||||
| <li><a href="index.php?mode=comments"><?php echo $lang['comments']; ?></a></li> | |||||
| <li class="active"><?php echo $lang['delete_comments']; ?></li> | |||||
| <li><a href="index.php?mode=comments"><?php echo $lang['comments']; ?></a></li> | |||||
| <li class="active"><?php echo $lang['delete_comments']; ?></li> | |||||
| </ol> | </ol> | ||||
| <h1><?php echo $lang['delete_comments']; ?></h1> | <h1><?php echo $lang['delete_comments']; ?></h1> | ||||
| <?php if($type==0): ?> | |||||
| <p><?php echo $lang['delete_all_page_comments']; ?></p> | |||||
| <?php if ($type == 0): ?> | |||||
| <p><?php echo $lang['delete_all_page_comments']; ?></p> | |||||
| <?php else: ?> | <?php else: ?> | ||||
| <p><?php echo $lang['delete_all_photo_comments']; ?></p> | |||||
| <p><?php echo $lang['delete_all_photo_comments']; ?></p> | |||||
| <?php endif ?> | <?php endif ?> | ||||
| <form action="index.php" method="post"> | <form action="index.php" method="post"> | ||||
| <div> | |||||
| <input type="hidden" name="mode" value="comments" /> | |||||
| <input type="hidden" name="type" value="<?php echo $type; ?>" /> | |||||
| <input class="btn btn-danger btn-lg" type="submit" name="delete_all_comments_confirmed" value="<?php echo $lang['delete_all_comments_subm']; ?>" /> | |||||
| </div> | |||||
| <div> | |||||
| <input type="hidden" name="mode" value="comments"/> | |||||
| <input type="hidden" name="type" value="<?php echo $type; ?>"/> | |||||
| <input class="btn btn-danger btn-lg" type="submit" name="delete_all_comments_confirmed" | |||||
| value="<?php echo $lang['delete_all_comments_subm']; ?>"/> | |||||
| </div> | |||||
| </form> | </form> | ||||
| @ -1,36 +1,38 @@ | |||||
| <ol class="breadcrumb"> | <ol class="breadcrumb"> | ||||
| <li><a href="index.php?mode=comments"><?php echo $lang['comments']; ?></a></li> | |||||
| <li class="active"><?php echo $lang['edit_comment']; ?></li> | |||||
| <li><a href="index.php?mode=comments"><?php echo $lang['comments']; ?></a></li> | |||||
| <li class="active"><?php echo $lang['edit_comment']; ?></li> | |||||
| </ol> | </ol> | ||||
| <h1><?php echo $lang['edit_comment']; ?></h1> | <h1><?php echo $lang['edit_comment']; ?></h1> | ||||
| <form method="post" action="index.php"> | <form method="post" action="index.php"> | ||||
| <div> | |||||
| <input type="hidden" name="mode" value="comments" /> | |||||
| <input type="hidden" name="type" value="<?php echo $type; ?>" /> | |||||
| <input type="hidden" name="id" value="<?php echo $comment['id']; ?>" /> | |||||
| <input type="hidden" name="comment_id" value="<?php echo $comment_id; ?>" /> | |||||
| <input type="hidden" name="page" value="<?php echo $page; ?>" /> | |||||
| <input type="hidden" name="edit_submit" value="true" /> | |||||
| <div class="form-group"> | |||||
| <textarea class="form-control" name="comment" cols="60" rows="10"><?php echo $comment['comment']; ?></textarea> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="name"><?php echo $lang['comments_name_m']; ?></label> | |||||
| <input id="name" class="form-control" type="text" name="name" value="<?php echo $comment['name']; ?>" /> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="email_hp"><?php echo $lang['comments_email_hp_m']; ?></label> | |||||
| <input id="email_hp" class="form-control" type="text" name="email_hp" value="<?php echo $comment['email_hp']; ?>" /> | |||||
| </div> | |||||
| <button type="submit" class="btn btn-primary"><?php echo $lang['submit_button_ok']; ?></button> | |||||
| </div> | |||||
| <div> | |||||
| <input type="hidden" name="mode" value="comments"/> | |||||
| <input type="hidden" name="type" value="<?php echo $type; ?>"/> | |||||
| <input type="hidden" name="id" value="<?php echo $comment['id']; ?>"/> | |||||
| <input type="hidden" name="comment_id" value="<?php echo $comment_id; ?>"/> | |||||
| <input type="hidden" name="page" value="<?php echo $page; ?>"/> | |||||
| <input type="hidden" name="edit_submit" value="true"/> | |||||
| <div class="form-group"> | |||||
| <textarea class="form-control" name="comment" cols="60" | |||||
| rows="10"><?php echo $comment['comment']; ?></textarea> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="name"><?php echo $lang['comments_name_m']; ?></label> | |||||
| <input id="name" class="form-control" type="text" name="name" value="<?php echo $comment['name']; ?>"/> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="email_hp"><?php echo $lang['comments_email_hp_m']; ?></label> | |||||
| <input id="email_hp" class="form-control" type="text" name="email_hp" | |||||
| value="<?php echo $comment['email_hp']; ?>"/> | |||||
| </div> | |||||
| <button type="submit" class="btn btn-primary"><?php echo $lang['submit_button_ok']; ?></button> | |||||
| </div> | |||||
| </form> | </form> | ||||
| @ -1,16 +1,16 @@ | |||||
| <h1><?php echo $lang['delete_page_headline']; ?></h1> | <h1><?php echo $lang['delete_page_headline']; ?></h1> | ||||
| <div class="alert alert-danger"> | <div class="alert alert-danger"> | ||||
| <p><span class="glyphicon glyphicon-warning-sign"></span> <strong><?php echo $lang['caution']; ?></strong></p> | |||||
| <p><span class="glyphicon glyphicon-warning-sign"></span> <strong><?php echo $lang['caution']; ?></strong></p> | |||||
| </div> | </div> | ||||
| <p><?php echo str_replace('[page]',stripslashes($page['page']),$lang['delete_page_confirm']); ?></p> | |||||
| <p><?php echo str_replace('[page]', stripslashes($page['page']), $lang['delete_page_confirm']); ?></p> | |||||
| <form action="index.php" method="post"> | <form action="index.php" method="post"> | ||||
| <div> | |||||
| <input type="hidden" name="mode" value="pages" /> | |||||
| <input type="hidden" name="delete_page" value="<?php echo $page['id']; ?>" /> | |||||
| <input type="hidden" name="confirmed" value="true" /> | |||||
| <button class="btn btn-danger btn-lg"><?php echo $lang['delete_page_submit']; ?></button> | |||||
| </div> | |||||
| <div> | |||||
| <input type="hidden" name="mode" value="pages"/> | |||||
| <input type="hidden" name="delete_page" value="<?php echo $page['id']; ?>"/> | |||||
| <input type="hidden" name="confirmed" value="true"/> | |||||
| <button class="btn btn-danger btn-lg"><?php echo $lang['delete_page_submit']; ?></button> | |||||
| </div> | |||||
| </form> | </form> | ||||
| @ -1,11 +1,12 @@ | |||||
| <?php if(isset($errors)): ?> | |||||
| <div class="alert alert-danger"> | |||||
| <button type="button" class="close" data-dismiss="alert">×</button> | |||||
| <h3><span class="glyphicon glyphicon-warning-sign"></span> <strong><?php echo $lang['error_headline']; ?></strong></h3> | |||||
| <ul> | |||||
| <?php foreach($errors as $error): ?> | |||||
| <li><?php if(isset($lang[$error])) echo $lang[$error]; else echo $error; ?></li> | |||||
| <?php endforeach; ?> | |||||
| </ul> | |||||
| </div> | |||||
| <?php if (isset($errors)): ?> | |||||
| <div class="alert alert-danger"> | |||||
| <button type="button" class="close" data-dismiss="alert">×</button> | |||||
| <h3><span class="glyphicon glyphicon-warning-sign"></span> | |||||
| <strong><?php echo $lang['error_headline']; ?></strong></h3> | |||||
| <ul> | |||||
| <?php foreach ($errors as $error): ?> | |||||
| <li><?php if (isset($lang[$error])) echo $lang[$error]; else echo $error; ?></li> | |||||
| <?php endforeach; ?> | |||||
| </ul> | |||||
| </div> | |||||
| <?php endif; ?> | <?php endif; ?> | ||||
| @ -1,55 +1,71 @@ | |||||
| <div class="row"> | <div class="row"> | ||||
| <div class="col-md-10"> | |||||
| <h1><?php echo $lang['filemanager']; ?></h1> | |||||
| </div> | |||||
| <div class="col-md-2"> | |||||
| <a class="btn btn-success btn-top pull-right" href="index.php?mode=filemanager&action=upload&directory=<?php echo $directory; ?>"><span class="glyphicon glyphicon-upload"></span> <?php echo $lang['upload_file_link']; ?></a> | |||||
| </div> | |||||
| <div class="col-md-10"> | |||||
| <h1><?php echo $lang['filemanager']; ?></h1> | |||||
| </div> | |||||
| <div class="col-md-2"> | |||||
| <a class="btn btn-success btn-top pull-right" | |||||
| href="index.php?mode=filemanager&action=upload&directory=<?php echo $directory; ?>"><span | |||||
| class="glyphicon glyphicon-upload"></span> <?php echo $lang['upload_file_link']; ?></a> | |||||
| </div> | |||||
| </div> | </div> | ||||
| <h1></h1> | <h1></h1> | ||||
| <form class="form-inline" action="<?php echo basename($_SERVER['PHP_SELF']); ?>" method="get"> | <form class="form-inline" action="<?php echo basename($_SERVER['PHP_SELF']); ?>" method="get"> | ||||
| <div class="form-group"> | |||||
| <input type="hidden" name="mode" value="filemanager" /> | |||||
| <label for="directory"><?php echo $lang['directory']; ?></label> <select id="directory" class="form-control" size="1" name="directory" onchange="this.form.submit();"> | |||||
| <option value="<?php echo $file_dir ?>"<?php if($directory==$file_dir): ?> selected="selected"<?php endif; ?>><?php echo $file_dir ?></option> | |||||
| <option value="<?php echo $media_dir ?>"<?php if($directory==$media_dir): ?> selected="selected"<?php endif; ?>><?php echo $media_dir ?></option> | |||||
| </select> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <input type="hidden" name="mode" value="filemanager"/> | |||||
| <label for="directory"><?php echo $lang['directory']; ?></label> <select id="directory" class="form-control" | |||||
| size="1" name="directory" | |||||
| onchange="this.form.submit();"> | |||||
| <option | |||||
| value="<?php echo $file_dir ?>"<?php if ($directory == $file_dir): ?> selected="selected"<?php endif; ?>><?php echo $file_dir ?></option> | |||||
| <option | |||||
| value="<?php echo $media_dir ?>"<?php if ($directory == $media_dir): ?> selected="selected"<?php endif; ?>><?php echo $media_dir ?></option> | |||||
| </select> | |||||
| </div> | |||||
| </form> | </form> | ||||
| <?php if(isset($files)): ?> | |||||
| <?php if (isset($files)): ?> | |||||
| <div class="table-responsive"> | <div class="table-responsive"> | ||||
| <table class="table table-striped table-hover"> | |||||
| <thead> | |||||
| <tr> | |||||
| <th><?php echo $lang['file']; ?></th> | |||||
| <?php if(isset($mime_content_type)): ?><th><?php echo $lang['file_type']; ?></th><?php endif; ?> | |||||
| <th><?php echo $lang['file_size']; ?></th> | |||||
| <th><?php echo $lang['file_date']; ?></th> | |||||
| <th> </th> | |||||
| </tr> | |||||
| </thead> | |||||
| <tbody> | |||||
| <?php $i=0; foreach($files as $file): ?> | |||||
| <tr> | |||||
| <td><a href="<?php echo BASE_URL . 'static/' . $directory . '/' .$file['filename']; ?>"><?php echo $file['filename']; ?></a></td> | |||||
| <?php if(isset($mime_content_type)): ?><td><?php echo $file['mime_content_type']; ?></td><?php endif; ?> | |||||
| <td><?php echo $file['size']; ?></td> | |||||
| <td><?php echo $file['last_modified']; ?></td> | |||||
| <td class="options"><a class="btn btn-danger btn-xs" href="index.php?mode=filemanager&directory=<?php echo $directory; ?>&delete=<?php echo $file['filename']; ?>" title="<?php echo $lang['delete']; ?>" data-delete-confirm="<?php echo rawurlencode($lang['delete_file_confirm']); ?>"><span class="glyphicon glyphicon-remove"></span></a></td> | |||||
| </tr> | |||||
| <?php ++$i; endforeach ?> | |||||
| </tbody> | |||||
| </table> | |||||
| <?php else: ?> | |||||
| <p><i><?php echo $lang['no_files']; ?></i></p> | |||||
| <?php endif; ?> | |||||
| <table class="table table-striped table-hover"> | |||||
| <thead> | |||||
| <tr> | |||||
| <th><?php echo $lang['file']; ?></th> | |||||
| <?php if (isset($mime_content_type)): ?> | |||||
| <th><?php echo $lang['file_type']; ?></th><?php endif; ?> | |||||
| <th><?php echo $lang['file_size']; ?></th> | |||||
| <th><?php echo $lang['file_date']; ?></th> | |||||
| <th> </th> | |||||
| </tr> | |||||
| </thead> | |||||
| <tbody> | |||||
| <?php $i = 0; | |||||
| foreach ($files as $file): ?> | |||||
| <tr> | |||||
| <td> | |||||
| <a href="<?php echo BASE_URL . 'static/' . $directory . '/' . $file['filename']; ?>"><?php echo $file['filename']; ?></a> | |||||
| </td> | |||||
| <?php if (isset($mime_content_type)): ?> | |||||
| <td><?php echo $file['mime_content_type']; ?></td><?php endif; ?> | |||||
| <td><?php echo $file['size']; ?></td> | |||||
| <td><?php echo $file['last_modified']; ?></td> | |||||
| <td class="options"><a class="btn btn-danger btn-xs" | |||||
| href="index.php?mode=filemanager&directory=<?php echo $directory; ?>&delete=<?php echo $file['filename']; ?>" | |||||
| title="<?php echo $lang['delete']; ?>" | |||||
| data-delete-confirm="<?php echo rawurlencode($lang['delete_file_confirm']); ?>"><span | |||||
| class="glyphicon glyphicon-remove"></span></a></td> | |||||
| </tr> | |||||
| <?php ++$i; endforeach ?> | |||||
| </tbody> | |||||
| </table> | |||||
| <?php else: ?> | |||||
| <p><i><?php echo $lang['no_files']; ?></i></p> | |||||
| <?php | |||||
| endif; ?> | |||||
| @ -1,13 +1,15 @@ | |||||
| <h1><a href="index.php"><?php echo $lang['administration']; ?></a> » <a href="index.php?mode=filemanager"><?php echo $lang['filemanager']; ?></a> » <?php echo $lang['delete_file']; ?></h1> | |||||
| <p><?php echo str_replace('[file]',$file,$lang['delete_file_confirm']); ?></p> | |||||
| <h1><a href="index.php"><?php echo $lang['administration']; ?></a> » <a | |||||
| href="index.php?mode=filemanager"><?php echo $lang['filemanager']; ?></a> » <?php echo $lang['delete_file']; ?> | |||||
| </h1> | |||||
| <p><?php echo str_replace('[file]', $file, $lang['delete_file_confirm']); ?></p> | |||||
| <form action="index.php" method="post"> | <form action="index.php" method="post"> | ||||
| <div> | |||||
| <input type="hidden" name="mode" value="filemanager" /> | |||||
| <input type="hidden" name="delete" value="<?php echo $file ?>" /> | |||||
| <input type="hidden" name="dir" value="<?php echo $directory; ?>" /> | |||||
| <input type="submit" name="confirmed" value="<?php echo $lang['delete_file_submit']; ?>"> | |||||
| </div> | |||||
| <div> | |||||
| <input type="hidden" name="mode" value="filemanager"/> | |||||
| <input type="hidden" name="delete" value="<?php echo $file ?>"/> | |||||
| <input type="hidden" name="dir" value="<?php echo $directory; ?>"/> | |||||
| <input type="submit" name="confirmed" value="<?php echo $lang['delete_file_submit']; ?>"> | |||||
| </div> | |||||
| </form> | </form> | ||||
| @ -1,85 +1,111 @@ | |||||
| <ol class="breadcrumb"> | <ol class="breadcrumb"> | ||||
| <li><a href="index.php?mode=filemanager"><?php echo $lang['filemanager']; ?></a></li> | |||||
| <li class="active"><?php echo $lang['upload_file']; ?></li> | |||||
| <li><a href="index.php?mode=filemanager"><?php echo $lang['filemanager']; ?></a></li> | |||||
| <li class="active"><?php echo $lang['upload_file']; ?></li> | |||||
| </ol> | </ol> | ||||
| <h1><?php echo $lang['upload_file']; ?></h1> | <h1><?php echo $lang['upload_file']; ?></h1> | ||||
| <?php include('errors.inc.tpl'); ?> | <?php include('errors.inc.tpl'); ?> | ||||
| <form action="<?php echo basename($_SERVER['PHP_SELF']); ?>" method="post" enctype="multipart/form-data"> | <form action="<?php echo basename($_SERVER['PHP_SELF']); ?>" method="post" enctype="multipart/form-data"> | ||||
| <div> | |||||
| <input type="hidden" name="mode" value="filemanager" /> | |||||
| <input type="hidden" name="upload_file_submit" value="true"> | |||||
| <div> | |||||
| <input type="hidden" name="mode" value="filemanager"/> | |||||
| <input type="hidden" name="upload_file_submit" value="true"> | |||||
| <fieldset> | |||||
| <legend><?php echo $lang['file_legend']; ?></legend> | |||||
| <fieldset> | |||||
| <legend><?php echo $lang['file_legend']; ?></legend> | |||||
| <div class="form-group"> | |||||
| <label for="file" class="sr-only"><?php echo $lang['upload_file_label']; ?></label> | |||||
| <input id="file" type="file" name="file"> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="file" class="sr-only"><?php echo $lang['upload_file_label']; ?></label> | |||||
| <input id="file" type="file" name="file"> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="directory"><?php echo $lang['upload_directory_label']; ?></label> | |||||
| <select id="directory" class="form-control form-control-default" name="directory" size="1"> | |||||
| <option value="<?php echo $media_dir ?>"<?php if($directory==$media_dir) { ?> selected="selected"<?php } ?>><?php echo $media_dir ?></option> | |||||
| <option value="<?php echo $file_dir ?>"<?php if($directory==$file_dir) { ?> selected="selected"<?php } ?>><?php echo $file_dir ?></option> | |||||
| </select> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="directory"><?php echo $lang['upload_directory_label']; ?></label> | |||||
| <select id="directory" class="form-control form-control-default" name="directory" size="1"> | |||||
| <option | |||||
| value="<?php echo $media_dir ?>"<?php if ($directory == $media_dir) { ?> selected="selected"<?php } ?>><?php echo $media_dir ?></option> | |||||
| <option | |||||
| value="<?php echo $file_dir ?>"<?php if ($directory == $file_dir) { ?> selected="selected"<?php } ?>><?php echo $file_dir ?></option> | |||||
| </select> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="file_name"><?php echo $lang['filename_on_server']; ?></label> | |||||
| <input id="file_name" class="form-control form-control-default" type="text" name="file_name" value="<?php if(isset($file_name)) echo htmlspecialchars(stripslashes($file_name)); ?>" placeholder="<?php echo $lang['filename_server_same']; ?>"> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="file_name"><?php echo $lang['filename_on_server']; ?></label> | |||||
| <input id="file_name" class="form-control form-control-default" type="text" name="file_name" | |||||
| value="<?php if (isset($file_name)) echo htmlspecialchars(stripslashes($file_name)); ?>" | |||||
| placeholder="<?php echo $lang['filename_server_same']; ?>"> | |||||
| </div> | |||||
| <div class="checkbox"> | |||||
| <label> | |||||
| <input id="overwrite_file" type="checkbox" name="overwrite_file" value="true"> <?php echo $lang['overwrite_file']; ?> | |||||
| </label> | |||||
| </div> | |||||
| <div class="checkbox"> | |||||
| <label> | |||||
| <input id="overwrite_file" type="checkbox" name="overwrite_file" | |||||
| value="true"> <?php echo $lang['overwrite_file']; ?> | |||||
| </label> | |||||
| </div> | |||||
| </fieldset> | |||||
| </fieldset> | |||||
| <fieldset> | |||||
| <legend><?php echo $lang['image_options']; ?></legend> | |||||
| <fieldset> | |||||
| <legend><?php echo $lang['image_options']; ?></legend> | |||||
| <div class="form-group"> | |||||
| <div class="radio"> | |||||
| <label> | |||||
| <input id="upload_mode_1" type="radio" name="upload_mode" value="1"<?php if(isset($upload_mode) && $upload_mode==1 || empty($upload_mode)) { ?> checked="checked"<?php } ?>> | |||||
| <?php echo $lang['dont_manipulate_image']; ?> | |||||
| </label> | |||||
| </div> | |||||
| <div class="radio"> | |||||
| <label> | |||||
| <input id="upload_mode_2" type="radio" name="upload_mode" value="2"<?php if(isset($upload_mode) && $upload_mode==2) { ?> checked="checked"<?php } ?>> | |||||
| <?php echo $lang['manipulate_image']; ?> | |||||
| </label><br /> | |||||
| <input id="resize" class="form-control form-control-small form-control-inline" type="text" name="resize" value="<?php if(isset($resize)) echo intval($resize); else echo $settings['resize']; ?>" size="3" /> px | |||||
| <select class="form-control form-control-small form-control-inline" name="resize_xy" size="1"> | |||||
| <option value="x"<?php if((isset($resize_xy) && $resize_xy=='x') || (empty($resize_xy) && $settings['resize_xy']=='x')) { ?> selected="selected"<?php } ?>><?php echo $lang['resize_width']; ?></option> | |||||
| <option value="y"<?php if((isset($resize_xy) && $resize_xy=='y') || (empty($resize_xy) && $settings['resize_xy']=='y')) { ?> selected="selected"<?php } ?>><?php echo $lang['resize_height']; ?></option> | |||||
| </select>, | |||||
| <input id="compression" class="form-control form-control-small form-control-inline" type="text" name="compression" value="<?php if(isset($compression)) echo intval($compression); else echo $settings['compression']; ?>" size="3" /> % <?php echo $lang['compression']; ?> <?php echo $lang['compression_jpg_only']; ?> | |||||
| </div> | |||||
| </div> | |||||
| <div class="checkbox"> | |||||
| <label> | |||||
| <input id="create_thumbnail" type="checkbox" name="create_thumbnail" value="1"<?php if(isset($create_thumbnail) && $create_thumbnail==1) { ?> checked="checked"<?php } ?>> <?php echo $lang['create_thumbnail']; ?> | |||||
| </label><br /> | |||||
| <input id="thumbnail_resize" class="form-control form-control-small form-control-inline" type="text" name="thumbnail_resize" value="<?php if(isset($thumbnail_resize)) echo intval($thumbnail_resize); else echo $settings['thumbnail_resize']; ?>" size="3" /> px | |||||
| <select class="form-control form-control-small form-control-inline" name="thumbnail_resize_xy" size="1"> | |||||
| <option value="x"<?php if((isset($thumbnail_resize_xy) && $thumbnail_resize_xy=='x') || (empty($thumbnail_resize_xy) && $settings['thumbnail_resize_xy']=='x')) { ?> selected="selected"<?php } ?>><?php echo $lang['resize_width']; ?></option> | |||||
| <option value="y"<?php if((isset($thumbnail_resize_xy) && $thumbnail_resize_xy=='y') || (empty($thumbnail_resize_xy) && $settings['thumbnail_resize_xy']=='y')) { ?> selected="selected"<?php } ?>><?php echo $lang['resize_height']; ?></option> | |||||
| </select>, | |||||
| <input id="thumbnail_compression" class="form-control form-control-small form-control-inline" type="text" name="thumbnail_compression" value="<?php if(isset($thumbnail_compression)) echo intval($thumbnail_compression); else echo $settings['thumbnail_compression']; ?>" size="3" /> % <?php echo $lang['compression']; ?> <?php echo $lang['compression_jpg_only']; ?> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <div class="radio"> | |||||
| <label> | |||||
| <input id="upload_mode_1" type="radio" name="upload_mode" | |||||
| value="1"<?php if (isset($upload_mode) && $upload_mode == 1 || empty($upload_mode)) { ?> checked="checked"<?php } ?>> | |||||
| <?php echo $lang['dont_manipulate_image']; ?> | |||||
| </label> | |||||
| </div> | |||||
| <div class="radio"> | |||||
| <label> | |||||
| <input id="upload_mode_2" type="radio" name="upload_mode" | |||||
| value="2"<?php if (isset($upload_mode) && $upload_mode == 2) { ?> checked="checked"<?php } ?>> | |||||
| <?php echo $lang['manipulate_image']; ?> | |||||
| </label><br/> | |||||
| <input id="resize" class="form-control form-control-small form-control-inline" type="text" | |||||
| name="resize" | |||||
| value="<?php if (isset($resize)) echo intval($resize); else echo $settings['resize']; ?>" | |||||
| size="3"/> px | |||||
| <select class="form-control form-control-small form-control-inline" name="resize_xy" size="1"> | |||||
| <option | |||||
| value="x"<?php if ((isset($resize_xy) && $resize_xy == 'x') || (empty($resize_xy) && $settings['resize_xy'] == 'x')) { ?> selected="selected"<?php } ?>><?php echo $lang['resize_width']; ?></option> | |||||
| <option | |||||
| value="y"<?php if ((isset($resize_xy) && $resize_xy == 'y') || (empty($resize_xy) && $settings['resize_xy'] == 'y')) { ?> selected="selected"<?php } ?>><?php echo $lang['resize_height']; ?></option> | |||||
| </select>, | |||||
| <input id="compression" class="form-control form-control-small form-control-inline" type="text" | |||||
| name="compression" | |||||
| value="<?php if (isset($compression)) echo intval($compression); else echo $settings['compression']; ?>" | |||||
| size="3"/> % <?php echo $lang['compression']; ?> <?php echo $lang['compression_jpg_only']; ?> | |||||
| </div> | |||||
| </div> | |||||
| <div class="checkbox"> | |||||
| <label> | |||||
| <input id="create_thumbnail" type="checkbox" name="create_thumbnail" | |||||
| value="1"<?php if (isset($create_thumbnail) && $create_thumbnail == 1) { ?> checked="checked"<?php } ?>> <?php echo $lang['create_thumbnail']; ?> | |||||
| </label><br/> | |||||
| <input id="thumbnail_resize" class="form-control form-control-small form-control-inline" type="text" | |||||
| name="thumbnail_resize" | |||||
| value="<?php if (isset($thumbnail_resize)) echo intval($thumbnail_resize); else echo $settings['thumbnail_resize']; ?>" | |||||
| size="3"/> px | |||||
| <select class="form-control form-control-small form-control-inline" name="thumbnail_resize_xy" size="1"> | |||||
| <option | |||||
| value="x"<?php if ((isset($thumbnail_resize_xy) && $thumbnail_resize_xy == 'x') || (empty($thumbnail_resize_xy) && $settings['thumbnail_resize_xy'] == 'x')) { ?> selected="selected"<?php } ?>><?php echo $lang['resize_width']; ?></option> | |||||
| <option | |||||
| value="y"<?php if ((isset($thumbnail_resize_xy) && $thumbnail_resize_xy == 'y') || (empty($thumbnail_resize_xy) && $settings['thumbnail_resize_xy'] == 'y')) { ?> selected="selected"<?php } ?>><?php echo $lang['resize_height']; ?></option> | |||||
| </select>, | |||||
| <input id="thumbnail_compression" class="form-control form-control-small form-control-inline" | |||||
| type="text" name="thumbnail_compression" | |||||
| value="<?php if (isset($thumbnail_compression)) echo intval($thumbnail_compression); else echo $settings['thumbnail_compression']; ?>" | |||||
| size="3"/> % <?php echo $lang['compression']; ?> <?php echo $lang['compression_jpg_only']; ?> | |||||
| </div> | |||||
| </fieldset> | |||||
| <div class="form-group"> | |||||
| <br /><button class="btn btn-primary btn-lg" type="submit"><span class="glyphicon glyphicon-upload"></span> <?php echo $lang['upload_file_submit']; ?></button> | |||||
| </div> | |||||
| </div> | |||||
| </fieldset> | |||||
| <div class="form-group"> | |||||
| <br/> | |||||
| <button class="btn btn-primary btn-lg" type="submit"><span | |||||
| class="glyphicon glyphicon-upload"></span> <?php echo $lang['upload_file_submit']; ?></button> | |||||
| </div> | |||||
| </div> | |||||
| </form> | </form> | ||||
| @ -1,37 +1,45 @@ | |||||
| <div class="row"> | <div class="row"> | ||||
| <div class="col-md-10"> | |||||
| <h1><?php echo $lang['photo_galleries']; ?></h1> | |||||
| </div> | |||||
| <div class="col-md-2"> | |||||
| <a class="btn btn-success btn-top pull-right" href="index.php?mode=galleries&action=new"><span class="glyphicon glyphicon-plus"></span> <?php echo $lang['create_new_gallery']; ?></a> | |||||
| </div> | |||||
| <div class="col-md-10"> | |||||
| <h1><?php echo $lang['photo_galleries']; ?></h1> | |||||
| </div> | |||||
| <div class="col-md-2"> | |||||
| <a class="btn btn-success btn-top pull-right" href="index.php?mode=galleries&action=new"><span | |||||
| class="glyphicon glyphicon-plus"></span> <?php echo $lang['create_new_gallery']; ?></a> | |||||
| </div> | |||||
| </div> | </div> | ||||
| <?php if(isset($galleries)): ?> | |||||
| <?php if (isset($galleries)): ?> | |||||
| <div class="table-responsive"> | |||||
| <table class="table table-striped table-hover"> | |||||
| <thead> | |||||
| <tr> | |||||
| <th><?php echo $lang['gallery']; ?></th> | |||||
| <th colspan="2"> </th> | |||||
| </tr> | |||||
| </thead> | |||||
| <tbody> | |||||
| <?php $i=0; foreach($galleries as $gallery): ?> | |||||
| <tr> | |||||
| <td><?php echo htmlspecialchars(stripslashes($gallery)); ?></td> | |||||
| <td class="options"><a href="index.php?mode=galleries&edit=<?php echo $gallery; ?>" title="<?php echo $lang['edit']; ?>" class="btn btn-primary btn-xs"><span class="glyphicon glyphicon-pencil"></span></a> <a href="index.php?mode=galleries&delete_gallery=<?php echo $gallery; ?>" data-delete-confirm="<?php echo rawurlencode($lang['delete_gallery_confirm']); ?>" title="<?php echo $lang['delete']; ?>" class="btn btn-danger btn-xs"><span class="glyphicon glyphicon-remove"></span></a></td> | |||||
| </tr> | |||||
| <?php $i++; endforeach; ?> | |||||
| </tbody> | |||||
| </table> | |||||
| </div> | |||||
| <div class="table-responsive"> | |||||
| <table class="table table-striped table-hover"> | |||||
| <thead> | |||||
| <tr> | |||||
| <th><?php echo $lang['gallery']; ?></th> | |||||
| <th colspan="2"> </th> | |||||
| </tr> | |||||
| </thead> | |||||
| <tbody> | |||||
| <?php $i = 0; | |||||
| foreach ($galleries as $gallery): ?> | |||||
| <tr> | |||||
| <td><?php echo htmlspecialchars(stripslashes($gallery)); ?></td> | |||||
| <td class="options"><a href="index.php?mode=galleries&edit=<?php echo $gallery; ?>" | |||||
| title="<?php echo $lang['edit']; ?>" class="btn btn-primary btn-xs"><span | |||||
| class="glyphicon glyphicon-pencil"></span></a> <a | |||||
| href="index.php?mode=galleries&delete_gallery=<?php echo $gallery; ?>" | |||||
| data-delete-confirm="<?php echo rawurlencode($lang['delete_gallery_confirm']); ?>" | |||||
| title="<?php echo $lang['delete']; ?>" class="btn btn-danger btn-xs"><span | |||||
| class="glyphicon glyphicon-remove"></span></a></td> | |||||
| </tr> | |||||
| <?php $i++; endforeach; ?> | |||||
| </tbody> | |||||
| </table> | |||||
| </div> | |||||
| <?php else: ?> | <?php else: ?> | ||||
| <div class="alert alert-warning"> | |||||
| <?php echo $lang['no_gallery']; ?> | |||||
| </div> | |||||
| <div class="alert alert-warning"> | |||||
| <?php echo $lang['no_gallery']; ?> | |||||
| </div> | |||||
| <?php endif; ?> | <?php endif; ?> | ||||
| @ -1,48 +1,66 @@ | |||||
| <ol class="breadcrumb"> | <ol class="breadcrumb"> | ||||
| <li><a href="index.php?mode=galleries"><?php echo $lang['photo_galleries']; ?></a></li> | |||||
| <li class="active"><?php echo str_replace('[gallery]',$gallery,$lang['edit_gallery']); ?></li> | |||||
| <li><a href="index.php?mode=galleries"><?php echo $lang['photo_galleries']; ?></a></li> | |||||
| <li class="active"><?php echo str_replace('[gallery]', $gallery, $lang['edit_gallery']); ?></li> | |||||
| </ol> | </ol> | ||||
| <div class="row"> | <div class="row"> | ||||
| <div class="col-md-10"> | |||||
| <h1><?php echo str_replace('[gallery]',$gallery,$lang['edit_gallery']); ?></h1> | |||||
| </div> | |||||
| <div class="col-md-2"> | |||||
| <a class="btn btn-success btn-top pull-right" href="index.php?mode=galleries&new_photo=<?php echo $gallery; ?>"><span class="glyphicon glyphicon-plus"></span> <?php echo $lang['add_photo']; ?></a> | |||||
| </div> | |||||
| <div class="col-md-10"> | |||||
| <h1><?php echo str_replace('[gallery]', $gallery, $lang['edit_gallery']); ?></h1> | |||||
| </div> | |||||
| <div class="col-md-2"> | |||||
| <a class="btn btn-success btn-top pull-right" | |||||
| href="index.php?mode=galleries&new_photo=<?php echo $gallery; ?>"><span | |||||
| class="glyphicon glyphicon-plus"></span> <?php echo $lang['add_photo']; ?></a> | |||||
| </div> | |||||
| </div> | </div> | ||||
| <?php if(isset($items)): ?> | |||||
| <?php if (isset($items)): ?> | |||||
| <table class="table table-striped table-hover"> | |||||
| <thead> | |||||
| <tr> | |||||
| <th><?php echo $lang['photo']; ?></th> | |||||
| <th><?php echo $lang['photo_title']; ?></th> | |||||
| <th><?php echo $lang['photo_subtitle']; ?></th> | |||||
| <th><?php echo $lang['photo_description']; ?></th> | |||||
| <th> </th> | |||||
| </tr> | |||||
| </thead> | |||||
| <tbody data-sortable="<?php echo BASE_URL; ?>cms/?mode=galleries&reorder_photos=true"> | |||||
| <?php $i=0; foreach($items as $item): ?> | |||||
| <tr id="item_<?php echo $item['id']; ?>"> | |||||
| <td><a class="thumbnail" href="<?php echo BASE_URL.MEDIA_DIR.$item['photo_normal']; ?>" data-lightbox><img id="photo<?php echo $item['id']; ?>" src="<?php echo BASE_URL.MEDIA_DIR.$item['photo_thumbnail']; ?>" title="<?php echo htmlspecialchars($item['title']); ?>" alt="<?php echo htmlspecialchars($item['title']); ?>" data-subtitle="<?php echo htmlspecialchars($item['subtitle']); ?>" data-description="<?php echo htmlspecialchars($item['description']); ?>" /></a></td> | |||||
| <td><?php echo $item['title']; ?></td> | |||||
| <td><?php echo $item['subtitle']; ?></td> | |||||
| <td><?php echo $item['description']; ?></td> | |||||
| <td class="nowrap"><a href="index.php?mode=galleries&edit_photo=<?php echo $item['id']; ?>" title="<?php echo $lang['edit']; ?>" class="btn btn-primary btn-xs"><span class="glyphicon glyphicon-pencil"></span></a> | |||||
| <a href="index.php?mode=galleries&delete_photo=<?php echo $item['id']; ?>" title="<?php echo $lang['delete']; ?>" data-delete-confirm="<?php echo rawurlencode($lang['delete_photo_confirm']); ?>" class="btn btn-danger btn-xs"><span class="glyphicon glyphicon-remove"></span></a> | |||||
| <span class="btn btn-success btn-xs sortable-handle" title="<?php echo $lang['drag_and_drop']; ?>"><span class="glyphicon glyphicon-sort"></span></span><!--<a href="index.php?mode=galleries&move_up_photo=<?php echo $item['id']; ?>#photo<?php echo $item['id']; ?>"><img src="<?php echo BASE_URL; ?>templates/admin/images/arrow_up.png" alt="<?php echo $lang['move_up']; ?>" title="<?php echo $lang['move_up']; ?>" width="16" height="16" /></a><a href="index.php?mode=galleries&move_down_photo=<?php echo $item['id']; ?>#photo<?php echo $item['id']; ?>"><img src="<?php echo BASE_URL; ?>templates/admin/images/arrow_down.png" alt="<?php echo $lang['move_down']; ?>" title="<?php echo $lang['move_down']; ?>" width="16" height="16" /></a>--></td> | |||||
| </tr> | |||||
| <?php $i++; endforeach ?> | |||||
| </tbody> | |||||
| </table> | |||||
| <table class="table table-striped table-hover"> | |||||
| <thead> | |||||
| <tr> | |||||
| <th><?php echo $lang['photo']; ?></th> | |||||
| <th><?php echo $lang['photo_title']; ?></th> | |||||
| <th><?php echo $lang['photo_subtitle']; ?></th> | |||||
| <th><?php echo $lang['photo_description']; ?></th> | |||||
| <th> </th> | |||||
| </tr> | |||||
| </thead> | |||||
| <tbody data-sortable="<?php echo BASE_URL; ?>cms/?mode=galleries&reorder_photos=true"> | |||||
| <?php $i = 0; | |||||
| foreach ($items as $item): ?> | |||||
| <tr id="item_<?php echo $item['id']; ?>"> | |||||
| <td><a class="thumbnail" href="<?php echo BASE_URL . MEDIA_DIR . $item['photo_normal']; ?>" | |||||
| data-lightbox><img id="photo<?php echo $item['id']; ?>" | |||||
| src="<?php echo BASE_URL . MEDIA_DIR . $item['photo_thumbnail']; ?>" | |||||
| title="<?php echo htmlspecialchars($item['title']); ?>" | |||||
| alt="<?php echo htmlspecialchars($item['title']); ?>" | |||||
| data-subtitle="<?php echo htmlspecialchars($item['subtitle']); ?>" | |||||
| data-description="<?php echo htmlspecialchars($item['description']); ?>"/></a> | |||||
| </td> | |||||
| <td><?php echo $item['title']; ?></td> | |||||
| <td><?php echo $item['subtitle']; ?></td> | |||||
| <td><?php echo $item['description']; ?></td> | |||||
| <td class="nowrap"><a href="index.php?mode=galleries&edit_photo=<?php echo $item['id']; ?>" | |||||
| title="<?php echo $lang['edit']; ?>" class="btn btn-primary btn-xs"><span | |||||
| class="glyphicon glyphicon-pencil"></span></a> | |||||
| <a href="index.php?mode=galleries&delete_photo=<?php echo $item['id']; ?>" | |||||
| title="<?php echo $lang['delete']; ?>" | |||||
| data-delete-confirm="<?php echo rawurlencode($lang['delete_photo_confirm']); ?>" | |||||
| class="btn btn-danger btn-xs"><span class="glyphicon glyphicon-remove"></span></a> | |||||
| <span class="btn btn-success btn-xs sortable-handle" | |||||
| title="<?php echo $lang['drag_and_drop']; ?>"><span | |||||
| class="glyphicon glyphicon-sort"></span></span><!--<a href="index.php?mode=galleries&move_up_photo=<?php echo $item['id']; ?>#photo<?php echo $item['id']; ?>"><img src="<?php echo BASE_URL; ?>templates/admin/images/arrow_up.png" alt="<?php echo $lang['move_up']; ?>" title="<?php echo $lang['move_up']; ?>" width="16" height="16" /></a><a href="index.php?mode=galleries&move_down_photo=<?php echo $item['id']; ?>#photo<?php echo $item['id']; ?>"><img src="<?php echo BASE_URL; ?>templates/admin/images/arrow_down.png" alt="<?php echo $lang['move_down']; ?>" title="<?php echo $lang['move_down']; ?>" width="16" height="16" /></a>--> | |||||
| </td> | |||||
| </tr> | |||||
| <?php $i++; endforeach ?> | |||||
| </tbody> | |||||
| </table> | |||||
| <?php else: ?> | <?php else: ?> | ||||
| <div class="alert alert-warning"> | |||||
| <?php echo $lang['no_photo']; ?> | |||||
| </div> | |||||
| <div class="alert alert-warning"> | |||||
| <?php echo $lang['no_photo']; ?> | |||||
| </div> | |||||
| <?php endif; ?> | <?php endif; ?> | ||||
| @ -1,97 +1,118 @@ | |||||
| <?php if(isset($invalid_photo)): ?> | |||||
| <p class="caution"><?php echo $lang['invalid_photo']; ?></p> | |||||
| <?php if (isset($invalid_photo)): ?> | |||||
| <p class="caution"><?php echo $lang['invalid_photo']; ?></p> | |||||
| <?php else: ?> | <?php else: ?> | ||||
| <ol class="breadcrumb"> | |||||
| <li><a href="index.php?mode=galleries"><?php echo $lang['photo_galleries']; ?></a></li> | |||||
| <li><a href="index.php?mode=galleries&edit=<?php echo $photo_data['gallery']; ?>"><?php echo str_replace('[gallery]',$photo_data['gallery'],$lang['edit_gallery']); ?></a></li> | |||||
| <li class="active"><?php if(isset($photo_data['id'])) echo $lang['edit_photo']; else echo $lang['new_photo']; ?></li> | |||||
| </ol> | |||||
| <h1><?php if(isset($photo_data['id'])) echo $lang['edit_photo']; else echo $lang['new_photo']; ?></h1> | |||||
| <?php include('errors.inc.tpl'); ?> | |||||
| <form class="form-horizontal" role="form" action="index.php" method="post"> | |||||
| <div> | |||||
| <input type="hidden" name="mode" value="galleries"> | |||||
| <input type="hidden" name="description_formatting" value="1"> | |||||
| <?php if(isset($photo_data['id'])): ?> | |||||
| <input type="hidden" name="id" value="<?php echo $photo_data['id']; ?>" /> | |||||
| <?php endif; ?> | |||||
| <?php if(isset($photo_data['gallery'])): ?> | |||||
| <input type="hidden" name="gallery" value="<?php echo $photo_data['gallery']; ?>" /> | |||||
| <?php endif; ?> | |||||
| <div class="form-group"> | |||||
| <label for="photo_thumbnail" class="col-md-2 control-label"><?php echo $lang['edit_photo_thumbnail']; ?></label> | |||||
| <div class="col-md-8"> | |||||
| <div class="input-group"> | |||||
| <input id="photo_thumbnail" class="form-control form-control" type="text" name="photo_thumbnail" value="<?php if(isset($photo_data['photo_thumbnail'])) echo $photo_data['photo_thumbnail']; ?>"> | |||||
| <ol class="breadcrumb"> | |||||
| <li><a href="index.php?mode=galleries"><?php echo $lang['photo_galleries']; ?></a></li> | |||||
| <li> | |||||
| <a href="index.php?mode=galleries&edit=<?php echo $photo_data['gallery']; ?>"><?php echo str_replace('[gallery]', $photo_data['gallery'], $lang['edit_gallery']); ?></a> | |||||
| </li> | |||||
| <li class="active"><?php if (isset($photo_data['id'])) echo $lang['edit_photo']; else echo $lang['new_photo']; ?></li> | |||||
| </ol> | |||||
| <h1><?php if (isset($photo_data['id'])) echo $lang['edit_photo']; else echo $lang['new_photo']; ?></h1> | |||||
| <?php include('errors.inc.tpl'); ?> | |||||
| <form class="form-horizontal" role="form" action="index.php" method="post"> | |||||
| <div> | |||||
| <input type="hidden" name="mode" value="galleries"> | |||||
| <input type="hidden" name="description_formatting" value="1"> | |||||
| <?php if (isset($photo_data['id'])): ?> | |||||
| <input type="hidden" name="id" value="<?php echo $photo_data['id']; ?>"/> | |||||
| <?php endif; ?> | |||||
| <?php if (isset($photo_data['gallery'])): ?> | |||||
| <input type="hidden" name="gallery" value="<?php echo $photo_data['gallery']; ?>"/> | |||||
| <?php endif; ?> | |||||
| <div class="form-group"> | |||||
| <label for="photo_thumbnail" | |||||
| class="col-md-2 control-label"><?php echo $lang['edit_photo_thumbnail']; ?></label> | |||||
| <div class="col-md-8"> | |||||
| <div class="input-group"> | |||||
| <input id="photo_thumbnail" class="form-control form-control" type="text" name="photo_thumbnail" | |||||
| value="<?php if (isset($photo_data['photo_thumbnail'])) echo $photo_data['photo_thumbnail']; ?>"> | |||||
| <span class="input-group-btn"> | <span class="input-group-btn"> | ||||
| <a class="btn btn-default" href="index.php?mode=modal&action=insert_raw_image" data-toggle="modal" data-target="#modal_raw_image" data-insert="#photo_thumbnail" data-keyboard="true" title="<?php echo $lang['select_image']; ?>"><span class="glyphicon glyphicon-search"></a> | |||||
| <a class="btn btn-default" href="index.php?mode=modal&action=insert_raw_image" data-toggle="modal" | |||||
| data-target="#modal_raw_image" data-insert="#photo_thumbnail" data-keyboard="true" | |||||
| title="<?php echo $lang['select_image']; ?>"><span class="glyphicon glyphicon-search"></a> | |||||
| </span> | </span> | ||||
| </div> | |||||
| </div> | |||||
| </div> | |||||
| </div> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="photo_normal" class="col-md-2 control-label"><?php echo $lang['edit_photo_normal']; ?></label> | |||||
| <div class="col-md-8"> | |||||
| <div class="input-group"> | |||||
| <input id="photo_normal" class="form-control" type="text" name="photo_normal" value="<?php if(isset($photo_data['photo_normal'])) echo $photo_data['photo_normal']; ?>"> | |||||
| <div class="form-group"> | |||||
| <label for="photo_normal" | |||||
| class="col-md-2 control-label"><?php echo $lang['edit_photo_normal']; ?></label> | |||||
| <div class="col-md-8"> | |||||
| <div class="input-group"> | |||||
| <input id="photo_normal" class="form-control" type="text" name="photo_normal" | |||||
| value="<?php if (isset($photo_data['photo_normal'])) echo $photo_data['photo_normal']; ?>"> | |||||
| <span class="input-group-btn"> | <span class="input-group-btn"> | ||||
| <a class="btn btn-default modal-invoker" href="index.php?mode=modal&action=insert_raw_image" data-toggle="modal" data-target="#modal_raw_image" data-insert="#photo_normal" data-keyboard="true" title="<?php echo $lang['select_image']; ?>"><span class="glyphicon glyphicon-search"></a> | |||||
| <a class="btn btn-default modal-invoker" href="index.php?mode=modal&action=insert_raw_image" data-toggle="modal" | |||||
| data-target="#modal_raw_image" data-insert="#photo_normal" data-keyboard="true" | |||||
| title="<?php echo $lang['select_image']; ?>"><span class="glyphicon glyphicon-search"></a> | |||||
| </span> | </span> | ||||
| </div> | |||||
| </div> | |||||
| </div> | |||||
| </div> | |||||
| </div> | |||||
| </div> | |||||
| <!-- | |||||
| <!-- | |||||
| <div class="form-group"> | <div class="form-group"> | ||||
| <label for="photo_large" class="col-md-2 control-label"><?php echo $lang['edit_photo_large']; ?></label> | <label for="photo_large" class="col-md-2 control-label"><?php echo $lang['edit_photo_large']; ?></label> | ||||
| <div class="col-md-8"> | <div class="col-md-8"> | ||||
| <input id="photo_large" class="form-control form-control-inline form-control-default" type="text" name="photo_large" value="<?php if(isset($photo_data['photo_large'])) echo $photo_data['photo_large']; ?>"> <a class="btn btn-default btn-xs modal-invoker" href="index.php?mode=modal&action=insert_gallery_image" data-toggle="modal" data-target="#image_modal" data-input="photo_large" data-keyboard="true" title="<?php echo $lang['select_image']; ?>"><span class="glyphicon glyphicon-search"></a> | |||||
| <input id="photo_large" class="form-control form-control-inline form-control-default" type="text" name="photo_large" value="<?php if (isset($photo_data['photo_large'])) echo $photo_data['photo_large']; ?>"> <a class="btn btn-default btn-xs modal-invoker" href="index.php?mode=modal&action=insert_gallery_image" data-toggle="modal" data-target="#image_modal" data-input="photo_large" data-keyboard="true" title="<?php echo $lang['select_image']; ?>"><span class="glyphicon glyphicon-search"></a> | |||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| --> | --> | ||||
| <div class="form-group"> | |||||
| <label for="title" class="col-md-2 control-label"><?php echo $lang['edit_photo_title']; ?></label> | |||||
| <div class="col-md-8"> | |||||
| <input id="title" class="form-control" type="text" name="title" value="<?php if(isset($photo_data['title'])) echo $photo_data['title']; ?>"> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="title" class="col-md-2 control-label"><?php echo $lang['edit_photo_title']; ?></label> | |||||
| <div class="form-group"> | |||||
| <label for="subtitle" class="col-md-2 control-label"><?php echo $lang['edit_photo_subtitle']; ?></label> | |||||
| <div class="col-md-8"> | |||||
| <input id="subtitle" class="form-control" type="text" name="subtitle" value="<?php if(isset($photo_data['subtitle'])) echo $photo_data['subtitle']; ?>"> | |||||
| </div> | |||||
| </div> | |||||
| <div class="col-md-8"> | |||||
| <input id="title" class="form-control" type="text" name="title" | |||||
| value="<?php if (isset($photo_data['title'])) echo $photo_data['title']; ?>"> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="description" class="col-md-2 control-label"><?php echo $lang['edit_photo_description']; ?></label> | |||||
| <div class="col-md-8"> | |||||
| <textarea id="description" class="form-control" name="description" cols="55" rows="13"><?php if(isset($photo_data['description'])) echo $photo_data['description']; ?></textarea></div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="subtitle" class="col-md-2 control-label"><?php echo $lang['edit_photo_subtitle']; ?></label> | |||||
| <div class="form-group"> | |||||
| <div class="col-md-offset-2 col-md-8"> | |||||
| <input type="submit" class="btn btn-primary" name="edit_photo_submitted" value="<?php echo $lang['submit_button_ok']; ?>"> | |||||
| </div> | |||||
| </div> | |||||
| <div class="col-md-8"> | |||||
| <input id="subtitle" class="form-control" type="text" name="subtitle" | |||||
| value="<?php if (isset($photo_data['subtitle'])) echo $photo_data['subtitle']; ?>"> | |||||
| </div> | |||||
| </div> | |||||
| </div> | |||||
| </form> | |||||
| <div class="form-group"> | |||||
| <label for="description" | |||||
| class="col-md-2 control-label"><?php echo $lang['edit_photo_description']; ?></label> | |||||
| <div class="col-md-8"> | |||||
| <textarea id="description" class="form-control" name="description" cols="55" | |||||
| rows="13"><?php if (isset($photo_data['description'])) echo $photo_data['description']; ?></textarea> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <div class="col-md-offset-2 col-md-8"> | |||||
| <input type="submit" class="btn btn-primary" name="edit_photo_submitted" | |||||
| value="<?php echo $lang['submit_button_ok']; ?>"> | |||||
| </div> | |||||
| </div> | |||||
| </div> | |||||
| </form> | |||||
| <?php endif; ?> | <?php endif; ?> | ||||
| <div class="modal fade" id="modal_raw_image" tabindex="-1"> | <div class="modal fade" id="modal_raw_image" tabindex="-1"> | ||||
| <div class="modal-dialog"> | |||||
| <div class="modal-content"> | |||||
| </div> | |||||
| </div> | |||||
| <div class="modal-dialog"> | |||||
| <div class="modal-content"> | |||||
| </div> | |||||
| </div> | |||||
| </div> | </div> | ||||
| @ -1,28 +1,36 @@ | |||||
| <h1><a href="index.php"><?php echo $lang['administration']; ?></a> » <a href="index.php?mode=galleries"><?php echo $lang['photo_galleries']; ?></a> » <a href="index.php?mode=galleries&edit=<?php echo $gallery; ?>"><?php echo str_replace('[gallery]',$gallery,$lang['edit_gallery']); ?></a> » <?php echo $lang['gallery_properties']; ?></h1> | |||||
| <form action="index.php" method="post"><div> | |||||
| <div> | |||||
| <input type="hidden" name="mode" value="galleries" /> | |||||
| <input type="hidden" name="gallery" value="<?php echo $gallery_data['gallery']; ?>" /> | |||||
| <table class="admin-table" cellspacing="1" cellpadding="5" border="0"> | |||||
| <tr> | |||||
| <td class="c"><label for="template"><?php echo $lang['specify_photo_tpl_m']; ?></label></td> | |||||
| <td class="b"> | |||||
| <select id="template" name="template" size="1"> | |||||
| <?php foreach($available_photo_templates as $photo_template): ?> | |||||
| <option value="<?php echo $photo_template; ?>"<?php if(isset($gallery_data['template']) && $gallery_data['template']==$photo_template): ?> selected="selected"<?php endif; ?>><?php echo $photo_template; ?></option> | |||||
| <?php endforeach; ?> | |||||
| </select> | |||||
| </td> | |||||
| </tr> | |||||
| <tr> | |||||
| <td class="c"><label for="photos_per_row"><?php echo $lang['photos_per_row']; ?></label></td> | |||||
| <td class="b"><input type="text" id="photos_per_row" name="photos_per_row" value="<?php echo $gallery_data['photos_per_row']; ?>" size="5" /></td> | |||||
| </tr> | |||||
| <tr> | |||||
| <td class="c"> </td> | |||||
| <td class="b" style="text-align:right;"><input type="submit" name="gallery_properties_submit" value="<?php echo $lang['submit_button_ok']; ?>" /></td> | |||||
| </tr> | |||||
| </table> | |||||
| </div> | |||||
| </form> | |||||
| <h1><a href="index.php"><?php echo $lang['administration']; ?></a> » <a | |||||
| href="index.php?mode=galleries"><?php echo $lang['photo_galleries']; ?></a> » <a | |||||
| href="index.php?mode=galleries&edit=<?php echo $gallery; ?>"><?php echo str_replace('[gallery]', $gallery, $lang['edit_gallery']); ?></a> » <?php echo $lang['gallery_properties']; ?> | |||||
| </h1> | |||||
| <form action="index.php" method="post"> | |||||
| <div> | |||||
| <div> | |||||
| <input type="hidden" name="mode" value="galleries"/> | |||||
| <input type="hidden" name="gallery" value="<?php echo $gallery_data['gallery']; ?>"/> | |||||
| <table class="admin-table" cellspacing="1" cellpadding="5" border="0"> | |||||
| <tr> | |||||
| <td class="c"><label for="template"><?php echo $lang['specify_photo_tpl_m']; ?></label></td> | |||||
| <td class="b"> | |||||
| <select id="template" name="template" size="1"> | |||||
| <?php foreach ($available_photo_templates as $photo_template): ?> | |||||
| <option | |||||
| value="<?php echo $photo_template; ?>"<?php if (isset($gallery_data['template']) && $gallery_data['template'] == $photo_template): ?> selected="selected"<?php endif; ?>><?php echo $photo_template; ?></option> | |||||
| <?php endforeach; ?> | |||||
| </select> | |||||
| </td> | |||||
| </tr> | |||||
| <tr> | |||||
| <td class="c"><label for="photos_per_row"><?php echo $lang['photos_per_row']; ?></label></td> | |||||
| <td class="b"><input type="text" id="photos_per_row" name="photos_per_row" | |||||
| value="<?php echo $gallery_data['photos_per_row']; ?>" size="5"/></td> | |||||
| </tr> | |||||
| <tr> | |||||
| <td class="c"> </td> | |||||
| <td class="b" style="text-align:right;"><input type="submit" name="gallery_properties_submit" | |||||
| value="<?php echo $lang['submit_button_ok']; ?>"/> | |||||
| </td> | |||||
| </tr> | |||||
| </table> | |||||
| </div> | |||||
| </form> | |||||
| @ -1,40 +1,49 @@ | |||||
| <div class="row"> | <div class="row"> | ||||
| <div class="col-md-10"> | |||||
| <h1><?php echo $lang['gcb']; ?></h1> | |||||
| </div> | |||||
| <div class="col-md-2"> | |||||
| <a href="index.php?mode=gcb&add_gcb=true" class="btn btn-success btn-top pull-right"><span class="glyphicon glyphicon-plus"></span> <?php echo $lang['add_gcb']; ?></a> | |||||
| </div> | |||||
| <div class="col-md-10"> | |||||
| <h1><?php echo $lang['gcb']; ?></h1> | |||||
| </div> | |||||
| <div class="col-md-2"> | |||||
| <a href="index.php?mode=gcb&add_gcb=true" class="btn btn-success btn-top pull-right"><span | |||||
| class="glyphicon glyphicon-plus"></span> <?php echo $lang['add_gcb']; ?></a> | |||||
| </div> | |||||
| </div> | </div> | ||||
| <?php if(isset($gcbs)): ?> | |||||
| <?php if (isset($gcbs)): ?> | |||||
| <div class="table-responsive"> | |||||
| <table class="table table-striped table-hover"> | |||||
| <thead> | |||||
| <tr> | |||||
| <th><?php echo $lang['gcb_identifier']; ?></th> | |||||
| <th><?php echo $lang['gcb_content']; ?></th> | |||||
| <th> </th> | |||||
| </tr> | |||||
| </thead> | |||||
| <tbody> | |||||
| <?php $i=0; foreach($gcbs as $gcb): ?> | |||||
| <tr> | |||||
| <td><?php echo $gcb['identifier']; ?></td> | |||||
| <td><?php echo $gcb['content']; ?></td> | |||||
| <td class="options nowrap"><a href="index.php?mode=gcb&edit=<?php echo $gcb['id']; ?>" title="<?php echo $lang['edit']; ?>" class="btn btn-primary btn-xs"><span class="glyphicon glyphicon-pencil"></span></a> <a href="index.php?mode=gcb&delete=<?php echo $gcb['id']; ?>" title="<?php echo $lang['delete']; ?>" data-delete-confirm="<?php echo rawurlencode($lang['delete_gcb_confirm']); ?>" class="btn btn-danger btn-xs"><span class="glyphicon glyphicon-remove"></span></a></td> | |||||
| </tr> | |||||
| <?php $i++; endforeach; ?> | |||||
| </tbody> | |||||
| </table> | |||||
| </div> | |||||
| <div class="table-responsive"> | |||||
| <table class="table table-striped table-hover"> | |||||
| <thead> | |||||
| <tr> | |||||
| <th><?php echo $lang['gcb_identifier']; ?></th> | |||||
| <th><?php echo $lang['gcb_content']; ?></th> | |||||
| <th> </th> | |||||
| </tr> | |||||
| </thead> | |||||
| <tbody> | |||||
| <?php $i = 0; | |||||
| foreach ($gcbs as $gcb): ?> | |||||
| <tr> | |||||
| <td><?php echo $gcb['identifier']; ?></td> | |||||
| <td><?php echo $gcb['content']; ?></td> | |||||
| <td class="options nowrap"><a href="index.php?mode=gcb&edit=<?php echo $gcb['id']; ?>" | |||||
| title="<?php echo $lang['edit']; ?>" | |||||
| class="btn btn-primary btn-xs"><span | |||||
| class="glyphicon glyphicon-pencil"></span></a> <a | |||||
| href="index.php?mode=gcb&delete=<?php echo $gcb['id']; ?>" | |||||
| title="<?php echo $lang['delete']; ?>" | |||||
| data-delete-confirm="<?php echo rawurlencode($lang['delete_gcb_confirm']); ?>" | |||||
| class="btn btn-danger btn-xs"><span class="glyphicon glyphicon-remove"></span></a></td> | |||||
| </tr> | |||||
| <?php $i++; endforeach; ?> | |||||
| </tbody> | |||||
| </table> | |||||
| </div> | |||||
| <?php else: ?> | <?php else: ?> | ||||
| <div class="alert alert-warning"> | |||||
| <?php echo $lang['no_gcb']; ?> | |||||
| </div> | |||||
| <div class="alert alert-warning"> | |||||
| <?php echo $lang['no_gcb']; ?> | |||||
| </div> | |||||
| <?php endif; ?> | <?php endif; ?> | ||||
| @ -1,30 +1,35 @@ | |||||
| <ol class="breadcrumb"> | <ol class="breadcrumb"> | ||||
| <li><a href="index.php?mode=gcb"><?php echo $lang['gcb']; ?></a></li> | |||||
| <li class="active"><?php if(isset($gcb['id'])): echo $lang['edit_gcb']; else: echo $lang['add_gcb']; endif; ?></li> | |||||
| <li><a href="index.php?mode=gcb"><?php echo $lang['gcb']; ?></a></li> | |||||
| <li class="active"><?php if (isset($gcb['id'])): echo $lang['edit_gcb']; | |||||
| else: echo $lang['add_gcb']; endif; ?></li> | |||||
| </ol> | </ol> | ||||
| <h1><?php if(isset($gcb['id'])): echo $lang['edit_gcb']; else: echo $lang['add_gcb']; endif; ?></h1> | |||||
| <h1><?php if (isset($gcb['id'])): echo $lang['edit_gcb']; | |||||
| else: echo $lang['add_gcb']; endif; ?></h1> | |||||
| <?php include('errors.inc.tpl'); ?> | <?php include('errors.inc.tpl'); ?> | ||||
| <form action="index.php" method="post"> | <form action="index.php" method="post"> | ||||
| <input type="hidden" name="mode" value="gcb" /> | |||||
| <?php if(isset($gcb['id'])): ?> | |||||
| <input type="hidden" name="id" value="<?php echo $gcb['id']; ?>" /> | |||||
| <?php endif; ?> | |||||
| <input type="hidden" name="mode" value="gcb"/> | |||||
| <?php if (isset($gcb['id'])): ?> | |||||
| <input type="hidden" name="id" value="<?php echo $gcb['id']; ?>"/> | |||||
| <?php endif; ?> | |||||
| <div class="form-group"> | |||||
| <label for="identifier" class="control-label"><?php echo $lang['edit_gcb_identifier']; ?></label> | |||||
| <input type="text" name="identifier" value="<?php if(isset($gcb['identifier'])) echo $gcb['identifier']; ?>" size="40" class="form-control" /> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="identifier" class="control-label"><?php echo $lang['edit_gcb_identifier']; ?></label> | |||||
| <input type="text" name="identifier" value="<?php if (isset($gcb['identifier'])) echo $gcb['identifier']; ?>" | |||||
| size="40" class="form-control"/> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="content" class="control-label"><?php echo $lang['edit_gcb_content']; ?></label> | |||||
| <textarea name="content" cols="70" rows="20" class="form-control"><?php if(isset($gcb['content'])) echo $gcb['content']; ?></textarea> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="content" class="control-label"><?php echo $lang['edit_gcb_content']; ?></label> | |||||
| <textarea name="content" cols="70" rows="20" | |||||
| class="form-control"><?php if (isset($gcb['content'])) echo $gcb['content']; ?></textarea> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <input type="submit" name="edit_gcb_submit" value="<?php echo $lang['submit_button_ok']; ?>" class="btn btn-primary btn-strong" /> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <input type="submit" name="edit_gcb_submit" value="<?php echo $lang['submit_button_ok']; ?>" | |||||
| class="btn btn-primary btn-strong"/> | |||||
| </div> | |||||
| </form> | </form> | ||||
| @ -1,26 +1,26 @@ | |||||
| <h1><?php echo $lang['login']; ?></h1> | <h1><?php echo $lang['login']; ?></h1> | ||||
| <?php if(isset($_GET['msg'])): ?> | |||||
| <div class="alert alert-danger"> | |||||
| <strong><?php echo $lang['login_failed']; ?></strong> | |||||
| </div> | |||||
| <?php if (isset($_GET['msg'])): ?> | |||||
| <div class="alert alert-danger"> | |||||
| <strong><?php echo $lang['login_failed']; ?></strong> | |||||
| </div> | |||||
| <?php endif; ?> | <?php endif; ?> | ||||
| <form action="index.php" method="post"> | <form action="index.php" method="post"> | ||||
| <fieldset> | |||||
| <div class="form-group login-form"> | |||||
| <label for="login"><?php echo $lang['login_username']; ?></label> | |||||
| <input id="login" type="text" name="username" class="form-control" autofocus /></p> | |||||
| </div> | |||||
| <fieldset> | |||||
| <div class="form-group login-form"> | |||||
| <label for="login"><?php echo $lang['login_username']; ?></label> | |||||
| <input id="login" type="text" name="username" class="form-control" autofocus/></p> | |||||
| </div> | |||||
| <div class="form-group login-form"> | |||||
| <label for="pw"><?php echo $lang['login_password']; ?></label> | |||||
| <input id="pw" type="password" name="userpw" class="form-control" /> | |||||
| </div> | |||||
| <div class="form-group login-form"> | |||||
| <label for="pw"><?php echo $lang['login_password']; ?></label> | |||||
| <input id="pw" type="password" name="userpw" class="form-control"/> | |||||
| </div> | |||||
| <input type="submit" class="btn btn-lg btn-primary" value="<?php echo $lang['login_submit']; ?>" /> | |||||
| <input type="submit" class="btn btn-lg btn-primary" value="<?php echo $lang['login_submit']; ?>"/> | |||||
| </fieldset> | |||||
| </fieldset> | |||||
| </form> | </form> | ||||
| @ -1,37 +1,51 @@ | |||||
| <div class="row"> | <div class="row"> | ||||
| <div class="col-sm-11"> | |||||
| <h1><?php echo $lang['menus']; ?></h1> | |||||
| </div> | |||||
| <div class="col-sm-1"> | |||||
| <a class="btn btn-success btn-top pull-right" href="index.php?mode=menus&action=new"><span class="glyphicon glyphicon-plus"></span> <?php echo $lang['create_menu']; ?></a> | |||||
| </div> | |||||
| <div class="col-sm-11"> | |||||
| <h1><?php echo $lang['menus']; ?></h1> | |||||
| </div> | |||||
| <div class="col-sm-1"> | |||||
| <a class="btn btn-success btn-top pull-right" href="index.php?mode=menus&action=new"><span | |||||
| class="glyphicon glyphicon-plus"></span> <?php echo $lang['create_menu']; ?></a> | |||||
| </div> | |||||
| </div> | </div> | ||||
| <?php if(isset($menus)): ?> | |||||
| <?php if (isset($menus)): ?> | |||||
| <div class="table-responsive"> | |||||
| <table class="table table-striped table-hover"> | |||||
| <thead> | |||||
| <tr> | |||||
| <th><?php echo $lang['menu']; ?></th> | |||||
| <th> </th> | |||||
| </tr> | |||||
| </thead> | |||||
| <tbody> | |||||
| <?php $i=0; foreach($menus as $menu): ?> | |||||
| <tr> | |||||
| <td><?php echo $menu; ?></td> | |||||
| <td class="options nowrap"><a class="btn btn-primary btn-xs" href="index.php?mode=menus&edit=<?php echo $menu; ?>" title="<?php echo $lang['edit']; ?>"><span class="glyphicon glyphicon-pencil"></a> | |||||
| <a class="btn btn-danger btn-xs" href="index.php?mode=menus&delete=<?php echo $menu; ?>" title="<?php echo $lang['delete']; ?>" data-delete-confirm="<?php echo rawurlencode($lang['delete_menu_confirm']); ?>"><span class="glyphicon glyphicon-remove"></a> | |||||
| <?php if($menu==$settings['default_menu']): ?><span class="btn btn-success btn-xs" title="<?php echo $lang['default_menu']; ?>"><span class="glyphicon glyphicon-check"></span></span><?php else: ?><a class="btn btn-default btn-xs" href="index.php?mode=menus&set_default=<?php echo $menu; ?>" title="<?php echo $lang['set_default_menu']; ?>"><span class="glyphicon glyphicon-unchecked"></span></a><?php endif; ?></td> | |||||
| </tr> | |||||
| <?php ++$i; endforeach; ?> | |||||
| </tbody> | |||||
| </table> | |||||
| </div> | |||||
| <div class="table-responsive"> | |||||
| <table class="table table-striped table-hover"> | |||||
| <thead> | |||||
| <tr> | |||||
| <th><?php echo $lang['menu']; ?></th> | |||||
| <th> </th> | |||||
| </tr> | |||||
| </thead> | |||||
| <tbody> | |||||
| <?php $i = 0; | |||||
| foreach ($menus as $menu): ?> | |||||
| <tr> | |||||
| <td><?php echo $menu; ?></td> | |||||
| <td class="options nowrap"><a class="btn btn-primary btn-xs" | |||||
| href="index.php?mode=menus&edit=<?php echo $menu; ?>" | |||||
| title="<?php echo $lang['edit']; ?>"><span | |||||
| class="glyphicon glyphicon-pencil"></a> | |||||
| <a class="btn btn-danger btn-xs" href="index.php?mode=menus&delete=<?php echo $menu; ?>" | |||||
| title="<?php echo $lang['delete']; ?>" | |||||
| data-delete-confirm="<?php echo rawurlencode($lang['delete_menu_confirm']); ?>"><span | |||||
| class="glyphicon glyphicon-remove"></a> | |||||
| <?php if ($menu == $settings['default_menu']): ?><span class="btn btn-success btn-xs" | |||||
| title="<?php echo $lang['default_menu']; ?>"> | |||||
| <span class="glyphicon glyphicon-check"></span></span><?php else: ?><a | |||||
| class="btn btn-default btn-xs" | |||||
| href="index.php?mode=menus&set_default=<?php echo $menu; ?>" | |||||
| title="<?php echo $lang['set_default_menu']; ?>"><span | |||||
| class="glyphicon glyphicon-unchecked"></span></a><?php endif; ?></td> | |||||
| </tr> | |||||
| <?php ++$i; endforeach; ?> | |||||
| </tbody> | |||||
| </table> | |||||
| </div> | |||||
| <?php else: ?> | <?php else: ?> | ||||
| <p><?php echo $lang['no_menu']; ?></p> | |||||
| <p><?php echo $lang['no_menu']; ?></p> | |||||
| <?php endif; ?> | <?php endif; ?> | ||||
| @ -1,13 +1,13 @@ | |||||
| <h1><?php echo $lang['delete_menu_headline']; ?></h1> | <h1><?php echo $lang['delete_menu_headline']; ?></h1> | ||||
| <p><?php echo $lang['delete_menu_confirm']; ?></p> | <p><?php echo $lang['delete_menu_confirm']; ?></p> | ||||
| <p><?php echo $lang['delete_menu_name']; ?><b> <?php echo $menu; ?></b></p> | <p><?php echo $lang['delete_menu_name']; ?><b> <?php echo $menu; ?></b></p> | ||||
| <form action="index.php" method="post"> | |||||
| <div> | |||||
| <input type="hidden" name="mode" value="menus" /> | |||||
| <input type="hidden" name="delete" value="<?php echo $menu; ?>" /> | |||||
| <input type="submit" name="confirmed" value="<?php echo $lang['delete_menu_submit']; ?>" /> | |||||
| </div> | |||||
| <form action="index.php" method="post"> | |||||
| <div> | |||||
| <input type="hidden" name="mode" value="menus"/> | |||||
| <input type="hidden" name="delete" value="<?php echo $menu; ?>"/> | |||||
| <input type="submit" name="confirmed" value="<?php echo $lang['delete_menu_submit']; ?>"/> | |||||
| </div> | |||||
| </form> | </form> | ||||
| @ -1,74 +1,126 @@ | |||||
| <ol class="breadcrumb"> | <ol class="breadcrumb"> | ||||
| <li><a href="index.php?mode=menus"><?php echo $lang['menus']; ?></a></li> | |||||
| <li class="active"><?php echo str_replace('[menu]', $menu, $lang['edit_menu_hl']); ?></li> | |||||
| <li><a href="index.php?mode=menus"><?php echo $lang['menus']; ?></a></li> | |||||
| <li class="active"><?php echo str_replace('[menu]', $menu, $lang['edit_menu_hl']); ?></li> | |||||
| </ol> | </ol> | ||||
| <h1><?php echo str_replace('[menu]', $menu, $lang['edit_menu_hl']); ?></h1> | <h1><?php echo str_replace('[menu]', $menu, $lang['edit_menu_hl']); ?></h1> | ||||
| <form action="index.php" method="post"> | <form action="index.php" method="post"> | ||||
| <div> | |||||
| <input type="hidden" name="mode" value="menus" /> | |||||
| <input type="hidden" name="menu" value="<?php echo $menu; ?>" /> | |||||
| <?php if(isset($edit_item)): ?> | |||||
| <input type="hidden" name="edit_item" value="<?php echo $edit_item; ?>" /> | |||||
| <?php else: ?> | |||||
| <input type="hidden" name="new_menu_item" value="true" /> | |||||
| <?php endif; ?> | |||||
| <div class="table-responsive"> | |||||
| <table class="table table-striped table-hover"> | |||||
| <thead> | |||||
| <tr> | |||||
| <th><?php echo $lang['menu_item_name']; ?></th> | |||||
| <th><?php echo $lang['menu_item_title']; ?></th> | |||||
| <th><?php echo $lang['menu_item_link']; ?></th> | |||||
| <th><?php echo $lang['menu_item_section']; ?></th> | |||||
| <th><?php echo $lang['menu_item_accesskey']; ?></th> | |||||
| <th> </th> | |||||
| </tr> | |||||
| </thead> | |||||
| <tbody<?php if(empty($edit_item)): ?> data-sortable="<?php echo BASE_URL; ?>cms/?mode=menus&reorder_items=true"<?php endif; ?>> | |||||
| <div> | |||||
| <input type="hidden" name="mode" value="menus"/> | |||||
| <input type="hidden" name="menu" value="<?php echo $menu; ?>"/> | |||||
| <?php if (isset($edit_item)): ?> | |||||
| <input type="hidden" name="edit_item" value="<?php echo $edit_item; ?>"/> | |||||
| <?php else: ?> | |||||
| <input type="hidden" name="new_menu_item" value="true"/> | |||||
| <?php endif; ?> | |||||
| <div class="table-responsive"> | |||||
| <table class="table table-striped table-hover"> | |||||
| <thead> | |||||
| <tr> | |||||
| <th><?php echo $lang['menu_item_name']; ?></th> | |||||
| <th><?php echo $lang['menu_item_title']; ?></th> | |||||
| <th><?php echo $lang['menu_item_link']; ?></th> | |||||
| <th><?php echo $lang['menu_item_section']; ?></th> | |||||
| <th><?php echo $lang['menu_item_accesskey']; ?></th> | |||||
| <th> </th> | |||||
| </tr> | |||||
| </thead> | |||||
| <tbody<?php if (empty($edit_item)): ?> data-sortable="<?php echo BASE_URL; ?>cms/?mode=menus&reorder_items=true"<?php endif; ?>> | |||||
| <?php if (isset($edit_item)): ?> | |||||
| <?php $i = 0; | |||||
| if (isset($items)): foreach ($items as $item): ?> | |||||
| <tr id="row_<?php echo $item['id']; ?>" | |||||
| class="<?php if ($i % 2 == 0): ?>a<?php else: ?>b<?php endif; ?>"> | |||||
| <td><?php if ($item['id'] == $edit_item): ?> | |||||
| <input class="form-control" type="text" | |||||
| name="name" | |||||
| value="<?php echo $item['name']; ?>" | |||||
| size="10" | |||||
| style="width:100%;" /><?php else: ?> | |||||
| <span class="label label-default label-block"><?php echo $item['name']; ?></span><?php endif; ?> | |||||
| </td> | |||||
| <td><?php if ($item['id'] == $edit_item): ?> | |||||
| <input class="form-control" type="text" | |||||
| name="title" | |||||
| value="<?php echo $item['title']; ?>" | |||||
| size="10" | |||||
| style="width:100%;" /><?php else: ?><?php echo $item['title']; ?><?php endif; ?> | |||||
| </td> | |||||
| <td><?php if ($item['id'] == $edit_item): ?> | |||||
| <input class="form-control" type="text" | |||||
| name="link" | |||||
| value="<?php echo $item['link']; ?>" | |||||
| size="10" | |||||
| style="width:100%;" /><?php else: ?><?php echo $item['link']; ?><?php endif; ?> | |||||
| </td> | |||||
| <td><?php if ($item['id'] == $edit_item): ?> | |||||
| <input class="form-control" type="text" | |||||
| name="section" | |||||
| value="<?php echo $item['section']; ?>" | |||||
| size="10" | |||||
| style="width:100%;" /><?php else: ?><?php echo $item['section']; ?><?php endif; ?> | |||||
| </td> | |||||
| <td><?php if ($item['id'] == $edit_item): ?> | |||||
| <input class="form-control" type="text" | |||||
| name="accesskey" | |||||
| value="<?php echo $item['accesskey']; ?>" | |||||
| size="10" | |||||
| style="width:100%;" /><?php else: ?><?php echo $item['accesskey']; ?><?php endif; ?> | |||||
| </td> | |||||
| <td><?php if ($item['id'] == $edit_item): ?> | |||||
| <input class="btn btn-primary" type="submit" | |||||
| name="edit_menu_item_submitted" | |||||
| value="<?php echo $lang['submit_button_ok']; ?>" /><?php else: ?> <?php endif; ?> | |||||
| </td> | |||||
| </tr> | |||||
| <?php ++$i; endforeach; endif; ?> | |||||
| <?php else: ?> | |||||
| <?php $i = 0; | |||||
| if (isset($items)): foreach ($items as $item): ?> | |||||
| <tr id="item_<?php echo $item['id']; ?>"> | |||||
| <td><span class="label label-default label-block"><?php echo $item['name']; ?></span></td> | |||||
| <td><?php echo $item['title']; ?></td> | |||||
| <td><?php echo $item['link']; ?></td> | |||||
| <td><?php echo $item['section']; ?></td> | |||||
| <td><?php echo $item['accesskey']; ?></td> | |||||
| <td class="options nowrap"> | |||||
| <a class="btn btn-primary btn-xs" | |||||
| href="index.php?mode=menus&action=edit_menu_item&id=<?php echo $item['id']; ?>" | |||||
| title="<?php echo $lang['edit']; ?>"> | |||||
| <span class="glyphicon glyphicon-pencil"></span></a> | |||||
| <a class="btn btn-danger btn-xs" | |||||
| href="index.php?mode=menus&action=delete_menu_item&id=<?php echo $item['id']; ?>" | |||||
| title="<?php echo $lang['delete']; ?>"> | |||||
| <span class="glyphicon glyphicon-remove"></span></a> | |||||
| <span class="btn btn-success btn-xs sortable-handle" | |||||
| title="<?php echo $lang['drag_and_drop']; ?>"> | |||||
| <span class="glyphicon glyphicon-sort"></span></span> | |||||
| <!--<a href="index.php?mode=menus&move_up=<?php echo $item['id']; ?>" title="<?php echo $lang['move_up']; ?>"><?php echo $lang['move_up']; ?></a><a href="index.php?mode=menus&move_down=<?php echo $item['id']; ?>" title="<?php echo $lang['move_down']; ?>"><?php echo $lang['move_down']; ?></a>--> | |||||
| </td> | |||||
| </tr> | |||||
| <?php ++$i; endforeach; endif; ?> | |||||
| </tbody> | |||||
| <tr> | |||||
| <td><input class="form-control" type="text" name="name" value="" size="10"/></td> | |||||
| <td><input class="form-control" type="text" name="title" value="" size="10"/></td> | |||||
| <td><input class="form-control" type="text" name="link" value="" size="10"/></td> | |||||
| <td><input class="form-control" type="text" name="section" value="" size="10"/></td> | |||||
| <td><input class="form-control" type="text" name="accesskey" value="" size="3"/></td> | |||||
| <td class="options"> | |||||
| <button class="btn btn-success"><span | |||||
| class="glyphicon glyphicon-plus"></span> <?php echo $lang['add_menu_item_submit']; ?> | |||||
| </button> | |||||
| </td> | |||||
| </tr> | |||||
| <?php if(isset($edit_item)): ?> | |||||
| <?php $i=0; if(isset($items)): foreach($items as $item): ?> | |||||
| <tr id="row_<?php echo $item['id']; ?>" class="<?php if($i%2==0): ?>a<?php else: ?>b<?php endif; ?>"> | |||||
| <td><?php if($item['id']==$edit_item): ?><input class="form-control" type="text" name="name" value="<?php echo $item['name']; ?>" size="10" style="width:100%;" /><?php else: ?><span class="label label-default label-block"><?php echo $item['name']; ?></span><?php endif; ?></td> | |||||
| <td><?php if($item['id']==$edit_item): ?><input class="form-control" type="text" name="title" value="<?php echo $item['title']; ?>" size="10" style="width:100%;" /><?php else: ?><?php echo $item['title']; ?><?php endif; ?></td> | |||||
| <td><?php if($item['id']==$edit_item): ?><input class="form-control" type="text" name="link" value="<?php echo $item['link']; ?>" size="10" style="width:100%;" /><?php else: ?><?php echo $item['link']; ?><?php endif; ?></td> | |||||
| <td><?php if($item['id']==$edit_item): ?><input class="form-control" type="text" name="section" value="<?php echo $item['section']; ?>" size="10" style="width:100%;" /><?php else: ?><?php echo $item['section']; ?><?php endif; ?></td> | |||||
| <td><?php if($item['id']==$edit_item): ?><input class="form-control" type="text" name="accesskey" value="<?php echo $item['accesskey']; ?>" size="10" style="width:100%;" /><?php else: ?><?php echo $item['accesskey']; ?><?php endif; ?></td> | |||||
| <td><?php if($item['id']==$edit_item): ?><input class="btn btn-primary" type="submit" name="edit_menu_item_submitted" value="<?php echo $lang['submit_button_ok']; ?>" /><?php else: ?> <?php endif; ?></td> | |||||
| </tr> | |||||
| <?php ++$i; endforeach; endif; ?> | |||||
| <?php endif; ?> | |||||
| <?php else: ?> | |||||
| <?php $i=0; if(isset($items)): foreach($items as $item): ?> | |||||
| <tr id="item_<?php echo $item['id']; ?>"> | |||||
| <td><span class="label label-default label-block"><?php echo $item['name']; ?></span></td> | |||||
| <td><?php echo $item['title']; ?></td> | |||||
| <td><?php echo $item['link']; ?></td> | |||||
| <td><?php echo $item['section']; ?></td> | |||||
| <td><?php echo $item['accesskey']; ?></td> | |||||
| <td class="options nowrap"><a class="btn btn-primary btn-xs" href="index.php?mode=menus&action=edit_menu_item&id=<?php echo $item['id']; ?>" title="<?php echo $lang['edit']; ?>"><span class="glyphicon glyphicon-pencil"></span></a> | |||||
| <a class="btn btn-danger btn-xs" href="index.php?mode=menus&action=delete_menu_item&id=<?php echo $item['id']; ?>" title="<?php echo $lang['delete']; ?>"><span class="glyphicon glyphicon-remove"></span></a> | |||||
| <span class="btn btn-success btn-xs sortable-handle" title="<?php echo $lang['drag_and_drop']; ?>"><span class="glyphicon glyphicon-sort"></span></span> | |||||
| <!--<a href="index.php?mode=menus&move_up=<?php echo $item['id']; ?>" title="<?php echo $lang['move_up']; ?>"><?php echo $lang['move_up']; ?></a><a href="index.php?mode=menus&move_down=<?php echo $item['id']; ?>" title="<?php echo $lang['move_down']; ?>"><?php echo $lang['move_down']; ?></a>--></td> | |||||
| </tr> | |||||
| <?php ++$i; endforeach; endif; ?> | |||||
| </tbody> | |||||
| <tr> | |||||
| <td><input class="form-control" type="text" name="name" value="" size="10" /></td> | |||||
| <td><input class="form-control" type="text" name="title" value="" size="10" /></td> | |||||
| <td><input class="form-control" type="text" name="link" value="" size="10" /></td> | |||||
| <td><input class="form-control" type="text" name="section" value="" size="10" /></td> | |||||
| <td><input class="form-control" type="text" name="accesskey" value="" size="3" /></td> | |||||
| <td class="options"><button class="btn btn-success"><span class="glyphicon glyphicon-plus"></span> <?php echo $lang['add_menu_item_submit']; ?></button></td> | |||||
| </tr> | |||||
| <?php endif; ?> | |||||
| </table> | |||||
| </div> | |||||
| </div> | |||||
| </table> | |||||
| </div> | |||||
| </div> | |||||
| </form> | </form> | ||||
| @ -1,35 +1,44 @@ | |||||
| <?php if(isset($menu_data)): ?> | |||||
| <h1><a href="index.php"><?php echo $lang['administration']; ?></a> » <a href="index.php?mode=menus"><?php echo $lang['menus']; ?></a> » <a href="index.php?mode=menus&edit=<?php echo $menu_data['menu']; ?>"><?php echo str_replace('[menu]', $menu_data['menu'], $lang['edit_menu_hl']); ?></a> » <?php echo $lang['edit_menu_item']; ?></h1> | |||||
| <?php if (isset($menu_data)): ?> | |||||
| <form action="index.php" method="post"> | |||||
| <div> | |||||
| <input type="hidden" name="mode" value="menus" /> | |||||
| <input type="hidden" name="menu" value="<?php echo $menu_data['menu']; ?>" /> | |||||
| <input type="hidden" name="id" value="<?php echo $menu_data['id']; ?>" /> | |||||
| <table class="admin-table" cellspacing="1" cellpadding="5" border="0"> | |||||
| <tr> | |||||
| <th><?php echo $lang['menu_item_name']; ?></th> | |||||
| <th><?php echo $lang['menu_item_title']; ?></th> | |||||
| <th><?php echo $lang['menu_item_link']; ?></th> | |||||
| <th><?php echo $lang['menu_item_section']; ?></th> | |||||
| <th><?php echo $lang['menu_item_accesskey']; ?></th> | |||||
| <th> </th> | |||||
| </tr> | |||||
| <tr> | |||||
| <td class="a"><input type="text" name="name" value="<?php echo $menu_data['name']; ?>" size="10" style="width:100%;" /></td> | |||||
| <td><input type="text" name="title" value="<?php echo $menu_data['title']; ?>" size="10" style="width:100%;" /></td> | |||||
| <td><input type="text" name="link" value="<?php echo $menu_data['link']; ?>" size="10" style="width:100%;" /></td> | |||||
| <td><input type="text" name="section" value="<?php echo $menu_data['section']; ?>" size="10" style="width:100%;" /></td> | |||||
| <td><input type="text" name="accesskey" value="<?php echo $menu_data['accesskey']; ?>" size="3" style="width:100%;" /></td> | |||||
| <td><input type="submit" name="edit_menu_item_submitted" value="<?php echo $lang['submit_button_ok']; ?>" /></td> | |||||
| </tr> | |||||
| </table> | |||||
| </div> | |||||
| </form> | |||||
| <?php else: ?> | |||||
| <p><?php echo $lang['menu_item_doesnt_exist']; ?></p> | |||||
| <?php endif; ?> | |||||
| <h1><a href="index.php"><?php echo $lang['administration']; ?></a> » <a | |||||
| href="index.php?mode=menus"><?php echo $lang['menus']; ?></a> » <a | |||||
| href="index.php?mode=menus&edit=<?php echo $menu_data['menu']; ?>"><?php echo str_replace('[menu]', $menu_data['menu'], $lang['edit_menu_hl']); ?></a> » <?php echo $lang['edit_menu_item']; ?> | |||||
| </h1> | |||||
| <form action="index.php" method="post"> | |||||
| <div> | |||||
| <input type="hidden" name="mode" value="menus"/> | |||||
| <input type="hidden" name="menu" value="<?php echo $menu_data['menu']; ?>"/> | |||||
| <input type="hidden" name="id" value="<?php echo $menu_data['id']; ?>"/> | |||||
| <table class="admin-table" cellspacing="1" cellpadding="5" border="0"> | |||||
| <tr> | |||||
| <th><?php echo $lang['menu_item_name']; ?></th> | |||||
| <th><?php echo $lang['menu_item_title']; ?></th> | |||||
| <th><?php echo $lang['menu_item_link']; ?></th> | |||||
| <th><?php echo $lang['menu_item_section']; ?></th> | |||||
| <th><?php echo $lang['menu_item_accesskey']; ?></th> | |||||
| <th> </th> | |||||
| </tr> | |||||
| <tr> | |||||
| <td class="a"><input type="text" name="name" value="<?php echo $menu_data['name']; ?>" size="10" | |||||
| style="width:100%;"/></td> | |||||
| <td><input type="text" name="title" value="<?php echo $menu_data['title']; ?>" size="10" | |||||
| style="width:100%;"/></td> | |||||
| <td><input type="text" name="link" value="<?php echo $menu_data['link']; ?>" size="10" | |||||
| style="width:100%;"/></td> | |||||
| <td><input type="text" name="section" value="<?php echo $menu_data['section']; ?>" size="10" | |||||
| style="width:100%;"/></td> | |||||
| <td><input type="text" name="accesskey" value="<?php echo $menu_data['accesskey']; ?>" size="3" | |||||
| style="width:100%;"/></td> | |||||
| <td><input type="submit" name="edit_menu_item_submitted" | |||||
| value="<?php echo $lang['submit_button_ok']; ?>"/></td> | |||||
| </tr> | |||||
| </table> | |||||
| </div> | |||||
| </form> | |||||
| <?php else: ?> | |||||
| <p><?php echo $lang['menu_item_doesnt_exist']; ?></p> | |||||
| <?php endif; ?> | |||||
| @ -1,34 +1,36 @@ | |||||
| <div class="modal-header"> | <div class="modal-header"> | ||||
| <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | |||||
| <h4 class="modal-title"><?php echo $lang['insert_gallery_label']; ?></h4> | |||||
| <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | |||||
| <h4 class="modal-title"><?php echo $lang['insert_gallery_label']; ?></h4> | |||||
| </div> | </div> | ||||
| <div class="modal-body"> | <div class="modal-body"> | ||||
| <?php if(isset($galleries)): ?> | |||||
| <div class="form-group"> | |||||
| <select id="galleryselect" class="form-control" name="gallery" size="20"> | |||||
| </div> | |||||
| <?php foreach($galleries as $gallery): ?> | |||||
| <option value="<?php echo $gallery; ?>"<?php if(isset($selected_gallery) && $selected_gallery==$gallery): ?> selected="selected"<?php endif; ?>><?php echo $gallery; ?></option> | |||||
| <?php endforeach; ?> | |||||
| </select> | |||||
| <?php endif; ?> | |||||
| <?php if (isset($galleries)): ?> | |||||
| <div class="form-group"> | |||||
| <select id="galleryselect" class="form-control" name="gallery" size="20"> | |||||
| </div> | |||||
| <?php foreach ($galleries as $gallery): ?> | |||||
| <option | |||||
| value="<?php echo $gallery; ?>"<?php if (isset($selected_gallery) && $selected_gallery == $gallery): ?> selected="selected"<?php endif; ?>><?php echo $gallery; ?></option> | |||||
| <?php endforeach; ?> | |||||
| </select> | |||||
| <?php endif; ?> | |||||
| </div> | </div> | ||||
| <div class="modal-footer"> | <div class="modal-footer"> | ||||
| <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo $lang['cancel']; ?></button> | |||||
| <button id="insert-gallery" type="button" class="btn btn-primary"><?php echo $lang['insert_gallery_label']; ?></button> | |||||
| <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo $lang['cancel']; ?></button> | |||||
| <button id="insert-gallery" type="button" | |||||
| class="btn btn-primary"><?php echo $lang['insert_gallery_label']; ?></button> | |||||
| </div> | </div> | ||||
| <script> | <script> | ||||
| $(function() { | |||||
| $("#galleryselect option").dblclick( function(e) { | |||||
| $("#insert-gallery").click (); | |||||
| }); | |||||
| $("#insert-gallery").click(function(e) { | |||||
| if(gallery = $("#galleryselect option:selected").val()) | |||||
| { | |||||
| $($insertField).insertAtCaret("[gallery:"+gallery+"]"); | |||||
| } | |||||
| $('#modal_gallery').modal('hide'); }); | |||||
| }); | |||||
| $(function () { | |||||
| $("#galleryselect option").dblclick(function (e) { | |||||
| $("#insert-gallery").click(); | |||||
| }); | |||||
| $("#insert-gallery").click(function (e) { | |||||
| if (gallery = $("#galleryselect option:selected").val()) { | |||||
| $($insertField).insertAtCaret("[gallery:" + gallery + "]"); | |||||
| } | |||||
| $('#modal_gallery').modal('hide'); | |||||
| }); | |||||
| }); | |||||
| </script> | </script> | ||||
| @ -1,47 +1,49 @@ | |||||
| <div class="modal-header"> | <div class="modal-header"> | ||||
| <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | |||||
| <h4 class="modal-title"><?php echo $lang['insert_image']; ?></h4> | |||||
| <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | |||||
| <h4 class="modal-title"><?php echo $lang['insert_image']; ?></h4> | |||||
| </div> | </div> | ||||
| <div class="modal-body"> | <div class="modal-body"> | ||||
| <?php if(isset($images)): ?> | |||||
| <div class="form-group"> | |||||
| <select id="imageselect" class="form-control" size="20"> | |||||
| <?php foreach($images as $image): ?> | |||||
| <option value="<?php echo $image; ?>" ondblclick="image_popup('<?php echo BASE_URL.MEDIA_DIR.$image; ?>')"><?php echo $image; ?></option> | |||||
| <?php endforeach; ?> | |||||
| </select> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="image_class"><?php echo $lang['insert_image_class']; ?></label> | |||||
| <input id="image_class" class="form-control" type="text" name="image_class" value="<?php echo $settings['default_image_class']; ?>"> | |||||
| </div> | |||||
| <?php else: ?> | |||||
| <div class="alert alert-warning"> | |||||
| <p><?php echo $lang['no_images']; ?></p> | |||||
| </div> | |||||
| <?php endif; ?> | |||||
| <?php if (isset($images)): ?> | |||||
| <div class="form-group"> | |||||
| <select id="imageselect" class="form-control" size="20"> | |||||
| <?php foreach ($images as $image): ?> | |||||
| <option value="<?php echo $image; ?>" | |||||
| ondblclick="image_popup('<?php echo BASE_URL . MEDIA_DIR . $image; ?>')"><?php echo $image; ?></option> | |||||
| <?php endforeach; ?> | |||||
| </select> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="image_class"><?php echo $lang['insert_image_class']; ?></label> | |||||
| <input id="image_class" class="form-control" type="text" name="image_class" | |||||
| value="<?php echo $settings['default_image_class']; ?>"> | |||||
| </div> | |||||
| <?php else: ?> | |||||
| <div class="alert alert-warning"> | |||||
| <p><?php echo $lang['no_images']; ?></p> | |||||
| </div> | |||||
| <?php endif; ?> | |||||
| </div> | </div> | ||||
| <div class="modal-footer"> | <div class="modal-footer"> | ||||
| <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo $lang['cancel']; ?></button> | |||||
| <?php if(isset($images)): ?> | |||||
| <button id="insert-image" type="button" class="btn btn-primary"><?php echo $lang['insert_image_button']; ?></button> | |||||
| <?php endif; ?> | |||||
| <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo $lang['cancel']; ?></button> | |||||
| <?php if (isset($images)): ?> | |||||
| <button id="insert-image" type="button" | |||||
| class="btn btn-primary"><?php echo $lang['insert_image_button']; ?></button> | |||||
| <?php endif; ?> | |||||
| </div> | </div> | ||||
| <script> | <script> | ||||
| $(function() { | |||||
| $("#imageselect option").dblclick( function(e) { | |||||
| $("#insert-image").click (); | |||||
| }); | |||||
| $("#insert-image").click(function(e) { | |||||
| if(gallery = $("#imageselect option:selected").val()) | |||||
| { | |||||
| if(image_class = $("#image_class").val()) imageCode = "[image:"+gallery+"|"+image_class+"]"; | |||||
| else imageCode = "[image:"+gallery+"]"; | |||||
| $($insertField).insertAtCaret(imageCode); | |||||
| } | |||||
| $('#modal_image').modal('hide'); | |||||
| }); | |||||
| }); | |||||
| $(function () { | |||||
| $("#imageselect option").dblclick(function (e) { | |||||
| $("#insert-image").click(); | |||||
| }); | |||||
| $("#insert-image").click(function (e) { | |||||
| if (gallery = $("#imageselect option:selected").val()) { | |||||
| if (image_class = $("#image_class").val()) imageCode = "[image:" + gallery + "|" + image_class + "]"; | |||||
| else imageCode = "[image:" + gallery + "]"; | |||||
| $($insertField).insertAtCaret(imageCode); | |||||
| } | |||||
| $('#modal_image').modal('hide'); | |||||
| }); | |||||
| }); | |||||
| </script> | </script> | ||||
| @ -1,36 +1,36 @@ | |||||
| <div class="modal-header"> | <div class="modal-header"> | ||||
| <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | |||||
| <h4 class="modal-title"><?php echo $lang['insert_image']; ?></h4> | |||||
| <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | |||||
| <h4 class="modal-title"><?php echo $lang['insert_image']; ?></h4> | |||||
| </div> | </div> | ||||
| <div class="modal-body"> | <div class="modal-body"> | ||||
| <?php if(isset($images)): ?> | |||||
| <?php if (isset($images)): ?> | |||||
| <select id="imageselect" size="20" style="width:100%;"> | |||||
| <?php foreach($images as $image): ?> | |||||
| <option value="<?php echo $image; ?>"><?php echo $image; ?></option> | |||||
| <?php endforeach; ?> | |||||
| </select> | |||||
| <select id="imageselect" size="20" style="width:100%;"> | |||||
| <?php foreach ($images as $image): ?> | |||||
| <option value="<?php echo $image; ?>"><?php echo $image; ?></option> | |||||
| <?php endforeach; ?> | |||||
| </select> | |||||
| <?php else: ?> | |||||
| <p><em><?php echo $lang['no_images']; ?></em></p> | |||||
| <?php endif; ?> | |||||
| <?php else: ?> | |||||
| <p><em><?php echo $lang['no_images']; ?></em></p> | |||||
| <?php endif; ?> | |||||
| </div> | </div> | ||||
| <div class="modal-footer"> | <div class="modal-footer"> | ||||
| <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo $lang['cancel']; ?></button> | |||||
| <button id="insert-image" type="button" class="btn btn-primary"><?php echo $lang['insert_image_button']; ?></button> | |||||
| <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo $lang['cancel']; ?></button> | |||||
| <button id="insert-image" type="button" class="btn btn-primary"><?php echo $lang['insert_image_button']; ?></button> | |||||
| </div> | </div> | ||||
| <script> | <script> | ||||
| $(function() { | |||||
| $("#imageselect option").dblclick( function(e) { | |||||
| $("#insert-image").click (); | |||||
| }); | |||||
| $("#insert-image").click(function(e) { | |||||
| if(val = $("#imageselect option:selected").val()) $($insertField).val(val); | |||||
| $('#modal_raw_image').modal('hide'); | |||||
| }); | |||||
| }); | |||||
| $(function () { | |||||
| $("#imageselect option").dblclick(function (e) { | |||||
| $("#insert-image").click(); | |||||
| }); | |||||
| $("#insert-image").click(function (e) { | |||||
| if (val = $("#imageselect option:selected").val()) $($insertField).val(val); | |||||
| $('#modal_raw_image').modal('hide'); | |||||
| }); | |||||
| }); | |||||
| </script> | </script> | ||||
| @ -1,46 +1,49 @@ | |||||
| <div class="modal-header"> | <div class="modal-header"> | ||||
| <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | |||||
| <h4 class="modal-title"><?php echo $lang['insert_thumbnail']; ?></h4> | |||||
| <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | |||||
| <h4 class="modal-title"><?php echo $lang['insert_thumbnail']; ?></h4> | |||||
| </div> | </div> | ||||
| <div class="modal-body"> | <div class="modal-body"> | ||||
| <?php if(isset($thumbnails)): ?> | |||||
| <div class="form-group"> | |||||
| <select id="thumbnailselect" class="form-control" size="20"> | |||||
| <?php foreach($thumbnails as $thumbnail): ?> | |||||
| <option value="<?php echo $thumbnail['id']; ?>"><?php echo $thumbnail['title']; ?> (<?php echo $thumbnail['gallery']; ?>)</option> | |||||
| <?php endforeach; ?> | |||||
| </select> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="image_class"><?php echo $lang['insert_image_class']; ?></label> | |||||
| <input id="image_class" class="form-control" type="text" name="image_class" value="<?php echo $settings['default_thumbnail_class']; ?>"> | |||||
| </div> | |||||
| <?php else: ?> | |||||
| <div class="alert alert-warning"> | |||||
| <p><?php echo $lang['no_images']; ?></p> | |||||
| </div> | |||||
| <?php endif; ?> | |||||
| <?php if (isset($thumbnails)): ?> | |||||
| <div class="form-group"> | |||||
| <select id="thumbnailselect" class="form-control" size="20"> | |||||
| <?php foreach ($thumbnails as $thumbnail): ?> | |||||
| <option value="<?php echo $thumbnail['id']; ?>"><?php echo $thumbnail['title']; ?> | |||||
| (<?php echo $thumbnail['gallery']; ?>) | |||||
| </option> | |||||
| <?php endforeach; ?> | |||||
| </select> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="image_class"><?php echo $lang['insert_image_class']; ?></label> | |||||
| <input id="image_class" class="form-control" type="text" name="image_class" | |||||
| value="<?php echo $settings['default_thumbnail_class']; ?>"> | |||||
| </div> | |||||
| <?php else: ?> | |||||
| <div class="alert alert-warning"> | |||||
| <p><?php echo $lang['no_images']; ?></p> | |||||
| </div> | |||||
| <?php endif; ?> | |||||
| </div> | </div> | ||||
| <div class="modal-footer"> | <div class="modal-footer"> | ||||
| <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo $lang['cancel']; ?></button> | |||||
| <?php if(isset($thumbnails)): ?> | |||||
| <button id="insert-image" type="button" class="btn btn-primary"><?php echo $lang['insert_thumbnail_button']; ?></button> | |||||
| <?php endif; ?> | |||||
| <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo $lang['cancel']; ?></button> | |||||
| <?php if (isset($thumbnails)): ?> | |||||
| <button id="insert-image" type="button" | |||||
| class="btn btn-primary"><?php echo $lang['insert_thumbnail_button']; ?></button> | |||||
| <?php endif; ?> | |||||
| </div> | </div> | ||||
| <script> | <script> | ||||
| $(function() { | |||||
| $("#thumbnailselect option").dblclick( function(e) { | |||||
| $("#insert-image").click (); | |||||
| }); | |||||
| $("#insert-image").click(function(e) { | |||||
| if(thumbnail = $("#thumbnailselect option:selected").val()) | |||||
| { | |||||
| if(imageClass = $("#image_class").val()) imageCode = "[thumbnail:"+thumbnail+"|"+imageClass+"]"; | |||||
| else imageCode = "[image:"+thumbnail+"]"; | |||||
| $($insertField).insertAtCaret(imageCode); | |||||
| } | |||||
| $('#modal_thumbnail').modal('hide'); | |||||
| }); | |||||
| }); | |||||
| $(function () { | |||||
| $("#thumbnailselect option").dblclick(function (e) { | |||||
| $("#insert-image").click(); | |||||
| }); | |||||
| $("#insert-image").click(function (e) { | |||||
| if (thumbnail = $("#thumbnailselect option:selected").val()) { | |||||
| if (imageClass = $("#image_class").val()) imageCode = "[thumbnail:" + thumbnail + "|" + imageClass + "]"; | |||||
| else imageCode = "[image:" + thumbnail + "]"; | |||||
| $($insertField).insertAtCaret(imageCode); | |||||
| } | |||||
| $('#modal_thumbnail').modal('hide'); | |||||
| }); | |||||
| }); | |||||
| </script> | </script> | ||||
| @ -1,38 +1,48 @@ | |||||
| <div class="row"> | <div class="row"> | ||||
| <div class="col-md-10"> | |||||
| <h1><?php echo $lang['notes']; ?></h1> | |||||
| </div> | |||||
| <div class="col-md-2"> | |||||
| <a class="btn btn-success btn-top pull-right" href="index.php?mode=notes&action=new"><span class="glyphicon glyphicon-plus"></span> <?php echo $lang['create_note_section']; ?></a> | |||||
| </div> | |||||
| <div class="col-md-10"> | |||||
| <h1><?php echo $lang['notes']; ?></h1> | |||||
| </div> | |||||
| <div class="col-md-2"> | |||||
| <a class="btn btn-success btn-top pull-right" href="index.php?mode=notes&action=new"><span | |||||
| class="glyphicon glyphicon-plus"></span> <?php echo $lang['create_note_section']; ?></a> | |||||
| </div> | |||||
| </div> | </div> | ||||
| <?php if(isset($note_sections)): ?> | |||||
| <?php if (isset($note_sections)): ?> | |||||
| <div class="table-responsive"> | |||||
| <table class="table table-striped table-hover"> | |||||
| <thead> | |||||
| <tr> | |||||
| <th><?php echo $lang['note_section']; ?></th> | |||||
| <th colspan="2"> </th> | |||||
| </tr> | |||||
| </thead> | |||||
| <tbody> | |||||
| <?php $i = 0; | |||||
| foreach ($note_sections as $note_section): ?> | |||||
| <tr> | |||||
| <td><?php echo $note_section; ?></td> | |||||
| <td class="nobreak options"> | |||||
| <a class="btn btn-primary btn-xs" | |||||
| href="index.php?mode=notes&edit=<?php echo $note_section; ?>" | |||||
| title="<?php echo $lang['edit']; ?>"> | |||||
| <span class="glyphicon glyphicon-pencil"></span></a> | |||||
| <a class="btn btn-danger btn-xs" | |||||
| href="index.php?mode=notes&delete=<?php echo $note_section; ?>" | |||||
| title="<?php echo $lang['delete']; ?>" | |||||
| data-delete-confirm="<?php echo rawurlencode($lang['delete_this_note_section']); ?>"> | |||||
| <span class="glyphicon glyphicon-remove"></span></a></td> | |||||
| </tr> | |||||
| <?php $i++; endforeach; ?> | |||||
| <tbody> | |||||
| </table> | |||||
| </div> | |||||
| <div class="table-responsive"> | |||||
| <table class="table table-striped table-hover"> | |||||
| <thead> | |||||
| <tr> | |||||
| <th><?php echo $lang['note_section']; ?></th> | |||||
| <th colspan="2"> </th> | |||||
| </tr> | |||||
| </thead> | |||||
| <tbody> | |||||
| <?php $i=0; foreach($note_sections as $note_section): ?> | |||||
| <tr> | |||||
| <td><?php echo $note_section; ?></td> | |||||
| <td class="nobreak options"><a class="btn btn-primary btn-xs" href="index.php?mode=notes&edit=<?php echo $note_section; ?>" title="<?php echo $lang['edit']; ?>"><span class="glyphicon glyphicon-pencil"></span></a> | |||||
| <a class="btn btn-danger btn-xs" href="index.php?mode=notes&delete=<?php echo $note_section; ?>" title="<?php echo $lang['delete']; ?>" data-delete-confirm="<?php echo rawurlencode($lang['delete_this_note_section']); ?>"><span class="glyphicon glyphicon-remove"></span></a></td> | |||||
| </tr> | |||||
| <?php $i++; endforeach; ?> | |||||
| <tbody> | |||||
| </table> | |||||
| </div> | |||||
| <?php else: ?> | <?php else: ?> | ||||
| <div class="alert alert-warning"> | |||||
| <?php echo $lang['no_note_sections']; ?></em></p> | |||||
| </div> | |||||
| <div class="alert alert-warning"> | |||||
| <?php echo $lang['no_note_sections']; ?></em></p> | |||||
| </div> | |||||
| <?php endif; ?> | <?php endif; ?> | ||||
| @ -1,60 +1,67 @@ | |||||
| <ol class="breadcrumb"> | <ol class="breadcrumb"> | ||||
| <li><a href="index.php?mode=notes"><?php echo $lang['notes']; ?></a></li> | |||||
| <li><a href="index.php?mode=notes&edit=<?php echo $note['note_section']; ?>"><?php echo $lang['notes']; ?>: <?php echo $note['note_section']; ?></a></li> | |||||
| <li class="active"> | |||||
| <?php if(isset($note['id'])): ?> | |||||
| <?php echo $lang['edit_note']; ?> | |||||
| <?php else: ?> | |||||
| <?php echo $lang['add_note']; ?> | |||||
| <?php endif; ?></li> | |||||
| <li><a href="index.php?mode=notes"><?php echo $lang['notes']; ?></a></li> | |||||
| <li><a href="index.php?mode=notes&edit=<?php echo $note['note_section']; ?>"><?php echo $lang['notes']; ?> | |||||
| : <?php echo $note['note_section']; ?></a></li> | |||||
| <li class="active"> | |||||
| <?php if (isset($note['id'])): ?> | |||||
| <?php echo $lang['edit_note']; ?> | |||||
| <?php else: ?> | |||||
| <?php echo $lang['add_note']; ?> | |||||
| <?php endif; ?></li> | |||||
| </ol> | </ol> | ||||
| <h1> | <h1> | ||||
| <?php if(isset($note['id'])): ?> | |||||
| <?php echo $lang['edit_note']; ?> | |||||
| <?php else: ?> | |||||
| <?php echo $lang['add_note']; ?> | |||||
| <?php endif; ?> | |||||
| <?php if (isset($note['id'])): ?> | |||||
| <?php echo $lang['edit_note']; ?> | |||||
| <?php else: ?> | |||||
| <?php echo $lang['add_note']; ?> | |||||
| <?php endif; ?> | |||||
| </h1> | </h1> | ||||
| <?php include('errors.inc.tpl'); ?> | <?php include('errors.inc.tpl'); ?> | ||||
| <form action="index.php" method="post" name="notesform"> | <form action="index.php" method="post" name="notesform"> | ||||
| <div> | |||||
| <input type="hidden" name="mode" value="notes"> | |||||
| <input type="hidden" name="text_formatting" value="0"> | |||||
| <input type="hidden" name="edit_note_submit" value="true"> | |||||
| <?php if(isset($note['id'])): ?> | |||||
| <input type="hidden" name="id" value="<?php echo $note['id']; ?>" /> | |||||
| <?php endif; ?> | |||||
| <input type="hidden" name="note_section" value="<?php echo $note['note_section']; ?>" /> | |||||
| <div class="form-group"> | |||||
| <label for="title"><?php echo $lang['edit_note_title']; ?></label> | |||||
| <input id="title" class="form-control" type="text" name="title" value="<?php if(isset($note['title'])) echo $note['title']; ?>"> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="text"><?php echo $lang['edit_note_text']; ?></label> | |||||
| <textarea id="text" class="form-control" name="text" rows="10"><?php if(isset($note['text'])) echo $note['text']; ?></textarea> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="link"><?php echo $lang['edit_note_link']; ?></label> | |||||
| <input id="link" class="form-control" type="text" name="link" value="<?php if(isset($note['link'])) echo $note['link']; ?>"> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="linkname"><?php echo $lang['edit_note_linkname']; ?></label> | |||||
| <input id="linkname" class="form-control" type="text" name="linkname" value="<?php if(isset($note['linkname'])) echo $note['linkname']; ?>"> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="time"><?php echo $lang['edit_note_date_marking']; ?></label> | |||||
| <input id="time" class="form-control" type="text" name="time" value="<?php if(isset($note['time'])) echo $note['time']; ?>" placeholder="<?php echo $lang['edit_time_format']; ?>"> | |||||
| </div> | |||||
| <button class="btn btn-primary" type="submit"><?php echo $lang['submit_button_ok']; ?></button> | |||||
| </div> | |||||
| <div> | |||||
| <input type="hidden" name="mode" value="notes"> | |||||
| <input type="hidden" name="text_formatting" value="0"> | |||||
| <input type="hidden" name="edit_note_submit" value="true"> | |||||
| <?php if (isset($note['id'])): ?> | |||||
| <input type="hidden" name="id" value="<?php echo $note['id']; ?>"/> | |||||
| <?php endif; ?> | |||||
| <input type="hidden" name="note_section" value="<?php echo $note['note_section']; ?>"/> | |||||
| <div class="form-group"> | |||||
| <label for="title"><?php echo $lang['edit_note_title']; ?></label> | |||||
| <input id="title" class="form-control" type="text" name="title" | |||||
| value="<?php if (isset($note['title'])) echo $note['title']; ?>"> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="text"><?php echo $lang['edit_note_text']; ?></label> | |||||
| <textarea id="text" class="form-control" name="text" | |||||
| rows="10"><?php if (isset($note['text'])) echo $note['text']; ?></textarea> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="link"><?php echo $lang['edit_note_link']; ?></label> | |||||
| <input id="link" class="form-control" type="text" name="link" | |||||
| value="<?php if (isset($note['link'])) echo $note['link']; ?>"> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="linkname"><?php echo $lang['edit_note_linkname']; ?></label> | |||||
| <input id="linkname" class="form-control" type="text" name="linkname" | |||||
| value="<?php if (isset($note['linkname'])) echo $note['linkname']; ?>"> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="time"><?php echo $lang['edit_note_date_marking']; ?></label> | |||||
| <input id="time" class="form-control" type="text" name="time" | |||||
| value="<?php if (isset($note['time'])) echo $note['time']; ?>" | |||||
| placeholder="<?php echo $lang['edit_time_format']; ?>"> | |||||
| </div> | |||||
| <button class="btn btn-primary" type="submit"><?php echo $lang['submit_button_ok']; ?></button> | |||||
| </div> | |||||
| </form> | </form> | ||||
| @ -1,41 +1,58 @@ | |||||
| <ol class="breadcrumb"> | <ol class="breadcrumb"> | ||||
| <li><a href="index.php?mode=notes"><?php echo $lang['notes']; ?></a></li> | |||||
| <li class="active"><?php echo $lang['notes']; ?>: <?php echo $note_section; ?></li> | |||||
| <li><a href="index.php?mode=notes"><?php echo $lang['notes']; ?></a></li> | |||||
| <li class="active"><?php echo $lang['notes']; ?>: <?php echo $note_section; ?></li> | |||||
| </ol> | </ol> | ||||
| <div class="row"> | <div class="row"> | ||||
| <div class="col-md-10"> | |||||
| <h1><?php echo $lang['notes']; ?>: <?php echo $note_section; ?></h1> | |||||
| </div> | |||||
| <div class="col-md-2"> | |||||
| <a class="btn btn-success btn-top pull-right" href="index.php?mode=notes&add_note=<?php echo $note_section; ?>"><span class="glyphicon glyphicon-plus"></span> <?php echo $lang['add_note']; ?></a> | |||||
| </div> | |||||
| <div class="col-md-10"> | |||||
| <h1><?php echo $lang['notes']; ?>: <?php echo $note_section; ?></h1> | |||||
| </div> | |||||
| <div class="col-md-2"> | |||||
| <a class="btn btn-success btn-top pull-right" | |||||
| href="index.php?mode=notes&add_note=<?php echo $note_section; ?>"> | |||||
| <span class="glyphicon glyphicon-plus"></span> <?php echo $lang['add_note']; ?></a> | |||||
| </div> | |||||
| </div> | </div> | ||||
| <?php if(isset($notes)): ?> | |||||
| <?php if (isset($notes)): ?> | |||||
| <div class="table-responsive"> | |||||
| <table class="table table-striped table-hover"> | |||||
| <tbody data-sortable="<?php echo BASE_URL; ?>cms/?mode=notes&reorder_notes=true"> | |||||
| <?php $i=0; foreach($notes as $note): ?> | |||||
| <tr id="item_<?php echo $note['id']; ?>"> | |||||
| <td class="<?php if($i%2==0): ?>a<?php else: ?>b<?php endif; ?>" style="cursor:move;"> | |||||
| <h3><?php echo stripslashes($note['title']); ?></h3> | |||||
| <p><?php echo $note['text']; ?> | |||||
| <?php if($note['link']!=''): ?><br /> | |||||
| <a href="<?php echo $note['link']; ?>"><?php echo $note['linkname']; ?></a><?php endif; ?></p> | |||||
| </td> | |||||
| <td class="options nowrap"><a class="btn btn-primary btn-xs" href="index.php?mode=notes&edit_note=<?php echo $note['id']; ?>" title="<?php echo $lang['edit']; ?>"><span class="glyphicon glyphicon-pencil"></span></a> | |||||
| <a class="btn btn-danger btn-xs" href="index.php?mode=notes&delete_note=<?php echo $note['id']; ?>" title="<?php echo $lang['delete']; ?>" data-delete-confirm="<?php echo rawurlencode($lang['delete_note_confirm']); ?>"><span class="glyphicon glyphicon-remove"></span></a> | |||||
| <span class="btn btn-success btn-xs sortable-handle" title="<?php echo $lang['drag_and_drop']; ?>"><span class="glyphicon glyphicon-sort"></span></span><!--<a href="index.php?mode=notes&move_up=<?php echo $note['id']; ?>"><img src="<?php echo BASE_URL; ?>templates/admin/images/arrow_up.png" alt="<?php echo $lang['move_up']; ?>" title="<?php echo $lang['move_up']; ?>" width="16" height="16" /></a><a href="index.php?mode=notes&move_down=<?php echo $note['id']; ?>"><img src="<?php echo BASE_URL; ?>templates/admin/images/arrow_down.png" alt="<?php echo $lang['move_up']; ?>" title="<?php echo $lang['move_up']; ?>" width="16" height="16" /></a>--></td> | |||||
| </tr> | |||||
| <?php $i++; endforeach; ?> | |||||
| </tbody> | |||||
| </table> | |||||
| </div> | |||||
| <div class="table-responsive"> | |||||
| <table class="table table-striped table-hover"> | |||||
| <tbody data-sortable="<?php echo BASE_URL; ?>cms/?mode=notes&reorder_notes=true"> | |||||
| <?php $i = 0; | |||||
| foreach ($notes as $note): ?> | |||||
| <tr id="item_<?php echo $note['id']; ?>"> | |||||
| <td class="<?php if ($i % 2 == 0): ?>a<?php else: ?>b<?php endif; ?>" style="cursor:move;"> | |||||
| <h3><?php echo stripslashes($note['title']); ?></h3> | |||||
| <p><?php echo $note['text']; ?> | |||||
| <?php if ($note['link'] != ''): ?><br/> | |||||
| <a | |||||
| href="<?php echo $note['link']; ?>"><?php echo $note['linkname']; ?></a><?php endif; ?> | |||||
| </p> | |||||
| </td> | |||||
| <td class="options nowrap"> | |||||
| <a class="btn btn-primary btn-xs" | |||||
| href="index.php?mode=notes&edit_note=<?php echo $note['id']; ?>" | |||||
| title="<?php echo $lang['edit']; ?>"> | |||||
| <span class="glyphicon glyphicon-pencil"></span></a> | |||||
| <a class="btn btn-danger btn-xs" | |||||
| href="index.php?mode=notes&delete_note=<?php echo $note['id']; ?>" | |||||
| title="<?php echo $lang['delete']; ?>" | |||||
| data-delete-confirm="<?php echo rawurlencode($lang['delete_note_confirm']); ?>"> | |||||
| <span class="glyphicon glyphicon-remove"></span></a> | |||||
| <span class="btn btn-success btn-xs sortable-handle" | |||||
| title="<?php echo $lang['drag_and_drop']; ?>"><span | |||||
| class="glyphicon glyphicon-sort"></span></span><!--<a href="index.php?mode=notes&move_up=<?php echo $note['id']; ?>"><img src="<?php echo BASE_URL; ?>templates/admin/images/arrow_up.png" alt="<?php echo $lang['move_up']; ?>" title="<?php echo $lang['move_up']; ?>" width="16" height="16" /></a><a href="index.php?mode=notes&move_down=<?php echo $note['id']; ?>"><img src="<?php echo BASE_URL; ?>templates/admin/images/arrow_down.png" alt="<?php echo $lang['move_up']; ?>" title="<?php echo $lang['move_up']; ?>" width="16" height="16" /></a>--> | |||||
| </td> | |||||
| </tr> | |||||
| <?php $i++; endforeach; ?> | |||||
| </tbody> | |||||
| </table> | |||||
| </div> | |||||
| <?php else: ?> | <?php else: ?> | ||||
| <div class="alert alert-warning"><?php echo $lang['no_notes']; ?></div> | |||||
| <div class="alert alert-warning"><?php echo $lang['no_notes']; ?></div> | |||||
| <?php endif; ?> | <?php endif; ?> | ||||
| @ -1,55 +1,105 @@ | |||||
| <div class="row"> | <div class="row"> | ||||
| <div class="col-md-10"> | |||||
| <h1><h1><?php echo $lang['page_overview']; ?></h1></h1> | |||||
| </div> | |||||
| <div class="col-md-2"> | |||||
| <?php if($user_type==1): ?> | |||||
| <a href="<?php echo BASE_URL; ?>cms/index.php?mode=edit" class="btn btn-success btn-top pull-right"><span class="glyphicon glyphicon-plus"></span> <?php echo $lang['admin_menu_new_page']; ?></a><?php endif; ?> | |||||
| </div> | |||||
| <div class="col-md-10"> | |||||
| <h1><h1><?php echo $lang['page_overview']; ?></h1></h1> | |||||
| </div> | |||||
| <div class="col-md-2"> | |||||
| <?php if ($user_type == 1): ?> | |||||
| <a href="<?php echo BASE_URL; ?>cms/index.php?mode=edit" class="btn btn-success btn-top pull-right"> | |||||
| <span class="glyphicon glyphicon-plus"></span> <?php echo $lang['admin_menu_new_page']; ?> | |||||
| </a><?php endif; ?> | |||||
| </div> | |||||
| </div> | </div> | ||||
| <?php if(isset($pages)): ?> | |||||
| <div class="table-responsive"> | |||||
| <table class="table table-striped table-hover"> | |||||
| <thead> | |||||
| <tr> | |||||
| <th><a href="index.php?mode=pages&order=page&descasc=<?php if($descasc=="ASC" && $order=="page"): ?>DESC<?php else: ?>ASC<?php endif; ?>"><?php echo $lang['page_name_marking']; ?><?php if ($order=="page" && $descasc=="ASC"): ?> <span class="glyphicon glyphicon-chevron-down"></span><?php elseif($order=="page" && $descasc=="DESC"): ?> <span class="glyphicon glyphicon-chevron-up"></span><?php endif; ?></a></th> | |||||
| <th><a href="index.php?mode=pages&order=title&descasc=<?php if($descasc=="ASC" && $order=="title"): ?>DESC<?php else: ?>ASC<?php endif; ?>"><?php echo $lang['title_marking']; ?><?php if ($order=="title" && $descasc=="ASC"): ?> <span class="glyphicon glyphicon-chevron-down"></span><?php elseif($order=="title" && $descasc=="DESC"): ?> <span class="glyphicon glyphicon-chevron-up"></span><?php endif; ?></a></th> | |||||
| <th><a href="index.php?mode=pages&order=time&descasc=<?php if($descasc=="ASC" && $order=="time"): ?>DESC<?php else: ?>ASC<?php endif; ?>"><?php echo $lang['created_marking']; ?><?php if ($order=="time" && $descasc=="ASC"): ?> <span class="glyphicon glyphicon-chevron-down"></span><?php elseif($order=="time" && $descasc=="DESC"): ?> <span class="glyphicon glyphicon-chevron-up"></span><?php endif; ?></a></th> | |||||
| <th><a href="index.php?mode=pages&order=last_modified&descasc=<?php if($descasc=="ASC" && $order=="last_modified"): ?>DESC<?php else: ?>ASC<?php endif; ?>"><?php echo $lang['last_modified_marking']; ?><?php if ($order=="last_modified" && $descasc=="ASC"): ?> <span class="glyphicon glyphicon-chevron-down"></span><?php elseif($order=="last_modified" && $descasc=="DESC"): ?> <span class="glyphicon glyphicon-chevron-up"></span><?php endif; ?></a></th> | |||||
| <?php if($settings['count_views']): ?> | |||||
| <th><a href="index.php?mode=pages&order=views&descasc=<?php if($descasc=="ASC" && $order=="views"): ?>DESC<?php else: ?>ASC<?php endif; ?>"><?php echo $lang['views_marking']; ?><?php if ($order=="views" && $descasc=="ASC"): ?> <span class="glyphicon glyphicon-chevron-down"></span><?php elseif($order=="views" && $descasc=="DESC"): ?> <span class="glyphicon glyphicon-chevron-up"></span><?php endif; ?></a></th> | |||||
| <?php endif; ?> | |||||
| <th> </th> | |||||
| </tr> | |||||
| </thead> | |||||
| <tbody> | |||||
| <?php $i=0; $total_views=0; foreach($pages as $page): ?> | |||||
| <tr> | |||||
| <td><?php if($page['status']>0) { ?><a href="<?php echo BASE_URL.$page['page']; ?>"><?php if($settings['index_page']==$page['page']) { ?><b><?php } echo $page['page']; if($settings['index_page']==$page['page']) { ?></b><?php } ?></a><?php } else echo $page['page']; ?></td> | |||||
| <td><?php echo $page['title']; ?></td> | |||||
| <td class="nowrap"><?php echo strftime($lang['time_format'],$page['time']); if(isset($users[$page['author']])) { ?> <span class="smallx">(<?php echo $users[$page['author']]; ?>)</span><?php } ?></td> | |||||
| <td class="nowrap"><?php echo strftime($lang['time_format'],$page['last_modified']); if(isset($users[$page['last_modified_by']])) { ?> <span class="smallx">(<?php echo $users[$page['last_modified_by']]; ?>)</span><?php } ?></td> | |||||
| <?php if($settings['count_views']): ?> | |||||
| <td><?php echo $page['views']; $total_views=$total_views+$page['views']; ?></td> | |||||
| <?php endif; ?> | |||||
| <?php if($page['edit_permission']): ?> | |||||
| <td class="options nowrap"><a href="index.php?mode=edit&id=<?php echo $page['id']; ?>" title="<?php echo $lang['edit']; ?>" class="btn btn-primary btn-xs"><span class="glyphicon glyphicon-pencil"></span></a> <a href="index.php?mode=pages&delete_page=<?php echo $page['id']; ?>" title="<?php echo $lang['delete']; ?>" class="btn btn-danger btn-xs" onclick="str='<?php echo rawurlencode($lang['delete_page_confirm']); ?>'; return confirm_link(str.replace('<?php echo rawurlencode('[page]'); ?>','<?php echo rawurlencode($page['page']); ?>'),this)"><span class="glyphicon glyphicon-remove"></span></a></td> | |||||
| <?php else: ?> | |||||
| <td> </td> | |||||
| <?php endif; ?> | |||||
| </tr> | |||||
| <?php $i++; endforeach; ?> | |||||
| <?php if($settings['count_views']): ?> | |||||
| <tr> | |||||
| <td colspan="4" style="text-align:right;"><?php echo str_replace('[time]',strftime($lang['time_format'],$settings['counter_last_resetted']),$lang['total_views']); ?></td> | |||||
| <td><b><?php echo $total_views; ?></b></td> | |||||
| <td colspan="2"><?php if($_SESSION[$settings['session_prefix'].'user_type']==1) { ?><span class="small"><a href="<?php echo basename($_SERVER['PHP_SELF']); ?>?mode=pages&reset_views=true"><?php echo $lang['reset_views']; ?></a></span><?php } else { ?> <?php } ?></td> | |||||
| </tr> | |||||
| <?php endif; ?> | |||||
| </tbody> | |||||
| </table> | |||||
| </div> | |||||
| <?php if (isset($pages)): ?> | |||||
| <div class="table-responsive"> | |||||
| <table class="table table-striped table-hover"> | |||||
| <thead> | |||||
| <tr> | |||||
| <th> | |||||
| <a href="index.php?mode=pages&order=page&descasc=<?php if ($descasc == "ASC" && $order == "page"): ?>DESC<?php else: ?>ASC<?php endif; ?>"><?php echo $lang['page_name_marking']; ?><?php if ($order == "page" && $descasc == "ASC"): ?> | |||||
| <span | |||||
| class="glyphicon glyphicon-chevron-down"></span><?php elseif ($order == "page" && $descasc == "DESC"): ?> | |||||
| <span class="glyphicon glyphicon-chevron-up"></span><?php endif; ?></a></th> | |||||
| <th> | |||||
| <a href="index.php?mode=pages&order=title&descasc=<?php if ($descasc == "ASC" && $order == "title"): ?>DESC<?php else: ?>ASC<?php endif; ?>"><?php echo $lang['title_marking']; ?><?php if ($order == "title" && $descasc == "ASC"): ?> | |||||
| <span | |||||
| class="glyphicon glyphicon-chevron-down"></span><?php elseif ($order == "title" && $descasc == "DESC"): ?> | |||||
| <span class="glyphicon glyphicon-chevron-up"></span><?php endif; ?></a></th> | |||||
| <th> | |||||
| <a href="index.php?mode=pages&order=time&descasc=<?php if ($descasc == "ASC" && $order == "time"): ?>DESC<?php else: ?>ASC<?php endif; ?>"><?php echo $lang['created_marking']; ?><?php if ($order == "time" && $descasc == "ASC"): ?> | |||||
| <span | |||||
| class="glyphicon glyphicon-chevron-down"></span><?php elseif ($order == "time" && $descasc == "DESC"): ?> | |||||
| <span class="glyphicon glyphicon-chevron-up"></span><?php endif; ?></a></th> | |||||
| <th> | |||||
| <a href="index.php?mode=pages&order=last_modified&descasc=<?php if ($descasc == "ASC" && $order == "last_modified"): ?>DESC<?php else: ?>ASC<?php endif; ?>"><?php echo $lang['last_modified_marking']; ?><?php if ($order == "last_modified" && $descasc == "ASC"): ?> | |||||
| <span | |||||
| class="glyphicon glyphicon-chevron-down"></span><?php elseif ($order == "last_modified" && $descasc == "DESC"): ?> | |||||
| <span class="glyphicon glyphicon-chevron-up"></span><?php endif; ?></a></th> | |||||
| <?php if ($settings['count_views']): ?> | |||||
| <th> | |||||
| <a href="index.php?mode=pages&order=views&descasc=<?php if ($descasc == "ASC" && $order == "views"): ?>DESC<?php else: ?>ASC<?php endif; ?>"><?php echo $lang['views_marking']; ?><?php if ($order == "views" && $descasc == "ASC"): ?> | |||||
| <span | |||||
| class="glyphicon glyphicon-chevron-down"></span><?php elseif ($order == "views" && $descasc == "DESC"): ?> | |||||
| <span class="glyphicon glyphicon-chevron-up"></span><?php endif; ?></a></th> | |||||
| <?php endif; ?> | |||||
| <th> </th> | |||||
| </tr> | |||||
| </thead> | |||||
| <tbody> | |||||
| <?php $i = 0; | |||||
| $total_views = 0; | |||||
| foreach ($pages as $page): ?> | |||||
| <tr> | |||||
| <td><?php if ($page['status'] > 0) { ?> | |||||
| <a | |||||
| href="<?php echo BASE_URL . $page['page']; ?>"><?php if ($settings['index_page'] == $page['page']) { ?> | |||||
| <b><?php | |||||
| } | |||||
| echo $page['page']; | |||||
| if ($settings['index_page'] == $page['page']) { | |||||
| ?></b><?php } ?> | |||||
| </a><?php } else echo $page['page']; ?></td> | |||||
| <td><?php echo $page['title']; ?></td> | |||||
| <td class="nowrap"><?php echo strftime($lang['time_format'], $page['time']); | |||||
| if (isset($users[$page['author']])) { | |||||
| ?> <span class="smallx"> | |||||
| (<?php echo $users[$page['author']]; ?>)</span><?php } ?></td> | |||||
| <td class="nowrap"><?php echo strftime($lang['time_format'], $page['last_modified']); | |||||
| if (isset($users[$page['last_modified_by']])) { | |||||
| ?> <span class="smallx"> | |||||
| (<?php echo $users[$page['last_modified_by']]; ?>)</span><?php } ?></td> | |||||
| <?php if ($settings['count_views']): ?> | |||||
| <td><?php echo $page['views']; | |||||
| $total_views = $total_views + $page['views']; ?></td> | |||||
| <?php endif; ?> | |||||
| <?php if ($page['edit_permission']): ?> | |||||
| <td class="options nowrap"><a href="index.php?mode=edit&id=<?php echo $page['id']; ?>" | |||||
| title="<?php echo $lang['edit']; ?>" | |||||
| class="btn btn-primary btn-xs"> | |||||
| <span class="glyphicon glyphicon-pencil"></span></a> | |||||
| <a href="index.php?mode=pages&delete_page=<?php echo $page['id']; ?>" | |||||
| title="<?php echo $lang['delete']; ?>" class="btn btn-danger btn-xs" | |||||
| onclick="str='<?php echo rawurlencode($lang['delete_page_confirm']); ?>'; return confirm_link(str.replace('<?php echo rawurlencode('[page]'); ?>','<?php echo rawurlencode($page['page']); ?>'),this)"><span | |||||
| class="glyphicon glyphicon-remove"></span></a></td> | |||||
| <?php else: ?> | |||||
| <td> </td> | |||||
| <?php endif; ?> | |||||
| </tr> | |||||
| <?php $i++; endforeach; ?> | |||||
| <?php if ($settings['count_views']): ?> | |||||
| <tr> | |||||
| <td colspan="4" | |||||
| style="text-align:right;"><?php echo str_replace('[time]', strftime($lang['time_format'], $settings['counter_last_resetted']), $lang['total_views']); ?></td> | |||||
| <td><b><?php echo $total_views; ?></b></td> | |||||
| <td colspan="2"><?php if ($_SESSION[$settings['session_prefix'] . 'user_type'] == 1) { ?><span | |||||
| class="small"> | |||||
| <a href="<?php echo basename($_SERVER['PHP_SELF']); ?>?mode=pages&reset_views=true"><?php echo $lang['reset_views']; ?></a> | |||||
| </span><?php } else { ?> <?php } ?></td> | |||||
| </tr> | |||||
| <?php endif; ?> | |||||
| </tbody> | |||||
| </table> | |||||
| </div> | |||||
| <?php else: ?> | <?php else: ?> | ||||
| <div class="alert alert-info"><?php echo $lang['no_pages']; ?></div> | |||||
| <div class="alert alert-info"><?php echo $lang['no_pages']; ?></div> | |||||
| <?php endif; ?> | <?php endif; ?> | ||||
| @ -1,112 +1,134 @@ | |||||
| <h1><?php echo $lang['settings']; ?></h1> | <h1><?php echo $lang['settings']; ?></h1> | ||||
| <?php if(isset($saved)): ?> | |||||
| <div class="alert alert-success"> | |||||
| <button type="button" class="close" data-dismiss="alert">×</button> | |||||
| <span class="glyphicon glyphicon-ok"></span> <?php echo $lang['settings_saved']; ?><?php if(isset($cache_cleared)): ?> / <?php echo $lang['cache_cleared']; ?><?php endif;?> | |||||
| </div> | |||||
| <?php endif;?> | |||||
| <form action="<?php echo BASE_URL; ?>cms/index.php" method="post" class="form-horizontal"> | |||||
| <input type="hidden" name="mode" value="settings" /> | |||||
| <input type="hidden" name="settings_submitted" /> | |||||
| <div class="form-group"> | |||||
| <label for="website_title" class="col-md-2 control-label"><?php echo $lang['settings_website_title']; ?></label> | |||||
| <div class="col-md-6"> | |||||
| <input type="text" class="form-control" id="website_title" name="website_title" value="<?php echo htmlspecialchars($settings['website_title']); ?>" size="35"> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="website_subtitle" class="col-md-2 control-label"><?php echo $lang['settings_website_subtitle']; ?></label> | |||||
| <div class="col-md-6"> | |||||
| <input type="text" class="form-control" id="website_subtitle" name="website_subtitle" value="<?php echo htmlspecialchars($settings['website_subtitle']); ?>" size="35"> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="author" class="col-md-2 control-label"><?php echo $lang['settings_author']; ?></label> | |||||
| <div class="col-md-6"> | |||||
| <input type="text" class="form-control" id="author" name="author" value="<?php echo htmlspecialchars($settings['author']); ?>" size="35"> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="email" class="col-md-2 control-label"><?php echo $lang['settings_email']; ?></label> | |||||
| <div class="col-md-6"> | |||||
| <input type="text" class="form-control" id="email" name="email" value="<?php echo htmlspecialchars($settings['email']); ?>" size="35"> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="index_page" class="col-md-2 control-label"><?php echo $lang['settings_index_page']; ?></label> | |||||
| <div class="col-md-6"> | |||||
| <select id="index_page" name="index_page" size="1" class="form-control"> | |||||
| <?php foreach($pages as $current_page): ?> | |||||
| <option value="<?php echo $current_page['page']; ?>"<?php if($settings['index_page']==$current_page['page']): ?> selected="selected"<?php endif; ?>><?php echo $current_page['page']; ?></option> | |||||
| <?php endforeach; ?> | |||||
| </select> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="error_page" class="col-md-2 control-label"><?php echo $lang['settings_error_page']; ?></label> | |||||
| <div class="col-md-6"> | |||||
| <select id="error_page" name="error_page" size="1" class="form-control"> | |||||
| <?php foreach($pages as $current_page): ?> | |||||
| <option value="<?php echo $current_page['page']; ?>"<?php if($settings['error_page']==$current_page['page']): ?> selected="selected"<?php endif; ?>><?php echo $current_page['page']; ?></option> | |||||
| <?php endforeach; ?> | |||||
| </select></div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="admin_language" class="col-md-2 control-label"><?php echo $lang['admin_language']; ?></label> | |||||
| <div class="col-md-6"> | |||||
| <select id="admin_language" name="admin_language" size="1" class="form-control"> | |||||
| <?php foreach($admin_languages as $admin_language): ?> | |||||
| <option value="<?php echo $admin_language['identifier']; ?>"<?php if($settings['admin_language']==$admin_language['identifier']): ?> selected<?php endif ?>><?php echo $admin_language['name']; ?></option> | |||||
| <?php endforeach; ?> | |||||
| </select> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="default_page_language" class="col-md-2 control-label"><?php echo $lang['default_page_language']; ?></label> | |||||
| <div class="col-md-6"> | |||||
| <select id="default_page_language" name="default_page_language" size="1" class="form-control"> | |||||
| <?php foreach($page_languages as $page_language): ?> | |||||
| <option value="<?php echo $page_language['identifier']; ?>"<?php if($settings['default_page_language']==$page_language['identifier']): ?> selected<?php endif ?>><?php echo $page_language['name']; ?></option> | |||||
| <?php endforeach; ?> | |||||
| </select> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <div class="col-md-offset-2 col-md-6"> | |||||
| <div class="checkbox"> | |||||
| <label for="caching"> | |||||
| <input id="caching" type="checkbox" name="caching" value="1"<?php if($settings['caching']==1): ?> checked<?php endif; ?>> <?php echo $lang['settings_caching_enabled']; ?> | |||||
| </label> | |||||
| </div> | |||||
| <?php if($settings['caching'] && empty($settings['admin_auto_clear_cache'])): ?> | |||||
| <div class="checkbox"> | |||||
| <label for="clear_cache"> | |||||
| <input id="clear_cache" type="checkbox" name="clear_cache" value="1"> <?php echo $lang['admin_menu_clear_cache']; ?> | |||||
| </label> | |||||
| </div> | |||||
| <?php if (isset($saved)): ?> | |||||
| <div class="alert alert-success"> | |||||
| <button type="button" class="close" data-dismiss="alert">×</button> | |||||
| <span | |||||
| class="glyphicon glyphicon-ok"></span> <?php echo $lang['settings_saved']; ?><?php if (isset($cache_cleared)): ?> / <?php echo $lang['cache_cleared']; ?><?php endif; ?> | |||||
| </div> | |||||
| <?php endif; ?> | <?php endif; ?> | ||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <div class="col-md-offset-2 col-md-6"> | |||||
| <button type="submit" class="btn btn-primary btn-strong"><?php echo $lang['submit_button_ok']; ?></button> | |||||
| <a class="btn btn-default" href="index.php?mode=settings&action=advanced_settings"><?php echo $lang['advanced_settings']; ?></a> | |||||
| </div> | |||||
| </div> | |||||
| <form action="<?php echo BASE_URL; ?>cms/index.php" method="post" class="form-horizontal"> | |||||
| <input type="hidden" name="mode" value="settings"/> | |||||
| <input type="hidden" name="settings_submitted"/> | |||||
| <div class="form-group"> | |||||
| <label for="website_title" class="col-md-2 control-label"><?php echo $lang['settings_website_title']; ?></label> | |||||
| <div class="col-md-6"> | |||||
| <input type="text" class="form-control" id="website_title" name="website_title" | |||||
| value="<?php echo htmlspecialchars($settings['website_title']); ?>" size="35"> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="website_subtitle" | |||||
| class="col-md-2 control-label"><?php echo $lang['settings_website_subtitle']; ?></label> | |||||
| <div class="col-md-6"> | |||||
| <input type="text" class="form-control" id="website_subtitle" name="website_subtitle" | |||||
| value="<?php echo htmlspecialchars($settings['website_subtitle']); ?>" size="35"> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="author" class="col-md-2 control-label"><?php echo $lang['settings_author']; ?></label> | |||||
| <div class="col-md-6"> | |||||
| <input type="text" class="form-control" id="author" name="author" | |||||
| value="<?php echo htmlspecialchars($settings['author']); ?>" size="35"> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="email" class="col-md-2 control-label"><?php echo $lang['settings_email']; ?></label> | |||||
| <div class="col-md-6"> | |||||
| <input type="text" class="form-control" id="email" name="email" | |||||
| value="<?php echo htmlspecialchars($settings['email']); ?>" size="35"> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="index_page" class="col-md-2 control-label"><?php echo $lang['settings_index_page']; ?></label> | |||||
| <div class="col-md-6"> | |||||
| <select id="index_page" name="index_page" size="1" class="form-control"> | |||||
| <?php foreach ($pages as $current_page): ?> | |||||
| <option | |||||
| value="<?php echo $current_page['page']; ?>"<?php if ($settings['index_page'] == $current_page['page']): ?> selected="selected"<?php endif; ?>><?php echo $current_page['page']; ?></option> | |||||
| <?php endforeach; ?> | |||||
| </select> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="error_page" class="col-md-2 control-label"><?php echo $lang['settings_error_page']; ?></label> | |||||
| <div class="col-md-6"> | |||||
| <select id="error_page" name="error_page" size="1" class="form-control"> | |||||
| <?php foreach ($pages as $current_page): ?> | |||||
| <option | |||||
| value="<?php echo $current_page['page']; ?>"<?php if ($settings['error_page'] == $current_page['page']): ?> selected="selected"<?php endif; ?>><?php echo $current_page['page']; ?></option> | |||||
| <?php endforeach; ?> | |||||
| </select></div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="admin_language" class="col-md-2 control-label"><?php echo $lang['admin_language']; ?></label> | |||||
| <div class="col-md-6"> | |||||
| <select id="admin_language" name="admin_language" size="1" class="form-control"> | |||||
| <?php foreach ($admin_languages as $admin_language): ?> | |||||
| <option | |||||
| value="<?php echo $admin_language['identifier']; ?>"<?php if ($settings['admin_language'] == $admin_language['identifier']): ?> selected<?php endif ?>><?php echo $admin_language['name']; ?></option> | |||||
| <?php endforeach; ?> | |||||
| </select> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="default_page_language" | |||||
| class="col-md-2 control-label"><?php echo $lang['default_page_language']; ?></label> | |||||
| <div class="col-md-6"> | |||||
| <select id="default_page_language" name="default_page_language" size="1" class="form-control"> | |||||
| <?php foreach ($page_languages as $page_language): ?> | |||||
| <option | |||||
| value="<?php echo $page_language['identifier']; ?>"<?php if ($settings['default_page_language'] == $page_language['identifier']): ?> selected<?php endif ?>><?php echo $page_language['name']; ?></option> | |||||
| <?php endforeach; ?> | |||||
| </select> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <div class="col-md-offset-2 col-md-6"> | |||||
| <div class="checkbox"> | |||||
| <label for="caching"> | |||||
| <input id="caching" type="checkbox" name="caching" | |||||
| value="1"<?php if ($settings['caching'] == 1): ?> checked<?php endif; ?>> <?php echo $lang['settings_caching_enabled']; ?> | |||||
| </label> | |||||
| </div> | |||||
| <?php if ($settings['caching'] && empty($settings['admin_auto_clear_cache'])): ?> | |||||
| <div class="checkbox"> | |||||
| <label for="clear_cache"> | |||||
| <input id="clear_cache" type="checkbox" name="clear_cache" | |||||
| value="1"> <?php echo $lang['admin_menu_clear_cache']; ?> | |||||
| </label> | |||||
| </div> | |||||
| <?php endif; ?> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <div class="col-md-offset-2 col-md-6"> | |||||
| <button type="submit" class="btn btn-primary btn-strong"><?php echo $lang['submit_button_ok']; ?></button> | |||||
| <a class="btn btn-default" | |||||
| href="index.php?mode=settings&action=advanced_settings"><?php echo $lang['advanced_settings']; ?></a> | |||||
| </div> | |||||
| </div> | |||||
| </form> | </form> | ||||
| @ -1,44 +1,54 @@ | |||||
| <div class="row"> | <div class="row"> | ||||
| <div class="col-md-10"> | |||||
| <h1><?php echo $lang['users']; ?></h1> | |||||
| </div> | |||||
| <div class="col-md-2"> | |||||
| <?php if($user_type==1): ?> | |||||
| <a class="btn btn-success btn-top pull-right" href="index.php?mode=users&action=new"><span class="glyphicon glyphicon-plus"></span> <?php echo $lang['create_user_account']; ?></a> | |||||
| <?php endif; ?> | |||||
| </div> | |||||
| <div class="col-md-10"> | |||||
| <h1><?php echo $lang['users']; ?></h1> | |||||
| </div> | |||||
| <div class="col-md-2"> | |||||
| <?php if ($user_type == 1): ?> | |||||
| <a class="btn btn-success btn-top pull-right" href="index.php?mode=users&action=new"><span | |||||
| class="glyphicon glyphicon-plus"></span> <?php echo $lang['create_user_account']; ?></a> | |||||
| <?php endif; ?> | |||||
| </div> | |||||
| </div> | </div> | ||||
| <?php include('errors.inc.tpl'); ?> | <?php include('errors.inc.tpl'); ?> | ||||
| <?php if(isset($users)): ?> | |||||
| <?php if (isset($users)): ?> | |||||
| <div class="table-responsive"> | |||||
| <table class="table table-striped table-hover"> | |||||
| <thead> | |||||
| <tr> | |||||
| <th><?php echo $lang['user_name']; ?></th> | |||||
| <th><?php echo $lang['user_type']; ?></th> | |||||
| <th><?php echo $lang['last_login']; ?></th> | |||||
| <th> </th> | |||||
| </tr> | |||||
| </thead> | |||||
| <tbody> | |||||
| <?php $i=0; foreach($users as $user): ?> | |||||
| <tr> | |||||
| <td><?php echo htmlspecialchars(stripslashes($user['name'])); ?></td> | |||||
| <td><?php if($user['type']==0) echo $lang['type_0']; elseif($user['type']==1) echo $lang['type_1']?></td> | |||||
| <td><?php if($user['last_login']) echo strftime($lang['time_format'],$user['last_login']); ?></td> | |||||
| <td class="options"><?php if($user_type==1 || $user_id==$user['id']): ?><a class="btn btn-primary btn-xs" href="index.php?mode=users&edit=<?php echo $user['id']; ?>" title="<?php echo $lang['edit']; ?>"><span class="glyphicon glyphicon-pencil"></span></a><?php endif; ?> | |||||
| <?php if($user_type==1): ?><a class="btn btn-danger btn-xs" href="index.php?mode=users&delete=<?php echo $user['id']; ?>" title="<?php echo $lang['delete']; ?>" data-delete-confirm="<?php echo rawurlencode($lang['delete_user_confirm']); ?>"><span class="glyphicon glyphicon-remove"></span></a><?php endif; ?></td> | |||||
| </tr> | |||||
| <?php $i++; endforeach; ?> | |||||
| </tbody> | |||||
| </table> | |||||
| </div> | |||||
| <div class="table-responsive"> | |||||
| <table class="table table-striped table-hover"> | |||||
| <thead> | |||||
| <tr> | |||||
| <th><?php echo $lang['user_name']; ?></th> | |||||
| <th><?php echo $lang['user_type']; ?></th> | |||||
| <th><?php echo $lang['last_login']; ?></th> | |||||
| <th> </th> | |||||
| </tr> | |||||
| </thead> | |||||
| <tbody> | |||||
| <?php $i = 0; | |||||
| foreach ($users as $user): ?> | |||||
| <tr> | |||||
| <td><?php echo htmlspecialchars(stripslashes($user['name'])); ?></td> | |||||
| <td><?php if ($user['type'] == 0) echo $lang['type_0']; elseif ($user['type'] == 1) echo $lang['type_1'] ?></td> | |||||
| <td><?php if ($user['last_login']) echo strftime($lang['time_format'], $user['last_login']); ?></td> | |||||
| <td class="options"><?php if ($user_type == 1 || $user_id == $user['id']): ?><a | |||||
| class="btn btn-primary btn-xs" | |||||
| href="index.php?mode=users&edit=<?php echo $user['id']; ?>" | |||||
| title="<?php echo $lang['edit']; ?>"><span class="glyphicon glyphicon-pencil"></span> | |||||
| </a><?php endif; ?> | |||||
| <?php if ($user_type == 1): ?><a class="btn btn-danger btn-xs" | |||||
| href="index.php?mode=users&delete=<?php echo $user['id']; ?>" | |||||
| title="<?php echo $lang['delete']; ?>" | |||||
| data-delete-confirm="<?php echo rawurlencode($lang['delete_user_confirm']); ?>"> | |||||
| <span class="glyphicon glyphicon-remove"></span></a><?php endif; ?></td> | |||||
| </tr> | |||||
| <?php $i++; endforeach; ?> | |||||
| </tbody> | |||||
| </table> | |||||
| </div> | |||||
| <?php else: ?> | <?php else: ?> | ||||
| <p><?php echo $lang['no_users']; ?></p> | |||||
| <p><?php echo $lang['no_users']; ?></p> | |||||
| <?php endif; ?> | <?php endif; ?> | ||||
| @ -1,20 +1,21 @@ | |||||
| <h1><a href="index.php"><?php echo $lang['administration']; ?></a> » <a href="index.php?mode=users"><?php echo $lang['users']; ?></a> » <?php echo $lang['delete_user']; ?></h1> | |||||
| <h1><a href="index.php"><?php echo $lang['administration']; ?></a> » <a | |||||
| href="index.php?mode=users"><?php echo $lang['users']; ?></a> » <?php echo $lang['delete_user']; ?></h1> | |||||
| <?php if(isset($userdata)): ?> | |||||
| <?php if (isset($userdata)): ?> | |||||
| <p><?php echo str_replace('[name]',$userdata['name'],$lang['delete_user_confirm']); ?></p> | |||||
| <p><?php echo str_replace('[name]', $userdata['name'], $lang['delete_user_confirm']); ?></p> | |||||
| <form action="<?php basename($_SERVER['PHP_SELF']); ?>" method="post"> | |||||
| <div> | |||||
| <input type="hidden" name="mode" value="users"/> | |||||
| <input type="hidden" name="delete" value="<?php echo $userdata['id']; ?>"/> | |||||
| <input type="submit" name="confirmed" value="<?php echo $lang['delete_user_submit']; ?>"/> | |||||
| </div> | |||||
| </form> | |||||
| <form action="<?php basename($_SERVER['PHP_SELF']); ?>" method="post"> | |||||
| <div> | |||||
| <input type="hidden" name="mode" value="users" /> | |||||
| <input type="hidden" name="delete" value="<?php echo $userdata['id']; ?>" /> | |||||
| <input type="submit" name="confirmed" value="<?php echo $lang['delete_user_submit']; ?>" /> | |||||
| </div> | |||||
| </form> | |||||
| <?php else: ?> | <?php else: ?> | ||||
| <p class="caution"><?php echo $lang['invalid_request']; ?></p> | |||||
| <p class="caution"><?php echo $lang['invalid_request']; ?></p> | |||||
| <?php endif; ?> | |||||
| <?php endif; ?> | |||||
| @ -1,100 +1,117 @@ | |||||
| <?php if($user_type==1): ?> | |||||
| <ol class="breadcrumb"> | |||||
| <li><a href="#"><a href="index.php?mode=users"><?php echo $lang['users']; ?></a></a></li> | |||||
| <li class="active"><?php echo $lang['edit_userdata']; ?></li> | |||||
| </ol> | |||||
| <?php if ($user_type == 1): ?> | |||||
| <ol class="breadcrumb"> | |||||
| <li><a href="#"><a href="index.php?mode=users"><?php echo $lang['users']; ?></a></a></li> | |||||
| <li class="active"><?php echo $lang['edit_userdata']; ?></li> | |||||
| </ol> | |||||
| <?php endif; ?> | <?php endif; ?> | ||||
| <h1><?php echo $lang['edit_userdata']; ?></h1> | <h1><?php echo $lang['edit_userdata']; ?></h1> | ||||
| <?php if(isset($saved)): ?> | |||||
| <div class="alert alert-success"> | |||||
| <button type="button" class="close" data-dismiss="alert">×</button> | |||||
| <span class="glyphicon glyphicon-ok"></span> <?php echo $lang['userdata_saved_message']; ?><?php if(isset($cache_cleared)): ?> / <?php echo $lang['cache_cleared']; ?><?php endif;?> | |||||
| </div> | |||||
| <?php if (isset($saved)): ?> | |||||
| <div class="alert alert-success"> | |||||
| <button type="button" class="close" data-dismiss="alert">×</button> | |||||
| <span | |||||
| class="glyphicon glyphicon-ok"></span> <?php echo $lang['userdata_saved_message']; ?><?php if (isset($cache_cleared)): ?> / <?php echo $lang['cache_cleared']; ?><?php endif; ?> | |||||
| </div> | |||||
| <?php endif; ?> | <?php endif; ?> | ||||
| <?php include('errors.inc.tpl'); ?> | <?php include('errors.inc.tpl'); ?> | ||||
| <?php if(isset($userdata) || $user_type==0): ?> | |||||
| <form class="form-horizontal" action="index.php" method="post"> | |||||
| <div> | |||||
| <input type="hidden" name="mode" value="users" /> | |||||
| <input type="hidden" name="edit_user_submitted" value="true" /> | |||||
| <?php if($user_type==1): ?> | |||||
| <input type="hidden" name="id" value="<?php echo $userdata['id']; ?>" /> | |||||
| <?php endif; ?> | |||||
| <?php if($user_type==1): ?> | |||||
| <div class="form-group"> | |||||
| <label for="name" class="col-lg-2 control-label"><?php echo $lang['edit_userdata_name']; ?></label> | |||||
| <div class="col-lg-6"> | |||||
| <input id="name" class="form-control" type="text" name="name" value="<?php echo $userdata['name']; ?>"> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="new_pw" class="col-lg-2 control-label"><?php echo $lang['change_pw_new']; ?></label> | |||||
| <div class="col-lg-6"> | |||||
| <input id="new_pw" class="form-control" type="password" name="new_pw" autocomplete="off"> | |||||
| <span class="help-block"><?php echo $lang['change_pw_note']; ?></span> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="new_pw_r" class="col-lg-2 control-label"><?php echo $lang['change_pw_new_conf']; ?></label> | |||||
| <div class="col-lg-6"> | |||||
| <input id="new_pw_r" class="form-control" type="password" name="new_pw_r" autocomplete="off"> | |||||
| <span class="help-block"><?php echo $lang['change_pw_note']; ?></span> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <span class="col-lg-2 control-label"><strong><?php echo $lang['edit_userdata_type']; ?></strong></span> | |||||
| <div class="col-lg-6"> | |||||
| <div class="radio"> | |||||
| <input id="type_0" type="radio" name="type" value="0"<?php if($userdata['type']==0): ?> checked="checked"<?php endif; ?> /><label for="type_0"><?php echo $lang['type_0']; ?></label><br /> | |||||
| <input id="type_1" type="radio" name="type" value="1"<?php if($userdata['type']==1): ?> checked="checked"<?php endif; ?> /><label for="type_1"><?php echo $lang['type_1']; ?></label> | |||||
| </div> | |||||
| </div> | |||||
| </div> | |||||
| <?php else: ?> | |||||
| <div class="form-group"> | |||||
| <label for="old_pw" class="col-lg-2 control-label"><?php echo $lang['change_pw_old']; ?></label> | |||||
| <div class="col-lg-6"> | |||||
| <input id="old_pw" class="form-control" type="password" name="old_pw" autocomplete="off" autofocus> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="new_pw" class="col-lg-2 control-label"><?php echo $lang['change_pw_new']; ?></label> | |||||
| <div class="col-lg-6"> | |||||
| <input id="new_pw" class="form-control" type="password" name="new_pw" autocomplete="off"> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="new_pw_r" class="col-lg-2 control-label"><?php echo $lang['change_pw_new_conf']; ?></label> | |||||
| <div class="col-lg-6"> | |||||
| <input id="new_pw_r" class="form-control" type="password" name="new_pw_r" autocomplete="off"> | |||||
| </div> | |||||
| </div> | |||||
| <?php endif; ?> | |||||
| <div class="form-group"> | |||||
| <div class="col-md-offset-2 col-md-10"> | |||||
| <button type="submit" class="btn btn-primary"><?php echo $lang['submit_button_ok']; ?></button> | |||||
| </div> | |||||
| </div> | |||||
| <?php if (isset($userdata) || $user_type == 0): ?> | |||||
| <form class="form-horizontal" action="index.php" method="post"> | |||||
| <div> | |||||
| <input type="hidden" name="mode" value="users"/> | |||||
| <input type="hidden" name="edit_user_submitted" value="true"/> | |||||
| <?php if ($user_type == 1): ?> | |||||
| <input type="hidden" name="id" value="<?php echo $userdata['id']; ?>"/> | |||||
| <?php endif; ?> | |||||
| <?php if ($user_type == 1): ?> | |||||
| <div class="form-group"> | |||||
| <label for="name" class="col-lg-2 control-label"><?php echo $lang['edit_userdata_name']; ?></label> | |||||
| <div class="col-lg-6"> | |||||
| <input id="name" class="form-control" type="text" name="name" | |||||
| value="<?php echo $userdata['name']; ?>"> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="new_pw" class="col-lg-2 control-label"><?php echo $lang['change_pw_new']; ?></label> | |||||
| <div class="col-lg-6"> | |||||
| <input id="new_pw" class="form-control" type="password" name="new_pw" autocomplete="off"> | |||||
| <span class="help-block"><?php echo $lang['change_pw_note']; ?></span> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="new_pw_r" | |||||
| class="col-lg-2 control-label"><?php echo $lang['change_pw_new_conf']; ?></label> | |||||
| <div class="col-lg-6"> | |||||
| <input id="new_pw_r" class="form-control" type="password" name="new_pw_r" autocomplete="off"> | |||||
| <span class="help-block"><?php echo $lang['change_pw_note']; ?></span> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <span | |||||
| class="col-lg-2 control-label"><strong><?php echo $lang['edit_userdata_type']; ?></strong></span> | |||||
| <div class="col-lg-6"> | |||||
| <div class="radio"> | |||||
| <input id="type_0" type="radio" name="type" | |||||
| value="0"<?php if ($userdata['type'] == 0): ?> checked="checked"<?php endif; ?> /><label | |||||
| for="type_0"><?php echo $lang['type_0']; ?></label><br/> | |||||
| <input id="type_1" type="radio" name="type" | |||||
| value="1"<?php if ($userdata['type'] == 1): ?> checked="checked"<?php endif; ?> /><label | |||||
| for="type_1"><?php echo $lang['type_1']; ?></label> | |||||
| </div> | |||||
| </div> | |||||
| </div> | |||||
| <?php else: ?> | |||||
| <div class="form-group"> | |||||
| <label for="old_pw" class="col-lg-2 control-label"><?php echo $lang['change_pw_old']; ?></label> | |||||
| <div class="col-lg-6"> | |||||
| <input id="old_pw" class="form-control" type="password" name="old_pw" autocomplete="off" | |||||
| autofocus> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="new_pw" class="col-lg-2 control-label"><?php echo $lang['change_pw_new']; ?></label> | |||||
| <div class="col-lg-6"> | |||||
| <input id="new_pw" class="form-control" type="password" name="new_pw" autocomplete="off"> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="new_pw_r" | |||||
| class="col-lg-2 control-label"><?php echo $lang['change_pw_new_conf']; ?></label> | |||||
| <div class="col-lg-6"> | |||||
| <input id="new_pw_r" class="form-control" type="password" name="new_pw_r" autocomplete="off"> | |||||
| </div> | |||||
| </div> | |||||
| <?php endif; ?> | |||||
| <div class="form-group"> | |||||
| <div class="col-md-offset-2 col-md-10"> | |||||
| <button type="submit" class="btn btn-primary"><?php echo $lang['submit_button_ok']; ?></button> | |||||
| </div> | |||||
| </div> | |||||
| </div> | |||||
| </form> | |||||
| </div> | |||||
| </form> | |||||
| <?php else: ?> | <?php else: ?> | ||||
| <p class="caution"><?php echo $lang['invalid_request']; ?></p> | |||||
| <p class="caution"><?php echo $lang['invalid_request']; ?></p> | |||||
| <?php endif; ?> | <?php endif; ?> | ||||
| @ -1,41 +1,44 @@ | |||||
| <ol class="breadcrumb"> | <ol class="breadcrumb"> | ||||
| <li><a href="#"><a href="index.php?mode=users"><?php echo $lang['users']; ?></a></a></li> | |||||
| <li class="active"><?php echo $lang['create_user_account']; ?></li> | |||||
| <li><a href="#"><a href="index.php?mode=users"><?php echo $lang['users']; ?></a></a></li> | |||||
| <li class="active"><?php echo $lang['create_user_account']; ?></li> | |||||
| </ol> | </ol> | ||||
| <?php include('errors.inc.tpl'); ?> | <?php include('errors.inc.tpl'); ?> | ||||
| <form class="form-horizontal" action="index.php" method="post" /> | |||||
| <form class="form-horizontal" action="index.php" method="post"/> | |||||
| <div> | <div> | ||||
| <input type="hidden" name="mode" value="users" /> | |||||
| <input type="hidden" name="new_user_submitted" value="true" /> | |||||
| <input type="hidden" name="mode" value="users"/> | |||||
| <input type="hidden" name="new_user_submitted" value="true"/> | |||||
| <div class="form-group"> | |||||
| <label for="name" class="col-lg-2 control-label"><?php echo $lang['user_name_m']; ?></label> | |||||
| <div class="col-lg-6"> | |||||
| <input id="name" class="form-control" type="text" name="name"> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="name" class="col-lg-2 control-label"><?php echo $lang['user_name_m']; ?></label> | |||||
| <div class="form-group"> | |||||
| <label for="pw" class="col-lg-2 control-label"><?php echo $lang['pw_m']; ?></label> | |||||
| <div class="col-lg-6"> | |||||
| <input id="pw" class="form-control" type="password" name="pw" autocomplete="off"> | |||||
| </div> | |||||
| </div> | |||||
| <div class="col-lg-6"> | |||||
| <input id="name" class="form-control" type="text" name="name"> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="pw_r" class="col-lg-2 control-label"><?php echo $lang['pw_conf_m']; ?></label> | |||||
| <div class="col-lg-6"> | |||||
| <input id="pw_r" class="form-control" type="password" name="pw_r" autocomplete="off"> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="pw" class="col-lg-2 control-label"><?php echo $lang['pw_m']; ?></label> | |||||
| <div class="form-group"> | |||||
| <div class="col-md-offset-2 col-md-10"> | |||||
| <button type="submit" class="btn btn-primary"><?php echo $lang['submit_button_ok']; ?></button> | |||||
| </div> | |||||
| </div> | |||||
| <div class="col-lg-6"> | |||||
| <input id="pw" class="form-control" type="password" name="pw" autocomplete="off"> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="pw_r" class="col-lg-2 control-label"><?php echo $lang['pw_conf_m']; ?></label> | |||||
| <div class="col-lg-6"> | |||||
| <input id="pw_r" class="form-control" type="password" name="pw_r" autocomplete="off"> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <div class="col-md-offset-2 col-md-10"> | |||||
| <button type="submit" class="btn btn-primary"><?php echo $lang['submit_button_ok']; ?></button> | |||||
| </div> | |||||
| </div> | |||||
| </div> | </div> | ||||
| </form> | </form> | ||||
| @ -1,111 +1,120 @@ | |||||
| <!DOCTYPE html> | <!DOCTYPE html> | ||||
| <html lang="<?php echo $lang['lang']; ?>" dir="<?php echo $lang['dir']; ?>"> | <html lang="<?php echo $lang['lang']; ?>" dir="<?php echo $lang['dir']; ?>"> | ||||
| <head> | <head> | ||||
| <meta charset="<?php echo $lang['charset']; ?>" /> | |||||
| <title><?php if($page_title): ?><?php echo $page_title; ?><?php else: ?><?php if($title): ?><?php echo $title; ?> - <?php endif; ?><?php echo $settings['website_title']; ?><?php endif; ?></title> | |||||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |||||
| <meta name="description" content="<?php if($description) echo $description; else echo $settings['default_description']; ?>" /> | |||||
| <meta name="keywords" content="<?php if($keywords) echo $keywords; else echo $settings['default_keywords']; ?>" /> | |||||
| <meta name="generator" content="phpSQLiteCMS <?php echo $settings['version']; ?>" /> | |||||
| <link href="<?php echo BOOTSTRAP_CSS; ?>" rel="stylesheet"> | |||||
| <link href='http://fonts.googleapis.com/css?family=Patua+One' rel='stylesheet' type='text/css'> | |||||
| <link href="<?php echo STATIC_URL; ?>css/style.css" rel="stylesheet"> | |||||
| <?php if(isset($tv['map'])): ?> | |||||
| <link rel="stylesheet" href="<?php echo STATIC_URL; ?>css/leaflet.css" /> | |||||
| <?php endif; ?> | |||||
| <link rel="shortcut icon" href="<?php echo STATIC_URL; ?>img/favicon.png"> | |||||
| <meta charset="<?php echo $lang['charset']; ?>"/> | |||||
| <title><?php if ($page_title): ?><?php echo $page_title; ?><?php else: ?><?php if ($title): ?><?php echo $title; ?> - <?php endif; ?><?php echo $settings['website_title']; ?><?php endif; ?></title> | |||||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |||||
| <meta name="description" | |||||
| content="<?php if ($description) echo $description; else echo $settings['default_description']; ?>"/> | |||||
| <meta name="keywords" content="<?php if ($keywords) echo $keywords; else echo $settings['default_keywords']; ?>"/> | |||||
| <meta name="generator" content="phpSQLiteCMS <?php echo $settings['version']; ?>"/> | |||||
| <link href="<?php echo BOOTSTRAP_CSS; ?>" rel="stylesheet"> | |||||
| <link href='http://fonts.googleapis.com/css?family=Patua+One' rel='stylesheet' type='text/css'> | |||||
| <link href="<?php echo STATIC_URL; ?>css/style.css" rel="stylesheet"> | |||||
| <?php if (isset($tv['map'])): ?> | |||||
| <link rel="stylesheet" href="<?php echo STATIC_URL; ?>css/leaflet.css"/> | |||||
| <?php endif; ?> | |||||
| <link rel="shortcut icon" href="<?php echo STATIC_URL; ?>img/favicon.png"> | |||||
| </head> | </head> | ||||
| <body<?php if($admin): ?> class="admin"<?php endif; ?>> | |||||
| <?php if($admin) include(BASE_PATH.'cms/templates/admin/subtemplates/admin_menu.inc.tpl'); ?> | |||||
| <body<?php if ($admin): ?> class="admin"<?php endif; ?>> | |||||
| <?php if ($admin) include(BASE_PATH . 'cms/templates/admin/subtemplates/admin_menu.inc.tpl'); ?> | |||||
| <div class="container"> | <div class="container"> | ||||
| <header class="header"> | |||||
| <div class="row"> | |||||
| <div class="col-md-4 logo-wrapper"> | |||||
| <h1 id="logo"><a href="<?php echo BASE_URL; ?>"><?php echo $settings['website_title']; ?></a></h1> | |||||
| </div> | |||||
| <a id="menu-toggle-handle" href="#" class="visible-xs"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a> | |||||
| <nav id="nav" class="col-md-8"> | |||||
| <?php if($menu_1 && isset($menus[$menu_1])): ?> | |||||
| <ul class="nav nav-pills"> | |||||
| <?php foreach($menus[$menu_1] as $item): ?><li<?php if(!empty($item['section']) && $item['section']==$section[0]): ?> class="active"<?php endif; ?>><a href="<?php echo $item['link']; ?>" title="<?php echo $item['title']; ?>"<?php if($item['accesskey']!=''): ?> accesskey="<?php echo $item['accesskey']; ?>"<?php endif; ?>><?php echo $item['name']; ?></a></li><?php endforeach; ?> | |||||
| </ul> | |||||
| <?php endif; ?> | |||||
| </nav> | |||||
| </div> | |||||
| </header> | |||||
| <?php if($sidebar_1): ?> | |||||
| <?php echo $sidebar_1; ?> | |||||
| <?php endif; ?> | |||||
| <?php if($breadcrumbs): ?> | |||||
| <ul class="breadcrumb"> | |||||
| <?php foreach($breadcrumbs as $breadcrumb): ?> | |||||
| <li><a href="<?php echo BASE_URL.$breadcrumb['page']; ?>"><?php echo $breadcrumb['title']; ?></a></li> | |||||
| <?php endforeach; ?> | |||||
| <li class="active"><?php echo $title; ?></li> | |||||
| </ul> | |||||
| <?php endif; ?> | |||||
| <?php if(empty($sidebar_1) && empty($breadcrumbs)): ?> | |||||
| <hr class="topsep hidden-xs"> | |||||
| <?php endif; ?> | |||||
| <div class="body-content"> | |||||
| <div class="row<?php if(isset($tv['nocolumns'])): ?> main-content<?php endif; ?>"> | |||||
| <?php if(empty($tv['nocolumns'])): ?> | |||||
| <div class="col-md-9 main-content"> | |||||
| <?php endif; ?> | |||||
| <?php if(empty($hide_content)) echo $content; ?> | |||||
| <?php if(isset($subtemplate)) include(BASE_PATH.'cms/templates/subtemplates/'.$subtemplate); ?> | |||||
| </div> | |||||
| <?php if($sidebar_2): ?> | |||||
| <div class="col-md-3 sidebar"> | |||||
| <?php echo $sidebar_2; ?> | |||||
| </div> | |||||
| <?php endif; ?> | |||||
| <?php if(empty($tv['nocolumns'])): ?> | |||||
| </div> | |||||
| <?php endif; ?> | |||||
| </div> | |||||
| <?php if($sidebar_3): ?> | |||||
| <?php echo $sidebar_3; ?> | |||||
| <?php endif; ?> | |||||
| <hr class="closure"> | |||||
| <footer class="row footer"> | |||||
| <div class="col-lg-12"> | |||||
| <?php if($gcb_1 && isset($gcb[$gcb_1])): ?> | |||||
| <?php echo $gcb[$gcb_1]; ?> | |||||
| <?php else: ?> | |||||
| <p>© <?php echo date("Y"); ?> <?php echo $settings['author']; ?><?php if($type!='news' && $type!='search' && $type!='notes'): ?><br /><?php echo $lang['page_last_modified']; ?><?php endif; ?><br />Powered by <a href="http://phpsqlitecms.net">phpSQLiteCMS</a></p> | |||||
| <?php endif; ?> | |||||
| </div> | |||||
| </footer> | |||||
| <header class="header"> | |||||
| <div class="row"> | |||||
| <div class="col-md-4 logo-wrapper"> | |||||
| <h1 id="logo"><a href="<?php echo BASE_URL; ?>"><?php echo $settings['website_title']; ?></a></h1> | |||||
| </div> | |||||
| <a id="menu-toggle-handle" href="#" class="visible-xs"><span class="icon-bar"></span> | |||||
| <span class="icon-bar"></span><span class="icon-bar"></span></a> | |||||
| <nav id="nav" class="col-md-8"> | |||||
| <?php if ($menu_1 && isset($menus[$menu_1])): ?> | |||||
| <ul class="nav nav-pills"> | |||||
| <?php foreach ($menus[$menu_1] as $item): ?> | |||||
| <li<?php if (!empty($item['section']) && $item['section'] == $section[0]): ?> class="active"<?php endif; ?>> | |||||
| <a href="<?php echo $item['link']; ?>" | |||||
| title="<?php echo $item['title']; ?>"<?php if ($item['accesskey'] != ''): ?> accesskey="<?php echo $item['accesskey']; ?>"<?php endif; ?>><?php echo $item['name']; ?></a> | |||||
| </li><?php endforeach; ?> | |||||
| </ul> | |||||
| <?php endif; ?> | |||||
| </nav> | |||||
| </div> | |||||
| </header> | |||||
| <?php if ($sidebar_1): ?> | |||||
| <?php echo $sidebar_1; ?> | |||||
| <?php endif; ?> | |||||
| <?php if ($breadcrumbs): ?> | |||||
| <ul class="breadcrumb"> | |||||
| <?php foreach ($breadcrumbs as $breadcrumb): ?> | |||||
| <li><a href="<?php echo BASE_URL . $breadcrumb['page']; ?>"><?php echo $breadcrumb['title']; ?></a></li> | |||||
| <?php endforeach; ?> | |||||
| <li class="active"><?php echo $title; ?></li> | |||||
| </ul> | |||||
| <?php endif; ?> | |||||
| <?php if (empty($sidebar_1) && empty($breadcrumbs)): ?> | |||||
| <hr class="topsep hidden-xs"> | |||||
| <?php endif; ?> | |||||
| <div class="body-content"> | |||||
| <div class="row<?php if (isset($tv['nocolumns'])): ?> main-content<?php endif; ?>"> | |||||
| <?php if (empty($tv['nocolumns'])): ?> | |||||
| <div class="col-md-9 main-content"> | |||||
| <?php endif; ?> | |||||
| <?php if (empty($hide_content)) echo $content; ?> | |||||
| <?php if (isset($subtemplate)) include(BASE_PATH . 'cms/templates/subtemplates/' . $subtemplate); ?> | |||||
| </div> | |||||
| <?php if ($sidebar_2): ?> | |||||
| <div class="col-md-3 sidebar"> | |||||
| <?php echo $sidebar_2; ?> | |||||
| </div> | |||||
| <?php endif; ?> | |||||
| <?php if (empty($tv['nocolumns'])): ?> | |||||
| </div> | |||||
| <?php endif; ?> | |||||
| </div> | |||||
| <?php if ($sidebar_3): ?> | |||||
| <?php echo $sidebar_3; ?> | |||||
| <?php endif; ?> | |||||
| <hr class="closure"> | |||||
| <footer class="row footer"> | |||||
| <div class="col-lg-12"> | |||||
| <?php if ($gcb_1 && isset($gcb[$gcb_1])): ?> | |||||
| <?php echo $gcb[$gcb_1]; ?> | |||||
| <?php else: ?> | |||||
| <p>© <?php echo date("Y"); ?> <?php echo $settings['author']; ?><?php if ($type != 'news' && $type != 'search' && $type != 'notes'): ?> | |||||
| <br/><?php echo $lang['page_last_modified']; ?><?php endif; ?><br/>Powered by | |||||
| <a href="http://phpsqlitecms.net">phpSQLiteCMS</a></p> | |||||
| <?php endif; ?> | |||||
| </div> | |||||
| </footer> | |||||
| </div> | </div> | ||||
| <script src="<?php echo JQUERY; ?>"></script> | <script src="<?php echo JQUERY; ?>"></script> | ||||
| <script src="<?php echo BOOTSTRAP; ?>"></script> | <script src="<?php echo BOOTSTRAP; ?>"></script> | ||||
| <script src="<?php echo STATIC_URL; ?>js/main.js"></script> | <script src="<?php echo STATIC_URL; ?>js/main.js"></script> | ||||
| <?php if($admin): ?> | |||||
| <script src="<?php echo STATIC_URL; ?>js/admin_frontend.js"></script> | |||||
| <?php if ($admin): ?> | |||||
| <script src="<?php echo STATIC_URL; ?>js/admin_frontend.js"></script> | |||||
| <?php endif; ?> | |||||
| <?php if (isset($contains_thumbnails)): ?> | |||||
| <script src="<?php echo STATIC_URL; ?>js/mylightbox.js" type="text/javascript"></script> | |||||
| <?php endif; ?> | <?php endif; ?> | ||||
| <?php if(isset($contains_thumbnails)): ?> | |||||
| <script src="<?php echo STATIC_URL; ?>js/mylightbox.js" type="text/javascript"></script> | |||||
| <?php endif; ?> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @ -1,17 +1,17 @@ | |||||
| <?php echo '<?xml version="1.0" encoding="'.$lang['charset'].'" ?>'; ?> | |||||
| <?php echo '<?xml version="1.0" encoding="' . $lang['charset'] . '" ?>'; ?> | |||||
| <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"> | <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"> | ||||
| <channel> | |||||
| <title><?php echo $title; ?></title> | |||||
| <link><?php echo BASE_URL; ?></link> | |||||
| <description><?php echo $description; ?></description> | |||||
| <language><?php echo $lang['lang']; ?></language> | |||||
| <?php if(isset($rss_items)): foreach($rss_items as $item): ?> | |||||
| <item> | |||||
| <title><?php echo $item['title'] ?></title> | |||||
| <content:encoded><![CDATA[<?php echo $item['content'] ?>]]></content:encoded> | |||||
| <link><?php echo $item['link'] ?></link> | |||||
| <pubDate><?php echo $item['pubdate'] ?></pubDate> | |||||
| </item> | |||||
| <?php endforeach; endif; ?> | |||||
| </channel> | |||||
| </rss> | |||||
| <channel> | |||||
| <title><?php echo $title; ?></title> | |||||
| <link><?php echo BASE_URL; ?></link> | |||||
| <description><?php echo $description; ?></description> | |||||
| <language><?php echo $lang['lang']; ?></language> | |||||
| <?php if (isset($rss_items)): foreach ($rss_items as $item): ?> | |||||
| <item> | |||||
| <title><?php echo $item['title'] ?></title> | |||||
| <content:encoded><![CDATA[<?php echo $item['content'] ?>]]></content:encoded> | |||||
| <link><?php echo $item['link'] ?></link> | |||||
| <pubDate><?php echo $item['pubdate'] ?></pubDate> | |||||
| </item> | |||||
| <?php endforeach; endif; ?> | |||||
| </channel> | |||||
| </rss> | |||||
| @ -1,9 +1,10 @@ | |||||
| <?php echo '<?xml version="1.0" encoding="'.$lang['charset'].'" ?>'; ?> | |||||
| <urlset xmlns="http://www.google.com/schemas/sitemap/0.84" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84 http://www.google.com/schemas/sitemap/0.84/sitemap.xsd"> | |||||
| <?php if(isset($sitemap_items)): foreach($sitemap_items as $item): ?> | |||||
| <url> | |||||
| <loc><?php echo $item['loc'] ?></loc> | |||||
| <lastmod><?php echo $item['lastmod'] ?></lastmod> | |||||
| </url> | |||||
| <?php endforeach; endif; ?> | |||||
| </urlset> | |||||
| <?php echo '<?xml version="1.0" encoding="' . $lang['charset'] . '" ?>'; ?> | |||||
| <urlset xmlns="http://www.google.com/schemas/sitemap/0.84" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |||||
| xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84 http://www.google.com/schemas/sitemap/0.84/sitemap.xsd"> | |||||
| <?php if (isset($sitemap_items)): foreach ($sitemap_items as $item): ?> | |||||
| <url> | |||||
| <loc><?php echo $item['loc'] ?></loc> | |||||
| <lastmod><?php echo $item['lastmod'] ?></lastmod> | |||||
| </url> | |||||
| <?php endforeach; endif; ?> | |||||
| </urlset> | |||||
| @ -1,145 +1,224 @@ | |||||
| <div id="comments" class="panel panel-default"> | <div id="comments" class="panel panel-default"> | ||||
| <div class="panel-heading"> | |||||
| <?php if($admin): ?> | |||||
| <?php if(empty($comments_closed)): ?> | |||||
| <a class="btn btn-danger btn-xs pull-right" href="<?php echo BASE_URL . PAGE; ?>,openclose" ><span class="glyphicon glyphicon-lock"></span> <?php echo $lang['comments_close']; ?></a> | |||||
| <?php else: ?> | |||||
| <a class="btn btn-success btn-xs pull-right" href="<?php echo BASE_URL . PAGE; ?>,openclose"><span class="glyphicon glyphicon-lock"></span> <?php echo $lang['comments_open']; ?></a> | |||||
| <?php endif; ?> | |||||
| <?php endif; ?> | |||||
| <h3 class="panel-title"><?php echo $lang['comment_headline']; ?> <span class="badge"><?php echo $total_comments; ?></span></h3> | |||||
| </div> | |||||
| <div class="panel-body"> | |||||
| <?php if(isset($edit_data)): ?> | |||||
| <form id="commentform" method="post" action="<?php echo $BASE_URL . PAGE; ?>#comments"> | |||||
| <div> | |||||
| <input type="hidden" name="current_page" value="<?php echo $edit_data['current_page']; ?>" /> | |||||
| <input type="hidden" name="id" value="<?php echo $edit_data['id']; ?>" /> | |||||
| <p><label for="comment_text"><strong><?php echo $lang['comment_edit_text']; ?></strong></label><br /> | |||||
| <textarea id="comment_text" class="form-control" name="comment_text" cols="63" rows="10"><?php echo $edit_data['comment']; ?></textarea></p> | |||||
| <p class="userdata"><label for="name"><?php echo $lang['comment_input_name']; ?></label><br /> | |||||
| <input type="text" id="name" class="form-control" name="name" value="<?php echo $edit_data['name']; ?>" size="30" /></p> | |||||
| <p class="userdata"><label for="email_hp"><?php echo $lang['comment_input_email_hp']; ?></label><br /> | |||||
| <input type="text" id="email_hp" class="form-control" name="email_hp" value="<?php echo $edit_data['email_hp']; ?>" size="30" /></p> | |||||
| <p><input class="btn btn-primary" name="edit_save" type="submit" value="<?php echo $lang['comment_input_submit']; ?>" /></p> | |||||
| </div> | |||||
| </form> | |||||
| <?php else: ?> | |||||
| <?php if($comments): ?> | |||||
| <?php foreach($comments as $comment): ?> | |||||
| <div class="comment" id="comment-<?php echo $comment['id']; ?>"> | |||||
| <h4 class="author"><?php echo $comment['nr']; ?>. <?php if(isset($comment['hp'])): ?><a href="<?php echo $comment['hp']; ?>"><strong><?php echo $comment['name']; ?></strong></a><?php elseif(isset($comment['email'])): ?><a href="mailto:<?php echo $comment['email']; ?>"><strong><?php echo $comment['name']; ?></strong></a><?php else: ?><strong><?php echo $comment['name']; ?></strong><?php endif; ?>, <?php echo $lang['comment_time'][$comment['id']]; ?>:<?php if($admin): ?> <span class="smallx">(<?php echo $comment['ip']; ?>)</span><?php endif; ?></h4> | |||||
| <p class="text"><?php echo $comment['comment']; ?></p> | |||||
| <?php if($admin): ?> | |||||
| <div class="comment-admin"> | |||||
| <a class="btn btn-primary btn-xs" href="<?php echo BASE_URL . PAGE; ?>,<?php echo $current_page; ?>,edit,<?php echo $comment['id']; ?>#comments" title="<?php echo $lang['comment_edit_link']; ?>"><span class="glyphicon glyphicon-pencil"></span></a> | |||||
| <a class="btn btn-danger btn-xs" href="<?php echo BASE_URL . PAGE; ?>,<?php echo $current_page; ?>,delete,<?php echo $comment['id']; ?>" title="<?php echo $lang['comment_delete_link']; ?>" data-delete-confirm="<?php echo rawurlencode($lang['comment_delete_confirm']); ?>"><span class="glyphicon glyphicon-remove"></span></a> | |||||
| </div> | |||||
| <?php endif; ?> | |||||
| </div> | |||||
| <?php endforeach ?> | |||||
| <?php else: ?> | |||||
| <p class="no-comments"><em><?php echo $lang['comment_no_comments']; ?></em></p> | |||||
| <?php endif; ?> | |||||
| <?php if($pagination): ?> | |||||
| <p class="comment-info"><?php echo $lang['comments_pagination_info']; ?></p> | |||||
| <ul class="pagination pagination-sm"> | |||||
| <?php if($pagination['previous']): ?><li><a href="<?php echo BASE_URL . PAGE; if($pagination['previous']>1): ?>,<?php echo $pagination['previous']; endif; ?>#comments">«</a></li><?php endif; ?> | |||||
| <?php foreach($pagination['items'] as $item): ?> | |||||
| <?php if(empty($item)): ?><li><span>…</span></li><?php elseif($item==$pagination['current']): ?><li class="active"><a href="#"><?php echo $item; ?></a></li><?php else: ?><li><a href="<?php echo BASE_URL . PAGE; if($item>1): ?>,<?php echo $item; endif; ?>#comments"><?php echo $item; ?></a></li><?php endif; ?> | |||||
| <?php endforeach; ?> | |||||
| <?php if($pagination['next']): ?><li><a href="<?php echo BASE_URL . PAGE; ?>,<?php echo $pagination['next']; ?>#comments">»</a></li><?php endif; ?> | |||||
| </ul> | |||||
| <?php endif; ?> | |||||
| <?php if($errors): ?> | |||||
| <div id="errors" class="alert alert-danger"> | |||||
| <h3><span class="glyphicon glyphicon-warning-sign"></span> <?php echo $lang['error_headline']; ?></h3> | |||||
| <ul> | |||||
| <?php foreach($errors as $error): ?> | |||||
| <li><?php if(isset($lang[$error])) echo $lang[$error]; else echo $error; ?></li> | |||||
| <?php endforeach; ?> | |||||
| </ul> | |||||
| <script type="text/javascript">/* <![CDATA[ */ location.hash='errors'; /* ]]> */</script> | |||||
| </div> | |||||
| <?php endif; ?> | |||||
| <?php if(empty($comments_closed)): ?> | |||||
| <?php if(isset($preview) && empty($errors)): ?> | |||||
| <div class="alert alert-warning"> | |||||
| <h3 id="preview"><?php echo $lang['comment_preview_hl']; ?></h3> | |||||
| <div class="comment-preview"> | |||||
| <h4 class="author"><?php if(isset($preview['hp'])): ?><a href="<?php echo $preview['hp']; ?>"><strong><?php echo $preview['name']; ?></strong></a><?php elseif(isset($preview['email'])): ?><a href="mailto:<?php echo $preview['email']; ?>"><strong><?php echo $preview['name']; ?></strong></a><?php else: ?><strong><?php echo $preview['name']; ?></strong><?php endif; ?>, <?php echo $lang['comment_time']['preview']; ?>:</h4> | |||||
| <p class="text"><?php echo $preview['comment_text']; ?></p> | |||||
| </div> | |||||
| </div> | |||||
| <script type="text/javascript">/* <![CDATA[ */ location.hash='preview'; /* ]]> */</script> | |||||
| <?php endif; ?> | |||||
| <?php if(empty($preview) && empty($errors)): ?> | |||||
| <p><button type="button" class="btn btn-success" data-toggle="collapse" data-target="#commentformwrapper"><span class="glyphicon glyphicon-plus"></span> <?php echo $lang['comments_add_comment']; ?></button></p> | |||||
| <?php endif; ?> | |||||
| <div id="commentformwrapper" class="collapse<?php if(isset($preview) || $errors): ?> in<?php endif; ?>"> | |||||
| <form id="commentform" method="post" action="<?php echo $BASE_URL . PAGE; ?>"> | |||||
| <div> | |||||
| <?php if($form_session_data): ?><input type="hidden" name="<?php echo $form_session_data['name']; ?>" value="<?php echo $form_session_data['id']; ?>" /><?php endif; ?> | |||||
| <div class="form-group"> | |||||
| <label for="comment_text"><?php echo $lang['comment_input_text']; ?></label><br /> | |||||
| <textarea id="comment_text" class="form-control" name="comment_text" cols="63" rows="10"><?php echo $form_values['comment_text']; ?></textarea> | |||||
| </div> | |||||
| <div class="form-inline"> | |||||
| <div class="form-group"> | |||||
| <label class="sr-only" for="name"><?php echo $lang['comment_input_name']; ?></label> | |||||
| <input class="form-control" type="text" id="name" name="name" value="<?php echo $form_values['name']; ?>" placeholder="<?php echo $lang['comment_input_name']; ?>" /> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label class="sr-only" for="email_hp"><?php echo $lang['comment_input_email_hp']; ?></label> | |||||
| <input class="form-control" type="text" id="email_hp" name="email_hp" value="<?php echo $form_values['email_hp']; ?>" placeholder="<?php echo $lang['comment_input_email_hp']; ?>" /> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <input type="submit" class="btn btn-primary" name="save" value="<?php echo $lang['comment_input_submit']; ?>"<?php if(!$form_session): ?> disabled="disabled"<?php endif; ?>> | |||||
| <input type="submit" class="btn btn-primary" name="preview" value="<?php echo $lang['comment_input_preview']; ?>" /> | |||||
| </div> | |||||
| </div> | |||||
| </div> | |||||
| </form> | |||||
| </div> | |||||
| <?php endif; ?> | |||||
| <?php endif; ?> | |||||
| <?php if($pingbacks): ?> | |||||
| <h3 id="pingbacks"><?php echo $lang['pingback_headline']; ?></h3> | |||||
| <ol id="pingback-list"> | |||||
| <?php foreach($pingbacks as $pingback): ?> | |||||
| <li><a href="<?php echo $pingback['hp']; ?>"><?php echo $pingback['name']; ?></a><!-- (<?php echo $lang['comment_time'][$pingback['id']]; ?>)--> | |||||
| <?php if($admin): ?> | |||||
| <br /><span class="small"><a href="<?php echo BASE_URL . PAGE; ?>,<?php echo $current_page; ?>,edit,<?php echo $pingback['id']; ?>#comments"><img src="<?php echo BASE_URL; ?>templates/images/edit_link.png" width="15" height="10" alt="" /><?php echo $lang['comment_edit_link']; ?></a> <a href="<?php echo BASE_URL . PAGE; ?>,<?php echo $current_page; ?>,delete,<?php echo $pingback['id']; ?>" onclick="return confirm_link('<?php echo rawurlencode($lang['comment_delete_confirm']); ?>',this,1)"><img src="<?php echo BASE_URL; ?>templates/images/delete_link.png" width="13" height="9" alt="" /><?php echo $lang['comment_delete_link']; ?></a></span> | |||||
| <?php endif; ?> | |||||
| </li> | |||||
| <?php endforeach; ?> | |||||
| </ol> | |||||
| <?php endif; ?> | |||||
| <?php if(isset($comments_closed)): ?> | |||||
| <p><em><span class="glyphicon glyphicon-lock"></span> <?php echo $lang['comments_closed']; ?></em></p> | |||||
| <?php endif; ?> | |||||
| </div> | |||||
| <div class="panel-heading"> | |||||
| <?php if ($admin): ?> | |||||
| <?php if (empty($comments_closed)): ?> | |||||
| <a class="btn btn-danger btn-xs pull-right" href="<?php echo BASE_URL . PAGE; ?>,openclose"> | |||||
| <span class="glyphicon glyphicon-lock"></span> <?php echo $lang['comments_close']; ?></a> | |||||
| <?php else: ?> | |||||
| <a class="btn btn-success btn-xs pull-right" href="<?php echo BASE_URL . PAGE; ?>,openclose"> | |||||
| <span class="glyphicon glyphicon-lock"></span> <?php echo $lang['comments_open']; ?></a> | |||||
| <?php endif; ?> | |||||
| <?php endif; ?> | |||||
| <h3 class="panel-title"><?php echo $lang['comment_headline']; ?> | |||||
| <span class="badge"><?php echo $total_comments; ?></span></h3> | |||||
| </div> | |||||
| <div class="panel-body"> | |||||
| <?php if (isset($edit_data)): ?> | |||||
| <form id="commentform" method="post" action="<?php echo $BASE_URL . PAGE; ?>#comments"> | |||||
| <div> | |||||
| <input type="hidden" name="current_page" value="<?php echo $edit_data['current_page']; ?>"/> | |||||
| <input type="hidden" name="id" value="<?php echo $edit_data['id']; ?>"/> | |||||
| <p><label for="comment_text"><strong><?php echo $lang['comment_edit_text']; ?></strong></label><br/> | |||||
| <textarea id="comment_text" class="form-control" name="comment_text" cols="63" | |||||
| rows="10"><?php echo $edit_data['comment']; ?></textarea></p> | |||||
| <p class="userdata"><label for="name"><?php echo $lang['comment_input_name']; ?></label><br/> | |||||
| <input type="text" id="name" class="form-control" name="name" | |||||
| value="<?php echo $edit_data['name']; ?>" size="30"/></p> | |||||
| <p class="userdata"><label | |||||
| for="email_hp"><?php echo $lang['comment_input_email_hp']; ?></label><br/> | |||||
| <input type="text" id="email_hp" class="form-control" name="email_hp" | |||||
| value="<?php echo $edit_data['email_hp']; ?>" size="30"/></p> | |||||
| <p><input class="btn btn-primary" name="edit_save" type="submit" | |||||
| value="<?php echo $lang['comment_input_submit']; ?>"/></p> | |||||
| </div> | |||||
| </form> | |||||
| <?php else: ?> | |||||
| <?php if ($comments): ?> | |||||
| <?php foreach ($comments as $comment): ?> | |||||
| <div class="comment" id="comment-<?php echo $comment['id']; ?>"> | |||||
| <h4 class="author"><?php echo $comment['nr']; ?>. <?php if (isset($comment['hp'])): ?><a | |||||
| href="<?php echo $comment['hp']; ?>"><strong><?php echo $comment['name']; ?></strong> | |||||
| </a><?php elseif (isset($comment['email'])): ?><a | |||||
| href="mailto:<?php echo $comment['email']; ?>"> | |||||
| <strong><?php echo $comment['name']; ?></strong></a><?php | |||||
| else: ?><strong><?php echo $comment['name']; ?></strong><?php endif; ?> | |||||
| , <?php echo $lang['comment_time'][$comment['id']]; ?>:<?php if ($admin): ?> | |||||
| <span class="smallx">(<?php echo $comment['ip']; ?>)</span><?php endif; ?></h4> | |||||
| <p class="text"><?php echo $comment['comment']; ?></p> | |||||
| <?php if ($admin): ?> | |||||
| <div class="comment-admin"> | |||||
| <a class="btn btn-primary btn-xs" | |||||
| href="<?php echo BASE_URL . PAGE; ?>,<?php echo $current_page; ?>,edit,<?php echo $comment['id']; ?>#comments" | |||||
| title="<?php echo $lang['comment_edit_link']; ?>"> | |||||
| <span class="glyphicon glyphicon-pencil"></span></a> | |||||
| <a class="btn btn-danger btn-xs" | |||||
| href="<?php echo BASE_URL . PAGE; ?>,<?php echo $current_page; ?>,delete,<?php echo $comment['id']; ?>" | |||||
| title="<?php echo $lang['comment_delete_link']; ?>" | |||||
| data-delete-confirm="<?php echo rawurlencode($lang['comment_delete_confirm']); ?>"> | |||||
| <span class="glyphicon glyphicon-remove"></span></a> | |||||
| </div> | |||||
| <?php endif; ?> | |||||
| </div> | |||||
| <?php endforeach ?> | |||||
| <?php else: ?> | |||||
| <p class="no-comments"><em><?php echo $lang['comment_no_comments']; ?></em></p> | |||||
| <?php endif; ?> | |||||
| <?php if ($pagination): ?> | |||||
| <p class="comment-info"><?php echo $lang['comments_pagination_info']; ?></p> | |||||
| <ul class="pagination pagination-sm"> | |||||
| <?php if ($pagination['previous']): ?> | |||||
| <li><a href="<?php echo BASE_URL . PAGE; | |||||
| if ($pagination['previous'] > 1): ?>,<?php echo $pagination['previous']; endif; ?>#comments">«</a> | |||||
| </li><?php endif; ?> | |||||
| <?php foreach ($pagination['items'] as $item): ?> | |||||
| <?php if (empty($item)): ?> | |||||
| <li><span>…</span></li><?php elseif ($item == $pagination['current']): ?> | |||||
| <li class="active"><a href="#"><?php echo $item; ?></a></li><?php | |||||
| else: ?> | |||||
| <li><a href="<?php echo BASE_URL . PAGE; | |||||
| if ($item > 1): ?>,<?php echo $item; endif; ?>#comments"><?php echo $item; ?></a> | |||||
| </li><?php endif; ?> | |||||
| <?php endforeach; ?> | |||||
| <?php if ($pagination['next']): ?> | |||||
| <li><a | |||||
| href="<?php echo BASE_URL . PAGE; ?>,<?php echo $pagination['next']; ?>#comments">»</a> | |||||
| </li><?php endif; ?> | |||||
| </ul> | |||||
| <?php endif; ?> | |||||
| <?php if ($errors): ?> | |||||
| <div id="errors" class="alert alert-danger"> | |||||
| <h3><span class="glyphicon glyphicon-warning-sign"></span> <?php echo $lang['error_headline']; ?> | |||||
| </h3> | |||||
| <ul> | |||||
| <?php foreach ($errors as $error): ?> | |||||
| <li><?php if (isset($lang[$error])) echo $lang[$error]; else echo $error; ?></li> | |||||
| <?php endforeach; ?> | |||||
| </ul> | |||||
| <script type="text/javascript">/* <![CDATA[ */ | |||||
| location.hash = 'errors'; | |||||
| /* ]]> */</script> | |||||
| </div> | |||||
| <?php endif; ?> | |||||
| <?php if (empty($comments_closed)): ?> | |||||
| <?php if (isset($preview) && empty($errors)): ?> | |||||
| <div class="alert alert-warning"> | |||||
| <h3 id="preview"><?php echo $lang['comment_preview_hl']; ?></h3> | |||||
| <div class="comment-preview"> | |||||
| <h4 class="author"><?php if (isset($preview['hp'])): ?> | |||||
| <a href="<?php echo $preview['hp']; ?>"> | |||||
| <strong><?php echo $preview['name']; ?></strong> | |||||
| </a><?php elseif (isset($preview['email'])): ?> | |||||
| <a href="mailto:<?php echo $preview['email']; ?>"> | |||||
| <strong><?php echo $preview['name']; ?></strong> | |||||
| </a><?php | |||||
| else: ?><strong><?php echo $preview['name']; ?></strong><?php endif; ?> | |||||
| , <?php echo $lang['comment_time']['preview']; ?>:</h4> | |||||
| <p class="text"><?php echo $preview['comment_text']; ?></p> | |||||
| </div> | |||||
| </div> | |||||
| <script type="text/javascript">/* <![CDATA[ */ | |||||
| location.hash = 'preview'; | |||||
| /* ]]> */</script> | |||||
| <?php endif; ?> | |||||
| <?php if (empty($preview) && empty($errors)): ?> | |||||
| <p> | |||||
| <button type="button" class="btn btn-success" data-toggle="collapse" | |||||
| data-target="#commentformwrapper"> | |||||
| <span class="glyphicon glyphicon-plus"></span> <?php echo $lang['comments_add_comment']; ?> | |||||
| </button> | |||||
| </p> | |||||
| <?php endif; ?> | |||||
| <div id="commentformwrapper" | |||||
| class="collapse<?php if (isset($preview) || $errors): ?> in<?php endif; ?>"> | |||||
| <form id="commentform" method="post" action="<?php echo $BASE_URL . PAGE; ?>"> | |||||
| <div> | |||||
| <?php if ($form_session_data): ?> | |||||
| <input type="hidden" | |||||
| name="<?php echo $form_session_data['name']; ?>" | |||||
| value="<?php echo $form_session_data['id']; ?>" /><?php endif; ?> | |||||
| <div class="form-group"> | |||||
| <label for="comment_text"><?php echo $lang['comment_input_text']; ?></label><br/> | |||||
| <textarea id="comment_text" class="form-control" name="comment_text" cols="63" | |||||
| rows="10"><?php echo $form_values['comment_text']; ?></textarea> | |||||
| </div> | |||||
| <div class="form-inline"> | |||||
| <div class="form-group"> | |||||
| <label class="sr-only" for="name"><?php echo $lang['comment_input_name']; ?></label> | |||||
| <input class="form-control" type="text" id="name" name="name" | |||||
| value="<?php echo $form_values['name']; ?>" | |||||
| placeholder="<?php echo $lang['comment_input_name']; ?>"/> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label class="sr-only" | |||||
| for="email_hp"><?php echo $lang['comment_input_email_hp']; ?></label> | |||||
| <input class="form-control" type="text" id="email_hp" name="email_hp" | |||||
| value="<?php echo $form_values['email_hp']; ?>" | |||||
| placeholder="<?php echo $lang['comment_input_email_hp']; ?>"/> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <input type="submit" class="btn btn-primary" name="save" | |||||
| value="<?php echo $lang['comment_input_submit']; ?>"<?php if (!$form_session): ?> disabled="disabled"<?php endif; ?>> | |||||
| <input type="submit" class="btn btn-primary" name="preview" | |||||
| value="<?php echo $lang['comment_input_preview']; ?>"/> | |||||
| </div> | |||||
| </div> | |||||
| </div> | |||||
| </form> | |||||
| </div> | |||||
| <?php endif; ?> | |||||
| <?php endif; ?> | |||||
| <?php if ($pingbacks): ?> | |||||
| <h3 id="pingbacks"><?php echo $lang['pingback_headline']; ?></h3> | |||||
| <ol id="pingback-list"> | |||||
| <?php foreach ($pingbacks as $pingback): ?> | |||||
| <li> | |||||
| <a href="<?php echo $pingback['hp']; ?>"><?php echo $pingback['name']; ?></a><!-- (<?php echo $lang['comment_time'][$pingback['id']]; ?>)--> | |||||
| <?php if ($admin): ?> | |||||
| <br/><span class="small"> | |||||
| <a href="<?php echo BASE_URL . PAGE; ?>,<?php echo $current_page; ?>,edit,<?php echo $pingback['id']; ?>#comments"> | |||||
| <img src="<?php echo BASE_URL; ?>templates/images/edit_link.png" width="15" | |||||
| height="10" alt=""/><?php echo $lang['comment_edit_link']; ?></a> | |||||
| <a href="<?php echo BASE_URL . PAGE; ?>,<?php echo $current_page; ?>,delete,<?php echo $pingback['id']; ?>" | |||||
| onclick="return confirm_link('<?php echo rawurlencode($lang['comment_delete_confirm']); ?>',this,1)"> | |||||
| <img src="<?php echo BASE_URL; ?>templates/images/delete_link.png" width="13" | |||||
| height="9" alt=""/><?php echo $lang['comment_delete_link']; ?></a></span> | |||||
| <?php endif; ?> | |||||
| </li> | |||||
| <?php endforeach; ?> | |||||
| </ol> | |||||
| <?php endif; ?> | |||||
| <?php if (isset($comments_closed)): ?> | |||||
| <p><em><span class="glyphicon glyphicon-lock"></span> <?php echo $lang['comments_closed']; ?></em></p> | |||||
| <?php endif; ?> | |||||
| </div> | |||||
| </div> | </div> | ||||
| @ -1,42 +1,49 @@ | |||||
| <?php if(isset($mail_sent)): ?> | |||||
| <?php if (isset($mail_sent)): ?> | |||||
| <div class="alert alert-success"><span class="glyphicon glyphicon-ok"></span> <?php echo $lang['formmailer_mail_sent']; ?></div> | |||||
| <div class="alert alert-success"><span | |||||
| class="glyphicon glyphicon-ok"></span> <?php echo $lang['formmailer_mail_sent']; ?></div> | |||||
| <?php else: ?> | <?php else: ?> | ||||
| <?php if(isset($errors)): ?> | |||||
| <div class="alert alert-danger"> | |||||
| <h3><span class="glyphicon glyphicon-warning-sign"></span> <?php echo $lang['error_headline']; ?></h3> | |||||
| <ul> | |||||
| <?php foreach($errors as $error): ?> | |||||
| <li><?php if(isset($lang[$error])) echo $lang[$error]; else echo $error; ?></li> | |||||
| <?php endforeach; ?> | |||||
| </ul> | |||||
| </div> | |||||
| <?php endif; ?> | |||||
| <form method="post" action="<?php echo BASE_URL.PAGE; ?>" accept-charset="<?php echo CHARSET; ?>"> | |||||
| <input type="hidden" name="send" value="true"> | |||||
| <div> | |||||
| <div class="form-group"> | |||||
| <label for="email"><?php echo $lang['formmailer_label_email']; ?></label> | |||||
| <input id="email" class="form-control" type="email" name="email"> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="subject"><?php echo $lang['formmailer_label_subject']; ?></label> | |||||
| <input id="subject" class="form-control" type="text" name="subject"> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="message"><?php echo $lang['formmailer_label_message']; ?></label> | |||||
| <textarea id="message" class="form-control" name="message" rows="12"><?php if(isset($message)) echo $message; ?></textarea> | |||||
| </div> | |||||
| <p><button class="btn btn-primary btn-lg" type="submit"><span class="glyphicon glyphicon-envelope"></span> <?php echo $lang['formmailer_button_send']; ?></button></p> | |||||
| </div> | |||||
| </form> | |||||
| <?php if (isset($errors)): ?> | |||||
| <div class="alert alert-danger"> | |||||
| <h3><span class="glyphicon glyphicon-warning-sign"></span> <?php echo $lang['error_headline']; ?></h3> | |||||
| <ul> | |||||
| <?php foreach ($errors as $error): ?> | |||||
| <li><?php if (isset($lang[$error])) echo $lang[$error]; else echo $error; ?></li> | |||||
| <?php endforeach; ?> | |||||
| </ul> | |||||
| </div> | |||||
| <?php endif; ?> | |||||
| <form method="post" action="<?php echo BASE_URL . PAGE; ?>" accept-charset="<?php echo CHARSET; ?>"> | |||||
| <input type="hidden" name="send" value="true"> | |||||
| <div> | |||||
| <div class="form-group"> | |||||
| <label for="email"><?php echo $lang['formmailer_label_email']; ?></label> | |||||
| <input id="email" class="form-control" type="email" name="email"> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="subject"><?php echo $lang['formmailer_label_subject']; ?></label> | |||||
| <input id="subject" class="form-control" type="text" name="subject"> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="message"><?php echo $lang['formmailer_label_message']; ?></label> | |||||
| <textarea id="message" class="form-control" name="message" | |||||
| rows="12"><?php if (isset($message)) echo $message; ?></textarea> | |||||
| </div> | |||||
| <p> | |||||
| <button class="btn btn-primary btn-lg" type="submit"><span | |||||
| class="glyphicon glyphicon-envelope"></span> <?php echo $lang['formmailer_button_send']; ?> | |||||
| </button> | |||||
| </p> | |||||
| </div> | |||||
| </form> | |||||
| <?php endif; ?> | <?php endif; ?> | ||||
| @ -1,30 +1,46 @@ | |||||
| <?php $photos_per_row=3; if(isset($photos)): ?> | |||||
| <?php for($i=0;$i<$number_of_photos;$i=$i+$photos_per_row): ?> | |||||
| <div class="row"> | |||||
| <?php for($n=$i;$n<$i+$photos_per_row;++$n): ?> | |||||
| <div class="col-xs-4"> | |||||
| <?php if(isset($photos[$n])): ?> | |||||
| <?php if($settings['lightbox_enabled']): ?> | |||||
| <div class="thumbnail-wrapper"> | |||||
| <a class="thumbnail" href="<?php echo BASE_URL . MEDIA_DIR. $photos[$n]['photo_normal']; ?>" data-lightbox><img src="<?php echo BASE_URL.MEDIA_DIR.$photos[$n]['photo_thumbnail']; ?>" title="<?php echo $photos[$n]['title']; ?>" alt="<?php echo $photos[$n]['title']; ?>" data-subtitle="<?php echo $photos[$n]['subtitle']; ?>" data-description="<?php echo $photos[$n]['description']; ?>" width="<?php echo $photos[$n]['width']; ?>" height="<?php echo $photos[$n]['height']; ?>" /></a> | |||||
| </div> | |||||
| <?php else: ?> | |||||
| <a class="thumbnail" href="<?php echo BASE_URL . PAGE; ?>,<?php echo IMAGE_IDENTIFIER; ?>,<?php echo $photos[$n]['id']; ?>"><img src="<?php echo BASE_URL.MEDIA_DIR.$photos[$n]['photo_thumbnail']; ?>" title="<?php echo $photos[$n]['title']; ?>" alt="<?php echo $photos[$n]['title']; ?>" width="<?php echo $photos[$n]['width']; ?>" height="<?php $photos[$n]['height']; ?>" /></a> | |||||
| <?php endif; ?> | |||||
| <?php else: ?> | |||||
| <?php endif; ?> | |||||
| </div> | |||||
| <?php endfor; ?> | |||||
| </div> | |||||
| <?php endfor; ?> | |||||
| <?php $photos_per_row = 3; | |||||
| if (isset($photos)): ?> | |||||
| <?php for ($i = 0; $i < $number_of_photos; $i = $i + $photos_per_row): ?> | |||||
| <div class="row"> | |||||
| <?php for ($n = $i; $n < $i + $photos_per_row; ++$n): ?> | |||||
| <div class="col-xs-4"> | |||||
| <?php if (isset($photos[$n])): ?> | |||||
| <?php if ($settings['lightbox_enabled']): ?> | |||||
| <div class="thumbnail-wrapper"> | |||||
| <a class="thumbnail" | |||||
| href="<?php echo BASE_URL . MEDIA_DIR . $photos[$n]['photo_normal']; ?>" | |||||
| data-lightbox><img | |||||
| src="<?php echo BASE_URL . MEDIA_DIR . $photos[$n]['photo_thumbnail']; ?>" | |||||
| title="<?php echo $photos[$n]['title']; ?>" | |||||
| alt="<?php echo $photos[$n]['title']; ?>" | |||||
| data-subtitle="<?php echo $photos[$n]['subtitle']; ?>" | |||||
| data-description="<?php echo $photos[$n]['description']; ?>" | |||||
| width="<?php echo $photos[$n]['width']; ?>" | |||||
| height="<?php echo $photos[$n]['height']; ?>"/></a> | |||||
| </div> | |||||
| <?php else: ?> | |||||
| <a class="thumbnail" | |||||
| href="<?php echo BASE_URL . PAGE; ?>,<?php echo IMAGE_IDENTIFIER; ?>,<?php echo $photos[$n]['id']; ?>"><img | |||||
| src="<?php echo BASE_URL . MEDIA_DIR . $photos[$n]['photo_thumbnail']; ?>" | |||||
| title="<?php echo $photos[$n]['title']; ?>" | |||||
| alt="<?php echo $photos[$n]['title']; ?>" | |||||
| width="<?php echo $photos[$n]['width']; ?>" | |||||
| height="<?php $photos[$n]['height']; ?>"/></a> | |||||
| <?php endif; ?> | |||||
| <?php else: ?> | |||||
| <?php endif; ?> | |||||
| </div> | |||||
| <?php endfor; ?> | |||||
| </div> | |||||
| <?php endfor; ?> | |||||
| <?php else: ?> | <?php else: ?> | ||||
| <p><em>No photo in this gallery</em><p> | <p><em>No photo in this gallery</em><p> | ||||
| <?php endif; ?> | |||||
| <?php endif; ?> | |||||
| @ -1,5 +1,8 @@ | |||||
| <?php if(isset($image)): ?> | |||||
| <img<?php if(isset($image['class'])): ?> class="<?php echo $image['class']; ?>" <?php endif; ?> src="<?php echo BASE_URL.MEDIA_DIR.$image['image']; ?>" title="<?php echo $image['alt']; ?>" alt="<?php echo $image['alt']; ?>" width="<?php echo $image['width']; ?>" height="<?php echo $image['height']; ?>" /> | |||||
| <?php if (isset($image)): ?> | |||||
| <img<?php if (isset($image['class'])): ?> class="<?php echo $image['class']; ?>" <?php endif; ?> | |||||
| src="<?php echo BASE_URL . MEDIA_DIR . $image['image']; ?>" title="<?php echo $image['alt']; ?>" | |||||
| alt="<?php echo $image['alt']; ?>" width="<?php echo $image['width']; ?>" | |||||
| height="<?php echo $image['height']; ?>"/> | |||||
| <?php else: ?> | <?php else: ?> | ||||
| <span class="missing">[ missing image ]</span> | |||||
| <span class="missing">[ missing image ]</span> | |||||
| <?php endif; ?> | <?php endif; ?> | ||||
| @ -1,42 +1,64 @@ | |||||
| <?php if($news): ?> | |||||
| <?php foreach($news as $item): ?> | |||||
| <?php if ($news): ?> | |||||
| <?php foreach ($news as $item): ?> | |||||
| <div class="news"> | |||||
| <div class="news"> | |||||
| <p class="time"><?php echo $lang['news_time'][$item['id']]; ?></p> | |||||
| <p class="time"><?php echo $lang['news_time'][$item['id']]; ?></p> | |||||
| <h2 class="media-heading"><a href="<?php echo BASE_URL.$item['page']; ?>"><?php echo $item['teaser_headline']; ?></a></h2> | |||||
| <h2 class="media-heading"><a | |||||
| href="<?php echo BASE_URL . $item['page']; ?>"><?php echo $item['teaser_headline']; ?></a></h2> | |||||
| <div class="media"> | |||||
| <div class="media"> | |||||
| <?php if(isset($item['teaser_img'])): ?> | |||||
| <a class="pull-left thumbnail" href="<?php echo BASE_URL.$item['page']; ?>"><img class="media-object" src="<?php echo BASE_URL.MEDIA_DIR.$item['teaser_img']; ?>" alt="<?php echo $item['teaser_headline']; ?>" width="<?php echo $item['teaser_img_width']; ?>" height="<?php echo $item['teaser_img_height']; ?>" /></a> | |||||
| <?php endif; ?> | |||||
| <?php if (isset($item['teaser_img'])): ?> | |||||
| <a class="pull-left thumbnail" href="<?php echo BASE_URL . $item['page']; ?>"> | |||||
| <img class="media-object" src="<?php echo BASE_URL . MEDIA_DIR . $item['teaser_img']; ?>" | |||||
| alt="<?php echo $item['teaser_headline']; ?>" | |||||
| width="<?php echo $item['teaser_img_width']; ?>" | |||||
| height="<?php echo $item['teaser_img_height']; ?>"/></a> | |||||
| <?php endif; ?> | |||||
| <?php if(isset($item['teaser'])): ?> | |||||
| <p><?php echo $item['teaser']; ?></p> | |||||
| <?php endif; ?> | |||||
| <?php if (isset($item['teaser'])): ?> | |||||
| <p><?php echo $item['teaser']; ?></p> | |||||
| <?php endif; ?> | |||||
| <p><a class="btn btn-primary" href="<?php echo BASE_URL.$item['page']; ?>"><?php echo $item['link_name']; ?></a> | |||||
| <?php if(isset($item['comments'])): ?><a class="btn btn-default" href="<?php echo BASE_URL.$item['page']; ?>#comments" class="comments"><?php echo $lang['number_of_comments'][$item['id']]; ?></a><?php endif; ?></p> | |||||
| <p><a class="btn btn-primary" | |||||
| href="<?php echo BASE_URL . $item['page']; ?>"><?php echo $item['link_name']; ?></a> | |||||
| <?php if (isset($item['comments'])): ?> | |||||
| <a class="btn btn-default" | |||||
| href="<?php echo BASE_URL . $item['page']; ?>#comments" | |||||
| class="comments"><?php echo $lang['number_of_comments'][$item['id']]; ?></a> | |||||
| <?php endif; ?> | |||||
| </p> | |||||
| </div> | |||||
| </div> | |||||
| <?php endforeach; ?> | |||||
| </div> | |||||
| </div> | |||||
| <?php endforeach; ?> | |||||
| <?php if($pagination): ?> | |||||
| <!--<p><?php echo $lang['pagination']; ?></p>--> | |||||
| <ul class="pagination"> | |||||
| <?php if($pagination['previous']): ?><li><a href="<?php echo BASE_URL . PAGE; if($pagination['previous']>1||$current_category): ?>,<?php if($current_category) echo CATEGORY_IDENTIFIER.$current_category_urlencoded; ?><?php if($pagination['previous']>1): ?>,<?php echo $pagination['previous']; endif; endif; ?>">«</a></li><?php endif; ?><?php foreach($pagination['items'] as $item): ?><?php if(empty($item)): ?><li>..</li><?php elseif($item==$pagination['current']): ?><li class="active"><a href="#"><?php echo $item; ?></a></li><?php else: ?><li><a href="<?php echo BASE_URL . PAGE; if($item>1||$current_category): ?>,<?php if($current_category) echo CATEGORY_IDENTIFIER.$current_category_urlencoded; ?><?php if($item>1): ?>,<?php echo $item; endif; endif; ?>"><?php echo $item; ?></a></li><?php endif; ?><?php endforeach; ?><?php if($pagination['next']): ?><li><a href="<?php echo BASE_URL . PAGE; ?>,<?php if($current_category) echo CATEGORY_IDENTIFIER.$current_category_urlencoded; ?><?php if($pagination['next']>1): ?>,<?php echo $pagination['next']; ?><?php endif; ?>">»</a></li><?php endif; ?> | |||||
| </ul> | |||||
| <?php endif; ?> | |||||
| <?php if ($pagination): ?> | |||||
| <!--<p><?php echo $lang['pagination']; ?></p>--> | |||||
| <ul class="pagination"> | |||||
| <?php if ($pagination['previous']): ?> | |||||
| <li><a href="<?php echo BASE_URL . PAGE; | |||||
| if ($pagination['previous'] > 1 || $current_category): ?>,<?php if ($current_category) echo CATEGORY_IDENTIFIER . $current_category_urlencoded; ?><?php if ($pagination['previous'] > 1): ?>,<?php echo $pagination['previous']; endif; endif; ?>">«</a> | |||||
| </li><?php endif; ?><?php foreach ($pagination['items'] as $item): ?><?php if (empty($item)): ?> | |||||
| <li>..</li><?php elseif ($item == $pagination['current']): ?> | |||||
| <li class="active"><a href="#"><?php echo $item; ?></a></li><?php | |||||
| else: ?> | |||||
| <li><a href="<?php echo BASE_URL . PAGE; | |||||
| if ($item > 1 || $current_category): ?>,<?php if ($current_category) echo CATEGORY_IDENTIFIER . $current_category_urlencoded; ?><?php if ($item > 1): ?>,<?php echo $item; endif; endif; ?>"><?php echo $item; ?></a> | |||||
| </li><?php endif; ?><?php endforeach; ?><?php if ($pagination['next']): ?> | |||||
| <li><a href="<?php echo BASE_URL . PAGE; ?>,<?php if ($current_category) echo CATEGORY_IDENTIFIER . $current_category_urlencoded; ?><?php if ($pagination['next'] > 1): ?>,<?php echo $pagination['next']; ?><?php endif; ?>">»</a> | |||||
| </li><?php endif; ?> | |||||
| </ul> | |||||
| <?php endif; ?> | |||||
| <?php else: ?> | <?php else: ?> | ||||
| <div class="alert alert-warning"> | |||||
| <?php echo $lang['no_news']; ?> | |||||
| </div> | |||||
| <div class="alert alert-warning"> | |||||
| <?php echo $lang['no_news']; ?> | |||||
| </div> | |||||
| <?php endif; ?> | <?php endif; ?> | ||||
| @ -1,26 +1,38 @@ | |||||
| <?php if(isset($notes)): ?> | |||||
| <?php if (isset($notes)): ?> | |||||
| <?php foreach($notes as $note): ?> | |||||
| <div class="news"> | |||||
| <p class="time"><?php echo $lang['note_time'][$note['id']]; ?></p> | |||||
| <h2><?php if($note['link']): ?><a href="<?php echo $note['link']; ?>"><?php echo $note['title']; ?></a><?php else: ?><?php echo $note['title']; ?><?php endif; ?></h2> | |||||
| <?php if($note['text']): ?><p><?php echo $note['text']; ?></p><?php endif; ?> | |||||
| <?php if($note['linkname']): ?><p class="link"><a class="btn btn-primary" href="<?php echo $note['link']; ?>"><?php echo $note['linkname']; ?></a></p><?php endif; ?> | |||||
| </div> | |||||
| <?php endforeach; ?> | |||||
| <?php foreach ($notes as $note): ?> | |||||
| <div class="news"> | |||||
| <p class="time"><?php echo $lang['note_time'][$note['id']]; ?></p> | |||||
| <?php if($pagination): ?> | |||||
| <p class="pagination"><?php echo $lang['pagination']; ?> [ | |||||
| <?php if($pagination['previous']): ?> <a href="<?php echo BASE_URL . PAGE; if($pagination['previous']>1): ?>,<?php echo $pagination['previous']; endif; ?>">«</a> <?php endif; ?> | |||||
| <?php foreach($pagination['items'] as $item): ?> | |||||
| <?php if(empty($item)): ?> ..<?php elseif($item==$pagination['current']): ?> <span class="current"><?php echo $item; ?></span><?php else: ?> <a href="<?php echo BASE_URL . PAGE; if($item>1): ?>,<?php echo $item; endif; ?>"><?php echo $item; ?></a><?php endif; ?> | |||||
| <?php endforeach; ?> | |||||
| <?php if($pagination['next']): ?> <a href="<?php echo BASE_URL . PAGE; ?>,<?php echo $pagination['next']; ?>">»</a><?php endif; ?> | |||||
| ]</p> | |||||
| <?php endif; ?> | |||||
| <h2><?php if ($note['link']): ?> | |||||
| <a href="<?php echo $note['link']; ?>"><?php echo $note['title']; ?></a><?php else: ?><?php echo $note['title']; ?><?php endif; ?> | |||||
| </h2> | |||||
| <?php if ($note['text']): ?><p><?php echo $note['text']; ?></p><?php endif; ?> | |||||
| <?php if ($note['linkname']): ?><p class="link"> | |||||
| <a class="btn btn-primary" | |||||
| href="<?php echo $note['link']; ?>"><?php echo $note['linkname']; ?></a> | |||||
| </p><?php endif; ?> | |||||
| </div> | |||||
| <?php endforeach; ?> | |||||
| <?php if ($pagination): ?> | |||||
| <p class="pagination"><?php echo $lang['pagination']; ?> [ | |||||
| <?php if ($pagination['previous']): ?> <a href="<?php echo BASE_URL . PAGE; | |||||
| if ($pagination['previous'] > 1): ?>,<?php echo $pagination['previous']; endif; ?>">«</a> <?php endif; ?> | |||||
| <?php foreach ($pagination['items'] as $item): ?> | |||||
| <?php if (empty($item)): ?> ..<?php elseif ($item == $pagination['current']): ?> | |||||
| <span class="current"><?php echo $item; ?></span><?php | |||||
| else: ?> <a href="<?php echo BASE_URL . PAGE; | |||||
| if ($item > 1): ?>,<?php echo $item; endif; ?>"><?php echo $item; ?></a><?php endif; ?> | |||||
| <?php endforeach; ?> | |||||
| <?php if ($pagination['next']): ?> <a | |||||
| href="<?php echo BASE_URL . PAGE; ?>,<?php echo $pagination['next']; ?>">»</a><?php endif; ?> | |||||
| ]</p> | |||||
| <?php endif; ?> | |||||
| <?php else: ?> | <?php else: ?> | ||||
| <?php echo $lang['no_notes']; ?> | |||||
| <?php echo $lang['no_notes']; ?> | |||||
| <?php endif; ?> | <?php endif; ?> | ||||
| S | |||||
| @ -1,26 +1,37 @@ | |||||
| <?php if(isset($included_pages)): ?> | |||||
| <?php if (isset($included_pages)): ?> | |||||
| <?php for($i=0;$i<$included_pages_number;$i=$i+2): ?> | |||||
| <div class="row"> | |||||
| <?php for($n=$i;$n<$i+2;++$n): ?> | |||||
| <div class="col-md-6"> | |||||
| <?php for ($i = 0; $i < $included_pages_number; $i = $i + 2): ?> | |||||
| <div class="row"> | |||||
| <?php for ($n = $i; $n < $i + 2; ++$n): ?> | |||||
| <div class="col-md-6"> | |||||
| <?php if(isset($included_pages[$n])): ?> | |||||
| <div class="overview"> | |||||
| <h2 class="teaser"><a href="<?php echo BASE_URL.$included_pages[$n]['page']; ?>"><?php echo $included_pages[$n]['teaser_headline']; ?></a></h2> | |||||
| <div class="media"> | |||||
| <?php if($included_pages[$n]['teaser_img']): ?> | |||||
| <a class="thumbnail thumbnail-left" href="<?php echo BASE_URL.$included_pages[$n]['page']; ?>"><img src="<?php echo BASE_URL.MEDIA_DIR.$included_pages[$n]['teaser_img']; ?>" alt="<?php echo $included_pages[$n]['teaser_headline']; ?>" width="<?php echo $included_pages[$n]['teaser_img_width']; ?>" height="<?php echo $included_pages[$n]['teaser_img_height']; ?>" /></a> | |||||
| <?php endif; ?> | |||||
| <p class="teaser"><?php echo $included_pages[$n]['teaser']; ?></p> | |||||
| <p><a class="btn btn-primary" href="<?php echo BASE_URL.$included_pages[$n]['page']; ?>"><?php echo $included_pages[$n]['link_name']; ?></a></p> | |||||
| <?php endif; ?> | |||||
| </div> | |||||
| </div> | |||||
| </div> | |||||
| <?php endfor; ?> | |||||
| <?php if (isset($included_pages[$n])): ?> | |||||
| <div class="overview"> | |||||
| <h2 class="teaser"><a | |||||
| href="<?php echo BASE_URL . $included_pages[$n]['page']; ?>"><?php echo $included_pages[$n]['teaser_headline']; ?></a> | |||||
| </h2> | |||||
| <div class="media"> | |||||
| <?php if ($included_pages[$n]['teaser_img']): ?> | |||||
| <a class="thumbnail thumbnail-left" | |||||
| href="<?php echo BASE_URL . $included_pages[$n]['page']; ?>"><img | |||||
| src="<?php echo BASE_URL . MEDIA_DIR . $included_pages[$n]['teaser_img']; ?>" | |||||
| alt="<?php echo $included_pages[$n]['teaser_headline']; ?>" | |||||
| width="<?php echo $included_pages[$n]['teaser_img_width']; ?>" | |||||
| height="<?php echo $included_pages[$n]['teaser_img_height']; ?>"/></a> | |||||
| <?php endif; ?> | |||||
| <p class="teaser"><?php echo $included_pages[$n]['teaser']; ?></p> | |||||
| <p><a class="btn btn-primary" | |||||
| href="<?php echo BASE_URL . $included_pages[$n]['page']; ?>"><?php echo $included_pages[$n]['link_name']; ?></a> | |||||
| </p> | |||||
| <?php endif; ?> | |||||
| </div> | |||||
| </div> | |||||
| </div> | |||||
| <?php endfor; ?> | |||||
| </div> | |||||
| <?php endfor; ?> | |||||
| </div> | |||||
| <?php endfor; ?> | |||||
| <?php endif; ?> | <?php endif; ?> | ||||
| @ -1,82 +1,138 @@ | |||||
| <?php if(isset($edit_data)): ?> | |||||
| <h3 id="comments"><?php echo $lang['comment_headline']; ?></h3> | |||||
| <form id="commentform" method="post" action="<?php echo $BASE_URL . PAGE; ?>,<?php echo IMAGE_IDENTIFIER; ?>,<?php echo $photo_data['id']; ?>"> | |||||
| <div> | |||||
| <input type="hidden" name="current_page" value="<?php echo $edit_data['current_page']; ?>" /> | |||||
| <input type="hidden" name="id" value="<?php echo $edit_data['id']; ?>" /> | |||||
| <p><label for="comment_text"><strong><?php echo $lang['comment_edit_text']; ?></strong></label><br /> | |||||
| <textarea id="comment_text" name="comment_text" cols="63" rows="10"><?php echo $edit_data['comment']; ?></textarea></p> | |||||
| <p class="userdata"><label for="name"><?php echo $lang['comment_input_name']; ?></label><br /> | |||||
| <input type="text" id="name" name="name" value="<?php echo $edit_data['name']; ?>" size="30" /></p> | |||||
| <p class="userdata"><label for="email_hp"><?php echo $lang['comment_input_email_hp']; ?></label><br /> | |||||
| <input type="text" id="email_hp" name="email_hp" value="<?php echo $edit_data['email_hp']; ?>" size="30" /></p> | |||||
| <p><input name="edit_save" type="submit" value="<?php echo $lang['comment_input_submit']; ?>" /></p> | |||||
| </div> | |||||
| </form> | |||||
| <?php else: ?> | |||||
| <div id="commentcontainer" style="<?php if($show_comments): ?>display:block;<?php else: ?>display:none;<?php endif; ?>"> | |||||
| <h3 id="comments"><?php echo $lang['comment_headline']; ?></h3> | |||||
| <?php if($comments): ?> | |||||
| <?php foreach($comments as $comment): ?> | |||||
| <div class="comments"> | |||||
| <p class="author">#<?php echo $comment['nr']; ?> - <?php if(isset($comment['hp'])): ?><a href="<?php echo $comment['hp']; ?>"><strong><?php echo $comment['name']; ?></strong></a><?php elseif(isset($comment['email'])): ?><a href="mailto:<?php echo $comment['email']; ?>"><strong><?php echo $comment['name']; ?></strong></a><?php else: ?><strong><?php echo $comment['name']; ?></strong><?php endif; ?>, <?php echo $lang['comment_time'][$comment['id']]; ?>:<?php if($admin): ?> <span class="smallx">(<?php echo $comment['ip']; ?>)</span><?php endif; ?></p> | |||||
| <p class="text"><?php echo $comment['comment']; ?></p> | |||||
| <?php if($admin): ?> | |||||
| <p class="admin"><a href="<?php echo BASE_URL . PAGE; ?>,<?php echo IMAGE_IDENTIFIER; ?>,<?php echo $photo_data['id']; ?>,edit,<?php echo $comment['id']; ?>,<?php echo $current_page; ?>#comments"><img src="<?php echo BASE_URL; ?>templates/images/edit_link.png" width="15" height="10" alt="" /><?php echo $lang['comment_edit_link']; ?></a> <a href="<?php echo BASE_URL . PAGE; ?>,<?php echo IMAGE_IDENTIFIER; ?>,<?php echo $photo_data['id']; ?>,delete,<?php echo $comment['id']; ?>,<?php echo $current_page; ?>#comments" onclick="return confirm_link('<?php echo rawurlencode($lang['comment_delete_confirm']); ?>',this,1)"><img src="<?php echo BASE_URL; ?>templates/images/delete_link.png" width="13" height="9" alt="" /><?php echo $lang['comment_delete_link']; ?></a></p> | |||||
| <?php endif; ?> | |||||
| </div> | |||||
| <?php endforeach ?> | |||||
| <?php if (isset($edit_data)): ?> | |||||
| <h3 id="comments"><?php echo $lang['comment_headline']; ?></h3> | |||||
| <form id="commentform" method="post" | |||||
| action="<?php echo $BASE_URL . PAGE; ?>,<?php echo IMAGE_IDENTIFIER; ?>,<?php echo $photo_data['id']; ?>"> | |||||
| <div> | |||||
| <input type="hidden" name="current_page" value="<?php echo $edit_data['current_page']; ?>"/> | |||||
| <input type="hidden" name="id" value="<?php echo $edit_data['id']; ?>"/> | |||||
| <p><label for="comment_text"><strong><?php echo $lang['comment_edit_text']; ?></strong></label><br/> | |||||
| <textarea id="comment_text" name="comment_text" cols="63" | |||||
| rows="10"><?php echo $edit_data['comment']; ?></textarea></p> | |||||
| <p class="userdata"><label for="name"><?php echo $lang['comment_input_name']; ?></label><br/> | |||||
| <input type="text" id="name" name="name" value="<?php echo $edit_data['name']; ?>" size="30"/></p> | |||||
| <p class="userdata"><label for="email_hp"><?php echo $lang['comment_input_email_hp']; ?></label><br/> | |||||
| <input type="text" id="email_hp" name="email_hp" value="<?php echo $edit_data['email_hp']; ?>" | |||||
| size="30"/></p> | |||||
| <p><input name="edit_save" type="submit" value="<?php echo $lang['comment_input_submit']; ?>"/></p> | |||||
| </div> | |||||
| </form> | |||||
| <?php else: ?> | <?php else: ?> | ||||
| <p><i><?php echo $lang['comment_no_comments']; ?></i></p> | |||||
| <?php endif; ?> | |||||
| <div id="commentcontainer" | |||||
| style="<?php if ($show_comments): ?>display:block;<?php else: ?>display:none;<?php endif; ?>"> | |||||
| <h3 id="comments"><?php echo $lang['comment_headline']; ?></h3> | |||||
| <?php if ($comments): ?> | |||||
| <?php foreach ($comments as $comment): ?> | |||||
| <div class="comments"> | |||||
| <p class="author">#<?php echo $comment['nr']; ?> - <?php if (isset($comment['hp'])): ?> | |||||
| <a href="<?php echo $comment['hp']; ?>"><strong><?php echo $comment['name']; ?></strong> | |||||
| </a><?php elseif (isset($comment['email'])): ?> | |||||
| <a href="mailto:<?php echo $comment['email']; ?>"><strong><?php echo $comment['name']; ?></strong> | |||||
| </a><?php | |||||
| else: ?><strong><?php echo $comment['name']; ?></strong><?php endif; ?> | |||||
| , <?php echo $lang['comment_time'][$comment['id']]; ?>:<?php if ($admin): ?> <span class="smallx"> | |||||
| (<?php echo $comment['ip']; ?>)</span><?php endif; ?></p> | |||||
| <?php if($pagination): ?> | |||||
| <p class="pagination"><?php echo $lang['comments_pagination_info']; ?> [ | |||||
| <?php if($pagination['previous']): ?> <a href="<?php echo BASE_URL . PAGE; ?>,<?php echo IMAGE_IDENTIFIER; ?>,<?php echo $photo_data['id']; ?>,0,1<?php if($pagination['previous']>1): ?>,<?php echo $pagination['previous']; endif; ?>#comments">«</a> <?php endif; ?> | |||||
| <?php foreach($pagination['items'] as $item): ?> | |||||
| <?php if(empty($item)): ?> ..<?php elseif($item==$pagination['current']): ?> <span class="current"><?php echo $item; ?></span><?php else: ?> <a href="<?php echo BASE_URL . PAGE; ?>,<?php echo IMAGE_IDENTIFIER; ?>,<?php echo $photo_data['id']; ?>,0,1<?php if($item>1): ?>,<?php echo $item; endif; ?>#comments"><?php echo $item; ?></a><?php endif; ?> | |||||
| <?php endforeach; ?> | |||||
| <?php if($pagination['next']): ?> <a href="<?php echo BASE_URL . PAGE; ?>,<?php echo IMAGE_IDENTIFIER; ?>,<?php echo $photo_data['id']; ?>,0,1,<?php echo $pagination['next']; ?>#comments">»</a><?php endif; ?> | |||||
| ]</p> | |||||
| <?php endif; ?> | |||||
| <?php if($errors): ?> | |||||
| <p class="caution"><?php echo $lang['error_headline']; ?></p> | |||||
| <ul> | |||||
| <?php foreach($errors as $error): ?> | |||||
| <li><?php if(isset($lang[$error])) echo $lang[$error]; else echo $error; ?></li> | |||||
| <?php endforeach; ?> | |||||
| </ul> | |||||
| <script type="text/javascript">/* <![CDATA[ */ location.hash='errors'; /* ]]> */</script> | |||||
| <?php endif; ?> | |||||
| <?php if(isset($preview) && empty($errors)): ?> | |||||
| <p id="preview" class="comment-preview-hl"><?php echo $lang['comment_preview_hl']; ?></p> | |||||
| <div class="comment-preview"> | |||||
| <p class="author"><?php if(isset($preview['hp'])): ?><a href="<?php echo $preview['hp']; ?>"><strong><?php echo $preview['name']; ?></strong></a><?php elseif(isset($preview['email'])): ?><a href="mailto:<?php echo $preview['email']; ?>"><strong><?php echo $preview['name']; ?></strong></a><?php else: ?><strong><?php echo $preview['name']; ?></strong><?php endif; ?>, <?php echo $lang['comment_time']['preview']; ?>:</p> | |||||
| <p class="text"><?php echo $preview['comment_text']; ?></p> | |||||
| </div> | |||||
| <script type="text/javascript">/* <![CDATA[ */ location.hash='preview'; /* ]]> */</script> | |||||
| <?php endif; ?> | |||||
| <p class="text"><?php echo $comment['comment']; ?></p> | |||||
| <?php if ($admin): ?> | |||||
| <p class="admin"> | |||||
| <a href="<?php echo BASE_URL . PAGE; ?>,<?php echo IMAGE_IDENTIFIER; ?>,<?php echo $photo_data['id']; ?>,edit,<?php echo $comment['id']; ?>,<?php echo $current_page; ?>#comments"><img | |||||
| src="<?php echo BASE_URL; ?>templates/images/edit_link.png" width="15" height="10" | |||||
| alt=""/><?php echo $lang['comment_edit_link']; ?></a> | |||||
| <a href="<?php echo BASE_URL . PAGE; ?>,<?php echo IMAGE_IDENTIFIER; ?>,<?php echo $photo_data['id']; ?>,delete,<?php echo $comment['id']; ?>,<?php echo $current_page; ?>#comments" | |||||
| onclick="return confirm_link('<?php echo rawurlencode($lang['comment_delete_confirm']); ?>',this,1)"> | |||||
| <img src="<?php echo BASE_URL; ?>templates/images/delete_link.png" width="13" height="9" | |||||
| alt=""/><?php echo $lang['comment_delete_link']; ?></a></p> | |||||
| <?php endif; ?> | |||||
| </div> | |||||
| <?php endforeach ?> | |||||
| <?php else: ?> | |||||
| <p><i><?php echo $lang['comment_no_comments']; ?></i></p> | |||||
| <?php endif; ?> | |||||
| <form id="commentform" method="post" action="<?php echo $BASE_URL . PAGE; ?>,<?php echo IMAGE_IDENTIFIER; ?>,<?php echo $photo_data['id']; ?>,0,1#comments"> | |||||
| <div> | |||||
| <?php if($form_session_data): ?><input type="hidden" name="<?php echo $form_session_data['name']; ?>" value="<?php echo $form_session_data['id']; ?>" /><?php endif; ?> | |||||
| <p><label for="comment_text"><strong><?php echo $lang['comment_input_text']; ?></strong></label><br /> | |||||
| <textarea id="comment_text" name="comment_text" cols="63" rows="10"><?php echo $form_values['comment_text']; ?></textarea></p> | |||||
| <p class="userdata"><label for="name"><?php echo $lang['comment_input_name']; ?></label><br /> | |||||
| <input type="text" id="name" name="name" value="<?php echo $form_values['name']; ?>" size="30" maxlength="30" /></p> | |||||
| <p class="userdata"><label for="email_hp"><?php echo $lang['comment_input_email_hp']; ?></label><br /> | |||||
| <input type="text" id="email_hp" name="email_hp" value="<?php echo $form_values['email_hp']; ?>" size="30" maxlength="100" /> <small><?php echo $lang['comment_note_email']; ?></small></p> | |||||
| <p><input name="save" type="submit" value="<?php echo $lang['comment_input_submit']; ?>"<?php if(!$form_session): ?> disabled="disabled"<?php endif; ?> /> <input name="preview" type="submit" value="<?php echo $lang['comment_input_preview']; ?>" /></p> | |||||
| </div> | |||||
| </form> | |||||
| <p id="show_commentform" style="display:none;"><a href="#commentform" onclick="show_comment_form(); return false" class="icon"><img src="<?php echo BASE_URL; ?>templates/images/comment_add.png" alt="" width="16" height="16" /><span><?php echo $lang['comments_add_comment']; ?></span></a></p> | |||||
| <?php if(empty($preview) && empty($errors)): ?> | |||||
| <script type="text/javascript">/* <![CDATA[ */ hide_comment_form(); /* ]]> */</script> | |||||
| <?php endif; ?> | |||||
| <?php endif; ?> | |||||
| <?php if ($pagination): ?> | |||||
| <p class="pagination"><?php echo $lang['comments_pagination_info']; ?> [ | |||||
| <?php if ($pagination['previous']): ?> <a | |||||
| href="<?php echo BASE_URL . PAGE; ?>,<?php echo IMAGE_IDENTIFIER; ?>,<?php echo $photo_data['id']; ?>,0,1<?php if ($pagination['previous'] > 1): ?>,<?php echo $pagination['previous']; endif; ?>#comments">«</a> <?php endif; ?> | |||||
| <?php foreach ($pagination['items'] as $item): ?> | |||||
| <?php if (empty($item)): ?> ..<?php elseif ($item == $pagination['current']): ?> | |||||
| <span class="current"><?php echo $item; ?></span><?php | |||||
| else: ?> <a href="<?php echo BASE_URL . PAGE; ?>,<?php echo IMAGE_IDENTIFIER; ?>,<?php echo $photo_data['id']; ?>,0,1<?php if ($item > 1): ?>,<?php echo $item; endif; ?>#comments"><?php echo $item; ?></a><?php endif; ?> | |||||
| <?php endforeach; ?> | |||||
| <?php if ($pagination['next']): ?> | |||||
| <a href="<?php echo BASE_URL . PAGE; ?>,<?php echo IMAGE_IDENTIFIER; ?>,<?php echo $photo_data['id']; ?>,0,1,<?php echo $pagination['next']; ?>#comments">»</a><?php endif; ?> | |||||
| ]</p> | |||||
| <?php endif; ?> | |||||
| <?php if ($errors): ?> | |||||
| <p class="caution"><?php echo $lang['error_headline']; ?></p> | |||||
| <ul> | |||||
| <?php foreach ($errors as $error): ?> | |||||
| <li><?php if (isset($lang[$error])) echo $lang[$error]; else echo $error; ?></li> | |||||
| <?php endforeach; ?> | |||||
| </ul> | |||||
| <script type="text/javascript">/* <![CDATA[ */ | |||||
| location.hash = 'errors'; | |||||
| /* ]]> */</script> | |||||
| <?php endif; ?> | |||||
| <?php if (isset($preview) && empty($errors)): ?> | |||||
| <p id="preview" class="comment-preview-hl"><?php echo $lang['comment_preview_hl']; ?></p> | |||||
| <div class="comment-preview"> | |||||
| <p class="author"><?php if (isset($preview['hp'])): ?><a href="<?php echo $preview['hp']; ?>"> | |||||
| <strong><?php echo $preview['name']; ?></strong></a><?php elseif (isset($preview['email'])): ?> | |||||
| <a href="mailto:<?php echo $preview['email']; ?>"><strong><?php echo $preview['name']; ?></strong> | |||||
| </a><?php | |||||
| else: ?><strong><?php echo $preview['name']; ?></strong><?php endif; ?> | |||||
| , <?php echo $lang['comment_time']['preview']; ?>:</p> | |||||
| <p class="text"><?php echo $preview['comment_text']; ?></p> | |||||
| </div> | |||||
| <script type="text/javascript">/* <![CDATA[ */ | |||||
| location.hash = 'preview'; | |||||
| /* ]]> */</script> | |||||
| <?php endif; ?> | |||||
| <form id="commentform" method="post" | |||||
| action="<?php echo $BASE_URL . PAGE; ?>,<?php echo IMAGE_IDENTIFIER; ?>,<?php echo $photo_data['id']; ?>,0,1#comments"> | |||||
| <div> | |||||
| <?php if ($form_session_data): ?><input type="hidden" name="<?php echo $form_session_data['name']; ?>" | |||||
| value="<?php echo $form_session_data['id']; ?>" /><?php endif; ?> | |||||
| <p><label for="comment_text"><strong><?php echo $lang['comment_input_text']; ?></strong></label><br/> | |||||
| <textarea id="comment_text" name="comment_text" cols="63" | |||||
| rows="10"><?php echo $form_values['comment_text']; ?></textarea></p> | |||||
| <p class="userdata"><label for="name"><?php echo $lang['comment_input_name']; ?></label><br/> | |||||
| <input type="text" id="name" name="name" value="<?php echo $form_values['name']; ?>" size="30" | |||||
| maxlength="30"/></p> | |||||
| <p class="userdata"><label for="email_hp"><?php echo $lang['comment_input_email_hp']; ?></label><br/> | |||||
| <input type="text" id="email_hp" name="email_hp" value="<?php echo $form_values['email_hp']; ?>" | |||||
| size="30" maxlength="100"/> | |||||
| <small><?php echo $lang['comment_note_email']; ?></small> | |||||
| </p> | |||||
| <p><input name="save" type="submit" | |||||
| value="<?php echo $lang['comment_input_submit']; ?>"<?php if (!$form_session): ?> disabled="disabled"<?php endif; ?> /> | |||||
| <input name="preview" type="submit" value="<?php echo $lang['comment_input_preview']; ?>"/></p> | |||||
| </div> | |||||
| </form> | |||||
| <p id="show_commentform" style="display:none;"><a href="#commentform" onclick="show_comment_form(); return false" | |||||
| class="icon"><img | |||||
| src="<?php echo BASE_URL; ?>templates/images/comment_add.png" alt="" width="16" | |||||
| height="16"/><span><?php echo $lang['comments_add_comment']; ?></span></a></p> | |||||
| <?php if (empty($preview) && empty($errors)): ?> | |||||
| <script type="text/javascript">/* <![CDATA[ */ | |||||
| hide_comment_form(); | |||||
| /* ]]> */</script> | |||||
| <?php endif; ?> | |||||
| <?php endif; ?> | |||||
| </div> | </div> | ||||
| <p id="commentlink" style="<?php if($show_comments): ?>display:none;<?php else: ?>display:block;<?php endif; ?>"><a href="<?php echo BASE_URL . PAGE; ?>,<?php echo IMAGE_IDENTIFIER; ?>,<?php echo $photo_data['id']; ?>,0,1#comments" title="<?php echo $lang['photo_comment_link_title']; ?>" class="commentlink" onclick="show_comments(); return false"><?php echo $lang['number_of_comments']; ?></a></p> | |||||
| <p id="commentlink" style="<?php if ($show_comments): ?>display:none;<?php else: ?>display:block;<?php endif; ?>"> | |||||
| <a href="<?php echo BASE_URL . PAGE; ?>,<?php echo IMAGE_IDENTIFIER; ?>,<?php echo $photo_data['id']; ?>,0,1#comments" | |||||
| title="<?php echo $lang['photo_comment_link_title']; ?>" class="commentlink" | |||||
| onclick="show_comments(); return false"><?php echo $lang['number_of_comments']; ?></a></p> | |||||
| @ -1,34 +1,43 @@ | |||||
| <form action="<?php echo BASE_URL.PAGE; ?>" method="post"> | |||||
| <form action="<?php echo BASE_URL . PAGE; ?>" method="post"> | |||||
| <div class="input-group"> | |||||
| <input class="form-control" type="text" name="q"> | |||||
| <span class="input-group-btn"> | |||||
| <button class="btn btn-primary" type="submit"><span class="glyphicon glyphicon-search"></span></button> | |||||
| </span> | |||||
| </div> | |||||
| <div class="input-group"> | |||||
| <input class="form-control" type="text" name="q"> | |||||
| <span class="input-group-btn"> | |||||
| <button class="btn btn-primary" type="submit"><span class="glyphicon glyphicon-search"></span></button> | |||||
| </span> | |||||
| </div> | |||||
| </form> | </form> | ||||
| <?php if(isset($results)): ?> | |||||
| <p style="margin-top:20px;"><strong><?php echo $lang['search_number_of_results']; ?></strong> | |||||
| <?php if (isset($results)): ?> | |||||
| <p style="margin-top:20px;"><strong><?php echo $lang['search_number_of_results']; ?></strong> | |||||
| <ul id="search"> | |||||
| <?php foreach($results as $result): ?> | |||||
| <li><a href="<?php echo BASE_URL.$result['page']; ?>"><?php echo $result['title']; ?></a><?php if($result['type']==1): ?> <span class="smallx">- <?php echo $lang['search_photo']; ?></span><?php endif; ?><?php if($result['description']): ?> <span class="smallx">- <?php echo $result['description']; ?></span><?php endif; ?></li> | |||||
| <?php endforeach; ?> | |||||
| </ul> | |||||
| <ul id="search"> | |||||
| <?php foreach ($results as $result): ?> | |||||
| <li> | |||||
| <a href="<?php echo BASE_URL . $result['page']; ?>"><?php echo $result['title']; ?></a><?php if ($result['type'] == 1): ?> | |||||
| <span class="smallx"> | |||||
| - <?php echo $lang['search_photo']; ?></span><?php endif; ?><?php if ($result['description']): ?> | |||||
| <span class="smallx">- <?php echo $result['description']; ?></span><?php endif; ?></li> | |||||
| <?php endforeach; ?> | |||||
| </ul> | |||||
| <?php if($pagination): ?> | |||||
| <p class="pagination"><?php echo $lang['pagination']; ?> [ | |||||
| <?php if($pagination['previous']): ?> <a href="<?php echo BASE_URL . PAGE; ?>,,<?php echo $q_encoded; if($pagination['previous']>1): ?>,<?php echo $pagination['previous']; endif; ?>">«</a> <?php endif; ?> | |||||
| <?php foreach($pagination['items'] as $item): ?> | |||||
| <?php if(empty($item)): ?> ..<?php elseif($item==$pagination['current']): ?> <span class="current"><?php echo $item; ?></span><?php else: ?> <a href="<?php echo BASE_URL . PAGE; ?>,,<?php echo $q_encoded; if($item>1): ?>,<?php echo $item; endif; ?>"><?php echo $item; ?></a><?php endif; ?> | |||||
| <?php endforeach; ?> | |||||
| <?php if($pagination['next']): ?> <a href="<?php echo BASE_URL . PAGE; ?>,,<?php echo $q_encoded; ?>,<?php echo $pagination['next']; ?>">»</a><?php endif; ?> | |||||
| ]</p> | |||||
| <?php endif; ?> | |||||
| <?php if ($pagination): ?> | |||||
| <p class="pagination"><?php echo $lang['pagination']; ?> [ | |||||
| <?php if ($pagination['previous']): ?> <a href="<?php echo BASE_URL . PAGE; ?>,,<?php echo $q_encoded; | |||||
| if ($pagination['previous'] > 1): ?>,<?php echo $pagination['previous']; endif; ?>">«</a> <?php endif; ?> | |||||
| <?php foreach ($pagination['items'] as $item): ?> | |||||
| <?php if (empty($item)): ?> ..<?php elseif ($item == $pagination['current']): ?> | |||||
| <span class="current"><?php echo $item; ?></span><?php | |||||
| else: ?> <a href="<?php echo BASE_URL . PAGE; ?>,,<?php echo $q_encoded; | |||||
| if ($item > 1): ?>,<?php echo $item; endif; ?>"><?php echo $item; ?></a><?php endif; ?> | |||||
| <?php endforeach; ?> | |||||
| <?php if ($pagination['next']): ?> | |||||
| <a href="<?php echo BASE_URL . PAGE; ?>,,<?php echo $q_encoded; ?>,<?php echo $pagination['next']; ?>">»</a><?php endif; ?> | |||||
| ]</p> | |||||
| <?php endif; ?> | |||||
| <?php endif; ?> | <?php endif; ?> | ||||
| <?php if(isset($q) && empty($results)): ?> | |||||
| <p><em><?php echo $lang['search_no_results']; ?></em></p> | |||||
| <?php if (isset($q) && empty($results)): ?> | |||||
| <p><em><?php echo $lang['search_no_results']; ?></em></p> | |||||
| <?php endif; ?> | <?php endif; ?> | ||||
| @ -1,135 +1,180 @@ | |||||
| <?php if(isset($edit_news)): ?> | |||||
| <?php if(isset($errors)): ?> | |||||
| <div class="alert alert-danger"> | |||||
| <button type="button" class="close" data-dismiss="alert">×</button> | |||||
| <h3><span class="glyphicon glyphicon-warning-sign"></span> <strong><?php echo $lang['error_headline']; ?></strong></h3> | |||||
| <ul class="errors"> | |||||
| <?php foreach($errors as $error): ?> | |||||
| <li><?php if(isset($lang[$error])) echo $lang[$error]; else echo $error; ?></li> | |||||
| <?php endforeach; ?> | |||||
| </ul> | |||||
| </div> | |||||
| <?php endif; ?> | |||||
| <form class="form-horizontal" action="<?php echo BASE_URL . PAGE; ?>" method="post"> | |||||
| <div> | |||||
| <input type="hidden" name="mode" value="news" /> | |||||
| <input type="hidden" name="edit_news_submit" value="true" /> | |||||
| <?php if(isset($edit_news['id'])): ?> | |||||
| <input type="hidden" name="id" value="<?php echo $edit_news['id']; ?>" /> | |||||
| <?php endif; ?> | |||||
| <div class="form-group"> | |||||
| <label for="title" class="col-md-2 control-label"><?php echo $lang['simple_news_edit_title']; ?></label> | |||||
| <div class="col-md-10"> | |||||
| <input id="title" class="form-control" type="text" name="title" value="<?php if(isset($edit_news['title'])) echo $edit_news['title']; ?>"> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="teaser" class="col-md-2 control-label"><?php echo $lang['simple_news_edit_teaser']; ?></label> | |||||
| <div class="col-md-10"> | |||||
| <textarea id="teaser" class="form-control" name="teaser" rows="5"><?php if(isset($edit_news['teaser'])) echo $edit_news['teaser']; ?></textarea> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="text" class="col-md-2 control-label"><?php echo $lang['simple_news_edit_text']; ?></label> | |||||
| <div class="col-md-10"> | |||||
| <textarea id="text" class="form-control" name="text" rows="10"><?php if(isset($edit_news['text'])) echo $edit_news['text']; ?></textarea> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="linkname" class="col-md-2 control-label"><?php echo $lang['simple_news_edit_linkname']; ?></label> | |||||
| <div class="col-md-10"> | |||||
| <input id="linkname" class="form-control" type="text" name="linkname" value="<?php if(isset($edit_news['linkname'])) echo $edit_news['linkname']; ?>"> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="newstime" class="col-md-2 control-label"><?php echo $lang['simple_news_edit_time']; ?></label> | |||||
| <div class="col-md-10"> | |||||
| <input id="newstime" class="form-control" type="text" name="newstime" value="<?php if(isset($edit_news['time'])) echo $edit_news['time']; ?>" placeholder="<?php echo $lang['simple_news_edit_time_format']; ?>"> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <div class="col-md-offset-2 col-md-10"> | |||||
| <button class="btn btn-primary" type="submit"><?php echo $lang['submit_button_ok']; ?></button> | |||||
| </div> | |||||
| </div> | |||||
| </div> | |||||
| </form> | |||||
| <?php elseif(isset($delete_news)): ?> | |||||
| <p><strong><?php echo $delete_news['title']; ?></strong></p> | |||||
| <form action="<?php echo BASE_URL . PAGE; ?>" method="post"> | |||||
| <div> | |||||
| <input type="hidden" name="delete" value="<?php echo $delete_news['id']; ?>" /> | |||||
| <p><input class="btn btn-danger btn-lg" type="submit" name="confirmed" value="<?php echo $lang['delete_news_confirm_submit']; ?>" /></p> | |||||
| </div> | |||||
| </form> | |||||
| <?php elseif(isset($news_item)): ?> | |||||
| <?php echo $news_item['text']; ?> | |||||
| <?php if($authorized_to_edit): ?> | |||||
| <p> | |||||
| <a class="btn btn-primary btn-xs" href="<?php echo BASE_URL . PAGE; ?>,<?php echo $news_item['id']; ?>,edit" title="<?php echo $lang['edit']; ?>"><span class="glyphicon glyphicon-pencil"></span></a> | |||||
| <a class="btn btn-danger btn-xs" href="<?php echo BASE_URL . PAGE; ?>,<?php echo $news_item['id']; ?>,delete" title="<?php echo $lang['delete']; ?>" data-delete-confirm="<?php echo rawurlencode($lang['simple_news_delete_confirm']); ?>"><span class="glyphicon glyphicon-remove"></span></a> | |||||
| </p> | |||||
| <?php endif; ?> | |||||
| <?php elseif(isset($news)): ?> | |||||
| <?php if($authorized_to_edit): ?> | |||||
| <p><a class="btn btn-success" href="<?php echo BASE_URL . PAGE; ?>,add_item"><span class="glyphicon glyphicon-plus"></span> <?php echo $lang['simple_news_add_item']; ?></a></p> | |||||
| <?php endif; ?> | |||||
| <?php foreach($news as $news_item): ?> | |||||
| <div class="panel panel-default simple-news"> | |||||
| <div class="panel-heading"><?php echo $lang['simple_news_time'][$news_item['id']]; ?> | |||||
| <?php if($authorized_to_edit): ?> | |||||
| <span class="pull-right"> | |||||
| <a class="btn btn-primary btn-xs" href="<?php echo BASE_URL . PAGE; ?>,<?php echo $news_item['id']; ?>,edit" title="<?php echo $lang['edit']; ?>"><span class="glyphicon glyphicon-pencil"></span></a> | |||||
| <a class="btn btn-danger btn-xs" href="<?php echo BASE_URL . PAGE; ?>,<?php echo $news_item['id']; ?>,delete" title="<?php echo $lang['delete']; ?>" data-delete-confirm="<?php echo rawurlencode($lang['simple_news_delete_confirm']); ?>"><span class="glyphicon glyphicon-remove"></span></a> | |||||
| </span> | |||||
| <?php endif; ?> | |||||
| </div> | |||||
| <div class="panel-body"> | |||||
| <h2><a href="<?php echo BASE_URL . PAGE; ?>,<?php echo $news_item['id']; ?>"><?php echo $news_item['title']; ?></a></h2> | |||||
| <?php if(empty($news_item['teaser'])): ?> | |||||
| <?php echo $news_item['text']; ?> | |||||
| <?php else: ?> | |||||
| <p><?php echo $news_item['teaser']; ?></p> | |||||
| <p><a class="btn btn-primary" href="<?php echo BASE_URL . PAGE; ?>,<?php echo $news_item['id']; ?>"><?php echo $news_item['linkname']; ?></a></p> | |||||
| <?php endif; ?> | |||||
| </div> | |||||
| </div> | |||||
| <?php endforeach; ?> | |||||
| <?php if($pagination): ?> | |||||
| <ul class="pagination"> | |||||
| <?php if($pagination['previous']): ?><li><a href="<?php echo BASE_URL . PAGE; if($pagination['previous']>1): ?>,,<?php echo $pagination['previous']; endif; ?>"><span class="glyphicon glyphicon-chevron-left"></span></a></li><?php endif; ?> | |||||
| <?php foreach($pagination['items'] as $item): ?> | |||||
| <?php if(empty($item)): ?><li><span>…</span></li><?php elseif($item==$pagination['current']): ?><li class="active"><span><?php echo $item; ?></span></li><?php else: ?><li><a href="<?php echo BASE_URL . PAGE; if($item>1): ?>,,<?php echo $item; endif; ?>"><?php echo $item; ?></a></li><?php endif; ?> | |||||
| <?php endforeach; ?> | |||||
| <?php if($pagination['next']): ?><li><a href="<?php echo BASE_URL . PAGE; ?>,,<?php echo $pagination['next']; ?>"><span class="glyphicon glyphicon-chevron-right"></span></a></li><?php endif; ?> | |||||
| </ul> | |||||
| <?php endif; ?> | |||||
| <?php else: ?> | |||||
| <div class="alert alert-warning"><?php echo $lang['no_news']; ?></div> | |||||
| <?php if($authorized_to_edit): ?> | |||||
| <p><a class="btn btn-success" href="<?php echo BASE_URL . PAGE; ?>,add_item"><span class="glyphicon glyphicon-plus"></span> <?php echo $lang['simple_news_add_item']; ?></a></p> | |||||
| <?php endif; ?> | |||||
| <?php if (isset($edit_news)): ?> | |||||
| <?php if (isset($errors)): ?> | |||||
| <div class="alert alert-danger"> | |||||
| <button type="button" class="close" data-dismiss="alert">×</button> | |||||
| <h3><span class="glyphicon glyphicon-warning-sign"></span> | |||||
| <strong><?php echo $lang['error_headline']; ?></strong></h3> | |||||
| <ul class="errors"> | |||||
| <?php foreach ($errors as $error): ?> | |||||
| <li><?php if (isset($lang[$error])) echo $lang[$error]; else echo $error; ?></li> | |||||
| <?php endforeach; ?> | |||||
| </ul> | |||||
| </div> | |||||
| <?php endif; ?> | |||||
| <form class="form-horizontal" action="<?php echo BASE_URL . PAGE; ?>" method="post"> | |||||
| <div> | |||||
| <input type="hidden" name="mode" value="news"/> | |||||
| <input type="hidden" name="edit_news_submit" value="true"/> | |||||
| <?php if (isset($edit_news['id'])): ?> | |||||
| <input type="hidden" name="id" value="<?php echo $edit_news['id']; ?>"/> | |||||
| <?php endif; ?> | |||||
| <div class="form-group"> | |||||
| <label for="title" class="col-md-2 control-label"><?php echo $lang['simple_news_edit_title']; ?></label> | |||||
| <div class="col-md-10"> | |||||
| <input id="title" class="form-control" type="text" name="title" | |||||
| value="<?php if (isset($edit_news['title'])) echo $edit_news['title']; ?>"> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="teaser" | |||||
| class="col-md-2 control-label"><?php echo $lang['simple_news_edit_teaser']; ?></label> | |||||
| <div class="col-md-10"> | |||||
| <textarea id="teaser" class="form-control" name="teaser" | |||||
| rows="5"><?php if (isset($edit_news['teaser'])) echo $edit_news['teaser']; ?></textarea> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="text" class="col-md-2 control-label"><?php echo $lang['simple_news_edit_text']; ?></label> | |||||
| <div class="col-md-10"> | |||||
| <textarea id="text" class="form-control" name="text" | |||||
| rows="10"><?php if (isset($edit_news['text'])) echo $edit_news['text']; ?></textarea> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="linkname" | |||||
| class="col-md-2 control-label"><?php echo $lang['simple_news_edit_linkname']; ?></label> | |||||
| <div class="col-md-10"> | |||||
| <input id="linkname" class="form-control" type="text" name="linkname" | |||||
| value="<?php if (isset($edit_news['linkname'])) echo $edit_news['linkname']; ?>"> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <label for="newstime" | |||||
| class="col-md-2 control-label"><?php echo $lang['simple_news_edit_time']; ?></label> | |||||
| <div class="col-md-10"> | |||||
| <input id="newstime" class="form-control" type="text" name="newstime" | |||||
| value="<?php if (isset($edit_news['time'])) echo $edit_news['time']; ?>" | |||||
| placeholder="<?php echo $lang['simple_news_edit_time_format']; ?>"> | |||||
| </div> | |||||
| </div> | |||||
| <div class="form-group"> | |||||
| <div class="col-md-offset-2 col-md-10"> | |||||
| <button class="btn btn-primary" type="submit"><?php echo $lang['submit_button_ok']; ?></button> | |||||
| </div> | |||||
| </div> | |||||
| </div> | |||||
| </form> | |||||
| <?php elseif (isset($delete_news)): ?> | |||||
| <p><strong><?php echo $delete_news['title']; ?></strong></p> | |||||
| <form action="<?php echo BASE_URL . PAGE; ?>" method="post"> | |||||
| <div> | |||||
| <input type="hidden" name="delete" value="<?php echo $delete_news['id']; ?>"/> | |||||
| <p><input class="btn btn-danger btn-lg" type="submit" name="confirmed" | |||||
| value="<?php echo $lang['delete_news_confirm_submit']; ?>"/></p> | |||||
| </div> | |||||
| </form> | |||||
| <?php | |||||
| elseif (isset($news_item)): ?> | |||||
| <?php echo $news_item['text']; ?> | |||||
| <?php if ($authorized_to_edit): ?> | |||||
| <p> | |||||
| <a class="btn btn-primary btn-xs" href="<?php echo BASE_URL . PAGE; ?>,<?php echo $news_item['id']; ?>,edit" | |||||
| title="<?php echo $lang['edit']; ?>"><span class="glyphicon glyphicon-pencil"></span></a> | |||||
| <a class="btn btn-danger btn-xs" | |||||
| href="<?php echo BASE_URL . PAGE; ?>,<?php echo $news_item['id']; ?>,delete" | |||||
| title="<?php echo $lang['delete']; ?>" | |||||
| data-delete-confirm="<?php echo rawurlencode($lang['simple_news_delete_confirm']); ?>"> | |||||
| <span class="glyphicon glyphicon-remove"></span></a> | |||||
| </p> | |||||
| <?php endif; ?> | |||||
| <?php | |||||
| elseif (isset($news)): ?> | |||||
| <?php if ($authorized_to_edit): ?> | |||||
| <p><a class="btn btn-success" href="<?php echo BASE_URL . PAGE; ?>,add_item"><span | |||||
| class="glyphicon glyphicon-plus"></span> <?php echo $lang['simple_news_add_item']; ?></a></p> | |||||
| <?php endif; ?> | |||||
| <?php foreach ($news as $news_item): ?> | |||||
| <div class="panel panel-default simple-news"> | |||||
| <div class="panel-heading"><?php echo $lang['simple_news_time'][$news_item['id']]; ?> | |||||
| <?php if ($authorized_to_edit): ?> | |||||
| <span class="pull-right"> | |||||
| <a class="btn btn-primary btn-xs" href="<?php echo BASE_URL . PAGE; ?>,<?php echo $news_item['id']; ?>,edit" | |||||
| title="<?php echo $lang['edit']; ?>"><span class="glyphicon glyphicon-pencil"></span></a> | |||||
| <a class="btn btn-danger btn-xs" href="<?php echo BASE_URL . PAGE; ?>,<?php echo $news_item['id']; ?>,delete" | |||||
| title="<?php echo $lang['delete']; ?>" | |||||
| data-delete-confirm="<?php echo rawurlencode($lang['simple_news_delete_confirm']); ?>"><span | |||||
| class="glyphicon glyphicon-remove"></span></a> | |||||
| </span> | |||||
| <?php endif; ?> | |||||
| </div> | |||||
| <div class="panel-body"> | |||||
| <h2> | |||||
| <a href="<?php echo BASE_URL . PAGE; ?>,<?php echo $news_item['id']; ?>"><?php echo $news_item['title']; ?></a> | |||||
| </h2> | |||||
| <?php if (empty($news_item['teaser'])): ?> | |||||
| <?php echo $news_item['text']; ?> | |||||
| <?php else: ?> | |||||
| <p><?php echo $news_item['teaser']; ?></p> | |||||
| <p><a class="btn btn-primary" | |||||
| href="<?php echo BASE_URL . PAGE; ?>,<?php echo $news_item['id']; ?>"><?php echo $news_item['linkname']; ?></a> | |||||
| </p> | |||||
| <?php endif; ?> | |||||
| </div> | |||||
| </div> | |||||
| <?php endforeach; ?> | |||||
| <?php if ($pagination): ?> | |||||
| <ul class="pagination"> | |||||
| <?php if ($pagination['previous']): ?> | |||||
| <li><a href="<?php echo BASE_URL . PAGE; | |||||
| if ($pagination['previous'] > 1): ?>,,<?php echo $pagination['previous']; endif; ?>"> | |||||
| <span class="glyphicon glyphicon-chevron-left"></span></a></li><?php endif; ?> | |||||
| <?php foreach ($pagination['items'] as $item): ?> | |||||
| <?php if (empty($item)): ?> | |||||
| <li><span>…</span></li><?php elseif ($item == $pagination['current']): ?> | |||||
| <li class="active"><span><?php echo $item; ?></span></li><?php | |||||
| else: ?> | |||||
| <li><a href="<?php echo BASE_URL . PAGE; | |||||
| if ($item > 1): ?>,,<?php echo $item; endif; ?>"><?php echo $item; ?></a></li><?php endif; ?> | |||||
| <?php endforeach; ?> | |||||
| <?php if ($pagination['next']): ?> | |||||
| <li><a href="<?php echo BASE_URL . PAGE; ?>,,<?php echo $pagination['next']; ?>"> | |||||
| <span class="glyphicon glyphicon-chevron-right"></span></a></li><?php endif; ?> | |||||
| </ul> | |||||
| <?php endif; ?> | |||||
| <?php | |||||
| else: ?> | |||||
| <div class="alert alert-warning"><?php echo $lang['no_news']; ?></div> | |||||
| <?php if ($authorized_to_edit): ?> | |||||
| <p><a class="btn btn-success" href="<?php echo BASE_URL . PAGE; ?>,add_item"> | |||||
| <span class="glyphicon glyphicon-plus"></span> <?php echo $lang['simple_news_add_item']; ?></a></p> | |||||
| <?php endif; ?> | |||||
| <?php endif; ?> | <?php endif; ?> | ||||
| @ -1,9 +1,19 @@ | |||||
| <?php if(isset($thumbnail)): ?> | |||||
| <?php if($settings['lightbox_enabled']): ?> | |||||
| <a <?php if(isset($thumbnail['class'])): ?> class="<?php echo $thumbnail['class']; ?>"<?php endif; ?> href="<?php echo BASE_URL.MEDIA_DIR.$thumbnail['photo']; ?>" data-lightbox><img src="<?php echo BASE_URL.MEDIA_DIR.$thumbnail['image']; ?>" title="<?php echo $thumbnail['title']; ?>" alt="<?php echo $thumbnail['title']; ?>" data-subtitle="<?php echo $thumbnail['subtitle']; ?>" data-description="<?php echo $thumbnail['description']; ?>" width="<?php echo $thumbnail['width']; ?>" height="<?php echo $thumbnail['height']; ?>" /></a> | |||||
| <?php if (isset($thumbnail)): ?> | |||||
| <?php if ($settings['lightbox_enabled']): ?> | |||||
| <a <?php if (isset($thumbnail['class'])): ?> class="<?php echo $thumbnail['class']; ?>"<?php endif; ?> | |||||
| href="<?php echo BASE_URL . MEDIA_DIR . $thumbnail['photo']; ?>" data-lightbox> | |||||
| <img src="<?php echo BASE_URL . MEDIA_DIR . $thumbnail['image']; ?>" | |||||
| title="<?php echo $thumbnail['title']; ?>" alt="<?php echo $thumbnail['title']; ?>" | |||||
| data-subtitle="<?php echo $thumbnail['subtitle']; ?>" | |||||
| data-description="<?php echo $thumbnail['description']; ?>" width="<?php echo $thumbnail['width']; ?>" | |||||
| height="<?php echo $thumbnail['height']; ?>"/></a> | |||||
| <?php else: ?> | |||||
| <a<?php if (isset($thumbnail['class'])): ?> class="<?php echo $thumbnail['class']; ?>"<?php endif; ?> | |||||
| href="<?php echo BASE_URL . PAGE; ?>,<?php echo IMAGE_IDENTIFIER; ?>,<?php echo $thumbnail['id']; ?>"> | |||||
| <img src="<?php echo BASE_URL . MEDIA_DIR . $thumbnail['image']; ?>" | |||||
| title="<?php echo $thumbnail['title']; ?>" alt="<?php echo $thumbnail['title']; ?>" | |||||
| width="<?php echo $thumbnail['width']; ?>" height="<?php echo $thumbnail['height']; ?>"/></a> | |||||
| <?php endif; ?> | |||||
| <?php else: ?> | <?php else: ?> | ||||
| <a<?php if(isset($thumbnail['class'])): ?> class="<?php echo $thumbnail['class']; ?>"<?php endif; ?> href="<?php echo BASE_URL.PAGE; ?>,<?php echo IMAGE_IDENTIFIER; ?>,<?php echo $thumbnail['id']; ?>"><img src="<?php echo BASE_URL.MEDIA_DIR.$thumbnail['image']; ?>" title="<?php echo $thumbnail['title']; ?>" alt="<?php echo $thumbnail['title']; ?>" width="<?php echo $thumbnail['width']; ?>" height="<?php echo $thumbnail['height']; ?>" /></a> | |||||
| <?php endif; ?> | |||||
| <?php else: ?> | |||||
| <span class="missing">[ missing image ]</span> | |||||
| <span class="missing">[ missing image ]</span> | |||||
| <?php endif; ?> | <?php endif; ?> | ||||