Commit 25122186 authored by shammash's avatar shammash Committed by lechuck
Browse files

updated constructor to 1.6.4

parent a4593bc6
...@@ -7,20 +7,11 @@ ...@@ -7,20 +7,11 @@
<?php get_header(); ?> <?php get_header(); ?>
<div id="content" class="box shadow opacity <?php the_constructor_layout_class() ?>"> <div id="content" class="box shadow opacity <?php the_constructor_layout_class() ?>">
<div id="container" > <div id="container" >
<div id="posts"> <article <?php post_class(); ?>>
<div <?php post_class(); ?>> <h1 class="opacity box center"><a href="#" title="<?php _e('Error 404 - Not Found', 'constructor'); ?>"><?php _e('Error 404 - Not Found', 'constructor'); ?></a></h1>
<div class="title opacity box"> <p><?php _e('Sorry, but you are looking for something that isn&#8217;t here.', 'constructor'); ?></p>
<h1 class="center"><a href="#" title="<?php _e('Error 404 - Not Found', 'constructor'); ?>"><?php _e('Error 404 - Not Found', 'constructor'); ?></a></h1> <p><?php get_search_form() ?></p>
</div> </article>
<div class="entry">
<p class="center"><?php _e('Sorry, but you are looking for something that isn&#8217;t here.', 'constructor'); ?></p>
<p><?php get_search_form() ?></p>
</div>
<div class="footer">
<div class="line"></div>
</div>
</div>
</div>
</div><!-- id='container' --> </div><!-- id='container' -->
<script type="text/javascript"> <script type="text/javascript">
// focus on search field after it has loaded // focus on search field after it has loaded
......
...@@ -33,55 +33,6 @@ $constructor_modules = array( ...@@ -33,55 +33,6 @@ $constructor_modules = array(
require_once CONSTRUCTOR_DIRECTORY .'/libs/Constructor/Admin.php'; require_once CONSTRUCTOR_DIRECTORY .'/libs/Constructor/Admin.php';
/**
* Replace scandir()
*
* @category PHP
* @package PHP_Compat
* @link http://php.net/function.scandir
* @author Aidan Lister <aidan@php.net>
* @version $Revision: 1.18 $
* @since PHP 5
* @require PHP 4.0.0 (user_error)
*/
if (!function_exists('scandir')) {
function scandir($directory, $sorting_order = 0)
{
if (!is_string($directory)) {
user_error('scandir() expects parameter 1 to be string, ' .
gettype($directory) . ' given', E_USER_WARNING);
return;
}
if (!is_int($sorting_order) && !is_bool($sorting_order)) {
user_error('scandir() expects parameter 2 to be long, ' .
gettype($sorting_order) . ' given', E_USER_WARNING);
return;
}
if (!is_dir($directory) || (false === $fh = @opendir($directory))) {
user_error('scandir() failed to open dir: Invalid argument', E_USER_WARNING);
return false;
}
$files = array ();
while (false !== ($filename = readdir($fh))) {
$files[] = $filename;
}
closedir($fh);
if ($sorting_order == 1) {
rsort($files);
} else {
sort($files);
}
return $files;
}
}
$admin = new Constructor_Admin(); $admin = new Constructor_Admin();
$admin -> init($constructor_modules); $admin -> init($constructor_modules);
.colorpicker { .colorpicker {
width: 356px; width: 356px;
height: 176px; height: 176px;
overflow: hidden; overflow: hidden;
position: absolute; position: absolute;
background: url(../images/background.png); background: url(../images/background.png);
font-family: Arial, Helvetica, sans-serif; font-family: Arial, Helvetica, sans-serif;
display: none; display: none;
} }
.colorpicker_color { .colorpicker_color {
width: 150px; width: 150px;
height: 150px; height: 150px;
left: 14px; left: 14px;
top: 13px; top: 13px;
position: absolute; position: absolute;
background: #f00; background: #f00;
overflow: hidden; overflow: hidden;
cursor: crosshair; cursor: crosshair;
} }
.colorpicker_color div { .colorpicker_color div {
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
width: 150px; width: 150px;
height: 150px; height: 150px;
background: url(../images/overlay.png); background: url(../images/overlay.png);
} }
.colorpicker_color div div { .colorpicker_color div div {
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
width: 11px; width: 11px;
height: 11px; height: 11px;
overflow: hidden; overflow: hidden;
background: url(../images/select.gif); background: url(../images/select.gif);
margin: -5px 0 0 -5px; margin: -5px 0 0 -5px;
} }
.colorpicker_hue { .colorpicker_hue {
position: absolute; position: absolute;
top: 13px; top: 13px;
left: 171px; left: 171px;
width: 35px; width: 35px;
height: 150px; height: 150px;
cursor: n-resize; cursor: n-resize;
} }
.colorpicker_hue div { .colorpicker_hue div {
position: absolute; position: absolute;
width: 35px; width: 35px;
height: 9px; height: 9px;
overflow: hidden; overflow: hidden;
background: url(../images/indic.gif) left top; background: url(../images/indic.gif) left top;
margin: -4px 0 0 0; margin: -4px 0 0 0;
left: 0px; left: 0px;
} }
.colorpicker_new_color { .colorpicker_new_color {
position: absolute; position: absolute;
width: 60px; width: 60px;
height: 30px; height: 30px;
left: 213px; left: 213px;
top: 13px; top: 13px;
background: #f00; background: #f00;
} }
.colorpicker_current_color { .colorpicker_current_color {
position: absolute; position: absolute;
width: 60px; width: 60px;
height: 30px; height: 30px;
left: 283px; left: 283px;
top: 13px; top: 13px;
background: #f00; background: #f00;
} }
.colorpicker input { .colorpicker input {
background-color: transparent; background-color: transparent;
border: 1px solid transparent; border: 1px solid transparent;
position: absolute; position: absolute;
font-size: 10px; font-size: 10px;
font-family: Arial, Helvetica, sans-serif; font-family: Arial, Helvetica, sans-serif;
color: #898989; color: #898989;
top: 4px; top: 4px;
right: 11px; right: 11px;
text-align: right; text-align: right;
margin: 0; margin: 0;
padding: 0; padding: 0;
height: 11px; height: 11px;
} }
.colorpicker_hex { .colorpicker_hex {
position: absolute; position: absolute;
width: 72px; width: 72px;
height: 22px; height: 22px;
background: url(../images/hex.png) top; background: url(../images/hex.png) top;
left: 212px; left: 212px;
top: 142px; top: 142px;
} }
.colorpicker_hex input { .colorpicker_hex input {
right: 6px; right: 6px;
} }
.colorpicker_field { .colorpicker_field {
height: 22px; height: 22px;
width: 62px; width: 62px;
background-position: top; background-position: top;
position: absolute; position: absolute;
} }
.colorpicker_field span { .colorpicker_field span {
position: absolute; position: absolute;
width: 12px; width: 12px;
height: 22px; height: 22px;
overflow: hidden; overflow: hidden;
top: 0; top: 0;
right: 0; right: 0;
cursor: n-resize; cursor: n-resize;
} }
.colorpicker_rgb_r { .colorpicker_rgb_r {
background-image: url(../images/rgb_r.png); background-image: url(../images/rgb_r.png);
top: 52px; top: 52px;
left: 212px; left: 212px;
} }
.colorpicker_rgb_g { .colorpicker_rgb_g {
background-image: url(../images/rgb_g.png); background-image: url(../images/rgb_g.png);
top: 82px; top: 82px;
left: 212px; left: 212px;
} }
.colorpicker_rgb_b { .colorpicker_rgb_b {
background-image: url(../images/rgb_b.png); background-image: url(../images/rgb_b.png);
top: 112px; top: 112px;
left: 212px; left: 212px;
} }
.colorpicker_hsb_h { .colorpicker_hsb_h {
background-image: url(../images/hsb_h.png); background-image: url(../images/hsb_h.png);
top: 52px; top: 52px;
left: 282px; left: 282px;
} }
.colorpicker_hsb_s { .colorpicker_hsb_s {
background-image: url(../images/hsb_s.png); background-image: url(../images/hsb_s.png);
top: 82px; top: 82px;
left: 282px; left: 282px;
} }
.colorpicker_hsb_b { .colorpicker_hsb_b {
background-image: url(../images/hsb_b.png); background-image: url(../images/hsb_b.png);
top: 112px; top: 112px;
left: 282px; left: 282px;
} }
.colorpicker_submit { .colorpicker_submit {
position: absolute; position: absolute;
width: 22px; width: 22px;
height: 22px; height: 22px;
background: url(../images/submit.png) top; background: url(../images/submit.png) top;
left: 322px; left: 322px;
top: 142px; top: 142px;
overflow: hidden; overflow: hidden;
} }
.colorpicker_focus { .colorpicker_focus {
background-position: center; background-position: center;
} }
.colorpicker_hex.colorpicker_focus { .colorpicker_hex.colorpicker_focus {
background-position: bottom; background-position: bottom;
} }
.colorpicker_submit.colorpicker_focus { .colorpicker_submit.colorpicker_focus {
background-position: bottom; background-position: bottom;
} }
.colorpicker_slider { .colorpicker_slider {
background-position: bottom; background-position: bottom;
} }
...@@ -7,18 +7,24 @@ ...@@ -7,18 +7,24 @@
* @todo More flexible * @todo More flexible
*/ */
return array( return array(
'Aclonica',
//'Allan',// 700 weight //'Allan',// 700 weight
'Allerta', 'Allerta',
'"Allerta Stencil"', '"Allerta Stencil"',
'Amaranth', 'Amaranth',
'"Annie Use Your Telescope"',
'"Anonymous Pro"', '"Anonymous Pro"',
'Anton', 'Anton',
'"Architects Daughter"', '"Architects Daughter"',
'Arimo', // Regular / Italic / Bold / Bold Italic 'Arimo', // Regular / Italic / Bold / Bold Italic
'Arvo', // Regular / Italic / Bold / Bold Italic 'Arvo', // Regular / Italic / Bold / Bold Italic
'Artifika',
'Asset',
'Astloch', 'Astloch',
'Bentham', 'Bentham',
'Bevan', 'Bevan',
'"Bigshot One"',
'Brawler',
//'Buda', // 300 weight //'Buda', // 300 weight
'Cabin', 'Cabin',
//'"Cabin Sketch"',// 700 weight //'"Cabin Sketch"',// 700 weight
...@@ -26,6 +32,9 @@ return array( ...@@ -26,6 +32,9 @@ return array(
'Candal', 'Candal',
'Cantarell', // Regular / Italic / Bold / Bold Italic 'Cantarell', // Regular / Italic / Bold / Bold Italic
'Cardo', 'Cardo',
'"Carter One"',
'Caudex',
'"Cedarville Cursive"',
'"Cherry Cream Soda"', '"Cherry Cream Soda"',
'Chewy', 'Chewy',
//'Coda',// 800 weight //'Coda',// 800 weight
...@@ -37,16 +46,24 @@ return array( ...@@ -37,16 +46,24 @@ return array(
'"Crimson Text"', '"Crimson Text"',
'Crushed', 'Crushed',
'Cuprum', 'Cuprum',
'Damion',
'"Dancing Script"', '"Dancing Script"',
'"Dawning of a New Day"',
'"Didact Gothic"',
'"Droid Sans"', // Regular / Bold '"Droid Sans"', // Regular / Bold
'"Droid Sans Mono"', '"Droid Sans Mono"',
'"Droid Serif"', '"Droid Serif"',
'"EB Garamond"', '"EB Garamond"',
'"Expletus Sans"', '"Expletus Sans"',
'"Fontdiner Swanky"', '"Fontdiner Swanky"',
'"Francois One"',
'Geo', 'Geo',
'"Goblin One"',
'"Goudy Bookletter 1911"', '"Goudy Bookletter 1911"',
'"Gravitas One"',
'Gruppo', 'Gruppo',
'"Hammersmith One"',
'"Holtwood One SC"',
'"Homemade Apple"', '"Homemade Apple"',
// "IM Fell" family // "IM Fell" family
'"IM Fell English"', '"IM Fell English"',
...@@ -56,57 +73,106 @@ return array( ...@@ -56,57 +73,106 @@ return array(
'"Irish Grover"', '"Irish Grover"',
'"Josefin Sans"', '"Josefin Sans"',
'"Josefin Slab"', '"Josefin Slab"',
'Judson',
'Jura',
'"Just Another Hand"', '"Just Another Hand"',
'"Just Me Again Down Here"', '"Just Me Again Down Here"',
'Kameron',
'Kenia', 'Kenia',
'Kranky', 'Kranky',
'Kreon', 'Kreon',
'Kristi', 'Kristi',
'"La Belle Aurore"',
'Lato', 'Lato',
'"League Script"', '"League Script"',
'Lekton', 'Lekton',
'Limelight',
'Lobster', 'Lobster',
'"Lobster Two"',
'Lora',
'"Luckiest Guy"', '"Luckiest Guy"',
'Mako',
'"Maven Pro"',
'Meddon', 'Meddon',
'MedievalSharp', 'MedievalSharp',
'Megrim',
'Merriweather', 'Merriweather',
'Metrophobic',
'Michroma',
'Miltonian',
'"Miltonian Tattoo"',
'Molengo', 'Molengo',
'Monofett',
'"Mountains of Christmas"', '"Mountains of Christmas"',
'Muli',
'Neucha', 'Neucha',
'Neuton', 'Neuton',
'"News Cycle"',
'Nobile', 'Nobile',
//'Nova', // 100 weight //'Nova', // 100 weight
'"Nova Square"',
'"Nova Oval"',
'"Nova Cut"',
'"Nova Round"',
'"Nova Script"',
'"Nova Mono"',
'Nunito',
'"OFL Sorts Mill Goudy TT"', '"OFL Sorts Mill Goudy TT"',
'"Old Standard TT"', '"Old Standard TT"',
'Orbitron', 'Orbitron',
'Oswald', 'Oswald',
'"PT Sans"', '"Over the Rainbow"',
'"PT Serif"',
'Pacifico', 'Pacifico',
'"Paytone One"',
'"Permanent Marker"', '"Permanent Marker"',
'Philosopher', 'Philosopher',
'Play',
'"Playfair Display"',
'Podkova',
'"PT Sans"',
'"PT Serif"',
'Puritan', 'Puritan',
'Quattrocento', 'Quattrocento',
'"Quattrocento Sans"',
'Radley', 'Radley',
//'Raleway', // 100 weight //'Raleway', // 100 weight
'Redressed',
'"Reenie Beanie"', '"Reenie Beanie"',
'"Rock Salt"', '"Rock Salt"',
'Rokkitt',
'"Ruslan Display"',
'Schoolbell', 'Schoolbell',
'"Shadows Into Light"',
'Shanti',
'"Sigmar One"',
'"Six Caps"', '"Six Caps"',
'Slackey', 'Slackey',
'Smythe',
//'Sniglet', // 800 weight //'Sniglet', // 800 weight
'"Special Elite"',
'"Sue Ellen Francisco"',
'Sunshiney', 'Sunshiney',
'Syncopate', 'Syncopate',
'"Swanky and Moo Moo"',
'Tangerine', 'Tangerine',
'"Tenor Sans"',
'"Terminal Dosis Light"',
'"The Girl Next Door"',
'Tinos', 'Tinos',
'Ubuntu', 'Ubuntu',
'Ultra',