Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
561 changes: 561 additions & 0 deletions admin/control_panel.php

Large diffs are not rendered by default.

40 changes: 40 additions & 0 deletions admin/create_subcategory.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?php
require('includes/subcategory_init.php');

$title = 'Add Subcategory &ndash; ' . $config['site_name'];
$css_paths = array('admin/css/subcategory.css');

$theme_css = array('side_sections_right.css', 'button.css');

include($config['includes_path'] . '/header.php');
?>
<div id="content">
<div id="left">
<?php
include($config['includes_path'] . '/category_hierarchy.php');
get_category_hierarchy(CURRENT_CATEGORY_ID, CURRENT_CATEGORY_NAME);
?>
<h3>Create Subcategory</h3>
<?php
$form_action = $config['http_host'] . '/admin/form/subcategory.php?a=add&cat_id=' . CURRENT_CATEGORY_ID;
$submit_button = 'Create Subcategory';

$subcat_name = '';
$subcat_description = '';
if ($error->field_value_exists('subcat', 'name'))
{
$subcat_name = $error->get_field_value('subcat', 'name');
}

if ($error->field_value_exists('subcat', 'description'))
{
$subcat_description = $error->get_field_value('subcat', 'description');
}

include('includes/subcategory_form.php');
?>
</div>
<?php include($config['includes_path'] . '/right-sections.php'); ?>
<div class="clearfix"></div>
</div>
<?php include($config['includes_path'] . '/footer.php'); ?>
27 changes: 27 additions & 0 deletions admin/css/control_panel.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#left #inner {
margin-top: 10px;
}

#left #inner #side_nav,
#left #inner #main_content {
float: left;
}

#left #inner #main_content {
width: 570px;
}

#left #inner form .textfield,
#left #inner form .file_field {
margin-top: 3px;
}

#left #inner form > div.note {
font-size: 12px;
line-height: 18px;
}

#left #inner form .checkbox {
position: relative;
top: 2px;
}
53 changes: 53 additions & 0 deletions admin/css/control_panel_categories.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#table_wrapper {
width: 100%;
}

#category_table .col {
float: left;
}

#category_table .col1 {
width: 150px;
padding: 0 6px;
}

#category_table .col2 {
width: 340px;
text-overflow: ellipsis;
}

#category_table #theader,
#category_table .row {
padding: 6px 0;
line-height: 150%;
cursor: default;
}

#category_table #theader {
font-weight: bold;
}

#category_table #body {
height: 180px;
overflow-y: auto;
font-size: 12px;
}

#category_table .row {
position: relative;
}

#category_table .row .remove {
color: #e20;
font-size: 11px;
position: absolute;
right: 6px;
}

#category_table .row .remove:hover {
text-decoration: underline;
}

#cp_form #finish_btn {
float: right;
}
11 changes: 11 additions & 0 deletions admin/css/control_panel_form.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#cp_form > div {
margin-bottom: 10px;
}

#cp_form > div .textfield {
width: 100%;
}

#cp_form > div#error_div {
margin-bottom: 0;
}
42 changes: 42 additions & 0 deletions admin/css/control_panel_mod.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#user_info img,
#user_info #beside_img {
float: left;
}

#user_info img {
width: 70px;
height: 70px;
}

#user_info #beside_img {
margin-left: 7px;
}

#user_info #beside_img > div {
margin-top: 5px;
}

#user_info #beside_img b {
font-size: 12px;
}

#user_info #beside_img #username {
font-weight: bold;
}

#categories ul {
margin-top: 1px;
}

#categories ul li {
margin-top: 2px;;
}

#categories ul li input {
cursor: pointer;
}

#categories ul li label {
position: relative;
top: -1px;
}
74 changes: 74 additions & 0 deletions admin/css/control_panel_themes.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
#theme_error {
margin-bottom: 10px;
}

#themes #grid {
margin-top: 7px;
}

#current_theme #current_theme_span {
font-size: 12px;
}

#current_theme img {
width: 300px;
height: 195px;
margin-top: 5px;
}

#themes {
margin-top: 30px;
}

#themes #grid .theme {
width: 275px;
float: left;
margin-right: 20px;
margin-bottom: 30px;
}

#themes #grid .theme:nth-child(even) {
margin-right: 0;
}

#themes #grid .theme .screenshot,
#themes #grid .theme .no_screenshot,
#themes #grid .theme .theme_right {
float: left;
}

#themes #grid .theme .screenshot img,
#themes #grid .theme .no_screenshot {
width: 150px;
height: 115px;
}

#themes #grid .theme .meta {
margin-top: 7px;
}

#themes #grid .theme .no_screenshot {
text-align: center;
line-height: 115px;
border: 1px solid #dfdfdf;
font-size: 11px;
}

#themes #grid .theme .screenshot .view_full {
font-size: 11px;
margin-top: 3px;
}

#themes #grid .theme .theme_right {
margin-left: 7px;
}

#themes #grid .theme .theme_right .options li {
margin-bottom: 7px;
font-size: 12px;
}

#themes #grid .theme .name {
font-weight: bold;
font-size: 13px;
}
84 changes: 84 additions & 0 deletions admin/css/control_panel_users.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
#toolbar {
height: 25px;
line-height: 25px;
}

#user_search_form {
float: left;
position: relative;
padding: 0;
height: 25px;
}

#user_search_form .textfield {
position: relative;
top: -3px;
height: 25px;
padding-right: 25px;
margin: 0;
}

#user_search_form .search_btn {
position: absolute;
right: 0;
top: 0;
width: 25px;
height: 25px;
background: url('../../images/button-search.png') center center no-repeat;
border: none;
outline: none;
cursor: pointer;
}

#sort {
float: right;
font-size: 12px;
}

#sort .active {
font-weight: bold;
color: #454545;
}

#error {
margin-top: 10px;
}

#users .user {
margin-top: 10px;
border: 1px solid #efefef;
padding: 5px;
}

#users .user img,
#users .user div.beside_img {
float: left;
}

#users .user img {
width: 48px;
height: 48px;
}

#users .user div.beside_img {
margin-left: 7px;
}

#users .user div.beside_img span,
#users .user div.beside_img a.username {
font-weight: bold;
}

#users .user div.beside_img span {
font-size: 12px;
}

#users .user div.beside_img > div {
margin-top: 3px;
}

#users .user .options {
margin-top: 7px;
font-size: 12px;
color: #ccc;
}
28 changes: 28 additions & 0 deletions admin/css/setup-2.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#themes {
margin-top: 5px;
}

#themes label {
position: relative;
top: -2px;
left: 5px;
color: #575757;
}

#themes ul,
#themes img {
float: left;
}

#themes ul {
width: 200px;
}

#themes ul li {
margin-bottom: 4px;
}

#themes img {
width: 340px;
height: 225px;
}
Loading