- Cambios
git-svn-id: https://192.168.0.254/svn/Proyectos.OriginalHouse_Web/trunk@15 54e8636e-a86c-764f-903d-b964358a1ae2
@ -1,123 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
Plugin Name: CataBlog
|
||||
Plugin URI: http://catablog.illproductions.com/
|
||||
Description: CataBlog is a comprehensive and effortless tool that helps you create, organize and share catalogs, stores, galleries and portfolios on your blog.
|
||||
Version: 1.2.9.7
|
||||
Author: Zachary Segal
|
||||
Author URI: http://catablog.illproductions.com/about/
|
||||
|
||||
Copyright 2011 Zachary Segal (email : zac@illproductions.com)
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
// Make sure we don't expose any info if called directly
|
||||
if ( !function_exists( 'add_action' ) ) {
|
||||
echo "Hi there! I'm just a plugin, not much I can do when called directly.";
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Global variable to hold the catablog class.
|
||||
// Always reference this variable instead of instantiating a new CataBlog class.
|
||||
global $wp_plugin_catablog_class;
|
||||
|
||||
|
||||
|
||||
// Load the CataBlog WordPress plugin if PHP is version 5.0 or above
|
||||
function catablog_load_plugin() {
|
||||
|
||||
// load necessary libraries
|
||||
require('lib/CataBlog.class.php');
|
||||
require('lib/CataBlogItem.class.php');
|
||||
require('lib/CataBlogDirectory.class.php');
|
||||
|
||||
// create CataBlog class and hook into WordPress
|
||||
global $wp_plugin_catablog_class;
|
||||
$wp_plugin_catablog_class = new CataBlog();
|
||||
$wp_plugin_catablog_class->registerWordPressHooks();
|
||||
|
||||
/**
|
||||
* Template function to emulate the CataBlog Shortcode behavior.
|
||||
* This function will echo out your catalog.
|
||||
*
|
||||
* @param string $category A list of CataBlog category names separated by commas
|
||||
* @param string $template A CataBlog template file name
|
||||
* @param string $sort The column to sort your catalog by, defaults to menu_order
|
||||
* @param string $order The order to sort your catalog by, default to ascending
|
||||
* @param string $operator The operator to apply to the categories passed in, defaults to IN
|
||||
* @return void
|
||||
*/
|
||||
function catablog_show_items($category=null, $template=null, $sort='menu_order', $order='asc', $operator='IN') {
|
||||
global $wp_plugin_catablog_class;
|
||||
$wp_plugin_catablog_class->frontend_init(true);
|
||||
echo $wp_plugin_catablog_class->frontend_content(array('category'=>$category, 'template'=>$template, 'sort'=>$sort, 'order'=>$order, 'operator'=>$operator));
|
||||
}
|
||||
|
||||
/**
|
||||
* Template function for fetching a single catalog item by id
|
||||
*
|
||||
* @param integer $id The id of a catalog item to fetch
|
||||
* @return CataBlogItem|NULL Returns a CataBlogItem object if a catalog item was found, otherwise NULL
|
||||
*/
|
||||
function catablog_get_item($id=false) {
|
||||
if (is_numeric($id) && $id > 0) {
|
||||
return CataBlogItem::getItem($id);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
if (version_compare(phpversion(), '5.0.0', '>=')) {
|
||||
catablog_load_plugin();
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Test that the system meets all requirements on activation
|
||||
function catablog_activate() {
|
||||
|
||||
// check if PHP is version 5
|
||||
if (version_compare(phpversion(), '5.0.0', '<')) {
|
||||
wp_die(__("<strong>CataBlog</strong> requires <strong>PHP 5</strong> or better running on your web server. You're version of PHP is to old, please contact your hosting company or IT department for an upgrade. Thanks.", 'catablog'));
|
||||
}
|
||||
|
||||
// check if GD Library is loaded in PHP
|
||||
if (!extension_loaded('gd') || !function_exists('gd_info')) {
|
||||
wp_die(__("<strong>CataBlog</strong> requires that the <strong>GD Library</strong> be installed on your web server's version of PHP. Please contact your hosting company or IT department for more information. Thanks.", 'catablog'));
|
||||
}
|
||||
|
||||
// check WordPress version
|
||||
if (version_compare(get_bloginfo('version'), '3.1', '<')) {
|
||||
wp_die(__("<strong>CataBlog</strong> requires <strong>WordPress 3.1</strong> or above. Please upgrade WordPress or contact your system administrator about upgrading.", 'catablog'));
|
||||
}
|
||||
|
||||
// check if the wp uploads folder is writable
|
||||
$uploads_dir = wp_upload_dir();
|
||||
if ($uploads_dir['error'] !== false) {
|
||||
wp_die(__("<strong>CataBlog</strong> could not detect your upload directory or it is not writable by PHP. Please make sure Apache and PHP have write permission for the configured uploads folder. Contact your hosting company or IT department for more information. Thanks.", 'catablog'));
|
||||
}
|
||||
}
|
||||
register_activation_hook( __FILE__, 'catablog_activate' );
|
||||
|
||||
|
||||
|
||||
// Remote post on deactivation
|
||||
function catablog_deactivate() {
|
||||
$body_array = array('action'=>'deactivate', 'site-url'=>site_url(), 'version'=>'1.2.9.7');
|
||||
$post_action = wp_remote_post('http://catablog.illproductions.com/tracker.php', array('body'=>$body_array));
|
||||
}
|
||||
register_deactivation_hook( __FILE__, 'catablog_deactivate' );
|
||||
|
||||
@ -1,891 +0,0 @@
|
||||
body {
|
||||
/* min-width: 900px !important;*/
|
||||
}
|
||||
|
||||
|
||||
.error {
|
||||
background-color: #FFEBE8;
|
||||
padding: 0 0.6em;
|
||||
border: 1px #C00 solid;
|
||||
}
|
||||
|
||||
th.catablog-sortable {
|
||||
cursor: pointer;
|
||||
background-image: url('./../images/sort.gif');
|
||||
background-position: right center;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
#catablog_items tr {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
#catablog_items.sort_enabled tr,
|
||||
#catablog_items.sort_enabled li {
|
||||
cursor: move !important;
|
||||
background-color: #f6f6f6 !important;
|
||||
}
|
||||
#catablog_items.sort_enabled tr:hover,
|
||||
#catablog_items.sort_enabled li:hover {
|
||||
background-color: #fee !important;
|
||||
}
|
||||
#catablog_items.sort_enabled a {
|
||||
cursor: move !important;
|
||||
}
|
||||
#catablog_items.sort_enabled div.row-actions {
|
||||
display: none !important;
|
||||
}
|
||||
#catablog_items.sort_enabled tr th.check-column {
|
||||
background: transparent url('./../images/drag-handle.png') no-repeat scroll center center;
|
||||
}
|
||||
|
||||
|
||||
#catablog-view-switch #view-switch-list {
|
||||
background-image: url('./../images/catablog-switch-view.png') !important;
|
||||
}
|
||||
#catablog-view-switch #view-switch-list.current {
|
||||
background-position: -40px;
|
||||
}
|
||||
#catablog-view-switch #view-switch-excerpt {
|
||||
background-image: url('./../images/catablog-switch-view.png') !important;
|
||||
}
|
||||
#catablog-view-switch #view-switch-excerpt.current {
|
||||
background-position: -60px;
|
||||
}
|
||||
|
||||
|
||||
#icon-catablog {
|
||||
-moz-background-clip: border;
|
||||
-moz-background-inline-policy: continuous;
|
||||
-moz-background-origin: padding;
|
||||
background: transparent url('./../images/catablog-icon-32.png') no-repeat scroll left top;
|
||||
}
|
||||
|
||||
.cb_order_column {
|
||||
width: 1px;
|
||||
text-align: center !important;
|
||||
}
|
||||
.cb_icon_column {
|
||||
width: 80px;
|
||||
text-align: center !important;
|
||||
}
|
||||
.cb_item_icon {
|
||||
display: block;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
border: 0 none;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.cb_disabled_link {
|
||||
color: #333 !important;
|
||||
}
|
||||
|
||||
.column-rm {
|
||||
width: 6em;
|
||||
}
|
||||
|
||||
#catablog-category-add-checklist {
|
||||
float: left;
|
||||
padding: 0.5%;
|
||||
width: 48%;
|
||||
border: 1px #e2e2e2 solid;
|
||||
}
|
||||
#catablog-category-remove-checklist {
|
||||
margin-left: 50%;
|
||||
margin-bottom: 1em;
|
||||
padding: 0.5%;
|
||||
width: 48%;
|
||||
border: 1px #e2e2e2 solid;
|
||||
}
|
||||
#catablog-category-add-checklist strong.list-title,
|
||||
#catablog-category-remove-checklist strong.list-title {
|
||||
display: block;
|
||||
padding: 0.5em;
|
||||
background: #f3f3f3;
|
||||
border-bottom: 1px #e7e7e7 solid;
|
||||
}
|
||||
#catablog-category-add-checklist ul,
|
||||
#catablog-category-remove-checklist ul {
|
||||
height: 13em;
|
||||
margin: 0px !important;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
#catablog-edit {
|
||||
position: relative;
|
||||
}
|
||||
#catablog-edit-main {
|
||||
float: left;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
margin: 0 -265px 0 0;
|
||||
}
|
||||
#catablog-edit-main-content {
|
||||
margin: 0 265px 0 0;
|
||||
}
|
||||
#catablog-edit-params {
|
||||
float: right;
|
||||
clear: right;
|
||||
position: relative;
|
||||
width: 250px;
|
||||
margin: 0 0 0 auto;
|
||||
}
|
||||
#catablog-edit-params input.text-field {
|
||||
width: 100%;
|
||||
margin: 0 0 0.5em 0;
|
||||
}
|
||||
#catablog-edit-params input.file-field {
|
||||
width: 96%;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#catablog-edit-main-text {
|
||||
margin: 0 0 0 135px;
|
||||
border-width: 0 !important;
|
||||
padding: 0 0 9px 9px !important;
|
||||
}
|
||||
#catablog-edit-main-text input {
|
||||
width: 100%;
|
||||
font-size: 18px;
|
||||
line-height: 20px;
|
||||
padding: 3px;
|
||||
color: #464646;
|
||||
}
|
||||
#catablog-edit-main-text textarea {
|
||||
width: 100%;
|
||||
height: 30em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#catablog-edit-main-image {
|
||||
position: relative;
|
||||
float: left;
|
||||
margin: 0;
|
||||
width: 135px;
|
||||
border: 0 none !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
#catablog-edit-main-image img.catablog-image-preview {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
#catablog-edit-main-image input {
|
||||
display: block;
|
||||
}
|
||||
#catablog-edit-image-controls {
|
||||
text-align: left;
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
||||
#catablog-edit-images-column {
|
||||
background-color: #fff;
|
||||
border: 1px #dfdfdf solid !important;
|
||||
border-radius: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#catablog-edit-images-column hr {
|
||||
background: #dfdfdf;
|
||||
height: 1px;
|
||||
border: 0 none;
|
||||
}
|
||||
|
||||
#catablog-sub-images {
|
||||
position: relative;
|
||||
width: 100px;
|
||||
margin: 0 auto;
|
||||
padding: 0;
|
||||
border: 0 none;
|
||||
list-style:none;
|
||||
}
|
||||
#catablog-sub-images li {
|
||||
display: block;
|
||||
position: relative;
|
||||
margin: 0 0 5px 0;
|
||||
cursor: move;
|
||||
}
|
||||
#catablog-sub-images li img {
|
||||
display: block;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0 none;
|
||||
}
|
||||
.catablog-delete-subimage {
|
||||
display: block;
|
||||
display: none;
|
||||
position: absolute;
|
||||
background: #fff;
|
||||
top: 5px;
|
||||
right: 5px;
|
||||
line-height: 22px;
|
||||
font-size: 16px;
|
||||
padding: 0 4px 0 5px;
|
||||
text-decoration: none;
|
||||
border: 1px #d00 solid;
|
||||
color: #d00;
|
||||
cursor: pointer;
|
||||
}
|
||||
#catablog-sub-images li:hover .catablog-delete-subimage {
|
||||
display: block;
|
||||
}
|
||||
.catablog-sub-image-trash {
|
||||
display: block;
|
||||
width: 49px;
|
||||
height: 49px;
|
||||
margin: 2px 2px 0 0;
|
||||
background-color: #fee;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#edit-category-window {
|
||||
top: 60px;
|
||||
}
|
||||
.catablog-modal {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 120px;
|
||||
left: 0px;
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
z-index: 1001;
|
||||
}
|
||||
.catablog-modal form {
|
||||
width: 550px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.catablog-modal form h3.catablog-modal-title {
|
||||
background-image: url('./../images/gray-grad.png');
|
||||
border: 1px solid #DDD;
|
||||
color: #464646;
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
margin: 0px;
|
||||
padding: 6px;
|
||||
|
||||
-moz-border-radius: 6px 6px 0 0;
|
||||
border-radius: 6px 6px 0 0;
|
||||
|
||||
-moz-box-shadow: 2px 2px 6px #333;
|
||||
-webkit-box-shadow: 2px 2px 6px #333;
|
||||
box-shadow: 2px 2px 6px #333;
|
||||
}
|
||||
.catablog-modal form div.catablog-modal-body {
|
||||
border: solid #DDD;
|
||||
border-width: 0px 1px 1px;
|
||||
padding: 9px;
|
||||
background-color: #fff;
|
||||
|
||||
-moz-border-radius: 0 0 6px 6px;
|
||||
border-radius: 0 0 6px 6px;
|
||||
|
||||
-moz-box-shadow: 2px 2px 6px #333;
|
||||
-webkit-box-shadow: 2px 2px 6px #333;
|
||||
box-shadow: 2px 2px 6px #333;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#catablog-edit-main-image #select-image-button {
|
||||
width: 100px;
|
||||
height: 31px;
|
||||
margin: 10px 0;
|
||||
background: url('./../images/catablog-admin-select-image.png') 0 0 no-repeat;
|
||||
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
|
||||
|
||||
}
|
||||
#catablog-edit-main-image #new_image {
|
||||
position: relative;
|
||||
height: 100%;
|
||||
width: auto;
|
||||
cursor: pointer;
|
||||
|
||||
opacity: 0;
|
||||
-moz-opacity: 0;
|
||||
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#catablog-edit-main-image #catablog-edit-main-image strong {
|
||||
color: #c00;
|
||||
}
|
||||
|
||||
#catablog-edit-main-image #no-image-icon {
|
||||
width: 98px;
|
||||
height: 38px;
|
||||
line-height: 15px;
|
||||
padding: 30px 0;
|
||||
border: 1px #ddd solid;
|
||||
background-color: #ededed;
|
||||
background-image: url('./../images/gray-grad.png');
|
||||
background-position: left bottom;
|
||||
background-repeat: repeat-x;
|
||||
font-weight: bold;
|
||||
margin: 0;
|
||||
text-align: center;
|
||||
color: #900;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.catablog-category-row {
|
||||
position: relative;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.catablog-category-row.hover {
|
||||
background-color: #ffd;
|
||||
}
|
||||
|
||||
.catablog-category-delete {
|
||||
float: right;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#catablog-edit #catablog-new-category {
|
||||
border: 0 none;
|
||||
border-top: 1px #ccc solid;
|
||||
margin: 1em 0 0 0;
|
||||
padding: 1em 0 0 0;
|
||||
}
|
||||
.catablog-category-row span {
|
||||
vertical-align: middle;
|
||||
}
|
||||
#catablog-new-category-submit {
|
||||
float: right;
|
||||
}
|
||||
#catablog-new-category-submit:active {
|
||||
background-color: #555;
|
||||
}
|
||||
#catablog-new-category-load {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
margin: 0 0 0 10px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#catablog-edit-main-save {
|
||||
border-width: 0 0 0 0 !important;
|
||||
margin: 0 0 0 145px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#catablog-options {
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
form#catablog-edit fieldset {
|
||||
padding: 0;
|
||||
margin: 0 0 16px 0;
|
||||
border: 0 none;
|
||||
}
|
||||
form#catablog-edit fieldset h3 {
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
padding: 6px;
|
||||
background-image: url('./../images/gray-grad.png');
|
||||
margin: 0;
|
||||
-moz-border-radius: 6px 6px 0 0;
|
||||
border-radius: 6px 6px 0 0;
|
||||
color: #464646;
|
||||
border: 1px #dfdfdf solid;
|
||||
}
|
||||
form#catablog-edit fieldset div {
|
||||
border: 1px #ddd solid;
|
||||
border-width: 0 1px 1px 1px;
|
||||
padding: 9px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#upload-form-left-col.left-col {
|
||||
float: left;
|
||||
width: 17em;
|
||||
}
|
||||
#upload-form-right-col.right-col {
|
||||
margin: 0 0 0 19em;
|
||||
border: 1px #ccc solid;
|
||||
border-radius: 5px;
|
||||
background: #fcfcfc;
|
||||
}
|
||||
|
||||
#upload-feedback {
|
||||
padding: 1em;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#new-items-editor li.error {
|
||||
border: 0;
|
||||
border-top: 1px #c00 solid;
|
||||
}
|
||||
|
||||
#new-items-editor li {
|
||||
display: none;
|
||||
padding: 1em;
|
||||
margin: 0;
|
||||
border-top: 1px #e1e1e1 solid;
|
||||
}
|
||||
|
||||
#new-items-editor li .button-elements {
|
||||
float: left;
|
||||
width: 100px;
|
||||
}
|
||||
#new-items-editor li .button-elements img {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
margin-bottom: 6px;
|
||||
border: 1px #dfdfdf solid;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
#new-items-editor li .text-elements {
|
||||
margin-left: 112px;
|
||||
min-height: 100px;
|
||||
}
|
||||
#new-items-editor li .text-elements input.title,
|
||||
#new-items-editor li .text-elements textarea.description {
|
||||
display: block;
|
||||
width: 100%;
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
padding: 2px;
|
||||
margin: 1px 0;
|
||||
}
|
||||
#new-items-editor li .text-elements textarea.description {
|
||||
height: 4em;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
#new-items-editor li .text-elements input.button-primary {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#catablog-options-menu {
|
||||
float: left;
|
||||
width: 115px;
|
||||
margin: 0 0 0 0;
|
||||
}
|
||||
#catablog-options-menu li a {
|
||||
position: relative;
|
||||
left: 1px;
|
||||
display: block;
|
||||
border: 1px #e7e7e7 solid;
|
||||
background: #e7e7e7;
|
||||
padding: 5px 10px;
|
||||
border-radius: 5px 0 0 5px;
|
||||
}
|
||||
#catablog-options-menu li a.selected {
|
||||
background: #fff;
|
||||
border-color: #e7e7e7 #fff #e7e7e7 #e7e7e7;
|
||||
color: #444;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.catablog-options-panel {
|
||||
margin: 0 0 0 115px !important;
|
||||
min-height: 340px;
|
||||
padding: 1em;
|
||||
border: 1px #ddd solid;;
|
||||
background-color: #fff;
|
||||
border-radius: 0 3px 3px 3px;
|
||||
}
|
||||
.catablog-options-panel label {
|
||||
font-weight: bold;
|
||||
}
|
||||
.catablog-options-panel > p {
|
||||
margin: 0 0 1em 0;
|
||||
}
|
||||
.catablog-options-panel legend {
|
||||
display: none;
|
||||
}
|
||||
.catablog-options-panel hr {
|
||||
background: #ddd;
|
||||
border: 0 none;
|
||||
border-top: 1px #ddd solid;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* CATABLOG OPTIONS - MISC CLASSES AND HELPERS */
|
||||
.catablog-options-panel #thumbnail_preview .demo_box {
|
||||
display: block;
|
||||
position: relative;
|
||||
background-color: #ccc;
|
||||
border: 1px #999 solid !important;
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
.catablog-options-panel #thumbnail_preview .demo_box img {
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 13%;
|
||||
left: 0px;
|
||||
width: 100%;
|
||||
}
|
||||
.catablog-options-panel #thumbnail_preview .demo_box.crop img {
|
||||
top: 0px;
|
||||
left: -12%;
|
||||
width: auto;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.catablog-options-panel a.catablog-load-code {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.catablog-options-panel textarea.catablog-code {
|
||||
width: 100%;
|
||||
height: 22em;
|
||||
overflow: auto;
|
||||
white-space: pre;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#catablog_items.catablog-grid-view {
|
||||
clear: both;
|
||||
}
|
||||
#catablog_items.catablog-grid-view li.clear {
|
||||
clear: left;
|
||||
float: none;
|
||||
height: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
border: 0 none;
|
||||
}
|
||||
#catablog_items.catablog-grid-view li {
|
||||
display: block;
|
||||
position: relative;
|
||||
float: left;
|
||||
width: 100px;
|
||||
border: 3px #eee solid;
|
||||
text-align: center;
|
||||
margin: 5px;
|
||||
background: #fff;
|
||||
vertical-align: top;
|
||||
}
|
||||
#catablog_items.catablog-grid-view li a.catablog-admin-thumbnail {
|
||||
display: block;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
text-decoration: none;
|
||||
margin: 0;
|
||||
}
|
||||
#catablog_items.catablog-grid-view li a.catablog-admin-thumbnail img {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
border: 0;
|
||||
}
|
||||
#catablog_items.catablog-grid-view li a.catablog-title {
|
||||
display: block;
|
||||
height: 2.5em;
|
||||
line-height: 1.4;
|
||||
margin: 0.5em;
|
||||
overflow: hidden;
|
||||
text-decoration: none;
|
||||
}
|
||||
#catablog_items.catablog-grid-view li input.bulk_selection {
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
form#catablog-import-export fieldset div.controls {
|
||||
float: left;
|
||||
width: 280px;
|
||||
|
||||
}
|
||||
form#catablog-import-export fieldset div.advice {
|
||||
margin: 0 0 0 300px;
|
||||
border-left: 1px #e3e3e3 solid;
|
||||
padding: 0 0 0 20px;
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
form fieldset.disabled {
|
||||
color: #888 !important;
|
||||
}
|
||||
form fieldset.disabled input {
|
||||
color: #888 !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
|
||||
form#catablog-view {}
|
||||
form#catablog-view #catablog-view-menu {
|
||||
display: block;
|
||||
margin: 0 0 10px 0;
|
||||
padding: 3px;
|
||||
margin: 0 0 10px 0;
|
||||
width: 100%;
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.catablog-progress {
|
||||
position: relative;
|
||||
height: 3em;
|
||||
line-height: 3em;
|
||||
border: 1px #e8e8e8 solid;
|
||||
background-color: #fff;
|
||||
padding: 0 1em;
|
||||
margin: 0 0 1em 0;
|
||||
-moz-border-radius: 15px;
|
||||
border-radius: 15px;
|
||||
}
|
||||
.catablog-progress-text {
|
||||
position: relative;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
.catablog-progress-bar {
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
height: 100%;
|
||||
width: 0%;
|
||||
background-color: #7dc2fd;
|
||||
-moz-border-radius: 15px;
|
||||
border-radius: 15px;
|
||||
}
|
||||
#catablog-progress-fullsize .catablog-progress-bar {
|
||||
background-color: #fdcb7d;
|
||||
}
|
||||
|
||||
#catablog-console {
|
||||
padding: 1em;
|
||||
border: 1px #e3e3e3 solid;
|
||||
height: 25em;
|
||||
background: #fff;
|
||||
overflow: auto;
|
||||
-moz-border-radius: 1em;
|
||||
border-radius: 1em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.ajax-save {
|
||||
padding: 0 1em;
|
||||
line-height: 20px;
|
||||
background-color: transparent;
|
||||
background-image: url('./../images/ajax-loader-small.gif');
|
||||
background-repeat: no-repeat;
|
||||
background-position: center top;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#catablog_load_curtain {
|
||||
display: none;
|
||||
position: absolute;
|
||||
position: fixed;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: #fff;
|
||||
z-index: 1000;
|
||||
}
|
||||
#catablog_load_display {
|
||||
position: relative;
|
||||
width: 200px;
|
||||
height: 50px;
|
||||
margin: 50px auto 0 auto;
|
||||
padding: 35px 0 0 0;
|
||||
text-align: center;
|
||||
background-color: #fff;
|
||||
background-image: url('./../images/ajax-loader.gif');
|
||||
background-repeat: no-repeat;
|
||||
background-position: center top;
|
||||
z-index: 10001;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#catablog-import-messages li {
|
||||
margin: 0 0 5px 0 !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
table.catablog_stats td {
|
||||
padding: 0 2em 0 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#color-picker-div {
|
||||
z-index: 100;
|
||||
background: #fff;
|
||||
padding: 3px;
|
||||
border: 1px #ccc solid;
|
||||
border-width: 1px 1px 2px 1px;
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 200px;
|
||||
left: 550px;
|
||||
|
||||
-moz-box-shadow: 1px 1px 5px #333;
|
||||
-webkit-box-shadow: 1px 1px 5px #333;
|
||||
box-shadow: 1px 1px 5px #333;
|
||||
}
|
||||
#pickcolor {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
width: auto;
|
||||
padding: 0 5px 3px 5px;
|
||||
background: #fff;
|
||||
z-index: 1200;
|
||||
border: 1px #fff solid;
|
||||
}
|
||||
#pickcolor.selected {
|
||||
background-color: #fff;
|
||||
border: 1px #ccc solid;
|
||||
border-bottom-width: 0px;
|
||||
}
|
||||
.color-swatch {
|
||||
height: 23px;
|
||||
width: 23px;
|
||||
background-color: #fff;
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
border: 1px #ccc solid;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.clear_float:after {
|
||||
content: ".";
|
||||
display: block;
|
||||
height: 0;
|
||||
clear:both;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.hide {
|
||||
display: none;
|
||||
}
|
||||
.warning {
|
||||
color: #c00;
|
||||
text-decoration: underline;
|
||||
}
|
||||
@ -1,273 +0,0 @@
|
||||
/*
|
||||
* CataBlog StyleSheet, version 1.2.5
|
||||
*/
|
||||
|
||||
|
||||
/* Default and Subimages Template CSS Classes */
|
||||
.catablog-row {
|
||||
position: relative;
|
||||
display: block;
|
||||
float: none;
|
||||
margin: 0;
|
||||
padding: 5px 5px 15px 5px;
|
||||
}
|
||||
.catablog-row .catablog-images-column {
|
||||
float: left;
|
||||
position: relative;
|
||||
}
|
||||
.catablog-row img.catablog-image,
|
||||
.catablog-row .catablog-image img {
|
||||
display: block;
|
||||
height: auto;
|
||||
float: left;
|
||||
}
|
||||
.catablog-row .catablog-images-column .catablog-image img {
|
||||
float: none;
|
||||
}
|
||||
.catablog-row .catablog-image.catablog-subimage {
|
||||
float: left;
|
||||
width: 50%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0 none;
|
||||
|
||||
}
|
||||
.catablog-row .catablog-image.catablog-subimage img {
|
||||
width: 100% !important;
|
||||
}
|
||||
.catablog-row .catablog-title {
|
||||
display: block;
|
||||
font-size: 1.4em;
|
||||
font-weight: bold;
|
||||
clear: none;
|
||||
float: none;
|
||||
}
|
||||
.catablog-row .catablog-description {
|
||||
display: block;
|
||||
clear: none;
|
||||
float: none;
|
||||
}
|
||||
.catablog-row .catablog-description:after {
|
||||
content: ".";
|
||||
display: block;
|
||||
clear: both;
|
||||
height: 0px;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
|
||||
/* Grid and Gallery Template CSS Classes */
|
||||
.catablog-gallery.catablog-row {
|
||||
display: block;
|
||||
position: relative;
|
||||
float: left;
|
||||
padding: 0;
|
||||
margin: 5px;
|
||||
}
|
||||
.catablog-gallery.catablog-row .catablog-image {
|
||||
display: block;
|
||||
float: none;
|
||||
position: static;
|
||||
}
|
||||
.catablog-gallery.catablog-row .catablog-image img {
|
||||
float: none;
|
||||
}
|
||||
.catablog-gallery.catablog-row:hover .catablog-title {
|
||||
display: block;
|
||||
}
|
||||
.catablog-gallery.catablog-row .catablog-title {
|
||||
display: none;
|
||||
position: absolute;
|
||||
bottom: 0px;
|
||||
left: 0px;
|
||||
color: #fff;
|
||||
background: #222;
|
||||
opacity: 0.8;
|
||||
margin: 0 !important;
|
||||
padding: 5px;
|
||||
font-weight: normal;
|
||||
font-size: 1em;
|
||||
}
|
||||
.catablog-gallery.catablog-row .catablog-description {
|
||||
display: none;
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
|
||||
/* Single and Archive view classes */
|
||||
|
||||
|
||||
|
||||
.catablog-credits {
|
||||
display: block;
|
||||
clear: both;
|
||||
overflow: hidden;
|
||||
height: 0px !important;
|
||||
padding: 0px !important;
|
||||
margin: 0 0 1em 0 !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* Deprecated CSS Classes (You Should NOT USE or depend on these Classes)*/
|
||||
.catablog-image.catablog-lightbox,
|
||||
.catablog-subimage.catablog-lightbox {
|
||||
cursor: pointer;
|
||||
}
|
||||
.catablog-image.catablog-lightbox:hover {
|
||||
border-color: red;
|
||||
}
|
||||
.catablog-selected {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* LightBox CSS Classes */
|
||||
#catablog-curtain {
|
||||
display: block;
|
||||
position: absolute;
|
||||
position: fixed;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: #000;
|
||||
z-index: 10000;
|
||||
-moz-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
#catablog-lightbox {
|
||||
display: none;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
top: 50px;
|
||||
left: 0px;
|
||||
z-index: 10200;
|
||||
-moz-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
#catablog-lightbox #catablog-whiteboard {
|
||||
position: relative;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
margin: 0 auto;
|
||||
padding: 10px;
|
||||
background-color: #fff;
|
||||
background-image: none;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center center;
|
||||
border: 1px #000 solid;
|
||||
border-width: 0 1px 2px 0;
|
||||
}
|
||||
#catablog-lightbox #catablog-whiteboard.loading {
|
||||
background-image: url('./../images/ajax-loader.gif');
|
||||
}
|
||||
#catablog-lightbox-meta {
|
||||
position: relative;
|
||||
display: none;
|
||||
padding: 0.5em 0;
|
||||
}
|
||||
#catablog-lightbox-meta .catablog-lightbox-title {
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
-moz-user-select: normal;
|
||||
-khtml-user-select: normal;
|
||||
user-select: normal;
|
||||
}
|
||||
#catablog-lightbox-meta .catablog-lightbox-desc {
|
||||
position: relative;
|
||||
line-height: 1.5;
|
||||
-moz-user-select: normal;
|
||||
-khtml-user-select: normal;
|
||||
user-select: normal;
|
||||
|
||||
}
|
||||
#catablog-lightbox-image {
|
||||
position: relative;
|
||||
display: none;
|
||||
}
|
||||
#catablog-lightbox-image a {
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
width: 50%;
|
||||
text-decoration: none;
|
||||
background: transparent;
|
||||
background-image: url("./../images/blank.gif");
|
||||
}
|
||||
#catablog-lightbox-image a span {
|
||||
display: none;
|
||||
}
|
||||
#catablog-lightbox-image a span:first-letter {
|
||||
border-bottom: 1px #caa solid;
|
||||
}
|
||||
#catablog-lightbox-next:hover span,
|
||||
#catablog-lightbox-prev:hover span,
|
||||
#catablog-lightbox-next:focus span,
|
||||
#catablog-lightbox-prev:focus span {
|
||||
display: block;
|
||||
}
|
||||
#catablog-lightbox-next {
|
||||
right: 0px;
|
||||
outline: 0 none;
|
||||
border: 0 none;
|
||||
}
|
||||
#catablog-lightbox-prev {
|
||||
left: 0px;
|
||||
outline: 0 none;
|
||||
border: 0 none;
|
||||
}
|
||||
#catablog-lightbox-close {
|
||||
display: block;
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: -14px;
|
||||
right: -14px;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
background-image: url("./../images/close-lightbox.png");
|
||||
background-position: 0px 0px;
|
||||
background-repeat: no-repeat;
|
||||
overflow: hidden;
|
||||
text-indent: -9999px;
|
||||
outline: 0 none;
|
||||
border: 0 none;
|
||||
}
|
||||
#catablog-lightbox-next .catablog-lightbox-nav-label {
|
||||
right: 0px;
|
||||
bottom: 20px;
|
||||
padding-left: 30px;
|
||||
-moz-border-radius: 30px 0 0 30px;
|
||||
-webkit-border-radius: 30px 0 0 30px;
|
||||
border-radius: 30px 0 0 30px;
|
||||
}
|
||||
#catablog-lightbox-prev .catablog-lightbox-nav-label {
|
||||
left: 0px;
|
||||
top: 20px;
|
||||
padding-right: 30px;
|
||||
-moz-border-radius: 0 30px 30px 0;
|
||||
-webkit-border-radius: 0 30px 30px 0;
|
||||
border-radius: 0 30px 30px 0;
|
||||
}
|
||||
.catablog-lightbox-nav-label {
|
||||
display: none;
|
||||
display: block;
|
||||
position: absolute;
|
||||
background: #fff;
|
||||
color: #555;
|
||||
padding: 15px;
|
||||
font-size: 22px;
|
||||
font-weight: bold;
|
||||
line-height: 30px;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
.catablog-lightbox-nav-label:hover {
|
||||
|
||||
}
|
||||
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 43 B |
|
Before Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 213 B |
|
Before Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 54 B |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
@ -1,215 +0,0 @@
|
||||
function show_load() {
|
||||
jQuery('body').append("<div id='catablog_load_curtain' />");
|
||||
jQuery('#catablog_load_curtain').append("<div id='catablog_load_display'>...</div>");
|
||||
|
||||
jQuery('#catablog_load_curtain').fadeTo(200, 0.8);
|
||||
}
|
||||
function hide_load() {
|
||||
setTimeout(function() {
|
||||
jQuery('#catablog_load_curtain').fadeOut(400, function() {
|
||||
jQuery(this).remove();
|
||||
});
|
||||
}, 500);
|
||||
}
|
||||
|
||||
|
||||
function show_image_upload_modal() {
|
||||
jQuery('body').append("<div id='catablog_load_curtain' />");
|
||||
jQuery('#catablog_load_curtain').append("<div id='catablog_load_display'>...</div>");
|
||||
|
||||
jQuery('#catablog_load_curtain').fadeTo(200, 0.8);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function discourage_leaving_page(message) {
|
||||
var all_links = jQuery('a').filter(function() {
|
||||
return ( jQuery(this).attr('href').charAt(0) != '#' );
|
||||
}).filter(function() {
|
||||
return (jQuery(this).hasClass('cb_disabled_link') == false);
|
||||
});
|
||||
|
||||
all_links.bind('click', function(event) {
|
||||
if (message == null) {
|
||||
message = "you should not leave the page...";
|
||||
}
|
||||
if(!confirm(message)) {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
function unbind_discourage_leaving_page() {
|
||||
var all_links = jQuery('a').filter(function() {
|
||||
return ( jQuery(this).attr('href').charAt(0) != '#' );
|
||||
});
|
||||
|
||||
all_links.unbind('click');
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function is_integer(s) {
|
||||
return (s.toString().search(/^[0-9]+$/) == 0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function enable_save_button() {
|
||||
jQuery('#save_changes').attr('disabled', false);
|
||||
jQuery('#save_changes').attr('class', 'button-primary');
|
||||
}
|
||||
|
||||
function disable_save_button() {
|
||||
jQuery('#save_changes').attr('disabled', true);
|
||||
jQuery('#save_changes').attr('class', 'button-disabled');
|
||||
}
|
||||
|
||||
|
||||
|
||||
function possibly_disable_save_button() {
|
||||
if (jQuery('small.error:visible').size() == 0) {
|
||||
jQuery('#save_changes').attr('disabled', false);
|
||||
jQuery('#save_changes').attr('class', 'button-primary');
|
||||
}
|
||||
else {
|
||||
jQuery('#save_changes').attr('disabled', true);
|
||||
jQuery('#save_changes').attr('class', 'button-disabled');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
function renderCataBlogItems(images, type, nonce, callback) {
|
||||
total_count = images.length;
|
||||
renderCataBlogItem(images.shift(), type, images, nonce, total_count, callback);
|
||||
}
|
||||
|
||||
function renderCataBlogItem(image, type, a, nonce, total_count, callback) {
|
||||
var progress_bar = jQuery('#catablog-progress-' + type + ' .catablog-progress-bar');
|
||||
var progress_text = jQuery('#catablog-progress-' + type + ' .catablog-progress-text');
|
||||
var percent_complete = 100 - ((a.length / total_count) * 100);
|
||||
|
||||
|
||||
var params = {
|
||||
'image': image,
|
||||
'type': type,
|
||||
'count': a.length,
|
||||
'total': total_count,
|
||||
'action': 'catablog_render_images',
|
||||
'security': nonce
|
||||
}
|
||||
|
||||
jQuery.post(ajaxurl, params, function(data) {
|
||||
try {
|
||||
data = eval(data);
|
||||
|
||||
var progress_message = data.message;
|
||||
progress_text.html(percent_complete.toFixed(1)+'% <small>'+progress_message+'</small>');
|
||||
|
||||
if (data.success == false) {
|
||||
jQuery('#catablog-console').append('<li class="error">' + data.error + '</li>')
|
||||
}
|
||||
|
||||
}
|
||||
catch(e) {
|
||||
jQuery('#catablog-console').append('<li class="error">' + e + '</li>')
|
||||
}
|
||||
|
||||
if (a.length > 0) {
|
||||
progress_bar.css('width', percent_complete + '%');
|
||||
renderCataBlogItem(a.shift(), type, a, nonce, total_count, callback);
|
||||
}
|
||||
else {
|
||||
progress_bar.css('width', '100%');
|
||||
progress_text.html(progress_message);
|
||||
// unbind_discourage_leaving_page();
|
||||
callback.call(this);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
catablog_global_lazyload_elements = null;
|
||||
|
||||
function calculate_lazy_loads() {
|
||||
var scroll_top = jQuery(window).scrollTop();
|
||||
var scroll_bottom = scroll_top + jQuery(window).height() - 20;
|
||||
|
||||
if (catablog_global_lazyload_elements == null) {
|
||||
catablog_global_lazyload_elements = jQuery('#catablog_items a.lazyload');
|
||||
}
|
||||
|
||||
|
||||
catablog_global_lazyload_elements.each(function(i) {
|
||||
var top_offset = jQuery(this).offset().top;
|
||||
|
||||
if (scroll_bottom > top_offset) {
|
||||
jQuery(this).removeClass('lazyload');
|
||||
jQuery(this).append('<img class="cb_item_icon" />');
|
||||
jQuery(this).children('img').hide().attr('src', jQuery(this).attr('rel')).show();
|
||||
|
||||
catablog_global_lazyload_elements = catablog_global_lazyload_elements.not(this);
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function replaceSelection (input, replaceString) {
|
||||
if (input.setSelectionRange) {
|
||||
var selectionStart = input.selectionStart;
|
||||
var selectionEnd = input.selectionEnd;
|
||||
input.value = input.value.substring(0, selectionStart)+ replaceString + input.value.substring(selectionEnd);
|
||||
|
||||
if (selectionStart != selectionEnd){
|
||||
setSelectionRange(input, selectionStart, selectionStart + replaceString.length);
|
||||
}else{
|
||||
setSelectionRange(input, selectionStart + replaceString.length, selectionStart + replaceString.length);
|
||||
}
|
||||
|
||||
}else if (document.selection) {
|
||||
var range = document.selection.createRange();
|
||||
|
||||
if (range.parentElement() == input) {
|
||||
var isCollapsed = range.text == '';
|
||||
range.text = replaceString;
|
||||
|
||||
if (!isCollapsed) {
|
||||
range.moveStart('character', -replaceString.length);
|
||||
range.select();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
function setSelectionRange(input, selectionStart, selectionEnd) {
|
||||
if (input.setSelectionRange) {
|
||||
input.focus();
|
||||
input.setSelectionRange(selectionStart, selectionEnd);
|
||||
}
|
||||
else if (input.createTextRange) {
|
||||
var range = input.createTextRange();
|
||||
range.collapse(true);
|
||||
range.moveEnd('character', selectionEnd);
|
||||
range.moveStart('character', selectionStart);
|
||||
range.select();
|
||||
}
|
||||
}
|
||||
@ -1,110 +0,0 @@
|
||||
|
||||
function catablog_swfupload_loaded() {
|
||||
|
||||
}
|
||||
|
||||
function catablog_swfupload_file_dialog_complete(numFilesSelected, numFilesQueued, totalFilesQueued) {
|
||||
try {
|
||||
if (numFilesSelected > 0) {
|
||||
|
||||
var total_uploads = this.getStats().successful_uploads + this.getStats().files_queued;
|
||||
|
||||
jQuery('#current_number').html(this.getStats().successful_uploads);
|
||||
jQuery('#total_number').html(total_uploads);
|
||||
jQuery('#upload-form-right-col').removeClass('hide');
|
||||
|
||||
// jQuery('#cancel-upload').attr('disabled', false);
|
||||
|
||||
this.startUpload();
|
||||
}
|
||||
} catch (error) {
|
||||
this.debug(error);
|
||||
}
|
||||
}
|
||||
|
||||
function catablog_swfupload_file_queued(file) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
function catablog_swfupload_upload_start(file) {
|
||||
try {
|
||||
var total_uploads = this.getStats().successful_uploads + this.getStats().files_queued;
|
||||
var percent = Math.ceil((this.getStats().successful_uploads / total_uploads) * 100) + '%';
|
||||
|
||||
jQuery('#catablog-progress-all-uploads .catablog-progress-bar').width(percent);
|
||||
jQuery('#catablog-progress-all-uploads .catablog-progress-text').html(percent);
|
||||
|
||||
jQuery('#catablog-progress-current-upload .catablog-progress-bar').width(0);
|
||||
jQuery('#catablog-progress-current-upload .catablog-progress-text').html(file.name);
|
||||
|
||||
jQuery('#current_number').html(this.getStats().successful_uploads + 1);
|
||||
jQuery('#total_number').html(total_uploads);
|
||||
// jQuery('#upload-form-right-col').removeClass('hide');
|
||||
|
||||
|
||||
} catch(error) {
|
||||
this.debug(error);
|
||||
}
|
||||
}
|
||||
|
||||
function catablog_swfupload_upload_progress(file, bytesLoaded, bytesTotal) {
|
||||
var percent = Math.ceil((bytesLoaded/bytesTotal) * 100) + '%';
|
||||
jQuery('#catablog-progress-current-upload .catablog-progress-bar').width(percent);
|
||||
}
|
||||
|
||||
function catablog_swfupload_upload_success(file, serverData) {
|
||||
try {
|
||||
var total_uploads = this.getStats().successful_uploads + this.getStats().files_queued;
|
||||
var percent = Math.ceil((this.getStats().successful_uploads / total_uploads) * 100) + '%';
|
||||
|
||||
jQuery('#catablog-progress-all-uploads .catablog-progress-bar').width(percent);
|
||||
jQuery('#catablog-progress-all-uploads .catablog-progress-text').html(percent);
|
||||
|
||||
jQuery('#catablog-progress-current-upload .catablog-progress-bar').width('100%');
|
||||
|
||||
jQuery('#new-items-editor').append(serverData);
|
||||
jQuery('#new-items-editor li:last input.title').bind('keypress', catablog_micro_save);
|
||||
jQuery('#new-items-editor li:last input.button-primary').bind('click', catablog_micro_save);
|
||||
jQuery('#new-items-editor li:last').show(800);
|
||||
|
||||
} catch(error) {
|
||||
this.debug(error);
|
||||
}
|
||||
}
|
||||
|
||||
function catablog_swfupload_upload_complete(file) {
|
||||
try {
|
||||
var total_uploads = this.getStats().successful_uploads + this.getStats().files_queued;
|
||||
var percent = Math.ceil((this.getStats().successful_uploads / total_uploads) * 100) + '%';
|
||||
|
||||
jQuery('#catablog-progress-all-uploads .catablog-progress-bar').width(percent);
|
||||
jQuery('#catablog-progress-all-uploads .catablog-progress-text').html(percent);
|
||||
|
||||
jQuery('#catablog-progress-current-upload .catablog-progress-bar').width('100%');
|
||||
|
||||
if (this.getStats().files_queued > 0) {
|
||||
this.startUpload();
|
||||
}
|
||||
|
||||
} catch(error) {
|
||||
this.debug(error);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function catablog_swfupload_file_queued_error(file, error_code, message) {
|
||||
var string = "File Queue Error:\n";
|
||||
// for (p in message) {
|
||||
// string += p + ": " + message[p];
|
||||
// }
|
||||
string += message;
|
||||
alert(string);
|
||||
}
|
||||
|
||||
function catablog_swfupload_upload_error(file, error_code, message) {
|
||||
var string = "Upload Error:\n";
|
||||
string += message;
|
||||
alert(string);
|
||||
}
|
||||
@ -1,553 +0,0 @@
|
||||
jQuery(function($) {
|
||||
jQuery.fn.catablogLightbox = function(config) {
|
||||
// PlugIn Variables
|
||||
var size = this.size();
|
||||
var settings = {'size': size};
|
||||
if (config) jQuery.extend(settings, config);
|
||||
|
||||
var timeout = null;
|
||||
|
||||
var image_extensions = ['jpg', 'jpeg', 'gif', 'png'];
|
||||
var hold_click = false;
|
||||
var lightbox_images = [];
|
||||
var current_image = -1;
|
||||
|
||||
// PlugIn Construction applied across each selected jQuery object
|
||||
this.each(function(i) {
|
||||
|
||||
lightbox_images[i] = this;
|
||||
|
||||
if (jQuery(this).get(0).nodeName.toLowerCase() == "a") {
|
||||
// selected element is an achor tag
|
||||
|
||||
var href = jQuery(this).attr('href');
|
||||
var extension = href.split('.').pop().toLowerCase();
|
||||
|
||||
if (in_array(extension, image_extensions)) {
|
||||
|
||||
jQuery(this).bind('click', function(event) {
|
||||
current_image = i;
|
||||
open_lightbox(lightbox_images[i]);
|
||||
|
||||
jQuery('.catablog-selected').removeClass('catablog-selected');
|
||||
jQuery(this).addClass('catablog-selected');
|
||||
|
||||
event.stopPropagation();
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
else if (jQuery(this).get(0).nodeName.toLowerCase() == "img") {
|
||||
// selected element is an image tag
|
||||
if (typeof(console) !== 'undefined' && console != null) {
|
||||
console.log('You are using the CataBlog LightBox in an incorrect way, please set the lightbox selector to point at anchor tags surrounding your thumbnail images.');
|
||||
}
|
||||
|
||||
jQuery(this).css('cursor','pointer').bind('click', function(event) {
|
||||
current_image = i;
|
||||
open_lightbox(lightbox_images[i]);
|
||||
|
||||
jQuery('.catablog-selected').removeClass('catablog-selected');
|
||||
jQuery(this).addClass('catablog-selected');
|
||||
|
||||
event.stopPropagation();
|
||||
return false;
|
||||
});
|
||||
|
||||
}
|
||||
else {
|
||||
// selected element is of an unsupported tag type
|
||||
if (typeof(console) !== 'undefined' && console != null) {
|
||||
console.log('You are using the CataBlog LightBox in an incorrect way, please set the lightbox selector to point at anchor tags surrounding your thumbnail images.');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
// Private Functions
|
||||
function open_lightbox(element) {
|
||||
|
||||
var support_fixed = supportPositionFixed();
|
||||
var curtain_density = 0.85;
|
||||
var fadein_speed = 0;
|
||||
var page_top = jQuery(document).scrollTop() + 30;
|
||||
|
||||
// add the curtain div into the DOM
|
||||
jQuery('body').append("<div id='catablog-curtain'> </div>");
|
||||
var curtain = jQuery('#catablog-curtain');
|
||||
|
||||
// bind the curtain click and fade the curtain into view
|
||||
curtain.bind('click', function() {
|
||||
close_lightbox();
|
||||
});
|
||||
curtain.css('opacity', curtain_density);
|
||||
|
||||
if (!support_fixed) {
|
||||
var window_height = jQuery(window).height();
|
||||
var document_height = jQuery(document).height();
|
||||
curtain.css('position', 'absolute');
|
||||
curtain.height(document_height);
|
||||
}
|
||||
|
||||
// if (supportPositionFixed() != true) {
|
||||
// jQuery('#catablog-curtain').height(jQuery(document).height());
|
||||
// }
|
||||
|
||||
|
||||
// add the lightbox div into the DOM
|
||||
jQuery('body').append("<div id='catablog-lightbox'><div id='catablog-whiteboard' class='loading'></div></div>");
|
||||
var lightbox = jQuery('#catablog-lightbox');
|
||||
lightbox.css('top', page_top);
|
||||
|
||||
|
||||
// MAKE NOTE HERE
|
||||
lightbox.bind('click', function() {
|
||||
close_lightbox();
|
||||
});
|
||||
jQuery('#catablog-whiteboard').bind('click', function(event) {
|
||||
event.stopPropagation();
|
||||
// do not return false, break a:links in whiteboard
|
||||
});
|
||||
|
||||
|
||||
lightbox.show();
|
||||
|
||||
load_catablog_image(element);
|
||||
|
||||
|
||||
// // load the full size picture and expand the lightbox to fit the images dimensions
|
||||
// var fullsize_pic = new Image();
|
||||
// fullsize_pic.onload = function() {
|
||||
// var row = jQuery(element).closest('.catablog-row').get(0);
|
||||
// var meta = calculateMeta(row);
|
||||
// expand_lightbox(this, meta);
|
||||
// };
|
||||
// fullsize_pic.onerror = function() {
|
||||
// if (this.src.indexOf("/catablog/originals") < 0) {
|
||||
// this.src = this.src.replace("/catablog/fullsize", "/catablog/originals");;;
|
||||
// }
|
||||
// };
|
||||
//
|
||||
//
|
||||
// if (element.nodeName.toLowerCase() == 'a') {
|
||||
// fullsize_pic.src = element.href;
|
||||
// }
|
||||
// else {
|
||||
// fullsize_pic.src = element.src.replace("/catablog/thumbnails", "/catablog/fullsize");;;
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
function expand_lightbox(img, meta) {
|
||||
|
||||
var lightbox = jQuery('#catablog-whiteboard');
|
||||
|
||||
var w = img.width;
|
||||
var h = img.height;
|
||||
var s = img.src;
|
||||
|
||||
var window_width = jQuery(window).width();
|
||||
var window_height = jQuery(window).height();
|
||||
|
||||
if (w > window_width || h > window_height) {
|
||||
w_ratio = window_width / w - 0.1;
|
||||
h_ratio = window_height / h - 0.1;
|
||||
|
||||
if (w_ratio < h_ratio) {
|
||||
w = w * w_ratio;
|
||||
h = h * w_ratio;
|
||||
}
|
||||
else {
|
||||
w = w * h_ratio;
|
||||
h = h * h_ratio;
|
||||
}
|
||||
}
|
||||
|
||||
var title = "<h4 class='catablog-lightbox-title'>" + meta.title + "</h4>";
|
||||
var description = "<p class='catablog-lightbox-desc'>" + meta.description + "</p>";
|
||||
var nav = meta.nav;
|
||||
var close = meta.close
|
||||
|
||||
// attach image and navigation
|
||||
jQuery(lightbox).append("<div id='catablog-lightbox-image' />");
|
||||
jQuery('#catablog-lightbox-image').height(h);
|
||||
|
||||
if (!jQuery('#catablog-lightbox-image').append("<img src='"+s+"' />")) {
|
||||
if (typeof(console) !== 'undefined' && console != null) {
|
||||
console.log('failed appending image to html dom');
|
||||
}
|
||||
};
|
||||
|
||||
jQuery('#catablog-lightbox-image img').css({width:w, height:h});
|
||||
|
||||
jQuery('#catablog-lightbox-image').append(nav);
|
||||
jQuery('#catablog-lightbox-image a').height(h);
|
||||
|
||||
// attach meta data below image
|
||||
jQuery(lightbox).append("<div id='catablog-lightbox-meta' />");
|
||||
jQuery('#catablog-lightbox-meta').append(title);
|
||||
jQuery('#catablog-lightbox-meta').append(description);
|
||||
|
||||
jQuery('#catablog-whiteboard').append(close);
|
||||
|
||||
|
||||
lightbox.animate({width:w, height:h}, 400, function() {
|
||||
|
||||
jQuery('#catablog-whiteboard').removeClass('loading');
|
||||
|
||||
var full_height = h + jQuery('#catablog-lightbox-meta').outerHeight();
|
||||
|
||||
jQuery(this).children('#catablog-lightbox-meta').show();
|
||||
jQuery(this).animate({height:full_height}, 400, function() {
|
||||
hold_click = false;
|
||||
bindNavigationControls();
|
||||
})
|
||||
|
||||
jQuery('#catablog-lightbox-image').fadeIn(400, function() {
|
||||
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function change_lightbox(element) {
|
||||
|
||||
jQuery('#catablog-whiteboard').addClass('loading');
|
||||
|
||||
var row = jQuery(element).closest('.catablog-row').get(0);
|
||||
var speed = 150;
|
||||
|
||||
jQuery('#catablog-lightbox-meta').fadeOut(speed, function() {
|
||||
jQuery(this).remove();
|
||||
});
|
||||
jQuery('#catablog-lightbox-image').fadeOut(speed, function() {
|
||||
jQuery(this).remove();
|
||||
|
||||
|
||||
load_catablog_image(element);
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function load_catablog_image(element) {
|
||||
var load_attempts = 0;
|
||||
|
||||
var fullsize_pic = new Image();
|
||||
fullsize_pic.onload = function() {
|
||||
var row = jQuery(element).closest('.catablog-row').get(0);
|
||||
var meta = calculateMeta(row);
|
||||
expand_lightbox(this, meta);
|
||||
};
|
||||
fullsize_pic.onerror = function() {
|
||||
load_attempts++;
|
||||
if (load_attempts < 2) {
|
||||
this.src = this.src.replace("/catablog/fullsize", "/catablog/originals");
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
if (element.nodeName.toLowerCase() == 'a') {
|
||||
fullsize_pic.src = element.href;
|
||||
}
|
||||
else {
|
||||
fullsize_pic.src = element.src.replace("/catablog/thumbnails", "/catablog/fullsize");;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function navigate_lightbox(direction) {
|
||||
if (hold_click) {
|
||||
return false;
|
||||
}
|
||||
|
||||
hold_click = true;
|
||||
unbindNavigationControls();
|
||||
|
||||
var selected = jQuery('.catablog-selected');
|
||||
var new_image = null;
|
||||
|
||||
if (direction == 'next') {
|
||||
new_image = lightbox_images[current_image + 1];
|
||||
if (new_image == undefined) {
|
||||
current_image = 0;
|
||||
new_image = lightbox_images[current_image];
|
||||
}
|
||||
current_image += 1;
|
||||
}
|
||||
else if (direction == 'prev') {
|
||||
new_image = lightbox_images[current_image - 1];
|
||||
if (new_image == undefined) {
|
||||
current_image = lightbox_images.length - 1;
|
||||
new_image = lightbox_images[current_image];
|
||||
}
|
||||
current_image -= 1;
|
||||
}
|
||||
|
||||
|
||||
// check if the new_image is an a tag or its wrapped in an a tag
|
||||
// if wrapped in an anchor tag, replace new_image with the anchor tag
|
||||
// if not wrapped in an achor tag, log an error to the console if it exists
|
||||
if (new_image.nodeName.toLowerCase() != 'a') {
|
||||
if (jQuery(new_image).closest('a').size() > 0) {
|
||||
new_image = jQuery(new_image).closest('a').get(0);
|
||||
} else {
|
||||
if (new_image.nodeName.toLowerCase() == 'img') {
|
||||
|
||||
}
|
||||
else {
|
||||
if (typeof(console) !== 'undefined' && console != null) {
|
||||
console.log("Could not find the adjacent image because the adjacent .catablog-image element is not an anchor or image tag.");
|
||||
}
|
||||
|
||||
hold_click = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
var new_href = '';
|
||||
if (new_image.nodeName.toLowerCase() == 'a') {
|
||||
var new_href = new_image.href;
|
||||
}
|
||||
else {
|
||||
var new_href = new_image.src;
|
||||
}
|
||||
|
||||
|
||||
var new_extension = new_href.split('.').pop().toLowerCase();
|
||||
if (in_array(new_extension, image_extensions) == false) {
|
||||
if (current_image == 0) {
|
||||
hold_click = false;
|
||||
navigate_lightbox('next');
|
||||
}
|
||||
else if (current_image == (lightbox_images.length - 1)) {
|
||||
hold_click = false;
|
||||
navigate_lightbox('prev');
|
||||
}
|
||||
else {
|
||||
hold_click = false;
|
||||
navigate_lightbox(direction);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
new_thumbnail = new_image;
|
||||
|
||||
|
||||
|
||||
selected.removeClass('catablog-selected');
|
||||
jQuery(new_image).addClass('catablog-selected');
|
||||
|
||||
change_lightbox(new_thumbnail);
|
||||
}
|
||||
|
||||
|
||||
function close_lightbox() {
|
||||
unbindNavigationControls();
|
||||
|
||||
var fadeout_speed = 300;
|
||||
|
||||
jQuery('#catablog-curtain').fadeOut(fadeout_speed, function() {
|
||||
jQuery(this).remove();
|
||||
});
|
||||
jQuery('#catablog-lightbox').fadeOut(fadeout_speed, function() {
|
||||
jQuery(this).remove();
|
||||
});
|
||||
jQuery('.catablog-selected').removeClass('catablog-selected');
|
||||
}
|
||||
|
||||
|
||||
|
||||
function calculateMeta(row) {
|
||||
var row = jQuery(row);
|
||||
|
||||
if ((typeof js_i18n) == 'undefined') {
|
||||
var prev_tip = 'You may also press "P" or the left arrow on your keyboard';
|
||||
var next_tip = 'You may also press "N" or the right arrow on your keyboard';
|
||||
var close_tip = "Close LightBox Now";
|
||||
//
|
||||
var prev_label = "PREV";
|
||||
var next_label = "NEXT";
|
||||
var close_label = "CLOSE";
|
||||
}
|
||||
else {
|
||||
var prev_tip = ((typeof js_i18n.prev_tip) == 'undefined')? 'You may also press "P" or the left arrow on your keyboard' : js_i18n.prev_tip;
|
||||
var next_tip = ((typeof js_i18n.prev_tip) == 'undefined')? 'You may also press "N" or the right arrow on your keyboard' : js_i18n.next_tip;
|
||||
var close_tip = ((typeof js_i18n.prev_tip) == 'undefined')? 'Close LightBox Now' : js_i18n.close_tip;
|
||||
//
|
||||
var prev_label = ((typeof js_i18n.prev_tip) == 'undefined')? "PREV" : js_i18n.prev_label;
|
||||
var next_label = ((typeof js_i18n.prev_tip) == 'undefined')? "NEXT" : js_i18n.next_label;
|
||||
var close_label = ((typeof js_i18n.prev_tip) == 'undefined')? "CLOSE" : js_i18n.close_label;
|
||||
}
|
||||
|
||||
var prev_button = "<a href='#prev' id='catablog-lightbox-prev' class='catablog-nav' title='"+prev_tip+"'><span class='catablog-lightbox-nav-label'>"+prev_label+"</span></a>";
|
||||
var next_button = "<a href='#next' id='catablog-lightbox-next' class='catablog-nav' title='"+next_tip+"'><span class='catablog-lightbox-nav-label'>"+next_label+"</span></a>";
|
||||
var close_button = "<a href='#close' id='catablog-lightbox-close' class='catablog-nav' title='"+close_tip+"'>"+close_label+"</a>";
|
||||
|
||||
var meta = {};
|
||||
|
||||
var title = row.find('.catablog-title').html()
|
||||
var description = row.find('.catablog-description').html();
|
||||
|
||||
meta.title = (title == null)? "" : title;
|
||||
meta.description = (description == null)? "" : description;
|
||||
meta.buynow = "";
|
||||
meta.close = close_button;
|
||||
|
||||
meta.nav = "";
|
||||
|
||||
if (current_image < (lightbox_images.length - 1)) {
|
||||
meta.nav += next_button;
|
||||
}
|
||||
if (current_image > 0) {
|
||||
meta.nav += prev_button;
|
||||
}
|
||||
|
||||
return meta;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/******************************
|
||||
** SUPPORT METHODS
|
||||
******************************/
|
||||
function supportPositionFixed() {
|
||||
var isSupported = null;
|
||||
if (document.createElement) {
|
||||
var el = document.createElement('div');
|
||||
if (el && el.style) {
|
||||
el.style.position = 'fixed';
|
||||
el.style.top = '10px';
|
||||
var root = document.body;
|
||||
if (root && root.appendChild && root.removeChild) {
|
||||
root.appendChild(el);
|
||||
isSupported = (el.offsetTop === 10);
|
||||
root.removeChild(el);
|
||||
}
|
||||
}
|
||||
}
|
||||
return isSupported;
|
||||
}
|
||||
|
||||
function bindNavigationControls() {
|
||||
|
||||
// bind next and previous buttons
|
||||
jQuery('#catablog-lightbox-prev').bind('click', function(event) {
|
||||
navigate_lightbox('prev');
|
||||
return false;
|
||||
});
|
||||
|
||||
jQuery('#catablog-lightbox-next').bind('click', function(event) {
|
||||
navigate_lightbox('next');
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
// bind close button
|
||||
jQuery('#catablog-lightbox-close').bind('click', function(event) {
|
||||
close_lightbox();
|
||||
return false;
|
||||
});
|
||||
jQuery('#catablog-lightbox-close').bind('mouseenter', function(event) {
|
||||
jQuery(this).addClass('catablog-lightbox-close-hover');
|
||||
return false;
|
||||
});
|
||||
jQuery('#catablog-lightbox-close').bind('mouseleave', function(event) {
|
||||
jQuery(this).removeClass('catablog-lightbox-close-hover');
|
||||
return false;
|
||||
});
|
||||
jQuery(document).bind('mousemove', function(event) {
|
||||
var close_button = jQuery('#catablog-lightbox-close');
|
||||
|
||||
if (close_button.is(':hidden')) {
|
||||
close_button.css('zIndex', 10800);
|
||||
close_button.fadeIn(50);
|
||||
}
|
||||
else {
|
||||
hideCloseButtonTimer(close_button);
|
||||
}
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
// bind keyboard shortcuts
|
||||
jQuery(document).bind('keyup', function(event) {
|
||||
var key_code = (event.keyCode ? event.keyCode : event.which);
|
||||
|
||||
var forward_keycodes = [39, 78, 83];
|
||||
var back_keycodes = [37, 80, 65];
|
||||
var escape_keycodes = [27];
|
||||
|
||||
if (in_array(key_code, forward_keycodes)) {
|
||||
jQuery('#catablog-lightbox-next').click();
|
||||
}
|
||||
if (in_array(key_code, back_keycodes)) {
|
||||
jQuery('#catablog-lightbox-prev').click();
|
||||
}
|
||||
if (in_array(key_code, escape_keycodes)) {
|
||||
close_lightbox();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function unbindNavigationControls() {
|
||||
jQuery('#catablog-lightbox-prev').unbind('click');
|
||||
jQuery('#catablog-lightbox-next').unbind('click');
|
||||
jQuery('#catablog-lightbox-close').unbind('click');
|
||||
jQuery(document).unbind('mousemove');
|
||||
jQuery(document).unbind('keyup');
|
||||
|
||||
jQuery('#catablog-lightbox-close').fadeOut(200);
|
||||
}
|
||||
|
||||
function hideCloseButtonTimer(obj) {
|
||||
clearTimeout(timeout);
|
||||
timeout = setTimeout(function() {
|
||||
if (obj.hasClass('catablog-lightbox-close-hover')) {
|
||||
hideCloseButtonTimer(obj);
|
||||
}
|
||||
else {
|
||||
obj.fadeOut(200);
|
||||
}
|
||||
}, 1500);
|
||||
}
|
||||
|
||||
function in_array (needle, haystack, argStrict) {
|
||||
var key = '', strict = !!argStrict;
|
||||
|
||||
if (strict) {
|
||||
for (key in haystack) {
|
||||
if (haystack[key] === needle) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for (key in haystack) {
|
||||
if (haystack[key] == needle) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return this;
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
|
||||
@ -1,119 +0,0 @@
|
||||
<?php
|
||||
|
||||
class CataBlogDirectory {
|
||||
private $filearray = array();
|
||||
private $directory = "";
|
||||
|
||||
|
||||
public function __construct($directory) {
|
||||
$this->directory = $directory;
|
||||
$d = "";
|
||||
if (is_dir($directory)) {
|
||||
$d = opendir($directory) or exit(__("Could not open directory.", 'catablog'));
|
||||
while (false !== ($f=readdir($d))) {
|
||||
if (is_file("$directory/$f")) {
|
||||
if (substr($f, 0, 1) != '.') {
|
||||
$this->filearray[] = $f;
|
||||
}
|
||||
}
|
||||
}
|
||||
closedir($d);
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public function isDirectory() {
|
||||
return is_dir($this->directory);
|
||||
}
|
||||
|
||||
public function getFileArray() {
|
||||
return $this->filearray;
|
||||
}
|
||||
|
||||
public function indexOrder() {
|
||||
sort($this->filearray);
|
||||
}
|
||||
|
||||
public function naturalCaseInsensitiveOrder() {
|
||||
natcasesort($this->filearray);
|
||||
}
|
||||
|
||||
public function getCount() {
|
||||
return count($this->filearray);
|
||||
}
|
||||
|
||||
public function getDirectorySize() {
|
||||
$filesize = 0;
|
||||
foreach ($this->filearray as $file) {
|
||||
$filesize = $filesize + filesize($this->directory . "/$file");
|
||||
}
|
||||
|
||||
return $filesize;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function checkAllImages() {
|
||||
$bln = true;
|
||||
$extension = "";
|
||||
$types = array("jpg", "jpeg", "gif", "png");
|
||||
foreach ($this->filearray as $key => $value) {
|
||||
$extension = substr($value, (strrpos($value, ".") + 1));
|
||||
$extension = strtolower($extension);
|
||||
if (!in_array($extension, $types)) {
|
||||
$bln = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return $bln;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function checkAllSpecificType($extension) {
|
||||
$extension = strtolower($extension);
|
||||
$bln = true;
|
||||
$ext = "";
|
||||
foreach ($this->filearray as $key => $value) {
|
||||
$ext = substr($value, (strrpos($value, ".") + 1));
|
||||
$ext = strtolower($ext);
|
||||
if ($extension != $ext) {
|
||||
$bln = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return $bln;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function filter($extension) {
|
||||
$extension = strtolower($extension);
|
||||
foreach ($this->filearray as $key => $value) {
|
||||
$ext = substr($value, (strrpos($value, ".") + 1));
|
||||
$ext = strtolower($ext);
|
||||
if ($ext != $extension) {
|
||||
unset($this->filearray[$key]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function removeFilter() {
|
||||
unset($this->filearray);
|
||||
$d = "";
|
||||
$d = opendir($this->directory) or exit(__("Could not open directory.", 'catablog'));
|
||||
while (false !== ($f = readdir($d))) {
|
||||
if (is_file("$this->directory/$f")) {
|
||||
$this->filearray[] = $f;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -1,112 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* CataBlog Media Upload script
|
||||
*
|
||||
* @package CataBlog
|
||||
* @author Zachary Segal
|
||||
*/
|
||||
|
||||
/**
|
||||
* This variable is an override for the absolute path
|
||||
* to your WordPress directory on your server. If someone
|
||||
* has customized the location of wp-content, please make
|
||||
* sure to set this variable accordingly
|
||||
*
|
||||
* example: '/var/www/wordpress/';
|
||||
*/
|
||||
$WP_ABS_PATH = '/var/www/wordpress';
|
||||
|
||||
|
||||
/** WordPress Administration Bootstrap */
|
||||
define('WP_ADMIN', true);
|
||||
if ( !defined('WP_LOAD_PATH') ) {
|
||||
/** standard path for wordpress base folder */
|
||||
$default = dirname(dirname(dirname(dirname(dirname(__FILE__))))) . '/' ;
|
||||
|
||||
if (file_exists( $default . 'wp-load.php') )
|
||||
define( 'WP_LOAD_PATH', $default);
|
||||
else
|
||||
if (file_exists( $WP_ABS_PATH . 'wp-load.php') )
|
||||
define( 'WP_LOAD_PATH', $WP_ABS_PATH);
|
||||
else
|
||||
die("<li class='error'>Cannot locate wp-load.php. Please read more at <a href='http://catablog.illproductions.com' target='_blank'>catablog.illproductions.com</a></li>");
|
||||
}
|
||||
|
||||
// let's load WordPress
|
||||
require_once( WP_LOAD_PATH . 'wp-load.php');
|
||||
|
||||
// Flash often fails to send cookies with the POST or upload, so we need to pass it in GET or POST instead
|
||||
if ( is_ssl() && empty($_COOKIE[SECURE_AUTH_COOKIE]) && !empty($_REQUEST['auth_cookie']) )
|
||||
$_COOKIE[SECURE_AUTH_COOKIE] = $_REQUEST['auth_cookie'];
|
||||
elseif ( empty($_COOKIE[AUTH_COOKIE]) && !empty($_REQUEST['auth_cookie']) )
|
||||
$_COOKIE[AUTH_COOKIE] = $_REQUEST['auth_cookie'];
|
||||
if ( empty($_COOKIE[LOGGED_IN_COOKIE]) && !empty($_REQUEST['logged_in_cookie']) )
|
||||
$_COOKIE[LOGGED_IN_COOKIE] = $_REQUEST['logged_in_cookie'];
|
||||
|
||||
|
||||
unset($current_user);
|
||||
|
||||
|
||||
require_once( ABSPATH . '/wp-admin/admin.php');
|
||||
|
||||
|
||||
header('Content-Type: text/plain; charset='.get_option('blog_charset'));
|
||||
|
||||
|
||||
if (!is_user_logged_in()) {
|
||||
die("<li class='error'>".__('Login failure. You must be logged into the WordPress Admin section.', 'catablog')."</li>");
|
||||
}
|
||||
|
||||
if ( !current_user_can('edit_posts')) {
|
||||
die("<li class='error'>".__('Your Admin account does not have permission to "edit_posts".', 'catablog')."</li>");
|
||||
}
|
||||
|
||||
check_admin_referer('catablog_swfupload');
|
||||
|
||||
global $wp_plugin_catablog_class;
|
||||
|
||||
$tmp_name = $_FILES['Filedata']['tmp_name'];
|
||||
$_FILES['new_image'] = $_FILES['Filedata'];
|
||||
if (strlen($tmp_name) < 1) {
|
||||
die("<li class='error'>".__('Image could not be uploaded to the server, please try again.', 'catablog')."</li>");
|
||||
}
|
||||
|
||||
$new_item = new CataBlogItem();
|
||||
$valid_image = $new_item->validateImage($tmp_name);
|
||||
if ($valid_image === true) {
|
||||
$new_item_title = $_FILES['Filedata']['name'];
|
||||
$new_item_title = preg_replace('/\.[^.]+$/','',$new_item_title);
|
||||
$new_item_title = str_replace(array('_','-','.'), ' ', $new_item_title);
|
||||
$new_item_order = wp_count_posts($new_item->custom_post_name)->publish + 1;
|
||||
|
||||
$new_item->setOrder($new_item_order);
|
||||
$new_item->setTitle($new_item_title);
|
||||
|
||||
$new_item->setImage($tmp_name);
|
||||
$new_item->setSubImages(array());
|
||||
|
||||
$default_term = $wp_plugin_catablog_class->get_default_term();
|
||||
$new_item->setCategories(array($default_term->term_id=>$default_term->name));
|
||||
|
||||
$new_item->save();
|
||||
|
||||
$html = "<li>";
|
||||
|
||||
$html .= "<div class='button-elements'>";
|
||||
$html .= "<img src='".$wp_plugin_catablog_class->urls['thumbnails'] . '/' . $new_item->getImage()."' />";
|
||||
$html .= "</div>";
|
||||
|
||||
$html .= "<div class='text-elements'>";
|
||||
$html .= "<input type='text' name='title' class='title' value='".$new_item->getTitle()."' />";
|
||||
$html .= "<input type='hidden' name='id' class='id' value='".$new_item->getId()."' />";
|
||||
$html .= "<textarea name='description' class='description'>".$new_item->getDescription()."</textarea>";
|
||||
$html .= "<input type='button' class='button-primary' name='submit' value='".__('Save Changes', 'catablog')."' />";
|
||||
$html .= "</div>";
|
||||
|
||||
$html .= "</li>";
|
||||
|
||||
die($html);
|
||||
}
|
||||
else {
|
||||
die("<li class='error'>".$valid_image."</li>");
|
||||
}
|
||||
@ -1,339 +0,0 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Lesser General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this
|
||||
when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) year name of author
|
||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, the commands you use may
|
||||
be called something other than `show w' and `show c'; they could even be
|
||||
mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1989
|
||||
Ty Coon, President of Vice
|
||||
|
||||
This General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License.
|
||||
@ -1,17 +0,0 @@
|
||||
This file contains instructions and information for people who want to translate CataBlog into another local.
|
||||
|
||||
Please read this page to learn how to translate a file
|
||||
http://codex.wordpress.org/Translating_WordPress
|
||||
|
||||
The included catablog.po file should be duplicated and renamed with the appropriate localization suffix.
|
||||
|
||||
When you are done, please email me the translated PO and MO files.
|
||||
|
||||
Please feel free to contact me with questions or send me your translation files, so I may integrate it into the next version of CataBlog.
|
||||
http://www.illproductions.com/contact/
|
||||
|
||||
|
||||
|
||||
Thanks for your support,
|
||||
|
||||
macguru2000
|
||||
@ -1,294 +0,0 @@
|
||||
=== CataBlog ===
|
||||
Contributors: macguru2000
|
||||
Donate link: http://catablog.illproductions.com/donate/
|
||||
Tags: plugin, admin, image, images, posts, Post, links, catalog, gallery, portfolio, product catalog, discography, library, collection, store, organize, media, photo, thumbnail, product, listing, list, BuddyPress, ecommerce, Spanish, German, Swedish
|
||||
Requires at least: 3.1
|
||||
Tested up to: 3.2
|
||||
Stable tag: 1.2.9.7
|
||||
|
||||
CataBlog is a comprehensive and effortless tool that allows you to create catalogs, stores and galleries for your blog.
|
||||
|
||||
== Description ==
|
||||
|
||||
CataBlog allows you to catalog pretty much anything you would want and share it through your blog in a simple but elegant gallery. Upload images, give them titles, links, descriptions and then save them into your catalog. Use categories to organize and filter your catalog items into multiple different catalogs. Show off your photos in high resolution with the LightBox effect, perfect for simple galleries. Easy, intuitive and smart design makes it trivial to keep track of all your different catalogs and create amazing e-stores, galleries, lists and more.
|
||||
|
||||
PLEASE DO NOT EMAIL ME DIRECTLY
|
||||
|
||||
Instead post your questions and comments on the appropriate forums. If you have a technical support question, please [write a new topic](http://wordpress.org/tags/catablog?forum_id=10#postform "Create new support thread for CataBlog") on the wordpress.org forums. If you want to join the discussion and suggest new features or development paths, feel free to comment on relevant posts at the [blog](http://catablog.illproductions.com/ "catablog.illproductions.com"). You may also contribute to the community on the [facebook page](http://www.facebook.com/pages/CataBlog/183454038341567 "CataBlog Facebook Page").
|
||||
|
||||
Highlighted Features:
|
||||
|
||||
* Generate individual and category pages for your entire catalog.
|
||||
* Filter by multiple categories with one ShortCode.
|
||||
* Localized for Spanish, Swedish and German.
|
||||
* Sort your catalog by order, title, date or randomly.
|
||||
* Add multiple images to a catalog item.
|
||||
* Control exactly how your catalog HTML code is rendered.
|
||||
* Import and Export your catalog in XML and CSV formats.
|
||||
* Compatible with WordPress MultiSite and Network Activation.
|
||||
* Upload images with FTP and automatically import new files into the catalog.
|
||||
* The Options Page is well organized and supports many configurable settings.
|
||||
* Easy management of your catalog with superiorly designed admin controls.
|
||||
|
||||
Please remember that CataBlog is written, maintained, supported and documented by Zachary Segal. CataBlog is free software, and as such comes with absolutely no warranty or guarantee of service. Please feel free to visit http://catablog.illproductions.com and http://www.illproductions.com for more information about CataBlog and Zachary anytime.
|
||||
|
||||
== Installation ==
|
||||
|
||||
1. Make sure your server is running `PHP 5` or better and has the `GD` extension.
|
||||
1. Upload `catablog` to the `/wp-content/plugins/` directory.
|
||||
1. Activate the plugin through the `Plugins` menu in WordPress.
|
||||
1. If you want you may also network activate CataBlog.
|
||||
1. Create catalog items by uploading image files.
|
||||
1. Sprinkle the `[catablog]` [Shortcode](http://codex.wordpress.org/Shortcode_API "The Shortcode API") throughout your blog to show your catalog.
|
||||
1. You may also use the template tag, which operates similarly to the Shortcode: `<?php catablog_show_items($cat, $template, $sort, $order, $operator); ?>`
|
||||
|
||||
== Frequently Asked Questions ==
|
||||
|
||||
= Where is the documentation =
|
||||
|
||||
[Click Here](http://catablog.illproductions.com/documentation/introduction-and-installation/ "CataBlog Documentation") for the official documentation.
|
||||
|
||||
= Something is broken, how can I get help =
|
||||
|
||||
1. Read all the documentation at the [official blog](http://catablog.illproductions.com/ "catablog.illproductions.com"), this does get updated so check back frequently.
|
||||
1. [Create a new thread](http://wordpress.org/tags/catablog?forum_id=10#postform "Create new support thread for CataBlog") on the wordpress.org forums and make sure to tag it with catablog.
|
||||
1. Search the [official blog](http://catablog.illproductions.com/ "catablog.illproductions.com") for a post that is relevant to your question and write a comment with your question.
|
||||
|
||||
= What browsers do you support =
|
||||
|
||||
The CataBlog Admin section is made and tested to work best with these browsers:
|
||||
|
||||
1. Internet Explorer 9
|
||||
1. FireFox 4
|
||||
1. Safari 5
|
||||
1. Chrome 11
|
||||
1. JavaScript should be enabled for full support.
|
||||
|
||||
The CataBlog LightBox and Templates are tested to work in these browsers:
|
||||
|
||||
1. Internet Explorer 6, 7, 8 and 9
|
||||
1. Firefox 2, 3 and 4
|
||||
1. Safari and Chrome
|
||||
1. JavaScript must be enabled for LightBox support.
|
||||
|
||||
= I installed CataBlog, now where is it? =
|
||||
|
||||
Look for CataBlog in your WordPress Admin Menu on the bottom, underneath the Settings section.
|
||||
|
||||
= How do I add a new item to my catalog? =
|
||||
|
||||
Login to the Admin Panel of your WordPress blog and go to the CataBlog section by clicking its icon below the Settings section. Now you can click "Add New" next to the page title or in the CataBlog menu itself.
|
||||
|
||||
= How do I customize my catalog's layout? =
|
||||
|
||||
You can easily override CataBlog's CSS classes to create your own design and easily incorporate CataBlog into your site's layout. The recommended way to do this would be to create a catablog.css style file in your theme's directory and add your CSS override code in there. Read more about it at http://catablog.illproductions.com/documentation/displaying-your-catalog-in-posts/.
|
||||
|
||||
= Where can I learn more about CataBlog? =
|
||||
|
||||
Go to http://catablog.illproductions.com, it is a place to learn and share more about your experiences with CataBlog.
|
||||
|
||||
== Screenshots ==
|
||||
|
||||
1. Use the list view for a bird's eye of the entire catalog.
|
||||
2. Use the grid view for bigger thumbnails and easier sorting.
|
||||
3. Easy and familiar forms for making and editing catalog items.
|
||||
4. Turn your catalog into a photo gallery using custom templates.
|
||||
5. Display your catalog photos in high resolution with the LightBox.
|
||||
6. CataBlog is now localized for Español.
|
||||
|
||||
== Changelog ==
|
||||
|
||||
= 1.2.9.7 =
|
||||
* Fix: Multiple file uploads should not give 404 errors with certain WordPress setups.
|
||||
* Fix: Only loads the flash upload javascript libraries when needed.
|
||||
|
||||
= 1.2.9.6 =
|
||||
* Fix: Better error reporting for flash upload.
|
||||
|
||||
= 1.2.9.5 =
|
||||
* New: Upload multiple files (JavaScript and Flash required).
|
||||
* Fix: %PERMALINK% token now works.
|
||||
|
||||
= 1.2.9.2 =
|
||||
* Fix: Swedish localization updated.
|
||||
|
||||
= 1.2.9.1 =
|
||||
* Fix: Individual and CataBlog category pages now apply WordPress filters on the description if enabled.
|
||||
* Fix: CataBlog Option tabs have been enlarged for German language.
|
||||
* Fix: German localization updated.
|
||||
|
||||
= 1.2.9 =
|
||||
* New: Public Catalog Items: create individual and category pages for your entire catalog.
|
||||
* New: Screen Options for the Library page give users control over pagination and visible data.
|
||||
* New: Add CataBlog menu to the WordPress Admin Bar.
|
||||
* New: Preliminary contextual help added through out the plugins Admin panels.
|
||||
* New: New template function to get a single catalog item by id, catablog_get_item($id).
|
||||
* New: German localization.
|
||||
* Fix: Setting or not setting the category parameter in the Shortcode should behave as expected.
|
||||
* Fix: %TITLE-LINK% token now includes the title target and relationship settings.
|
||||
* Fix: %LINK-TARGET% and %LINK-REL% tokens work once again.
|
||||
* Fix: Image uploads no longer append a timestamp to the file name.
|
||||
* Fix: Your theme's catablog.css file is once again automatically loaded.
|
||||
* Fix: CataBlog class should no longer load if PHP is not at least version 5.
|
||||
|
||||
= 1.2.8 =
|
||||
* Fix: Category filter is better checked before being attached to the catalog query.
|
||||
* New: CataBlog Admin Library limits results to 20 catalog items at a time with pagination.
|
||||
* New: %CATEGORY% token added for listing which categories a catalog item is in.
|
||||
* New: %CATEGORY-SLUGS% token added to be used as category specific CSS classes.
|
||||
* Fix: %DATE% token is now rendered in the blogs set date format.
|
||||
* New: %TIME% token added for displaying the current catalog item's creation time.
|
||||
* Fix: Minor UI tweaks, enhancements and localization file updated with new strings.
|
||||
* New: Works with WordPress 3.2 beta 1.
|
||||
|
||||
= 1.2.7.1 =
|
||||
* New: Swedish localization added
|
||||
|
||||
= 1.2.7 =
|
||||
* New: Bulk Edit Item Categories.
|
||||
* New: The PHP MultiByte String Library is no longer necessary to run CataBlog, but still recommended.
|
||||
* New: Replace reset action with remove, allowing for an easy way to uninstall CataBlog.
|
||||
* Fix: All Admin actions that edit your catalog now check for a security nonce.
|
||||
* Fix: CSV Export no longer adds an extra header for the nonexistent id column.
|
||||
* Fix: %MAIN-IMAGE% token will always be linked to its larger size image if the LightBox is enabled.
|
||||
* Fix: %TITLE-LINK% token is now replaced correctly and in used in the default template.
|
||||
* Fix: Refactored activation, installation and upgrade methods.
|
||||
* Fix: LightBox console does not interfere with Internet Explorer browser.
|
||||
* Fix: LightBox will attempt to load the original upload if the rendered image request returns not found.
|
||||
* Fix: jQuery selector for the LightBox reverts to .catablog-image if empty.
|
||||
* Fix: Incrementally better JavaScript performance in the Admin Panels.
|
||||
|
||||
= 1.2.6 =
|
||||
* Fix: All plugin URLs will now be secure connections if the main page is securely loaded.
|
||||
* Fix: Removed die() function from plugin completely, so changing your server configurations won't break your entire site in some fringe cases.
|
||||
* Fix: Refactored the plugin activation function so it is more reliable.
|
||||
* New: Plugin version number is now saved in your database to help the plugin update itself.
|
||||
|
||||
= 1.2.5.3 =
|
||||
* Fix: Moved the PHP 5 requirement check out of the CataBlog class, allowing proper checking.
|
||||
* Fix: Removed a deprecated token from the built in gallery template.
|
||||
* Fix: Removed the catablog.pot file and instead will include a catablog.po file to be duplicated and translated.
|
||||
* New: The entire CataBlog collection is now labeled 'Library' in the admin menu.
|
||||
* New: Modified the installation instructions to include the server requirements.
|
||||
|
||||
= 1.2.5.2 =
|
||||
* Fix: Fixed display of gallery template, especially in themes that have a #content element.
|
||||
* Fix: CSS tweaks, still trying to make this as compatible as possible.
|
||||
|
||||
= 1.2.5.1 =
|
||||
* Fix: Thumbnail in the edit catalog item form is now resized properly.
|
||||
* Fix: Added a missing CSS class for img.catablog-image
|
||||
* Fix: Fixed the CSS classes for sub images in the default template.
|
||||
* Fix: The inline Stylesheet classes now have #content to help CSS overrides in certain themes.
|
||||
* Fix: The LightBox check if the file extension is an image is no longer case sensitive.
|
||||
* Fix: Secondary images now link to the proper full size images.
|
||||
* Fix: The function for theme developers now has the new shortcode parameters.
|
||||
|
||||
= 1.2.5 =
|
||||
* Important: Requires WordPress 3.1 or better.
|
||||
* Important: Removed drag and drop reordering and exposed the order value for each catalog item.
|
||||
* New: CataBlog ShortCode now supports multiple categories separated by commas.
|
||||
* New: CataBlog ShortCode has a new operator parameter for querying categories.
|
||||
* New: Sort your catalog by order, date, title or randomly.
|
||||
* New: CataBlog ShortCode has sorting parameters.
|
||||
* New: CataBlog ShortCode has a template parameter for overriding the system template.
|
||||
* New: All messages and language may now be localized with included POT file.
|
||||
* New: Preliminary Spanish localization included.
|
||||
* New: Added Date field to the edit catalog item form.
|
||||
* Fix: Removed restrictions on foreign characters for the category name.
|
||||
* Fix: If image_rotate() is not an available function then CataBlog will not use it.
|
||||
* Fix: Thumbnail backgrounds are now filled with a rectangle for better system compatibility.
|
||||
* Fix: The Admin menu position of CataBlog no longer will conflict with certain setups.
|
||||
* Fix: Removed all !important declarations from the catablog.css file.
|
||||
* Fix: Optimized the templates for better theme compatibility.
|
||||
* Fix: Optimized the edit catalog item form for multiple languages.
|
||||
* Fix: When the link field is empty the %LINK% token will now return the full size image instead of #empty-link.
|
||||
* Fix: LightBox is now designed to work best with anchor tags instead of image tags.
|
||||
* Fix: You may now enable the LightBox library and the full size image rendering separately.
|
||||
* Fix: You may change the jQuery selector used to find the LightBox images.
|
||||
* Fix: Optimized front end CSS, instead of inline styles a stylesheet is generated in your pages head tag.
|
||||
|
||||
= 1.2 =
|
||||
* New: Upload multiple images per catalog item now.
|
||||
* New: Template HTML code uses a new catablog-images-column class to group images.
|
||||
* New: Next and previous catalog item links in the edit panel.
|
||||
* Fix: Import and export work better and give more feedback.
|
||||
* Fix: When deleting items your catalog order is now re-indexed properly.
|
||||
* Fix: CSS classes for front end are more verbose and flexible.
|
||||
* Fix: ShortCode Category attribute is not case sensitive.
|
||||
* Fix: Change order button is disabled when viewing a specific category because it didn't work.
|
||||
* Fix: New 'Uncategorized' default category for all new items.
|
||||
|
||||
= 1.1.9 =
|
||||
* Fix: Import no longer makes a sub image when the subimages field is empty.
|
||||
* Fix: Category filter now finds the category slug for the passed in category name.
|
||||
* Fix: New categories made by import or manually will all have a common prefix in their slug.
|
||||
* Fix: Clear database when importing should always delete all catalog items now.
|
||||
|
||||
= 1.1.8 =
|
||||
* Fix: Lots and lots of testing, hopefully everything is a little more stable.
|
||||
* Fix: Database query reduction and optimization across application.
|
||||
* Fix: Categories are now consistently set throughout entire plugin.
|
||||
* Fix: Category slugs should now be completely unique, preventing taxonomy conflicts.
|
||||
* Fix: Code cleaned up and removed old database upgrade methods.
|
||||
* Fix: Various user interface enhancements and bug fixes.
|
||||
|
||||
= 1.1.7 =
|
||||
* Fix: Single site versions of WordPress may now upload sub images.
|
||||
* Fix: Reduced database load on frontend rendering.
|
||||
|
||||
= 1.1.6 =
|
||||
* Fix: Better multiple image per catalog item support.
|
||||
* Fix: catablog-image CSS class reverted to stop upgrade bugs.
|
||||
* Fix: Default template reverted to stop upgrade bugs and new subimages template added.
|
||||
* Fix: Optimized next and previous item links in edit panel.
|
||||
* Fix: Long item descriptions are truncated in the admin list view.
|
||||
* Fix: Successful form submissions now forwards you to the appropriate url.
|
||||
* Fix: Lazy loaded thumbnail images in admin list view refined.
|
||||
* Fix: Better file upload validation and error messages.
|
||||
* New: List view now renders the description in html
|
||||
* New: Template drop down menus now lists all files in the directory.
|
||||
|
||||
= 1.1.5 =
|
||||
* New: Added multiple image per catalog item support.
|
||||
* New: Thumbnail images in the admin list view are now lazy loaded.
|
||||
* New: Navigation controls in the admin edit panel.
|
||||
* Fix: Rendering thumbnail and fullsize images are now separate threads.
|
||||
|
||||
= 1.1 =
|
||||
* New: Added CSV (comma separated values) support for importing and exporting catalog data.
|
||||
|
||||
= 1.0.2 =
|
||||
* New: New grid template default for showing product grids that use the item's link.
|
||||
* New: Title link relationship field now in title options.
|
||||
* New: Support for inserting tab characters into the template code.
|
||||
* New: Only load CataBlog frontend JavaScript and CSS on pages with the shortcode.
|
||||
* New: Thumbnail preview now has an image in options panel.
|
||||
* Fix: Updated gallery template default to link to the full size image.
|
||||
* Fix: Title link target attribute is now free form text in title options.
|
||||
|
||||
= 1.0.1 =
|
||||
* New: Added %IMAGE-FULLSIZE% token to the HTML template feature.
|
||||
|
||||
= 1.0 =
|
||||
* New: Rescan the originals folder for new images to add to the database.
|
||||
* New: Category filter in the CataBlog Admin Panel for quick filter previews.
|
||||
* New: Grid mode for easier resorting and photo gallery usages.
|
||||
* New: Bulk selection of items for the delete function.
|
||||
* Fix: Small interface bugs in LightBox when using an old browser.
|
||||
|
||||
== Upgrade Notice ==
|
||||
|
||||
= 1.2.5 =
|
||||
|
||||
LightBox JavaScript Library was upgraded, please upgrade your template code accordingly.
|
||||
http://catablog.illproductions.com for more information and specifics.
|
||||
|
||||
= 1.2 =
|
||||
|
||||
Category name and slug bug was fixed in this version, you may want to export and reimport after upgrading.
|
||||
http://catablog.illproductions.com for more information and specifics.
|
||||
|
||||
= 0.9.5 =
|
||||
|
||||
WARNING: Complete removal of all database manipulation code from CataBlog. This is very good, as all data storage and retrieval will be delegated by built in WordPress functions. To upgrade you will be required to Export and then Import your catalog data. After a successful Import, you may remove the old data from your database in the CataBlog > Options > Systems section . You should leave the images folder alone, as nothing much has changed when it comes to uploads and storage.
|
||||
|
Before Width: | Height: | Size: 52 KiB |
|
Before Width: | Height: | Size: 57 KiB |
|
Before Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 88 KiB |
|
Before Width: | Height: | Size: 71 KiB |
|
Before Width: | Height: | Size: 50 KiB |
@ -1,14 +0,0 @@
|
||||
<div class="wrap">
|
||||
|
||||
<div id="icon-catablog" class="icon32"><br /></div>
|
||||
<h2><?php _e('CataBlog Item Not Found', 'catablog'); ?></h2>
|
||||
|
||||
<?php $this->render_catablog_admin_message() ?>
|
||||
|
||||
<p><?php _e("You attempted to edit an item that doesn't exist. Perhaps it was deleted?", 'catablog'); ?></p>
|
||||
<ul>
|
||||
<li><strong><?php _e("Go To:", 'catablog'); ?></strong></li>
|
||||
<li><a href="admin.php?page=catablog"><?php _e("CataBlog Library", 'catablog'); ?></a></li>
|
||||
<li><a href="index.php"><?php _e("Dashboard", 'catablog'); ?></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -1,50 +0,0 @@
|
||||
<div class="wrap">
|
||||
|
||||
<div id="icon-catablog" class="icon32"><br /></div>
|
||||
<h2><?php _e("About CataBlog", 'catablog'); ?></h2>
|
||||
|
||||
<?php $this->render_catablog_admin_message() ?>
|
||||
|
||||
<p>
|
||||
<?php printf(__("%sCataBlog%s is written by %sZachary Segal%s in his spare time.", "catablog"),"<a href='http://catablog.illproductions.com/' target='_blank'>", "</a>", "<a href='http://catablog.illproductions.com/about-author/' target='_blank'>", "</a>"); ?>
|
||||
<?php printf(__('It is a cataloging tool for %sWordPress%s that allows you to easily manage a list of items with automatically generated thumbnail images.', "catablog"), "<a href='http://wordpress.org' target='_blank'>", "</a>"); ?>
|
||||
<?php printf(__('Use of CataBlog is completely free, even commercial sites for now, all that I ask is that you rate the plugin at the %sWordPress Plugin Repository%s.', "catablog"), "<a href='http://wordpress.org/extend/plugins/catablog/' target='_blank'>", "</a>"); ?>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<?php printf(__("%sCSS Modifications:%s You may always override CataBlog's CSS settings to create custom looks. If you make a catablog.css file in your active theme's directory it will be automatically loaded and applied. This makes it easy to prepare your custom theme for CataBlog integration and will also protect your customization for future version to come.", 'catablog'), "<strong>", "</strong>"); ?>
|
||||
</p>
|
||||
|
||||
<table class="catablog_stats wide" cellspacing="5">
|
||||
<thead>
|
||||
<tr><td colspan="2"><h3><strong><?php _e("Server Statistics", 'catablog'); ?></strong></h3></td></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($stats as $label => $value): ?>
|
||||
<tr>
|
||||
<?php $transformed_label = str_replace("_", " ", $label) . ":" ?>
|
||||
<td><strong><?php _e($transformed_label, 'catablog'); ?></strong></td>
|
||||
<td><?php echo $value ?></td>
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
// CataBlog About Panel System Versions and Info Labels
|
||||
__('CataBlog Version:');
|
||||
__('MySQL Version:');
|
||||
__('PHP Version:');
|
||||
__('PHP Memory Usage:');
|
||||
__('PHP Memory Limit:');
|
||||
__('Max Uploaded File Size:');
|
||||
__('Max Post size:');
|
||||
__('Thumbnail Disc Usage:');
|
||||
__('Full Size Disc Usage:');
|
||||
__('Original Upload Disc Usage:');
|
||||
__('Total Disc Usage:');
|
||||
|
||||
?>
|
||||
@ -1,86 +0,0 @@
|
||||
<?php
|
||||
|
||||
|
||||
switch ($screen) {
|
||||
|
||||
|
||||
case 'toplevel_page_catablog':
|
||||
|
||||
if (isset($_GET['id'])) {
|
||||
$message = "<p>";
|
||||
$message .= __("You may edit your catalog entry as you see fit in this panel.", "catablog") . " ";
|
||||
$message .= __("Notice that the description accepts HTML code. This makes it easy to refine your catalog layout inside your description.", "catablog") . " ";
|
||||
$message .= "</p>";
|
||||
}
|
||||
else {
|
||||
$message = "<p>";
|
||||
$message .= __("CataBlog is a comprehensive and easy to use cataloging system for WordPress. ", "catablog");
|
||||
$message .= "<p>";
|
||||
$message .= __("Get started by making your first catalog item, click the <strong>Add New</strong> button near the page title. ", "catablog");
|
||||
$message .= "</p>";
|
||||
$message .= "<p>";
|
||||
$message .= sprintf(__("You may learn more about CataBlog at %scatablog.illproductions.com%s. ", "catablog"), "<a href='http://catablog.illproductions.com/' target='_blank'>", "</a>");
|
||||
$message .= "</p>";
|
||||
$message .= "<p>";
|
||||
$message .= sprintf(__("A lot of time and effort has gone into creating this plugin, %splease donate%s to Zach and help the continued development of CataBlog.", "catablog"), "<a href='http://catablog.illproductions.com/donate/' target='_blank'>", "</a>");
|
||||
$message .= "</p>";
|
||||
}
|
||||
echo $message;
|
||||
break;
|
||||
|
||||
|
||||
case 'catablog_page_catablog-upload':
|
||||
$message = "<p>";
|
||||
$message .= __("To create a new catalog entry first upload an image by selecting a file and then clicking the upload button. ", "catablog");
|
||||
$message .= __("After the upload is successful a new catalog entry will be generated with the name of the file you uploaded. ", "catablog");
|
||||
$message .= "</p>";
|
||||
echo $message;
|
||||
break;
|
||||
|
||||
|
||||
|
||||
case 'catablog_page_catablog-options':
|
||||
$message = "<p>";
|
||||
$message .= __("CataBlog offer many options that let you modify your catalog and its appearance.", "catablog");
|
||||
$message .= "</p>";
|
||||
echo $message;
|
||||
break;
|
||||
|
||||
|
||||
case 'catablog_page_catablog-about':
|
||||
$message = "<p>";
|
||||
$message .= __("Please make sure to support the plugin author by donating.", "catablog");
|
||||
$message .= "</p>";
|
||||
echo $message;
|
||||
break;
|
||||
|
||||
|
||||
case 'admin_page_catablog-rescan-images':
|
||||
$message = "<p>";
|
||||
$message .= __("Your CataBlog originals upload folder is being scanned for any files that are not currently in the database.", "catablog");
|
||||
$message .= "</p>";
|
||||
echo $message;
|
||||
break;
|
||||
|
||||
|
||||
case 'admin_page_catablog-regenerate-images':
|
||||
$message = "<p>";
|
||||
$message .= __("CataBlog is regenerating all the images in the CataBlog thumbnail and LightBox folders.", "catablog");
|
||||
$message .= "</p>";
|
||||
echo $message;
|
||||
break;
|
||||
|
||||
|
||||
case 'admin_page_catablog-remove':
|
||||
$message = "<p>";
|
||||
$message .= __("CataBlog is being completely removed, afterwards you may go back to the library view to reinstall the default settings.", "catablog");
|
||||
$message .= __("If you wish to completely remove CataBlog, do not go to the library view, instead disable CataBlog after this is complete.", "catablog");
|
||||
$message .= "</p>";
|
||||
echo $message;
|
||||
break;
|
||||
|
||||
default:
|
||||
echo $contextual_help;
|
||||
|
||||
|
||||
}
|
||||
@ -1,24 +0,0 @@
|
||||
<div class="wrap">
|
||||
|
||||
<div id="icon-catablog" class="icon32"><br /></div>
|
||||
<h2><?php _e('Storage Space Full!', 'catablog'); ?></h2>
|
||||
|
||||
<?php $this->render_catablog_admin_message() ?>
|
||||
|
||||
<p>
|
||||
<?php _e("CataBlog can't make a new entry because your site has run out of storage space.", 'catablog'); ?>
|
||||
</p>
|
||||
<p>
|
||||
<?php $current_usage = round((get_dirsize(BLOGUPLOADDIR) / 1024 / 1024), 2); ?>
|
||||
<?php sprintf(_e('You are currently using %sMB of %sMB of storage space.', 'catablog'), $current_usage, get_space_allowed()); ?>
|
||||
</p>
|
||||
<p>
|
||||
<?php _e('Please talk to your WordPress Administrator to have more space allocated to your site or delete some previous uploaded content.', 'catablog'); ?>
|
||||
</p>
|
||||
<ul>
|
||||
<li><strong><?php _e('Go To:', 'catablog'); ?></strong></li>
|
||||
<li><a href="index.php"><?php _e('Dashboard', 'catablog'); ?></a></li>
|
||||
<li><a href="upload.php"><?php _e('Media', 'catablog'); ?></a></li>
|
||||
<li><a href="admin.php?page=catablog"><?php _e('CataBlog', 'catablog'); ?></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -1,28 +0,0 @@
|
||||
<?php echo '<?xml version="1.0" encoding="UTF-8" ?>' ?>
|
||||
|
||||
<catablog_items date="<?php echo date('Y-m-d') ?>" time="<?php echo date('H:i:s') ?>">
|
||||
|
||||
<?php foreach ($results as $result): ?>
|
||||
<item>
|
||||
<image><![CDATA[<?php echo $result->getImage() ?>]]></image>
|
||||
<subimages>
|
||||
<?php foreach ($result->getSubImages() as $image): ?>
|
||||
<image><![CDATA[<?php echo $image ?>]]></image>
|
||||
<?php endforeach ?>
|
||||
</subimages>
|
||||
<title><![CDATA[<?php echo $result->getTitle() ?>]]></title>
|
||||
<description><![CDATA[<?php echo $result->getDescription() ?>]]></description>
|
||||
<date><?php echo $result->getDate() ?></date>
|
||||
<order><?php echo $result->getOrder() ?></order>
|
||||
<link><![CDATA[<?php echo $result->getLink() ?>]]></link>
|
||||
<price><![CDATA[<?php echo $result->getPrice() ?>]]></price>
|
||||
<product_code><![CDATA[<?php echo $result->getProductCode() ?>]]></product_code>
|
||||
<categories>
|
||||
<?php foreach ($result->getCategories() as $cat_id => $cat_name): ?>
|
||||
<category><![CDATA[<?php echo $cat_name ?>]]></category>
|
||||
<?php endforeach ?>
|
||||
</categories>
|
||||
</item>
|
||||
<?php endforeach ?>
|
||||
|
||||
</catablog_items>
|
||||
@ -1,29 +0,0 @@
|
||||
|
||||
<ul id="catablog_items" class="catablog-grid-view">
|
||||
|
||||
<?php if (count($results) < 1): ?>
|
||||
<p><?php _e("No catalog items found", 'catablog'); ?></p>
|
||||
|
||||
<?php if ($selected_term !== false): ?>
|
||||
<p><?php _e("Use the category drop down above to switch category views.", 'catablog'); ?></p>
|
||||
<?php endif ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php foreach ($results as $result): ?>
|
||||
<?php $edit = 'admin.php?page=catablog&id='.$result->getId() ?>
|
||||
<?php $remove = 'admin.php?page=catablog-delete&id='.$result->getId() ?>
|
||||
<li>
|
||||
<a href="<?php echo $edit ?>" class="catablog-admin-thumbnail"><img src="<?php echo $this->urls['thumbnails'] . "/" . $result->getImage() ?>" class="catablog-grid-thumbnail" width="100" height="100" alt="" /></a>
|
||||
|
||||
<a href="<?php echo $edit ?>" class="catablog-title"><small>
|
||||
<?php $truncated_title = (function_exists('mb_substr'))? mb_substr($result->getTitle(), 0, 30) : substr($result->getTitle(), 0, 30) ?>
|
||||
<?php $title = ($result->string_length($result->getTitle()) > 30)? trim($truncated_title).'...' : $result->getTitle() ?>
|
||||
<?php echo htmlentities($title, ENT_QUOTES, 'UTF-8') ?>
|
||||
</small></a>
|
||||
|
||||
<input type="checkbox" class="bulk_selection" name="bulk_action_id" value="<?php echo $result->getId() ?>" />
|
||||
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
<li class="clear"> </li>
|
||||
</ul>
|
||||
@ -1,42 +0,0 @@
|
||||
<div class="wrap">
|
||||
|
||||
<div id="icon-catablog" class="icon32"><br /></div>
|
||||
<h2><?php _e("CataBlog Import Results", 'catablog'); ?></h2>
|
||||
|
||||
<?php $this->render_catablog_admin_message() ?>
|
||||
|
||||
<h3><strong><?php _e("Import Console", 'catablog'); ?></strong></h3>
|
||||
|
||||
<?php if ($error): ?>
|
||||
<p>
|
||||
<?php _e("You must select a valid XML or CSV file to be used for import.", 'catablog'); ?>
|
||||
</p>
|
||||
<p>
|
||||
<?php printf(__("You may choose to read more about %simporting and exporting data from CataBlog%s.", 'catablog'), '<a href="http://catablog.illproductions.com/documentation/importing-and-exporting-catalogs/" target="_blank">', '</a>'); ?>
|
||||
<br />
|
||||
<?php printf(__("Once you have fixed your file and its format please %stry again%s.", 'catablog'), '<a href="admin.php?page=catablog-options#import">', '</a>'); ?>
|
||||
</p>
|
||||
<?php else: ?>
|
||||
<ul id="catablog-import-messages">
|
||||
<?php if (isset($_REQUEST['catablog_clear_db'])): ?>
|
||||
|
||||
<li class="updated"><em><?php _e("removing catalog items...", 'catablog'); ?></em></li>
|
||||
<?php $items = CataBlogItem::getItems() ?>
|
||||
<?php foreach ($items as $item): ?>
|
||||
<?php $item->delete(false) ?>
|
||||
<?php endforeach ?>
|
||||
<li class="updated"><?php _e("Success: <em>All</em> catalog items removed successfully", 'catablog'); ?></li>
|
||||
|
||||
<li class="updated"><em><?php _e("removing catalog categories...", 'catablog'); ?></em></li>
|
||||
<?php $this->remove_terms() ?>
|
||||
<li class="updated"><?php _e("Success: <em>All</em> catalog categories removed successfully", 'catablog'); ?></li>
|
||||
|
||||
<li class="updated"><strong><?php _e("DataBase Cleared Successfully", 'catablog'); ?></strong></li>
|
||||
<li> </li>
|
||||
<?php endif ?>
|
||||
|
||||
<?php $this->load_array_to_database($data) ?>
|
||||
</ul>
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
@ -1,114 +0,0 @@
|
||||
<table class="widefat post" cellspacing="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="column-cb check-column"><input type="checkbox" /></th>
|
||||
<th class="cb_icon_column"><?php _e("Image", "catablog"); ?></th>
|
||||
<?php $css_sort = ($sort=='title')? "sorted" : "sortable" ?>
|
||||
<?php $sort_url = ($order=='asc')? "&order=desc" : "&order=asc" ?>
|
||||
<?php $cat_url = (isset($_GET['category']))? "&category=".$_GET['category'] : "" ?>
|
||||
<th class="<?php echo "$css_sort $order" ?>" style="width:120px;">
|
||||
<a href="admin.php?page=catablog&sort=title<?php echo $sort_url . $cat_url ?>">
|
||||
<span><?php _e("Title", "catablog"); ?></span>
|
||||
<span class="sorting-indicator"> </span>
|
||||
</a>
|
||||
</th>
|
||||
|
||||
|
||||
<th class="column-description <?php echo $description_col_class ?>"><?php _e("Description", "catablog"); ?></th>
|
||||
<th class="column-link <?php echo $link_col_class ?>"><?php _e("Link", "catablog"); ?></th>
|
||||
<th class="column-price <?php echo $price_col_class ?>"><?php _e("Price", "catablog"); ?></th>
|
||||
<th class="column-product_code <?php echo $product_code_col_class ?>"><?php _e("Product Code", "catablog"); ?></th>
|
||||
|
||||
<th class="column-categories <?php echo $categories_col_class ?>"><?php _e("Categories", "catablog"); ?></th>
|
||||
<?php $css_sort = ($sort=='menu_order')? "sorted" : "sortable" ?>
|
||||
<?php $sort_url = ($order=='asc')? "&order=desc" : "&order=asc" ?>
|
||||
<?php $cat_url = (isset($_GET['category']))? "&category=".$_GET['category'] : "" ?>
|
||||
<th class="column-order <?php echo "$css_sort $order" ?> <?php echo $order_col_class ?>" style="width:80px;">
|
||||
<a href="admin.php?page=catablog&sort=menu_order<?php echo $sort_url . $cat_url ?>">
|
||||
<span><?php _e("Order", "catablog"); ?></span>
|
||||
<span class="sorting-indicator"> </span>
|
||||
</a>
|
||||
</th>
|
||||
|
||||
<?php $css_sort = ($sort=='date')? "sorted" : "sortable" ?>
|
||||
<?php $sort_url = ($order=='asc')? "&order=desc" : "&order=asc" ?>
|
||||
<?php $cat_url = (isset($_GET['category']))? "&category=".$_GET['category'] : "" ?>
|
||||
<th class="column-date <?php echo "$css_sort $order" ?> <?php echo $date_col_class ?>" style="width:100px;">
|
||||
<a href="admin.php?page=catablog&sort=date<?php echo $sort_url . $cat_url ?>">
|
||||
<span><?php _e("Date", "catablog"); ?></span>
|
||||
<span class="sorting-indicator"> </span>
|
||||
</a>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th class="column-cb check-column"><input type="checkbox" /></th>
|
||||
<th class="cb_icon_column"><?php _e("Image", "catablog"); ?></th>
|
||||
<th class=""><?php _e("Title", "catablog"); ?></th>
|
||||
|
||||
<th class="column-description <?php echo $description_col_class ?>"><?php _e("Description", "catablog"); ?></th>
|
||||
<th class="column-link <?php echo $link_col_class ?>"><?php _e("Link", "catablog"); ?></th>
|
||||
<th class="column-price <?php echo $price_col_class ?>"><?php _e("Price", "catablog"); ?></th>
|
||||
<th class="column-product_code <?php echo $product_code_col_class ?>"><?php _e("Product Code", "catablog"); ?></th>
|
||||
|
||||
<th class="column-categories <?php echo $categories_col_class ?>"><?php _e("Categories", "catablog"); ?></th>
|
||||
<th class="column-order <?php echo $order_col_class ?>"><?php _e("Order", "catablog"); ?></th>
|
||||
<th class="column-date <?php echo $date_col_class ?>"><?php _e("Date", "catablog"); ?></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
||||
<tbody id="catablog_items">
|
||||
|
||||
<?php if (count($results) < 1): ?>
|
||||
<tr>
|
||||
<td colspan='8'><p>
|
||||
<p><?php _e("No catalog items found", 'catablog'); ?></p>
|
||||
|
||||
<?php if ($selected_term !== false): ?>
|
||||
<p><?php _e("Use the category drop down above to switch category views.", 'catablog'); ?></p>
|
||||
<?php endif ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif ?>
|
||||
|
||||
<?php foreach ($results as $result): ?>
|
||||
<?php $edit = 'admin.php?page=catablog&id='.$result->getId() ?>
|
||||
<?php $remove = wp_nonce_url(('admin.php?page=catablog-delete&id='.$result->getId()), "catablog-delete") ?>
|
||||
|
||||
<tr>
|
||||
<th class="check-column">
|
||||
<input type="checkbox" class="bulk_selection" name="bulk_action_id" value="<?php echo $result->getId() ?>" />
|
||||
</th>
|
||||
<td class="cb_icon_column">
|
||||
<a href="<?php echo $edit ?>"><img src="<?php echo $this->urls['thumbnails'] . "/" . $result->getImage() ?>" class="cb_item_icon" width="50" height="50" alt="" /></a>
|
||||
</td>
|
||||
<td>
|
||||
<strong><a href="<?php echo $edit ?>" title="Edit CataBlog Item"><?php echo ($result->getTitle()) ?></a></strong>
|
||||
<div class="row-actions">
|
||||
<span><a href="<?php echo $edit ?>"><?php _e("Edit", "catablog"); ?></a></span>
|
||||
<span> | </span>
|
||||
<span class="trash"><a href="<?php echo $remove ?>" class="remove_link"><?php _e("Delete", "catablog"); ?></a></span>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
|
||||
<td class="column-description <?php echo $description_col_class ?>"><?php echo $result->getDescriptionSummary() ?></td>
|
||||
<td class="column-link <?php echo $link_col_class ?>"><?php echo $result->getLink() ?></td>
|
||||
<td class="column-price <?php echo $price_col_class ?>"><?php echo $result->getPrice() ?></td>
|
||||
<td class="column-product_code <?php echo $product_code_col_class ?>"><?php echo $result->getProductCode() ?></td>
|
||||
|
||||
<td class="column-categories <?php echo $categories_col_class ?>"><?php echo implode(', ', $result->getCategories())?></td>
|
||||
|
||||
<td class="column-order <?php echo $order_col_class ?>"> <?php echo htmlspecialchars($result->getOrder(), ENT_QUOTES, 'UTF-8') ?></td>
|
||||
|
||||
<td class="column-date <?php echo $date_col_class ?>">
|
||||
<span><?php echo str_replace('-', '/', substr($result->getDate(), 0, 10)) ?></span>
|
||||
<br />
|
||||
<span><?php echo substr($result->getDate(), 11) ?></span>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
@ -1,53 +0,0 @@
|
||||
<?php
|
||||
|
||||
$fields = array('description', 'link', 'price', 'product_code', 'categories', 'order', 'date');
|
||||
|
||||
$user = wp_get_current_user();
|
||||
$screen_settings = get_user_meta($user->ID, 'catablog_screen_settings', true);
|
||||
|
||||
// prosses screen options form if submitted
|
||||
$nonce_verified = wp_verify_nonce( $_REQUEST['_catablog_screen_settings_nonce'], 'catablog_screen_settings' );
|
||||
if (isset($_POST['entry-per-page']) && $nonce_verified) {
|
||||
|
||||
$screen_settings['hide-columns'] = array();
|
||||
foreach ($fields as $field) {
|
||||
if (!in_array($field, $_REQUEST['hide'])) {
|
||||
$screen_settings['hide-columns'][] = $field;
|
||||
}
|
||||
}
|
||||
|
||||
if (is_numeric($_REQUEST['entry-per-page'])) {
|
||||
$screen_settings['limit'] = 1;
|
||||
if ($_REQUEST['entry-per-page'] > 1) {
|
||||
$screen_settings['limit'] = $_REQUEST['entry-per-page'];
|
||||
}
|
||||
}
|
||||
else {
|
||||
$screen_settings['limit'] = 20;
|
||||
}
|
||||
|
||||
$user = wp_get_current_user();
|
||||
update_user_meta($user->ID, 'catablog_screen_settings', $screen_settings);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<?php $screen_settings['hide-columns'] = (is_array($screen_settings['hide-columns']))? $screen_settings['hide-columns'] : array() ?>
|
||||
|
||||
<h5><?php _e('Show on screen', 'catablog') ?></h5>
|
||||
<div class="metabox-prefs">
|
||||
<?php foreach ($fields as $field): ?>
|
||||
<?php $checked = (!in_array($field, $screen_settings['hide-columns']))? ' checked="checked"' : '' ?>
|
||||
<label for="hide-column-<?php echo $field ?>"><input class="hide-catablog-column-tog" type="checkbox" name="hide[]" value="<?php echo $field ?>" id="hide-column-<?php echo $field ?>"<?php echo $checked ?>><?php _e(ucwords(str_replace('_', ' ', $field)), 'catablog') ?></label>
|
||||
<?php endforeach ?>
|
||||
<br class="clear">
|
||||
</div>
|
||||
|
||||
<h5><?php _e('Show on screen', 'catablog') ?></h5>
|
||||
<div class='screen-options'>
|
||||
<input type='text' class='screen-per-page' name='entry-per-page' id='entry_per_page' maxlength='3' value='<?php echo $screen_settings['limit'] ?>' />
|
||||
<label for='entry_per_page'><?php _e('Catalog items', 'catablog') ?></label>
|
||||
<?php wp_nonce_field( 'catablog_screen_settings', '_catablog_screen_settings_nonce', false, true ) ?>
|
||||
<input type="submit" name="screen-options-apply" id="screen-options-apply" class="button" value="<?php _e('Apply', 'catablog') ?>" />
|
||||
</div>
|
||||
|
||||
@ -1,15 +0,0 @@
|
||||
<form method='post' action='https://www.paypal.com/cgi-bin/webscr' target='paypal'>
|
||||
<input type='hidden' name='cmd' value='_cart'>
|
||||
<input type='hidden' name='business' value='%PAYPAL-EMAIL%'>
|
||||
<input type='hidden' name='item_name' value='%TITLE-TEXT%'>
|
||||
<input type='hidden' name='item_number' value='%PRODUCT-CODE%'>
|
||||
<input type='hidden' name='amount' value='%PRICE%'>
|
||||
|
||||
<input type='hidden' name='shipping' value='0.00'>
|
||||
<input type='hidden' name='currency_code' value='USD'>
|
||||
<input type='hidden' name='return' value=''>
|
||||
<input type='hidden' name='quantity' value='1'>
|
||||
<input type='hidden' name='add' value='1'>
|
||||
<input type='image' src='http://images.paypal.com/en_US/i/btn/x-click-but22.gif' border='0' name='submit' width='87' height='23' alt='Add to Cart'>
|
||||
</form>
|
||||
|
||||
@ -1,14 +0,0 @@
|
||||
<div class='catablog-row %CATEGORY-SLUGS%'>
|
||||
<div class="catablog-images-column">
|
||||
%MAIN-IMAGE%
|
||||
%SUB-IMAGES%
|
||||
</div>
|
||||
|
||||
<h3 class='catablog-title'>%TITLE-LINK%</h3>
|
||||
|
||||
<div class="catablog-description">
|
||||
<p>%DESCRIPTION%</p>
|
||||
%BUY-NOW-BUTTON%
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@ -1,7 +0,0 @@
|
||||
<div class="catablog-row catablog-gallery">
|
||||
<a href="%LINK%" class="catablog-image" %LINK-TARGET% %LINK-REL%>
|
||||
<img src="%IMAGE-THUMBNAIL%" alt="" />
|
||||
<strong class="catablog-title">%TITLE%</strong>
|
||||
</a>
|
||||
<div class="catablog-description">%DESCRIPTION%</div>
|
||||
</div>
|
||||
@ -1,11 +0,0 @@
|
||||
<div class='catablog-row'>
|
||||
<div class="catablog-images-column">
|
||||
%MAIN-IMAGE%
|
||||
%SUB-IMAGES%
|
||||
</div>
|
||||
|
||||
<div class="catablog-description">
|
||||
%DESCRIPTION%
|
||||
%BUY-NOW-BUTTON%
|
||||
</div>
|
||||
</div>
|
||||
@ -1,177 +0,0 @@
|
||||
.colorpicker {
|
||||
width: 356px;
|
||||
height: 176px;
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
background: url(images/colorpicker_background.png);
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
display: none;
|
||||
z-index:9999;
|
||||
}
|
||||
.colorpicker_color {
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
left: 14px;
|
||||
top: 13px;
|
||||
position: absolute;
|
||||
background: #f00;
|
||||
overflow: hidden;
|
||||
cursor: crosshair;
|
||||
}
|
||||
.colorpicker_color div {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
background: url(images/colorpicker_overlay.png);
|
||||
}
|
||||
.colorpicker_color div div {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 11px;
|
||||
height: 11px;
|
||||
overflow: hidden;
|
||||
background: url(images/colorpicker_select.gif);
|
||||
margin: -5px 0 0 -5px;
|
||||
}
|
||||
.colorpicker_hue {
|
||||
position: absolute;
|
||||
top: 13px;
|
||||
left: 171px;
|
||||
width: 35px;
|
||||
height: 150px;
|
||||
cursor: n-resize;
|
||||
}
|
||||
.colorpicker_hue div {
|
||||
position: absolute;
|
||||
width: 35px;
|
||||
height: 9px;
|
||||
overflow: hidden;
|
||||
background: url(images/colorpicker_indic.gif) left top;
|
||||
margin: -4px 0 0 0;
|
||||
left: 0px;
|
||||
}
|
||||
.colorpicker_new_color {
|
||||
position: absolute;
|
||||
width: 60px;
|
||||
height: 30px;
|
||||
left: 213px;
|
||||
top: 13px;
|
||||
background: #f00;
|
||||
}
|
||||
.colorpicker_current_color {
|
||||
position: absolute;
|
||||
width: 60px;
|
||||
height: 30px;
|
||||
left: 283px;
|
||||
top: 13px;
|
||||
background: #f00;
|
||||
}
|
||||
.colorpicker input {
|
||||
background-color: transparent;
|
||||
border: 1px solid transparent;
|
||||
position: absolute;
|
||||
font-size: 10px;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
color: #898989;
|
||||
top: 4px;
|
||||
right: 11px;
|
||||
text-align: right;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: 11px;
|
||||
}
|
||||
.colorpicker_hex {
|
||||
position: absolute;
|
||||
width: 72px;
|
||||
height: 22px;
|
||||
background: url(images/colorpicker_hex.png) top;
|
||||
left: 212px;
|
||||
top: 142px;
|
||||
}
|
||||
.colorpicker_hex input {
|
||||
right: 6px;
|
||||
}
|
||||
.colorpicker_field {
|
||||
height: 22px;
|
||||
width: 62px;
|
||||
background-position: top;
|
||||
position: absolute;
|
||||
}
|
||||
.colorpicker_field span {
|
||||
position: absolute;
|
||||
width: 12px;
|
||||
height: 22px;
|
||||
overflow: hidden;
|
||||
top: 0;
|
||||
right: 0;
|
||||
cursor: n-resize;
|
||||
}
|
||||
.colorpicker_rgb_r {
|
||||
background-image: url(images/colorpicker_rgb_r.png);
|
||||
top: 52px;
|
||||
left: 212px;
|
||||
}
|
||||
.colorpicker_rgb_g {
|
||||
background-image: url(images/colorpicker_rgb_g.png);
|
||||
top: 82px;
|
||||
left: 212px;
|
||||
}
|
||||
.colorpicker_rgb_b {
|
||||
background-image: url(images/colorpicker_rgb_b.png);
|
||||
top: 112px;
|
||||
left: 212px;
|
||||
}
|
||||
.colorpicker_hsb_h {
|
||||
background-image: url(images/colorpicker_hsb_h.png);
|
||||
top: 52px;
|
||||
left: 282px;
|
||||
}
|
||||
.colorpicker_hsb_s {
|
||||
background-image: url(images/colorpicker_hsb_s.png);
|
||||
top: 82px;
|
||||
left: 282px;
|
||||
}
|
||||
.colorpicker_hsb_b {
|
||||
background-image: url(images/colorpicker_hsb_b.png);
|
||||
top: 112px;
|
||||
left: 282px;
|
||||
}
|
||||
.colorpicker_submit {
|
||||
position: absolute;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
background: url(images/colorpicker_submit.png) top;
|
||||
left: 322px;
|
||||
top: 142px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.colorpicker_focus {
|
||||
background-position: center;
|
||||
}
|
||||
.colorpicker_hex.colorpicker_focus {
|
||||
background-position: bottom;
|
||||
}
|
||||
.colorpicker_submit.colorpicker_focus {
|
||||
background-position: bottom;
|
||||
}
|
||||
.colorpicker_slider {
|
||||
background-position: bottom;
|
||||
}
|
||||
|
||||
#colorSelector , #bgcolorSelector {
|
||||
position: relative;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
background: url(images/select.png);
|
||||
}
|
||||
#colorSelector div , #bgcolorSelector div {
|
||||
position: absolute;
|
||||
top: 3px;
|
||||
left: 3px;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
background: url(images/select.png) center;
|
||||
}
|
||||
@ -1,185 +0,0 @@
|
||||
/* CSS Document */
|
||||
|
||||
.clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
|
||||
.clearfix { display: inline-block; *zoom:1;}
|
||||
* html .clearfix { height: 1%; } /* Hides from IE-mac \*/
|
||||
.clearfix { display: block; }
|
||||
|
||||
.hades-widget-custom .widget-top{ border:1px solid #d6d6d6!important; background:url(i/hades-widget-header.jpg) top left no-repeat!important; -moz-box-shadow:0px 0px 3px #d6d6d6; -webkit-box-shadow:0px 0px 3px #d6d6d6; box-shadow:0px 0px 3px #d6d6d6; }
|
||||
.hades_information { background:#f6f3d5; border:1px solid #e7e2bc; border-radius:2px; -moz-border-radius:2px; display:block; padding:10px 30px; color:#5e5638; font-weight:100; font-style:italic; font-size:10px!important; line-height:1.6; margin-right:20px; margin-top:15px; position:relative; margin-left:20px; }
|
||||
.hades_information p { padding:0px 4px; display:block; }
|
||||
.hades_information .info-icon { }
|
||||
p.info-text { font-size: 11px; color: #777; padding:10px; }
|
||||
/* =============================================================== */
|
||||
/* ----------------------- Shortcode Styling --------------------- */
|
||||
/* =============================================================== */
|
||||
|
||||
.shortcode-wrapper {background: none!important; }
|
||||
.shortcode-wrapper { }
|
||||
.shortcode-wrapper .top-panel{ background: none!important; }
|
||||
.shortcode-wrapper .top-panel .button { margin:11px 0px 10px 5px; }
|
||||
.shortcode-wrapper .top-panel select , .shortcode-wrapper .top-panel label , .shortcode-wrapper .top-panel a { float:left; }
|
||||
|
||||
.shortcode-wrapper>div { background: #eee!important;}
|
||||
.shortcode-wrapper .hades_input { background:none!important; margin:0!important; padding-bottom:10px!important; }
|
||||
.shortcode-wrapper .top-panel select {font-size: 11px!important; color: #777; margin-top:10px; }
|
||||
.shortcode-wrapper .top-panel label { margin-top:13px; margin-right:5px; }
|
||||
.shortcode-wrapper .top-panel .add-button { display: inline-block;background:url(i/add-shortcode.png) no-repeat!important; cursor:pointer; width: 129px!important; height: 50px!important;text-indent: -9999px!important;border: none; margin-top:2px;}
|
||||
|
||||
.shortcode-wrapper .top-panel .done-button {display: inline-block; background:url(i/done-shortcode.png) no-repeat!important; cursor:pointer; width: 94px!important; height: 50px!important;text-indent: -9999px!important;border: none;}
|
||||
.preview-panel { float:right; }
|
||||
.preview-panel span { float:left; margin-right:5px; margin-top:7px; }
|
||||
.preview-panel a{ display: float:left; height:26px!important; padding:10px 25px 0px 25px!important; font-size:14px!important; font-weight:700!important; text-transform:uppercase!important; text-decoration:none; color:#fff; border:1px solid transparent; }
|
||||
.preview-panel a.glass { background:url(i/glass.png) repeat-x;}
|
||||
.preview-panel a.shade { background:url(i/soft-shade.png) repeat-x;}
|
||||
|
||||
.styled ul { padding:5px; margin:0; display:block; }
|
||||
.styled ul li { padding:4px 4px 4px 20px; margin:4px 0px 4px 0px; line-height:1.3; }
|
||||
.styled ul li a { text-decoration:none; }
|
||||
.arrow ul li{ background:url(i/list-bg-arrow.png) 0px 5px no-repeat; }
|
||||
.clip ul li{ background:url(i/list-bg-clip.png) 0px 5px no-repeat; }
|
||||
.cross ul li{ background:url(i/list-bg-cross.png) 0px 5px no-repeat; }
|
||||
.folder ul li{ background:url(i/list-bg-folder.png) 0px 5px no-repeat; }
|
||||
.info ul li{ background:url(i/list-bg-info.png) 0px 5px no-repeat; }
|
||||
.music ul li{ background:url(i/list-bg-music.png) 0px 5px no-repeat; }
|
||||
.note ul li{ background:url(i/list-bg-note.png) 0px 5px no-repeat; }
|
||||
.picture ul li{ background:url(i/list-bg-picture.png) 0px 5px no-repeat; }
|
||||
.rounded-tick ul li{ background:url(i/list-bg-rounded-tick.png) 0px 5px no-repeat; }
|
||||
.tick ul li{ background:url(i/list-bg-tick.png) 0px 5px no-repeat; }
|
||||
|
||||
/* ============== Global Loading Icon =============== */
|
||||
.ajax_loading_icon { background:url(i/89.gif) center center no-repeat; width:16px; height:16px; display:block; float:left; margin:30px 10px 10px 30px; visibility:hidden; opacity:0; }
|
||||
|
||||
/* =============================================================== */
|
||||
/* ----------------------- Custom Gallery Type ------------------- */
|
||||
/* =============================================================== */
|
||||
|
||||
|
||||
#hades_gallery { background:#f7f9fa; border:1px solid #c1c1c1; margin:0; }
|
||||
#hades_gallery .toppanel { background:url(i/head-bg.jpg) repeat-x; height:45px ; position:relative; z-index:2; border-bottom:1px solid #cfcfcf;}
|
||||
|
||||
#addslide { margin:8px 0px 2px 10px; float:left; }
|
||||
#hades_gallery .slide-head { height:43px; background:#ffffff; border-bottom:1px solid #cecece; }
|
||||
|
||||
#hades_gallery .slider-lists { margin:0; padding:0; }
|
||||
#hades_gallery .slider-lists ul li { margin:0; padding:0; }
|
||||
|
||||
#hades_gallery .delete-slide-button { background:url(i/delete.png) top right no-repeat; color:#fff; text-transform:uppercase; font-weight:900; text-decoration:none; padding:2px 18px 2px 8px; float:right; border:1px solid #a51506; border-radius:4px; -moz-border-radius:4px; font-size:9px; margin:10px 10px 0px 0px; }
|
||||
#hades_gallery a.delete-slide-button:hover { color:#fff; -moz-box-shadow:0px 0px 4px #c01737; }
|
||||
|
||||
#hades_gallery .min-slide-button { background:url(i/toggle-minimized.png) top right no-repeat; color:#373a3f; text-transform:uppercase; font-weight:900; text-decoration:none; padding:2px 22px 2px 8px; float:right; border:1px solid #cecece; border-radius:4px; -moz-border-radius:4px; font-size:9px; margin:10px 10px 0px 0px; }
|
||||
#hades_gallery .max-slide-button { background: url(i/toggle-maximized.png) top right no-repeat; color:#373a3f; text-transform:uppercase; font-weight:900; text-decoration:none; padding:2px 22px 2px 8px; float:right; border:1px solid #cecece; border-radius:4px; -moz-border-radius:4px; font-size:9px; margin:10px 10px 0px 0px; }
|
||||
|
||||
#hades_gallery .imageholder { width:200px; float:left; padding:30px 10px 30px 40px; }
|
||||
#hades_gallery .imageholder img { display:block; width:113px; height:76px; border:5px solid #fff; -moz-box-shadow:1px 1px 4px #ccc; }
|
||||
#hades_gallery .imageholder span { color:#555; font-style:italic; display:block; margin-left:21px; margin-bottom:5px; }
|
||||
#hades_gallery .selection { width:400px; float:left; padding:30px 10px 30px 20px; }
|
||||
#hades_gallery .selection label { float:left; display:inline-block; margin-top:7px; margin-right:4px; }
|
||||
#hades_gallery .info-panel { border-bottom:1px solid #e4e4e4; }
|
||||
#hades_gallery .separator { border-bottom:1px solid #e4e4e4; padding:10px 10px; }
|
||||
#hades_gallery .lseparator { padding:10px; }
|
||||
#hades_gallery .separator label , .separator input[type=text] , .separator input[type=file] , .lseparator label , .lseparator textarea { float:left; }
|
||||
#hades_gallery .separator label , .lseparator label { margin-top:4px; width:100px; }
|
||||
#hades_gallery .lseparator textarea , .separator input[type=text]{ width:400px; }
|
||||
#hades_gallery .drag-highlight { height:43px; background:#f4f4f4; border:1px dashed #111; border-radius:4px; -moz-border-radius:4px; }
|
||||
.custom_upload_image_button { float:left; margin:1px 0px 0px 5px; }
|
||||
#hades_gallery .slide-hide { display:none; }
|
||||
#hades_gallery .image-url { font-size:11px; font-style:italic; color:#111; font-family:Georgia, "Times New Roman", Times, serif; margin-top:5px; margin-left:10px; float:left; }
|
||||
|
||||
|
||||
/* =============================================================== */
|
||||
/* ----------------------- Global Input Style ------------------- */
|
||||
/* =============================================================== */
|
||||
|
||||
.hades_input { margin:10px 0px 10px 0px; padding:10px 0px 30px 0px; border-bottom:1px solid #d1d6d8; }
|
||||
.hades_input label { display:block; font-weight:bold; text-shadow:0px 1px 1px #fff; padding:0px 13px 13px 10px; color:#333; float:left; width:180px; margin-top:5px; letter-spacing: -1px; }
|
||||
.hades_input input[type=text] { text-align:left!important; width:280px; display:block; float:left; border:1px solid #ccc; color: #999; font-size: 10px;}
|
||||
.hades_input textarea { text-align:left!important; width:280px; height:200px; display:block; float:left; border:1px solid #ccc; padding: 3px; font-size: 10px;}
|
||||
.hades_input select , .hades_input input { display:none; float:left; padding:6px;}
|
||||
.hades_input select { width:280px; height:35px!important; padding:5px 4px!important; color: 777; font-size: 10px;}
|
||||
.hades_input small { padding:2px 5px 2px 30px; font-size:11px; float:right; margin-left:6px; position:relative; }
|
||||
|
||||
|
||||
#intro_blurb_box input[type=text] , #intro_blurb_box textarea { width:96%; display:block; float:none!important; }
|
||||
|
||||
/* =============================================================== */
|
||||
/* ----------------------- Mega Menu Styling --------------------- */
|
||||
/* =============================================================== */
|
||||
|
||||
.h-megamenu .admin-button { margin:4px 0px 6px 0px; padding:4px 8px!important; }
|
||||
.h-megamenu p label { float:left; width:120px; }
|
||||
.h-megamenu p input[type=checkbox] { float:left; }
|
||||
|
||||
.h_megamenu_box input[type=checkbox] { margin:10px; float:left; }
|
||||
.h_megamenu_box select { float:left; margin-top:7px; margin-left:10px; }
|
||||
.h_megamenu_box select { padding:5px; }
|
||||
.h_megamenu_box label { float:left; margin-top:8px; }
|
||||
|
||||
.item-type-h-column , .item-type-h-widget , .item-type-hmenu , .h_megamenu_row_box { display:none; }
|
||||
.hmenu_info { font-size:10px; font-style:inherit; color:#333333; display:block; margin:2px; background:#eee; }
|
||||
|
||||
|
||||
.upload-area { display:block; padding:6px 2px; background:url(i/top-panel-bg.png) repeat-x!important; border-bottom:1px solid #ccc;width: 100%; }
|
||||
.upload-area label { margin:6px 2px; float:left; width:80px; color:#333; font-weight: 900; letter-spacing: -1px;font-size:12px; padding:16px 5px 16px 20px; }
|
||||
.upload-area .uploadify { float:left; margin:17px 4px 10px 10px; }
|
||||
|
||||
.upload-area input { float:left; margin:17px 4px 10px 0px; padding:7px; }
|
||||
|
||||
.upload-area .add-sidebar-button{ display:inline-block; background:url(i/add-sidebar-bg.png) no-repeat!important; margin-right:20px; float:left; margin-top: 14px;cursor:pointer; width: 104px; height: 42px; text-indent: -9999px;border: none!important;}
|
||||
|
||||
.textbox { width:90%; }
|
||||
.hide { display:none; }
|
||||
/* =============================================================== */
|
||||
/* ----------------------- Managers Styling ---------------------- */
|
||||
/* =============================================================== */
|
||||
|
||||
|
||||
#hades_theme { background:#fafafa; border:1px solid #c1c1c1; margin:17px 25px 30px 22px; -moz-border-radius-topleft:5px; -moz-border-radius-topright:5px; border-top-left-radius:5px; border-top-right-radius:5px; -moz-box-shadow:0px 0px 0px 2px #f2f2f2; box-shadow:0px 0px 0px 2px #f2f2f2; -webkit-box-shadow:0px 0px 0px 2px #f2f2f2; }
|
||||
|
||||
.hades_wrap { border-left:1px solid #fff; margin-top:10px; width:980px; }
|
||||
.hades-head { background:#fafafa; height:80px ; position:relative; z-index:2; -moz-border-radius-topleft:5px; -moz-border-radius-topright:5px; border-top-left-radius:5px; border-top-right-radius:5px; border-bottom:1px solid #cfcfcf; }
|
||||
|
||||
.hades-head #logo { background:url(i/logo.png) no-repeat; width:60px; height:60px; float:right; margin-top:10px; margin-right:20px; }
|
||||
.hades_wrap .notice-bar { background:#fff; height:27px; border-bottom:1px solid #ccc; }
|
||||
.hades_wrap .notice-bar p { margin:0; padding:6px 0 0 0; text-align:center; color:#333; font-size:11px; text-shadow:1px 1px 0px #fff; }
|
||||
|
||||
.hades_section .submit { background:#fff; border-left:1px solid #cecece; display:block; padding:0px 10px 5px 3px; margin:0; width:821px; float:right; border-bottom:1px solid #cecece; }
|
||||
.submit .admin-button , .top-panel .admin-button , .fontmanager .admin-button , .sidebarmanager .admin-button{ display:inline-block; background:url(i/save-bg.png) no-repeat!important; margin-right:20px; margin-bottom:20px; float:right; cursor:pointer; width: 120px; height: 40px; text-indent: -9999px;border: none;}
|
||||
.fontmanager .admin-button , .sidebarmanager .admin-button { margin-top:10px; }
|
||||
|
||||
.panel-reset , .add-sidebar-button{ display:inline-block; background:url(i/reset-bg.png) no-repeat!important; margin-right:20px; margin-bottom:20px; float:left; cursor:pointer; width: 90px; height: 40px; text-indent: -9999px;border: none!important;}
|
||||
|
||||
|
||||
.top-panel { background:url(i/top-panel-bg.png) repeat-x!important; border-bottom:1px solid #cecece; margin:-10px 0px 0px; padding-left: 20px; padding-right: 20px; padding-top: 16px;}
|
||||
.top-panel .admin-button { margin-right:0px; }
|
||||
.top-panel .panel-reset { color:#54616a!important; margin-left:0px; }
|
||||
.reset-form { float:left; width:200px!important; }
|
||||
|
||||
.subpanel-sidemenu { width:185px; float:left; height:100%; display:block; position:relative; z-index:99; padding-top:0px; }
|
||||
.subpanel-sidemenu li { display:block; border-bottom:1px solid #fff; margin:0; }
|
||||
.subpanel-sidemenu li a { text-decoration:none; color:#777777;font-weight:900; display:block; padding:15px 10px 15px 18px; text-shadow:0px 1px 1px #fff; font-size:12px; border-bottom:1px solid #dae4e8; }
|
||||
.subpanel-sidemenu li.ui-state-active { background:url(i/active-bg.jpg) top right no-repeat; color:#2b8eb3; margin-right:-15px; border-bottom:none; }
|
||||
.subpanel-sidemenu li.ui-state-active a { background: url(i/basic.jpg) 10% 50% no-repeat; padding-left:41px; border-bottom:none; color:#262e34; }
|
||||
|
||||
#hades_opts #panel-wrapper { width:835px; float:left; position:relative; display:block;}
|
||||
#hades_opts #side-panel-wrapper { width:927px; float:left; position:relative; display:block; background: #fafafa;}
|
||||
#hades_opts #font-panel-wrapper { width:927px; float:left; position:relative; display:block; background: #fafafa;}
|
||||
#hades_opts #side-panel-wrapper .admin-button { display:inline-block; background:url(i/save-bg.png) no-repeat!important; margin-right:20px; margin-top:20px; float:right; cursor:pointer; width: 120px; height: 40px; text-indent: -9999px;border: none;}
|
||||
|
||||
.sidebarmanager .active-sidebars li.sidebar-holder , .sidebarmanager .inactive-sidebars li.sidebar-holder{ background:#fafafa!important; border:1px dashed #ccc!important; width:250px; padding:8px; height:15px!important; -moz-box-shadow:none; box-shadow:none; -webkit-box-shadow:none; }
|
||||
|
||||
.sidebarmanager .active-sidebars li , .inactive-sidebars li{ background: #333; border:1px solid #333; width:250px; position:relative; padding:8px; margin:-1px 0 20px 0 !important; display:block; border-radius:4px; -moz-border-radius:4px;-moz-box-shadow:0px 0px 2px #333; box-shadow:0px 0px 2px #333; -webkit-box-shadow:0px 0px 2px #333;color: #fff; line-height: 12px; cursor:move; }
|
||||
.sidebarmanager .active-sidebars a.delete , .inactive-sidebars a.delete{ background:url(i/cancel.png) no-repeat; display:block; width:16px; height:16px; position:absolute; top:-8px; right:-7px; }
|
||||
.sidebarmanager .inactive-sidebars li , .inactive-sidebars li{ background: #333; border:1px solid #333; width:250px; position:relative; padding:8px; margin:-1px 0 20px 0 !important; display:block; border-radius:4px; -moz-border-radius:4px;-moz-box-shadow:0px 0px 2px #333; box-shadow:0px 0px 2px #333; -webkit-box-shadow:0px 0px 2px #333;color: #fff; line-height: 12px;}
|
||||
.sidebarmanager .inactive-sidebars a.delete , .inactive-sidebars a.delete{ background:url(i/cancel.png) no-repeat; display:block; width:16px; height:16px; position:absolute; top:-8px; right:-7px; }
|
||||
.manage-sidebars { padding:10px; background:#fafafa; }
|
||||
.active-sidebars , .inactive-sidebars{ margin-bottom: 30px;}
|
||||
.sidebarmanager .active-wrapper { float:left;margin-top:10px; margin-left:20px; }
|
||||
.sidebarmanager .active-wrapper h4{ border-bottom: 1px solid #ccc; padding-bottom: 5px;letter-spacing: -1px;}
|
||||
.sidebarmanager .inactive-wrapper { float:right; margin-top:10px; margin-right:20px; }
|
||||
.sidebarmanager .inactive-wrapper h4{ border-bottom: 1px solid #ccc; padding-bottom: 5px;letter-spacing: -1px;}
|
||||
.uploaded-fonts { margin:20px; }
|
||||
.uploaded-fonts p { background: url(i/head-bg.jpg) repeat-x; border:1px solid #d4d7de; width:510px; position:relative; padding:7px; margin:-1px 0 0 0 !important; display:block; }
|
||||
.uploaded-fonts p span { }
|
||||
.uploaded-fonts a.delete { background:url(i/cancel.png) no-repeat; display:block; width:16px; height:16px; position:absolute; top:-8px; right:-7px; }
|
||||
.inactive-sidebars { padding:10px 0px; width:250px; margin-top:-10px; }
|
||||
@ -1,198 +0,0 @@
|
||||
/* CSS Document */
|
||||
|
||||
.ajax_loading_icon { background:url(i/89.gif) center center no-repeat; width:16px; height:16px; display:block; float:left; margin:30px 10px 10px 30px; visibility:hidden; opacity:0; }
|
||||
.hades_information { background:#f6f3d5; border:1px solid #e7e2bc; border-radius:2px; -moz-border-radius:2px; display:block; padding:10px 30px; color:#5e5638; font-weight:100; font-style:italic; font-size:10px!important; line-height:1.6; margin-right:20px; margin-top:15px; position:relative; margin-left:20px; }
|
||||
|
||||
#hades_theme { background:#fafafa; border:1px solid #c1c1c1; margin:17px 25px 30px 22px; -moz-border-radius-topleft:5px; -moz-border-radius-topright:5px; border-top-left-radius:5px; border-top-right-radius:5px; -moz-box-shadow:0px 0px 0px 2px #f2f2f2; box-shadow:0px 0px 0px 2px #f2f2f2; -webkit-box-shadow:0px 0px 0px 2px #f2f2f2; }
|
||||
|
||||
.hades_wrap { border-left:1px solid #fff; margin-top:10px; width:980px; }
|
||||
.hades-head { background:#fafafa; height:80px ; position:relative; z-index:2; -moz-border-radius-topleft:5px; -moz-border-radius-topright:5px; border-top-left-radius:5px; border-top-right-radius:5px; border-bottom:1px solid #cfcfcf; }
|
||||
|
||||
.hades-head #logo { background:url(i/logo.png) no-repeat; width:60px; height:60px; float:right; margin-top:10px; margin-right:20px; }
|
||||
.hades_wrap .notice-bar { background:#fff; height:27px; border-bottom:1px solid #ccc; }
|
||||
.hades_wrap .notice-bar p { margin:0; padding:6px 0 0 0; text-align:center; color:#333; font-size:11px; text-shadow:1px 1px 0px #fff; }
|
||||
|
||||
.hades_section .submit { background:#fff; border-left:1px solid #cecece; display:block; padding:0px 10px 5px 3px; margin:0; width:821px; float:right; border-bottom:1px solid #cecece; }
|
||||
.submit .admin-button , .top-panel .admin-button , .fontmanager .admin-button , .sidebarmanager .admin-button{ display:inline-block; background:url(i/save-bg.png) no-repeat!important; margin-right:20px; margin-bottom:20px; float:right; cursor:pointer; width: 120px; height: 40px; text-indent: -9999px;border: none;}
|
||||
.fontmanager .admin-button , .sidebarmanager .admin-button { margin-top:10px; }
|
||||
|
||||
.panel-reset , .add-sidebar-button{ display:inline-block; background:url(i/reset-bg.png) no-repeat!important; margin-right:20px; margin-bottom:20px; float:left; cursor:pointer; width: 90px; height: 40px; text-indent: -9999px;border: none!important;}
|
||||
|
||||
|
||||
.top-panel { background:url(i/top-panel-bg.png) repeat-x!important; border-bottom:1px solid #cecece; margin:-10px 0px 0px; padding-left: 20px; padding-right: 20px; padding-top: 16px;}
|
||||
.top-panel .admin-button { margin-right:0px; }
|
||||
.top-panel .panel-reset { color:#54616a!important; margin-left:0px; }
|
||||
.reset-form { float:left; width:200px!important; }
|
||||
|
||||
.subpanel-sidemenu { width:185px; float:left; height:100%; display:block; position:relative; z-index:99; padding-top:0px; }
|
||||
.subpanel-sidemenu li { display:block; border-bottom:1px solid #fff; margin:0; }
|
||||
.subpanel-sidemenu li a { text-decoration:none; color:#777777;font-weight:900; display:block; padding:15px 10px 15px 18px; text-shadow:0px 1px 1px #fff; font-size:12px; border-bottom:1px solid #dae4e8; }
|
||||
.subpanel-sidemenu li.ui-state-active { background:url(i/active-bg.jpg) top right no-repeat; color:#2b8eb3; margin-right:-15px; border-bottom:none; }
|
||||
.subpanel-sidemenu li.ui-state-active a { background: url(i/basic.jpg) 10% 50% no-repeat; padding-left:41px; border-bottom:none; color:#262e34; }
|
||||
|
||||
#hades_opts #panel-wrapper { width:835px; float:left; position:relative; display:block; clear:none!important; }
|
||||
#hades_opts #side-panel-wrapper { width:927px; float:left; position:relative; display:block; background: #fafafa;}
|
||||
#hades_opts #font-panel-wrapper { width:927px; float:left; position:relative; display:block; background: #fafafa;}
|
||||
#hades_opts #side-panel-wrapper .admin-button { display:inline-block; background:url(i/save-bg.png) no-repeat!important; margin-right:20px; margin-top:20px; float:right; cursor:pointer; width: 120px; height: 40px; text-indent: -9999px;border: none;}
|
||||
|
||||
|
||||
.hupload { float:left; width:300px; }
|
||||
.success_message { opacity:0; visibility:hidden; height:0; }
|
||||
.hades_input input[type=file] { display:block!important; width:300px; float:none!important; }
|
||||
.hades_input { margin:10px 0px 10px 0px; padding:10px 0px 30px 0px; border-bottom:1px solid #d1d6d8; }
|
||||
.hades_input label { display:block; font-weight:bold; text-shadow:0px 1px 1px #fff; padding:0px 13px 13px 10px; color:#333; float:left; width:180px; margin-top:5px; letter-spacing: -1px; clear:none!important; }
|
||||
.hades_input input[type=text] { text-align:left!important; width:280px; display:block; float:left; border:1px solid #ccc; color: #999; font-size: 10px; clear:none!important;}
|
||||
.hades_input textarea { text-align:left!important; width:280px; height:200px; display:block; float:left; border:1px solid #ccc; padding: 3px; font-size: 10px; clear:none!important;}
|
||||
.hades_input select , .hades_input input { display:none; float:left; padding:6px; clear:none!important;}
|
||||
.hades_input select { width:280px; height:35px!important; padding:5px 4px!important; color: 777; font-size: 10px; clear:none!important;}
|
||||
.hades_input small { padding:2px 5px 2px 30px; font-size:11px; float:right; margin-left:6px; position:relative; clear:none!important; }
|
||||
.hades_input .custom_upload_image_button{ float:left; margin:2px 3px 1px 5px; }
|
||||
.hades_input small span { width:260px!important; display:block; padding:0; color:#777; clear:none!important;}
|
||||
|
||||
.subtitle-heading { display:block; clear:left!important; width:98%; padding:10px; background:#fff; border-bottom:1px solid #ccc; margin-left: 0px; border-left: 1px solid #ccc; }
|
||||
.subtitle-heading a { font-size:16px; text-decoration:none; font-weight: bold; letter-spacing: -1px;color: #d54e38; padding-left: 0px;}
|
||||
|
||||
.hades_input input[type=checkbox] { margin-top:7px; display:block; }
|
||||
.hades_input input[type=text]:focus ,textarea:focus { outline:none; }
|
||||
.hades_input .ui-widget { float:left; }
|
||||
.hades_input .ui-button { margin-left: -1px; margin-top:0px; }
|
||||
.hades_input .ui-button-icon-only .ui-button-text { padding: 5px 10px; }
|
||||
.hades_input .ui-autocomplete-input { margin: 0; padding: 0.48em 0 0.47em 0.45em; width:200px; }
|
||||
|
||||
.height-small { height:120px; }
|
||||
.height-medium { height:240px; }
|
||||
.height-large { height:360px; }
|
||||
|
||||
.width-small { width:100px!important; }
|
||||
.width-medium { width:150px!important; }
|
||||
.width-large { width:250px!important; }
|
||||
|
||||
#themenav { background:#fafafa; position:relative; z-index:1; width:92px; float:left; clear:none!important; }
|
||||
#themenav li { display:block; padding:10px 8px 0px 8px; margin-bottom:0; width:76px; height:76px; border-bottom:1px solid #ccc; }
|
||||
#themenav li a { text-decoration:none; color:#777; display:block; padding:10px 8px 7px 8px; font-size:12px; text-align:center; line-height: 30px;letter-spacing: -1px;text-shadow:1px 1px 0px #fff;}
|
||||
#themenav li a.font-manager span { background:url(i/edit.png) center center no-repeat; }
|
||||
#themenav li a.sidebar-manager span { background: #fff url(i/application-sidebar-list.png) center center no-repeat; }
|
||||
#themenav li.ui-state-active { background:#fff; display:block; border-bottom:1px solid #ccc; }
|
||||
#themenav li.ui-state-active a {text-decoration:none; color:#333; display:block; letter-spacing: -1px; align:center;}
|
||||
#themenav li a>span { display:block; width:30px; height:30px; margin:0px auto; }
|
||||
|
||||
#themenav li.ui-state-active #menu_General>span{ background:url(i/menu-sprite.png) 0px 0px no-repeat; }
|
||||
#themenav li #menu_General>span{ background:url(i/menu-sprite.png) 0px -40px no-repeat; }
|
||||
|
||||
#themenav li.ui-state-active #menu_Homepage>span{ background:url(i/menu-sprite.png) -40px 0px no-repeat; }
|
||||
#themenav li #menu_Homepage>span{ background:url(i/menu-sprite.png) -40px -40px no-repeat; }
|
||||
|
||||
#themenav li.ui-state-active #menu_Blog>span{ background:url(i/menu-sprite.png) -80px 0px no-repeat; }
|
||||
#themenav li #menu_Blog>span{ background:url(i/menu-sprite.png) -80px -40px no-repeat; }
|
||||
|
||||
#themenav li.ui-state-active #menu_Typography>span{ background:url(i/menu-sprite.png) -123px 0px no-repeat; }
|
||||
#themenav li #menu_Typography>span{ background:url(i/menu-sprite.png) -123px -40px no-repeat; }
|
||||
|
||||
#themenav li.ui-state-active #menu_Media>span{ background:url(i/menu-sprite.png) -161px 0px no-repeat; }
|
||||
#themenav li #menu_Media>span{ background:url(i/menu-sprite.png) -161px -40px no-repeat; }
|
||||
|
||||
#themenav li.ui-state-active #menu_Sidebars>span{ background:url(i/menu-sprite.png) -200px 0px no-repeat; }
|
||||
#themenav li #menu_Sidebars>span{ background:url(i/menu-sprite.png) -200px -40px no-repeat; }
|
||||
|
||||
#themenav li.ui-state-active #menu_Misc>span{ background:url(i/menu-sprite.png) -200px -5px no-repeat; }
|
||||
#themenav li #menu_Misc>span{ background:url(i/menu-sprite.png) -240px -45px no-repeat; }
|
||||
|
||||
#themenav li.ui-state-active #menu_Visual>span{ background:url(i/menu-sprite.png) -239px -1px no-repeat; }
|
||||
#themenav li #menu_Visual>span{ background:url(i/menu-sprite.png) -239px -41px no-repeat; }
|
||||
|
||||
#themenav li.ui-state-active #menu_Menu>span{ background:url(i/menu-sprite.png) -200px -1px no-repeat; }
|
||||
#themenav li #menu_Visual>span{ background:url(i/menu-sprite.png) -239px -41px no-repeat; }
|
||||
|
||||
.hades_section { padding:0px; }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.hades_options { margin:0px; padding:0;background:#fff; }
|
||||
.subpanel { background:#fafafa; }
|
||||
.hades_subpanel { float:left; background:#fafafa; padding:5px 0px 0px ; border-left:1px solid #ccc; width:838px;clear:none!important; }
|
||||
.hades_input .ui-slider { float:left; }
|
||||
.hades_input .slider-text { width:60px!important; margin-left:15px; border:1px solid #d8d8d8; -moz-box-shadow:1px 1px 2px #ddd; box-shadow:1px 1px 2px #ddd; -webkit-box-shadow:1px 1px 2px #ddd; padding:6px; margin-right:1px; margin-top:16px; }
|
||||
.slider-suffix { padding:22px 3px 0px 5px!important; }
|
||||
.hades_input .ui-slider { position: relative; text-align: left; background: url(i/slider-bar.png) repeat-x; margin-top:9px; width:250px;}
|
||||
.hades_input .ui-slider .ui-slider-handle { position: absolute; z-index: 2; width:21px; height:29px; cursor: pointer; background: url(i/handle.png) top left no-repeat; }
|
||||
.hades_input .ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
|
||||
|
||||
.hades_input .ui-slider-horizontal { height:51px; }
|
||||
.hades_input .ui-slider-horizontal .ui-slider-handle { top: 8px; margin-left:-20px; }
|
||||
.hades_input .ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
|
||||
.hades_input .ui-slider-horizontal .ui-slider-range-min { left: 0; }
|
||||
.hades_input .ui-slider-horizontal .ui-slider-range-max { right: 0; }
|
||||
.help>iframe{ width:97%; height:400px; border:1px solid #d9e5ea; -moz-box-shadow:0px 0px 3px #cfcfcf; box-shadow:0px 0px 3px #cfcfcf; -webkit-box-shadow:0px 0px 3px #cfcfcf }
|
||||
.hades_input h6 { display:block;float:left; margin:0; padding:5px 5px 5px 0px; font-size:14px; font-weight:100; }
|
||||
.cicon { background:url(i/colorpicker-icon.png) top left no-repeat!important; display:block; width:27px!important; height:16px!important; margin:6px 0px 0px 5px!important; padding:0!important; float:left!important}
|
||||
|
||||
|
||||
.hades_input .ui-buttonset { height:24px!important; overflow:visible; border:none!important;}
|
||||
.hades_input .ui-buttonset .ui-state-default { text-indent:-9999px; border:none!important; }
|
||||
.hades_input .ui-buttonset .ui-state-active { text-indent:0px; background:none; border:none; }
|
||||
|
||||
.hades_input .ui-buttonset label { margin:0!important; padding:6px 0 0 0!important; }
|
||||
|
||||
.hades_input .ui-button { background:url(i/toggle-active-bg.png) no-repeat; display: inline-block; position: relative; padding: 0; margin:0; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; width:44px!important; height:38px!important;
|
||||
} /* the overflow property removes extra width in IE */
|
||||
|
||||
.hades_input input.ui-button {padding: 9px 11px!important; }
|
||||
/*button sets*/
|
||||
.hades_input .ui-buttonset { margin-top: 5px!important;width:89px!important; position:relative; float:left; border-radius:2px; -moz-border-radius:2px; }
|
||||
.hades_input .on { border:none!important; background:url(i/toggle-bg-off.png) top left repeat-x!important;}
|
||||
.hades_input .on .ui-state-active { border:none!important; top:0px!important; left:0px!important; }
|
||||
.hades_input .on span{ text-shadow:1px 1px 1px #9c4f42; color:#fff!important;line-height: 11px;}
|
||||
.hades_input .on .ui-state-default { border:1px solid #d3d3d3; top:-7px; left:-2px; }
|
||||
|
||||
.hades_input .off .ui-state-active { border:none!important; top:0px!important; right:0px!important; }
|
||||
.hades_input .off .ui-state-default { border:1px solid #d3d3d3; top:-7px; right:-4px;}
|
||||
.hades_input .off .ui-state-default span { color:#fff; }
|
||||
.hades_input .off { border-radius:2px!important; -moz-border-radius:2px!important; border:none!important; background:url(i/toggle-bg.png) top left repeat-x!important; }
|
||||
.hades_input .off .ui-state-active { }
|
||||
.hades_input .off span{ text-shadow:1px 1px 1px #7b9b52!important; color:#fff; line-height: 11px;}
|
||||
|
||||
.hades_input .ui-buttonset .ui-button { margin-left: 0!important; }
|
||||
|
||||
/* workarounds */
|
||||
.hades_input button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */
|
||||
.hades_input .ui-helper-hidden-accessible { visibility:hidden; position:absolute; }
|
||||
|
||||
/*select button styles*/
|
||||
.custom-select { float:left; text-decoration:none; cursor:pointer; position:relative; overflow:visible; width:280px;
|
||||
background:#fff; font-weight:500!important; font-size:11px!important; letter-spacing:0px; border-radius:2px; -moz-border-radius:2px; border:noned8d8d8!important;
|
||||
}
|
||||
.custom-select:hover,.custom-select:focus,.custom-select-open { background-position:right center; border-color:#999; }
|
||||
/*status text*/
|
||||
.custom-select-status { float:left; line-height:1.8; color:#444; padding:3px 8px; }
|
||||
.custom-select-roletext { position: absolute; left: -99999px; }
|
||||
/* button arrow icon*/
|
||||
.custom-select-button-icon { float:right; background: url(i/selectbox-up.png) top left no-repeat; height:28px; width:23px; display:block; }
|
||||
.custom-select-open .custom-select-button-icon { background: url(i/selectbox-down.png) top left no-repeat; }
|
||||
|
||||
|
||||
/*menu styles*/
|
||||
.custom-select-menu { border:1px solid #d8d8d8; background:#fff; z-index:999999; position:absolute; margin:0; padding:0; font-size:14px; width:280px; cursor: pointer; overflow: auto; overflow-x: hidden; }
|
||||
|
||||
/*hidden menu state*/
|
||||
.custom-select-menu-hidden { display:none; font-size:11px!important;}
|
||||
|
||||
/*li styles*/
|
||||
.custom-select-menu li { font-size: 11px!important;padding:0; margin:0; list-style:none; clear:both; border-bottom:1px solid #d8d8d8; }
|
||||
.custom-select-menu li a { text-decoration:none; color:#777; display:block; cursor: pointer; padding:.5em 5px; }
|
||||
.custom-select-menu li.hover-focus a{ color:#333; }
|
||||
.custom-select-menu li.selected { background:#fff; color:#333; }
|
||||
.custom-select-menu li.selected a {color: #333;text-decoration: underline; }
|
||||
|
||||
|
||||
/* make sure first and last li's have round corners */
|
||||
.custom-select-menu li:first-child { -moz-border-radius-topright:4px; -webkit-border-top-right-radius:4px; border-top-right-radius:4px; -moz-border-radius-topleft:4px; -webkit-border-top-left-radius:4px; border-top-left-radius:4px; }
|
||||
.custom-select-menu li:last-child { -moz-border-radius-bottomright:4px; -webkit-border-bottom-right-radius:4px; border-bottom-right-radius:4px; -moz-border-radius-bottomleft:4px; -webkit-border-bottom-left-radius:4px; border-bottom-left-radius:4px; border-bottom:none;}
|
||||
|
||||
|
||||
/*hide native select*/
|
||||
.select-hidden { display: none; font-size: 11px;}
|
||||
.select-wrapper { padding:0; float:left; background:#fff; border:1px solid #ccc; -moz-border-radius:4px; -webkit-border-radius:4px; border-radius:4px; margin-top: 5px; clear:none!important }
|
||||
span.tooltip-tip { background:url(i/tooltip-tip.png) 0px 0px no-repeat!important; display:block!important; width:13px!important; height:23px!important; position:absolute; top:6px!important; left:-13px!important; }
|
||||
|
||||
|
Before Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 6.4 KiB |
|
Before Width: | Height: | Size: 8.5 KiB |
|
Before Width: | Height: | Size: 5.3 KiB |
|
Before Width: | Height: | Size: 4.8 KiB |
|
Before Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 681 B |
|
Before Width: | Height: | Size: 483 B |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 373 B |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 562 B |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |