diff --git a/404.php b/404.php new file mode 100644 index 0000000..097b7ac --- /dev/null +++ b/404.php @@ -0,0 +1,13 @@ + + +

+ + + + \ No newline at end of file diff --git a/adaptive-images.php b/adaptive-images.php new file mode 100644 index 0000000..1d51420 --- /dev/null +++ b/adaptive-images.php @@ -0,0 +1,322 @@ += filemtime($source_file)) { + return $cache_file; + } + + // modified, clear it + unlink($cache_file); + } + return generateImage($source_file, $cache_file, $resolution); +} + +/* generates the given cache file for the given source file with the given resolution */ +function generateImage($source_file, $cache_file, $resolution) { + global $sharpen, $jpg_quality; + + $extension = strtolower(pathinfo($source_file, PATHINFO_EXTENSION)); + + // Check the image dimensions + $dimensions = GetImageSize($source_file); + $width = $dimensions[0]; + $height = $dimensions[1]; + + // Do we need to downscale the image? + if ($width <= $resolution) { // no, because the width of the source image is already less than the client width + return $source_file; + } + + // We need to resize the source image to the width of the resolution breakpoint we're working with + $ratio = $height/$width; + $new_width = $resolution; + $new_height = ceil($new_width * $ratio); + $dst = ImageCreateTrueColor($new_width, $new_height); // re-sized image + + switch ($extension) { + case 'png': + $src = @ImageCreateFromPng($source_file); // original image + break; + case 'gif': + $src = @ImageCreateFromGif($source_file); // original image + break; + default: + $src = @ImageCreateFromJpeg($source_file); // original image + ImageInterlace($dst, true); // Enable interlancing (progressive JPG, smaller size file) + break; + } + + if($extension=='png'){ + imagealphablending($dst, false); + imagesavealpha($dst,true); + $transparent = imagecolorallocatealpha($dst, 255, 255, 255, 127); + imagefilledrectangle($dst, 0, 0, $new_width, $new_height, $transparent); + } + + ImageCopyResampled($dst, $src, 0, 0, 0, 0, $new_width, $new_height, $width, $height); // do the resize in memory + ImageDestroy($src); + + // sharpen the image? + // NOTE: requires PHP compiled with the bundled version of GD (see http://php.net/manual/en/function.imageconvolution.php) + if($sharpen == TRUE && function_exists('imageconvolution')) { + $intSharpness = findSharp($width, $new_width); + $arrMatrix = array( + array(-1, -2, -1), + array(-2, $intSharpness + 12, -2), + array(-1, -2, -1) + ); + imageconvolution($dst, $arrMatrix, $intSharpness, 0); + } + + $cache_dir = dirname($cache_file); + + // does the directory exist already? + if (!is_dir($cache_dir)) { + if (!mkdir($cache_dir, 0755, true)) { + // check again if it really doesn't exist to protect against race conditions + if (!is_dir($cache_dir)) { + // uh-oh, failed to make that directory + ImageDestroy($dst); + sendErrorImage("Failed to create cache directory: $cache_dir"); + } + } + } + + if (!is_writable($cache_dir)) { + sendErrorImage("The cache directory is not writable: $cache_dir"); + } + + // save the new file in the appropriate path, and send a version to the browser + switch ($extension) { + case 'png': + $gotSaved = ImagePng($dst, $cache_file); + break; + case 'gif': + $gotSaved = ImageGif($dst, $cache_file); + break; + default: + $gotSaved = ImageJpeg($dst, $cache_file, $jpg_quality); + break; + } + ImageDestroy($dst); + + if (!$gotSaved && !file_exists($cache_file)) { + sendErrorImage("Failed to create image: $cache_file"); + } + + return $cache_file; +} + +// check if the file exists at all +if (!file_exists($source_file)) { + header("Status: 404 Not Found"); + exit(); +} + +/* check that PHP has the GD library available to use for image re-sizing */ +if (!extension_loaded('gd')) { // it's not loaded + if (!function_exists('dl') || !dl('gd.so')) { // and we can't load it either + // no GD available, so deliver the image straight up + trigger_error('You must enable the GD extension to make use of Adaptive Images', E_USER_WARNING); + sendImage($source_file, $browser_cache); + } +} + +/* Check to see if a valid cookie exists */ +if (isset($_COOKIE['resolution'])) { + $cookie_value = $_COOKIE['resolution']; + + // does the cookie look valid? [whole number, comma, potential floating number] + if (! preg_match("/^[0-9]+[,]*[0-9\.]+$/", "$cookie_value")) { // no it doesn't look valid + setcookie("resolution", "$cookie_value", time()-100); // delete the mangled cookie + } + else { // the cookie is valid, do stuff with it + $cookie_data = explode(",", $_COOKIE['resolution']); + $client_width = (int) $cookie_data[0]; // the base resolution (CSS pixels) + $total_width = $client_width; + $pixel_density = 1; // set a default, used for non-retina style JS snippet + if (@$cookie_data[1]) { // the device's pixel density factor (physical pixels per CSS pixel) + $pixel_density = $cookie_data[1]; + } + + rsort($resolutions); // make sure the supplied break-points are in reverse size order + $resolution = $resolutions[0]; // by default use the largest supported break-point + + // if pixel density is not 1, then we need to be smart about adapting and fitting into the defined breakpoints + if($pixel_density != 1) { + $total_width = $client_width * $pixel_density; // required physical pixel width of the image + + // the required image width is bigger than any existing value in $resolutions + if($total_width > $resolutions[0]){ + // firstly, fit the CSS size into a break point ignoring the multiplier + foreach ($resolutions as $break_point) { // filter down + if ($total_width <= $break_point) { + $resolution = $break_point; + } + } + // now apply the multiplier + $resolution = $resolution * $pixel_density; + } + // the required image fits into the existing breakpoints in $resolutions + else { + foreach ($resolutions as $break_point) { // filter down + if ($total_width <= $break_point) { + $resolution = $break_point; + } + } + } + } + else { // pixel density is 1, just fit it into one of the breakpoints + foreach ($resolutions as $break_point) { // filter down + if ($total_width <= $break_point) { + $resolution = $break_point; + } + } + } + } +} + +/* No resolution was found (no cookie or invalid cookie) */ +if (!$resolution) { + // We send the lowest resolution for mobile-first approach, and highest otherwise + $resolution = $is_mobile ? min($resolutions) : max($resolutions); +} + +/* if the requested URL starts with a slash, remove the slash */ +if(substr($requested_uri, 0,1) == "/") { + $requested_uri = substr($requested_uri, 1); +} + +/* whew might the cache file be? */ +$cache_file = $document_root."/$cache_path/$resolution/".$requested_uri; + +/* Use the resolution value as a path variable and check to see if an image of the same name exists at that path */ +if (file_exists($cache_file)) { // it exists cached at that size + if ($watch_cache) { // if cache watching is enabled, compare cache and source modified dates to ensure the cache isn't stale + $cache_file = refreshCache($source_file, $cache_file, $resolution); + } + + sendImage($cache_file, $browser_cache); +} + +/* It exists as a source file, and it doesn't exist cached - lets make one: */ +$file = generateImage($source_file, $cache_file, $resolution); +sendImage($file, $browser_cache); \ No newline at end of file diff --git a/ai-cookie.php b/ai-cookie.php new file mode 100644 index 0000000..88a5203 --- /dev/null +++ b/ai-cookie.php @@ -0,0 +1,9 @@ + +
+
+
+ 'bookmark', + 'order' => 'ASC', + 'orderby' => 'menu_order', + 'category__in' => $current_cat + ); +query_posts($args); +if ( have_posts() ) : ?> +

+ +

GO BACK

+
+ +
+
+ diff --git a/comments.php b/comments.php new file mode 100644 index 0000000..1be95c7 --- /dev/null +++ b/comments.php @@ -0,0 +1,101 @@ + + + + + + +

+ + + +
    + +
+ + + + + + + + + +

+ + + + + + + +
+ +

+ +
+ +
+ + +

+ + +
+ + + +

. »

+ + + +
+ /> + +
+ +
+ /> + +
+ +
+ + +
+ + + + + +
+ +
+ +
+ + +
+ + ID); ?> + +
+ + + +
+ + diff --git a/css/blank.gif b/css/blank.gif new file mode 100644 index 0000000..35d42e8 Binary files /dev/null and b/css/blank.gif differ diff --git a/css/fancybox_loading.gif b/css/fancybox_loading.gif new file mode 100644 index 0000000..a03a40c Binary files /dev/null and b/css/fancybox_loading.gif differ diff --git a/css/fancybox_loading@2x.gif b/css/fancybox_loading@2x.gif new file mode 100644 index 0000000..9205aeb Binary files /dev/null and b/css/fancybox_loading@2x.gif differ diff --git a/css/fancybox_overlay.png b/css/fancybox_overlay.png new file mode 100644 index 0000000..a439139 Binary files /dev/null and b/css/fancybox_overlay.png differ diff --git a/css/fancybox_sprite.png b/css/fancybox_sprite.png new file mode 100644 index 0000000..fd8d5ca Binary files /dev/null and b/css/fancybox_sprite.png differ diff --git a/css/fancybox_sprite@2x.png b/css/fancybox_sprite@2x.png new file mode 100644 index 0000000..d0e4779 Binary files /dev/null and b/css/fancybox_sprite@2x.png differ diff --git a/css/mobile.css b/css/mobile.css new file mode 100644 index 0000000..a7dc79e --- /dev/null +++ b/css/mobile.css @@ -0,0 +1,673 @@ +@charset "UTF-8"; + +/* Normalize */ +article,aside,details,figcaption,figure,footer,header,hgroup,nav,section,summary{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}audio:not([controls]){display:none}[hidden]{display:none}html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}html,button,input,select,textarea{font-family:sans-serif}body{margin:0}a:focus{outline:thin dotted}a:hover,a:active{outline:0}h1{font-size:2em;margin:.67em 0}h2{font-size:1.5em;margin:.83em 0}h3{font-size:1.17em;margin:1em 0}h4{font-size:1em;margin:1.33em 0}h5{font-size:.83em;margin:1.67em 0}h6{font-size:.75em;margin:2.33em 0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}blockquote{margin:1em 40px}dfn{font-style:italic}mark{background:#ff0;color:#000}p,pre{margin:1em 0}pre,code,kbd,samp{font-family:monospace,serif;_font-family:'courier new',monospace;font-size:1em}pre{white-space:pre;white-space:pre-wrap;word-wrap:break-word}q{quotes:none}q:before,q:after{content:'';content:none}small{font-size:75%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}dl,menu,ol,ul{margin:1em 0}dd{margin:0 0 0 40px}menu,ol,ul{padding:0 0 0 40px}nav ul,nav ol{list-style:none;list-style-image:none}img{border:0;-ms-interpolation-mode:bicubic}svg:not(:root){overflow:hidden}figure{margin:0}form{margin:0}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0;white-space:normal;*margin-left:-7px}button,input,select,textarea{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle}button,input{line-height:normal}button,input[type="button"],input[type="reset"],input[type="submit"]{cursor:pointer;-webkit-appearance:button;*overflow:visible}button[disabled],input[disabled]{cursor:default}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0;*height:13px;*width:13px}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-decoration,input[type="search"]::-webkit-search-cancel-button{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0} + +/* Default */ +@-ms-viewport{width:device-width} +textarea{resize: vertical;} +a:hover, a:active{outline: none;} +html{overflow-y: scroll;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-webkit-overflow-scrolling: touch;-webkit-tap-highlight-color: #f3f5f6;} +label,input[type="button"],input[type="submit"],input[type="image"],button{cursor: pointer;} +.lt-ie7 img{-ms-interpolation-mode: bicubic;} + +/* 320 Styles */ + +/* ------------------------------------ + Framework +------------------------------------- */ +body { + font-family: 'Helvetica Neue', 'tahoma', san-serif; + background: rgb(255,255,255); /* Old browsers */ + background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(239,239,239,1) 100%); /* FF3.6+ */ + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(100%,rgba(239,239,239,1))); /* Chrome,Safari4+ */ + background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(239,239,239,1) 100%); /* Chrome10+,Safari5.1+ */ + background: -o-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(239,239,239,1) 100%); /* Opera 11.10+ */ + background: -ms-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(239,239,239,1) 100%); /* IE10+ */ + background: linear-gradient(to bottom, rgba(255,255,255,1) 0%,rgba(239,239,239,1) 100%); /* W3C */ + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#efefef',GradientType=0 ); /* IE6-9 */ + background-color: #fff; + color: #333; + font-size: 16px; + font-size: 1em; + line-height: 1.8em; +} + +a { color: #000; text-decoration: none; } +a:hover, a:focus { color: #CCC; text-decoration: underline; } + +h1, h2 { font-family: 'Roboto', sans-serif; font-weight: 500; } +h3, h4, h5, h6 { font-family: 'Raleway', sans-serif; font-weight: 400; } + +.wrap { width: 96%; max-width: 1600px; padding: 0 2%; margin: 0 auto; } + +/* ------------------------------------ + Header +------------------------------------- */ +header { + position: fixed; + top: 0; + min-height: 65px; + overflow: auto; + width: 100%; + background: #000; + background: rgba(0,0,0,.95); + z-index: 9999; + -webkit-box-shadow: 0 4px 27px rgba(0,0,0,0.25); + -moz-box-shadow: 0 4px 27px rgba(0,0,0,0.25); + box-shadow: 0 4px 27px rgba(0,0,0,0.25) + } + +.search { display: none; width: 100%; overflow: auto; text-align: center; background: #111; padding: 15px 0; } +.search input { + background: #000; + background: url('../img/google.png') center center no-repeat, #000; + color: #666; + border: 2px solid #222; + width: 97%; + padding: 1%; + text-align: center; + font-size: 1.4rem; + font-family: 'Raleway', sans-serif; + font-weight: 400; + -webkit-border-radius: 6px; + -moz-border-radius: 6px; + border-radius: 6px; + } +.search span { font-size: 1.2rem; } +.search em { font-style: normal; line-height: 1.2rem; font-size: .95rem; } +.search a { color: #333; } +.search a:focus, .search a:hover { color: #8bcc33; text-decoration: none; } + +.logo { line-height: 3.8rem; text-align: center; } +.logo img { vertical-align: middle; max-width: 267px; max-height: 46px; width: 100%; height: 100%; } +.logo h1 { margin: 0; font-size: 1.4rem; float: right; text-transform: uppercase; } +.logo span { font-size: 1.6rem; } +.logo a { display: block; color: #eee; padding: 0 10px; margin-left: -10px; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; } +.logo a:hover, .logo a:focus { background: #111; text-decoration: none; opacity: .85; color: #ddd; } + +ul.myaccount { display: block; overflow: auto; margin: 0 auto; width: 160px; padding: 0; list-style: none; color: #eee; } +ul.myaccount li { float: left; border-right: 1px dotted #333; } +ul.myaccount li:last-child { border-right: none; } +ul.myaccount a { display: block; float: left; line-height: 65px; padding: 0 15px; color: #eee; } +ul.myaccount a:hover, ul.myaccount a:focus { + text-decoration: none; + color: #8bcc33; + background: #111; + } +ul.myaccount a em { display: none; } + +ul.sub-menus { display: none; clear: both; margin: 0 0 0 -10px; padding: 25px 0 0 0; list-style: none; } +ul.sub-menus li { line-height: 1.5rem; display: inline; } +ul.sub-menus li a { display: block; padding: 10px 5px; border-bottom: 1px dotted #222; text-decoration: none; color: #ccc; } +ul.sub-menus li a:hover, ul.sub-menus .li a:focus { background: #111; color: #8bcc33; text-shadow: 1px 1px 1px #000; } +ul.sub-menus h3 { color: #8bcc33; margin: 0; padding: 25px 10px; clear: both; display: block; } + +.sub-close a { cursor:pointer; display: block; color: #FFF; clear: both; float: right; margin-right: 10px; margin-top: -25px; text-decoration: none; } +.sub-close a:hover, .sub-close a:focus { color: #000; cursor: pointer; } +a.close-nav { display: block; clear: both; text-align: center; padding: 15px; text-decoration: none; font-size: .95rem; color: #333; } +a.close-nav:hover, a.close-nav:focus { color: #8bcc33; } + +/* ------------------------------------ + Bookmarks +------------------------------------- */ + +h3.cat { display: block; clear: both; height: 25px; border-bottom: 1px dotted #666; margin: 0; padding: 10px 0; font-size: 1.4rem; } +h3.cat a { display: block; color: #666; text-decoration: none; } +h3.cat a:hover, h3.cat a:focus { color: #8bcc33; } +.anchor { height: 50px; } +.anchor:first-child { height: 0; } +ul.cat { display: block; margin: 0; padding: 25px 0; overflow: auto; } +ul.cat li { + display: block; + float: left; + margin: 3px 6px 6px 0; + width: 150px; + height: 150px; + overflow: hidden; + -moz-box-shadow: 0px 10px 14px -7px #cacaca; + -webkit-box-shadow: 0px 10px 14px -7px #cacaca; + box-shadow: 0px 5px 14px -7px #8b8c8a; + background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #eeeeee)); + background:-moz-linear-gradient(top, #dfdfdf 5%, #eeeeee 100%); + background:-webkit-linear-gradient(top, #dfdfdf 5%, #eeeeee 100%); + background:-o-linear-gradient(top, #dfdfdf 5%, #eeeeee 100%); + background:-ms-linear-gradient(top, #dfdfdf 5%, #eeeeee 100%); + background:linear-gradient(to bottom, #dfdfdf 5%, #eeeeee 100%); + filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dfdfdf', endColorstr='#eeeeee',GradientType=0); + background-color:#ccc; + -moz-border-radius:12px; + -webkit-border-radius:12px; + border-radius:12px; + border:1px solid #ddd; + display:inline-block; + cursor:pointer; + color:#a6a6a6; + text-shadow:0px 1px 0px #ffffff; + } +ul.cat li:hover, ul.cat li:focus { border-color: #eee; } +ul.cat li.noimg { background: url('../img/noimg.png') center center no-repeat #eee; } +ul.cat li a { display: block; line-height: 150px; text-align: center; font-family: 'Raleway', sans-serif; color: #333; text-shadow:0px 1px 0px #fff; } +ul.cat li a:hover, ul.cat li a:focus { + background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #eeeeee), color-stop(1, #cccccc)); + background:-moz-linear-gradient(top, #eeeeee 5%, #cccccc 100%); + background:-webkit-linear-gradient(top, #eeeeee 5%, #cccccc 100%); + background:-o-linear-gradient(top, #eeeeee 5%, #cccccc 100%); + background:-ms-linear-gradient(top, #eeeeee 5%, #cccccc 100%); + background:linear-gradient(to bottom, #eeeeee 5%, #cccccc 100%); + filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#cccccc',GradientType=0); + background-color:#eeeeee; + color: #eee; + text-decoration: none; + text-shadow: 1px 1px 1px #333; + } +ul.cat li a:active {position:relative; top:1px; } +ul.cat li img { vertical-align: middle; } +ul.cat li span { position: relative; display: block; } + +.pageList ul { display: block; clear: both; margin: 0; padding: 0 } +.pageList li { display: inline; } +.pageList li.pagenav { display: block; width: 100%; margin: 0; } +/* ------------------------------------ + Content +------------------------------------- */ +.interior { padding-top: 150px; } +.content { max-width: 1285px; padding-bottom: 75px; float: left; } +a.goback { text-decoration: none; font-size: 2rem; color: #CCC; } +a.goback:hover, a.goback:focus { color: #666; } + +/* ------------------------------------ + Sidebar +------------------------------------- */ +.sidebar { width: 100%; margin: 15px 0; padding: 25px 0; clear: both; } +.sidebar ul, .sidebar li { margin: 0; padding: 0; list-style: none; } +.sidebar li { font-size: .9rem; border-bottom: 1px dotted #666; line-height: 1.5rem; padding-bottom: 5px; margin-bottom: 15px; } +.sidebar li:last-child { border-bottom: none; } +.sidebar h3 { + display: block; + color: #eee; + background: #000; + padding: 5px 0px 5px 10px; + clear: both; + } +.sidebar a { color: #666; } +.sidebar a:hover, .sidebar a:focus { color: #8bcc33; text-decoration: none; } + +span.rss-date { + clear: both; + display: block; + text-align: right; + color: #bbb; + } + +/* ------------------------------------ + Footer +------------------------------------- */ +footer { + clear: both; + padding: 25px 0; + overflow: auto; + border-top: 6px solid #8bcc33; + background: #000; + -webkit-box-shadow: 0 0 27px rgba(0,0,0,0.25); + -moz-box-shadow: 0 0 27px rgba(0,0,0,0.25); + box-shadow: 0 0 27px rgba(0,0,0,0.25); + } + +.copyright { color: #eee; text-align: center; width: 100%;} +.copyright a { color: #eee; } +.copyright a:hover, .copyright a:focus { color: #fff; text-decoration: none; } + +a.scroll-to-top { + display: block; + display: none; + z-index: 999; + opacity: .75; + position: fixed; + top: 100%; + margin-top: -110px; /* = height + preferred bottom margin */ + right: 50%; + margin-right: -15px; /* = half of width + padding */ + padding: 10px; + text-align: center; + background: rgba(0,0,0,.5); + color: #eee; + text-decoration:none; + -webkit-border-radius: 25%; + -moz-border-radius: 25%; + border-radius: 25%; +} + +/* ------------------------------------ + Helpers +------------------------------------- */ +.fx { -webkit-transition: all 1.2s ease; -moz-transition: all 1.2s ease; -o-transition: all 1.2s ease; -ms-transition: all 1.2s ease; transition: all 1.2s ease; } + +/* ------------------------------------ + Wordpress Defaults +------------------------------------- */ +.alignnone { margin: 5px 20px 20px 0; } +.aligncenter, div.aligncenter { display: block; margin: 5px auto 5px auto; } +.alignright { float:right; margin: 5px 0 20px 20px; } +.alignleft { float: left; margin: 5px 20px 20px 0; } +.aligncenter { display: block; margin: 5px auto 5px auto; } +a img.alignright { float: right; margin: 5px 0 20px 20px; } +a img.alignnone { margin: 5px 20px 20px 0; } +a img.alignleft { float: left; margin: 5px 20px 20px 0; } +a img.aligncenter { display: block; margin-left: auto; margin-right: auto } +.wp-caption { background: #fff; border: 1px solid #f0f0f0; max-width: 96%; padding: 5px 3px 10px; text-align: center; } +.wp-caption.alignnone { margin: 5px 20px 20px 0; } +.wp-caption.alignleft { margin: 5px 20px 20px 0; } +.wp-caption.alignright { margin: 5px 0 20px 20px; } +.wp-caption img { border: 0 none; height: auto; margin: 0; max-width: 98.5%; padding: 0; width: auto; } +.wp-caption p.wp-caption-text { font-size: 11px; line-height: 17px; margin: 0; padding: 0 4px 5px; } + +/* ------------------------------------ + Icons +------------------------------------- */ +@font-face { + font-family: 'startpage'; + src: url('../font/startpage.eot?13891659'); + src: url('../font/startpage.eot?13891659#iefix') format('embedded-opentype'), + url('../font/startpage.woff?13891659') format('woff'), + url('../font/startpage.ttf?13891659') format('truetype'), + url('../font/startpage.svg?13891659#startpage') format('svg'); + font-weight: normal; + font-style: normal; +} +/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */ +/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */ +/* +@media screen and (-webkit-min-device-pixel-ratio:0) { + @font-face { + font-family: 'startpage'; + src: url('../font/startpage.svg?13891659#startpage') format('svg'); + } +} +*/ + + [class^="icon-"]:before, [class*=" icon-"]:before { + font-family: "startpage"; + font-style: normal; + font-weight: normal; + speak: none; + + display: inline-block; + text-decoration: inherit; + width: 1em; + margin-right: .2em; + text-align: center; + /* opacity: .8; */ + + /* For safety - reset parent styles, that can break glyph codes*/ + font-variant: normal; + text-transform: none; + + /* fix buttons height, for twitter bootstrap */ + line-height: 1em; + + /* Animation center compensation - margins should be symmetric */ + /* remove if not needed */ + margin-left: .2em; + + /* you can be more comfortable with increased icons size */ + /* font-size: 120%; */ + + /* Uncomment for 3D effect */ + /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */ +} + +.icon-search:before { content: '\e800'; } /* '' */ +.icon-youtube-squared:before { content: '\e833'; } /* '' */ +.icon-plus-squared:before { content: '\e804'; } /* '' */ +.icon-minus-squared:before { content: '\e803'; } /* '' */ +.icon-help:before { content: '\e802'; } /* '' */ +.icon-info:before { content: '\e805'; } /* '' */ +.icon-home:before { content: '\e806'; } /* '' */ +.icon-link-ext:before { content: '\e807'; } /* '' */ +.icon-lock:before { content: '\e808'; } /* '' */ +.icon-pencil-squared:before { content: '\e809'; } /* '' */ +.icon-attention:before { content: '\e80a'; } /* '' */ +.icon-location:before { content: '\e80b'; } /* '' */ +.icon-trash:before { content: '\e80c'; } /* '' */ +.icon-doc:before { content: '\e80d'; } /* '' */ +.icon-folder:before { content: '\e811'; } /* '' */ +.icon-rss-squared:before { content: '\e810'; } /* '' */ +.icon-menu:before { content: '\e80f'; } /* '' */ +.icon-cog:before { content: '\e80e'; } /* '' */ +.icon-down-dir:before { content: '\e81d'; } /* '' */ +.icon-up-dir:before { content: '\e81c'; } /* '' */ +.icon-left-dir:before { content: '\e81b'; } /* '' */ +.icon-right-dir:before { content: '\e81a'; } /* '' */ +.icon-down-open:before { content: '\e81e'; } /* '' */ +.icon-left-open:before { content: '\e819'; } /* '' */ +.icon-right-open:before { content: '\e818'; } /* '' */ +.icon-up-open:before { content: '\e81f'; } /* '' */ +.icon-mail-alt:before { content: '\e801'; } /* '' */ +.icon-angle-right:before { content: '\e816'; } /* '' */ +.icon-angle-up:before { content: '\e815'; } /* '' */ +.icon-angle-down:before { content: '\e814'; } /* '' */ +.icon-angle-circled-left:before { content: '\e820'; } /* '' */ +.icon-angle-circled-right:before { content: '\e821'; } /* '' */ +.icon-angle-circled-up:before { content: '\e822'; } /* '' */ +.icon-angle-circled-down:before { content: '\e823'; } /* '' */ +.icon-angle-double-left:before { content: '\e813'; } /* '' */ +.icon-angle-double-right:before { content: '\e812'; } /* '' */ +.icon-angle-double-up:before { content: '\e824'; } /* '' */ +.icon-angle-double-down:before { content: '\e825'; } /* '' */ +.icon-down-big:before { content: '\e829'; } /* '' */ +.icon-left-big:before { content: '\e826'; } /* '' */ +.icon-right-big:before { content: '\e827'; } /* '' */ +.icon-up-big:before { content: '\e828'; } /* '' */ +.icon-eject:before { content: '\e82a'; } /* '' */ +.icon-globe:before { content: '\e82b'; } /* '' */ +.icon-off:before { content: '\e82c'; } /* '' */ +.icon-facebook-squared:before { content: '\e82d'; } /* '' */ +.icon-gplus-squared:before { content: '\e82e'; } /* '' */ +.icon-linkedin-squared:before { content: '\e832'; } /* '' */ +.icon-pinterest-squared:before { content: '\e831'; } /* '' */ +.icon-skype:before { content: '\e830'; } /* '' */ +.icon-twitter-squared:before { content: '\e82f'; } /* '' */ +.icon-angle-left:before { content: '\e817'; } /* '' */ + +/* ------------------------------------ + Plugins +------------------------------------- */ + +/*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */ +.fancybox-wrap, +.fancybox-skin, +.fancybox-outer, +.fancybox-inner, +.fancybox-image, +.fancybox-wrap iframe, +.fancybox-wrap object, +.fancybox-nav, +.fancybox-nav span, +.fancybox-tmp +{ + padding: 0; + margin: 0; + border: 0; + outline: none; + vertical-align: top; +} + +.fancybox-wrap { + position: absolute; + top: 0; + left: 0; + z-index: 8020; +} + +.fancybox-skin { + position: relative; + background: #000; + color: #444; + margin-top: 22px; + text-shadow: none; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; +} + +.fancybox-opened { + z-index: 8030; +} + +.fancybox-opened .fancybox-skin { + -webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); + -moz-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); + box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); +} + +.fancybox-outer, .fancybox-inner { + position: relative; +} + +.fancybox-inner { + overflow: hidden; +} + +.fancybox-type-iframe .fancybox-inner { + -webkit-overflow-scrolling: touch; +} + +.fancybox-error { + color: #444; + font: 14px/20px "Helvetica Neue",Helvetica,Arial,sans-serif; + margin: 0; + padding: 15px; + white-space: nowrap; +} + +.fancybox-image, .fancybox-iframe { + display: block; + width: 100%; + height: 100%; +} + +.fancybox-image { + max-width: 100%; + max-height: 100%; +} + +#fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span { + background-image: url('fancybox_sprite.png'); +} + +#fancybox-loading { + position: fixed; + top: 50%; + left: 50%; + margin-top: -22px; + margin-left: -22px; + background-position: 0 -108px; + opacity: 0.8; + cursor: pointer; + z-index: 8060; +} + +#fancybox-loading div { + width: 44px; + height: 44px; + background: url('fancybox_loading.gif') center center no-repeat; +} + +.fancybox-close { + position: absolute; + bottom: -15px; + right: -18px; + width: 36px; + height: 36px; + cursor: pointer; + z-index: 8040; +} + +.fancybox-nav { + position: absolute; + top: 0; + width: 40%; + height: 100%; + cursor: pointer; + text-decoration: none; + background: transparent url('blank.gif'); /* helps IE */ + -webkit-tap-highlight-color: rgba(0,0,0,0); + z-index: 8040; +} + +.fancybox-prev { + left: 0; +} + +.fancybox-next { + right: 0; +} + +.fancybox-nav span { + position: absolute; + top: 50%; + width: 36px; + height: 34px; + margin-top: -18px; + cursor: pointer; + z-index: 8040; + visibility: hidden; +} + +.fancybox-prev span { + left: 10px; + background-position: 0 -36px; +} + +.fancybox-next span { + right: 10px; + background-position: 0 -72px; +} + +.fancybox-nav:hover span { + visibility: visible; +} + +.fancybox-tmp { + position: absolute; + top: -99999px; + left: -99999px; + visibility: hidden; + max-width: 99999px; + max-height: 99999px; + overflow: visible !important; +} + +/* Overlay helper */ + +.fancybox-lock { + overflow: hidden !important; + width: auto; +} + +.fancybox-lock body { + overflow: hidden !important; +} + +.fancybox-lock-test { + overflow-y: hidden !important; +} + +.fancybox-overlay { + position: absolute; + top: 0; + left: 0; + overflow: hidden; + display: none; + z-index: 8010; + background: url('fancybox_overlay.png'); +} + +.fancybox-overlay-fixed { + position: fixed; + bottom: 0; + right: 0; +} + +.fancybox-lock .fancybox-overlay { + overflow: auto; + overflow-y: scroll; +} + +/* Title helper */ + +.fancybox-title { + visibility: hidden; + font: normal 13px/20px "Helvetica Neue",Helvetica,Arial,sans-serif; + position: relative; + text-shadow: none; + z-index: 8050; +} + +.fancybox-opened .fancybox-title { + visibility: visible; +} + +.fancybox-title-float-wrap { + position: absolute; + bottom: 0; + right: 50%; + margin-bottom: -35px; + z-index: 8050; + text-align: center; +} + +.fancybox-title-float-wrap .child { + display: inline-block; + margin-right: -100%; + padding: 2px 20px; + background: transparent; /* Fallback for web browsers that doesn't support RGBa */ + background: rgba(0, 0, 0, 0.8); + -webkit-border-radius: 15px; + -moz-border-radius: 15px; + border-radius: 15px; + text-shadow: 0 1px 2px #222; + color: #FFF; + font-weight: bold; + line-height: 24px; + white-space: nowrap; +} + +.fancybox-title-outside-wrap { + position: relative; + margin-top: 10px; + color: #fff; +} + +.fancybox-title-inside-wrap { + padding-top: 10px; +} + +.fancybox-title-over-wrap { + position: absolute; + bottom: 0; + left: 0; + color: #fff; + padding: 10px; + background: #000; + background: rgba(0, 0, 0, .8); +} + +/*Retina graphics!*/ +@media only screen and (-webkit-min-device-pixel-ratio: 1.5), + only screen and (min--moz-device-pixel-ratio: 1.5), + only screen and (min-device-pixel-ratio: 1.5){ + + #fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span { + background-image: url('fancybox_sprite@2x.png'); + background-size: 44px 152px; /*The size of the normal image, half the size of the hi-res image*/ + } + + #fancybox-loading div { + background-image: url('fancybox_loading@2x.gif'); + background-size: 24px 24px; /*The size of the normal image, half the size of the hi-res image*/ + } +} + + +@media only screen and (min-width: 480px) { +/* 480 Styles */ + +} + +@media only screen and (min-width: 640px) { +/* 640 Styles */ +ul.sub-menus li { float: left; width: 31%; margin: 0 1%; } +.interior { padding-top: 75px; } +.logo { float: left; text-align: left; } +.logo img { width: 75%; height: 75%; } +ul.myaccount { float: right; width: auto; } +.copyright { float: right; text-align: right; width: auto;} +} + +@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min--moz-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5) { +/* Retina Specific Styles */ + +} + diff --git a/css/non-mobile.css b/css/non-mobile.css new file mode 100644 index 0000000..469c463 --- /dev/null +++ b/css/non-mobile.css @@ -0,0 +1,88 @@ +@charset "UTF-8"; + +@media only screen and (min-width: 768px) { +/* 768 Styles */ + +/* ------------------------------------ + Framework +------------------------------------- */ + +/* ------------------------------------ + Header +------------------------------------- */ +ul.myaccount a em { display: inline-block; font-style: normal; } + +/* ------------------------------------ + Bookmarks +------------------------------------- */ +h3.cat { width: 98.5%; } + +/* ------------------------------------ + Content +------------------------------------- */ +.content { width: 60%; } + +/* ------------------------------------ + Sidebar +------------------------------------- */ +.sidebar { float: right; width: 250px; margin: 15px 0 25px 25px; padding: 0; clear: none; overflow: hidden; } +.sidebar h3 { -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; } + +/* ------------------------------------ + Footer +------------------------------------- */ + +} +@media only screen and (min-width: 1024px) { +/* 1024 Styles */ +.content { width: 70%; } +ul.sub-menus li { float: left; width: 23%; margin: 0 1%; } + +} + +@media only screen and (min-width: 1500px) { +/* 1500 Styles */ +.content { width: 80%; } +ul.sub-menus li { float: left; width: 18%; margin: 0 1%; } + +} + +/* Print Styles */ +@media print { + *{ + background: transparent !important; + color: #000 !important; + box-shadow: none !important; + text-shadow: none !important;} + a, + a:visited{ + text-decoration: underline;} + a[href]:after{ + content: " (" attr(href) ")";} + abbr[title]:after{ + content: " (" attr(title) ")";} + a[href^="javascript:"]:after, + a[href^="#"]:after{ + content: "";} + pre, + blockquote{ + border: 1px solid #999; + page-break-inside: avoid;} + thead { + display: table-header-group;} + tr, + img{ + page-break-inside: avoid;} + img{ + max-width: 100% !important;} + @page{ + margin: 0.5cm;} + p, + h2, + h3{ + orphans: 3; + widows: 3;} + h2, + h3{ + page-break-after: avoid;} +} diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..07636cd Binary files /dev/null and b/favicon.ico differ diff --git a/favicon.png b/favicon.png new file mode 100644 index 0000000..c32dcb6 Binary files /dev/null and b/favicon.png differ diff --git a/font/startpage.eot b/font/startpage.eot new file mode 100644 index 0000000..1fd479c Binary files /dev/null and b/font/startpage.eot differ diff --git a/font/startpage.svg b/font/startpage.svg new file mode 100644 index 0000000..671db97 --- /dev/null +++ b/font/startpage.svg @@ -0,0 +1,63 @@ + + + +Copyright (C) 2013 by original authors @ fontello.com + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/font/startpage.ttf b/font/startpage.ttf new file mode 100644 index 0000000..76e0b36 Binary files /dev/null and b/font/startpage.ttf differ diff --git a/font/startpage.woff b/font/startpage.woff new file mode 100644 index 0000000..633f3a9 Binary files /dev/null and b/font/startpage.woff differ diff --git a/footer.php b/footer.php new file mode 100644 index 0000000..27dbc9f --- /dev/null +++ b/footer.php @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/full-page.php b/full-page.php new file mode 100644 index 0000000..b54f2d7 --- /dev/null +++ b/full-page.php @@ -0,0 +1,15 @@ + + +
+
+ +

+ + +
+
+ diff --git a/functions.php b/functions.php new file mode 100644 index 0000000..a30f4fd --- /dev/null +++ b/functions.php @@ -0,0 +1,458 @@ + + + 'Bookmarks', + 'singular_name' => 'Bookmark', + 'menu_name' => 'Bookmarks', + 'parent_item_colon' => 'Parent Bookmark:', + 'all_items' => 'All Bookmarks', + 'view_item' => 'View Bookmark', + 'add_new_item' => 'Add New Bookmark', + 'add_new' => 'New Bookmark', + 'edit_item' => 'Edit Bookmark', + 'update_item' => 'Update Bookmark', + 'search_items' => 'Search Bookmarks', + 'not_found' => 'No Bookmarks found', + 'not_found_in_trash' => 'No Bookmarks found in Trash', + ); + $args = array( + 'label' => 'bookmark', + 'description' => 'Create your custom Bookmarks', + 'labels' => $labels, + 'supports' => array( 'title', 'thumbnail', 'page-attributes' ), + 'taxonomies' => array( 'category' ), + 'hierarchical' => true, + 'public' => true, + 'show_ui' => true, + 'show_in_menu' => true, + 'show_in_nav_menus' => true, + 'show_in_admin_bar' => true, + 'menu_position' => 5, + 'can_export' => true, + 'has_archive' => true, + 'exclude_from_search' => false, + 'publicly_queryable' => true, + 'capability_type' => 'post', + ); + register_post_type( 'bookmark', $args ); + +} + +// Hook into the 'init' action +add_action( 'init', 'bookmarks', 0 ); + +// Custom Meta Boxes +add_action( 'add_meta_boxes', 'cd_meta_box_add' ); +function cd_meta_box_add() +{ + add_meta_box( 'startpress', 'Start Press Options', 'cd_meta_box_cb', 'bookmark', 'normal', 'high' ); +} + +function cd_meta_box_cb( $post ) +{ + $values = get_post_custom( $post->ID ); + $sp_url = isset( $values['sp_url'] ) ? esc_attr( $values['sp_url'][0] ) : ''; + $sp_new = isset( $values['sp_new'] ) ? esc_attr( $values['sp_new'][0] ) : ''; + $sp_modal = isset( $values['sp_modal'] ) ? esc_attr( $values['sp_modal'][0] ) : ''; + wp_nonce_field( 'my_meta_box_nonce', 'meta_box_nonce' ); + ?> +

+ + +

+

+ /> + +

+

+ /> + +

+ array( // on allow a tags + 'href' => array() // and those anchords can only have href attribute + ) + ); + + // Probably a good idea to make sure your data is set + if( isset( $_POST['sp_url'] ) ) + update_post_meta( $post_id, 'sp_url', wp_kses( $_POST['sp_url'], $allowed ) ); + + // This is purely my personal preference for saving checkboxes + $chk = ( isset( $_POST['sp_new'] ) && $_POST['sp_new'] ) ? 'on' : 'off'; + update_post_meta( $post_id, 'sp_new', $chk ); + $chk2 = ( isset( $_POST['sp_modal'] ) && $_POST['sp_modal'] ) ? 'on' : 'off'; + update_post_meta( $post_id, 'sp_modal', $chk2 ); +} + +// Order Categories by Wessley Roche +function wpguy_category_order_init(){ + + function wpguy_category_order_menu(){ + if (function_exists('add_submenu_page')) { + add_submenu_page("edit.php?post_type=bookmark", 'Order', 'Order', 4, "wpguy_category_order_options", 'wpguy_category_order_options'); + } + } + + function wpguy_category_order_scriptaculous() { + if($_GET['page'] == "wpguy_category_order_options"){ + wp_enqueue_script('scriptaculous'); + } + } + + add_action('admin_head', 'wpguy_category_order_options_head'); + add_action('admin_menu', 'wpguy_category_order_menu'); + add_action('admin_menu', 'wpguy_category_order_scriptaculous'); + + add_filter('get_terms', 'wpguy_category_order_reorder', 10, 3); + + // This is the main function. It's called every time the get_terms function is called. + function wpguy_category_order_reorder($terms, $taxonomies, $args){ + + // No need for this if we're in the ordering page. + if(isset($_GET['page']) && $_GET['page'] == "wpguy_category_order_options"){ + return $terms; + } + + // Apply to categories only and only if they're ordered by name. + if($taxonomies[0] == "category" && $args['orderby'] == 'name'){ // You may change this line for: `if($taxonomies[0] == "category" && $args['orderby'] == 'custom'){` if you wish to still be able to order by name. + $options = get_option("wpguy_category_order"); + + if(!empty($options)){ + + // Put all the order strings together + $master = ""; + foreach($options as $id => $option){ + $master .= $option.","; + } + + $ids = explode(",", $master); + + // Add an 'order' item to every category + $i=0; + foreach($ids as $id){ + if($id != ""){ + foreach($terms as $n => $category){ + if(is_object($category) && $category->term_id == $id){ + $terms[$n]->order = $i; + $i++; + } + } + } + + // Add order 99999 to every category that wasn't manually ordered (so they appear at the end). This just usually happens when you've added a new category but didn't order it. + foreach($terms as $n => $category){ + if(is_object($category) && !isset($category->order)){ + $terms[$n]->order = 99999; + } + } + + } + + // Sort the array of categories using a callback function + usort($terms, "wpguy_category_order_compare"); + } + + } + + return $terms; + } + + // Compare function. Used to order the categories array. + function wpguy_category_order_compare($a, $b) { + + if ($a->order == $b->order) { + + if($a->name == $b->name){ + return 0; + }else{ + return ($a->name < $b->name) ? -1 : 1; + } + + } + + return ($a->order < $b->order) ? -1 : 1; + } + + function wpguy_category_order_options(){ + if(isset($_GET['childrenOf'])){ + $childrenOf = $_GET['childrenOf']; + }else{ + $childrenOf = 0; + } + + + $options = get_option("wpguy_category_order"); + $order = $options[$childrenOf]; + + + if(isset($_GET['submit'])){ + $options[$childrenOf] = $order = $_GET['category_order']; + update_option("wpguy_category_order", $options); + $updated = true; + } + + // Get the parent ID of the current category and the name of the current category. + $allthecategories = get_categories("hide_empty=0"); + if($childrenOf != 0){ + foreach($allthecategories as $category){ + if($category->cat_ID == $childrenOf){ + $father = $category->parent; + $current_name = $category->name; + } + } + + } + + // Get only the categories belonging to the current category + $categories = get_categories("hide_empty=0&child_of=$childrenOf"); + + // Order the categories. + if($order){ + $order_array = explode(",", $order); + + $i=0; + + foreach($order_array as $id){ + foreach($categories as $n => $category){ + if(is_object($category) && $category->term_id == $id){ + $categories[$n]->order = $i; + $i++; + } + } + + + foreach($categories as $n => $category){ + if(is_object($category) && !isset($category->order)){ + $categories[$n]->order = 99999; + } + } + + } + + usort($categories, "wpguy_category_order_compare"); + + + } + + ?> + +
+ + +

Changes Saved.

+ + +
/wp-admin/edit.php" class="GET"> + + + + +

Order

+ +

/wp-admin/edit.php?page=wpguy_category_order_options&childrenOf=">« Back

+

+ + + +
+
+ parent == $childrenOf){ + + echo "
"; + if(get_categories("hide_empty=0&child_of=$category->cat_ID")){ + echo "cat_ID\">More »"; + } + echo "

$category->name

"; + echo "
\n"; + + } + } + ?> +
+

Drag to change order

+

+
+
+
+ + + + + + 'spsidebar', + 'name' => __( 'Sidebar' ), + 'before_widget' => '
', + 'after_widget' => '
', + 'before_title' => '

', + 'after_title' => '

' + ) + ); +} + +// Navigation + function post_navigation() { + echo ''; + } + +// Posted On + function posted_on() { + printf( __( 'Posted by %5$s', '' ), + esc_url( get_permalink() ), + esc_attr( get_the_time() ), + esc_attr( get_the_date( 'c' ) ), + esc_html( get_the_date() ), + esc_attr( get_the_author() ) + ); + } + +//Move plugins to footer +function footer_enqueue_scripts() { + remove_action('wp_head', 'wp_print_scripts'); + remove_action('wp_head', 'wp_print_head_scripts', 9); + remove_action('wp_head', 'wp_enqueue_scripts', 1); + add_action('wp_footer', 'wp_print_scripts', 5); + add_action('wp_footer', 'wp_enqueue_scripts', 5); + add_action('wp_footer', 'wp_print_head_scripts', 5); +} +add_action('after_setup_theme', 'footer_enqueue_scripts'); +?> diff --git a/header.php b/header.php new file mode 100644 index 0000000..93a80a0 --- /dev/null +++ b/header.php @@ -0,0 +1,115 @@ + + + + + + + <?php bloginfo('name'); ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+
diff --git a/img/apple-touch-icon-114x114-precomposed.png b/img/apple-touch-icon-114x114-precomposed.png new file mode 100644 index 0000000..f5af213 Binary files /dev/null and b/img/apple-touch-icon-114x114-precomposed.png differ diff --git a/img/apple-touch-icon-144x144-precomposed.png b/img/apple-touch-icon-144x144-precomposed.png new file mode 100644 index 0000000..a38b020 Binary files /dev/null and b/img/apple-touch-icon-144x144-precomposed.png differ diff --git a/img/apple-touch-icon-57x57-precomposed.png b/img/apple-touch-icon-57x57-precomposed.png new file mode 100644 index 0000000..9d372c5 Binary files /dev/null and b/img/apple-touch-icon-57x57-precomposed.png differ diff --git a/img/apple-touch-icon-72x72-precomposed.png b/img/apple-touch-icon-72x72-precomposed.png new file mode 100644 index 0000000..c4b2a84 Binary files /dev/null and b/img/apple-touch-icon-72x72-precomposed.png differ diff --git a/img/apple-touch-icon-precomposed.png b/img/apple-touch-icon-precomposed.png new file mode 100644 index 0000000..9d372c5 Binary files /dev/null and b/img/apple-touch-icon-precomposed.png differ diff --git a/img/apple-touch-icon.png b/img/apple-touch-icon.png new file mode 100644 index 0000000..9d372c5 Binary files /dev/null and b/img/apple-touch-icon.png differ diff --git a/img/google.png b/img/google.png new file mode 100644 index 0000000..35f2ba5 Binary files /dev/null and b/img/google.png differ diff --git a/img/logo.png b/img/logo.png new file mode 100644 index 0000000..b883d91 Binary files /dev/null and b/img/logo.png differ diff --git a/img/noimg.png b/img/noimg.png new file mode 100644 index 0000000..05bdd99 Binary files /dev/null and b/img/noimg.png differ diff --git a/index.php b/index.php new file mode 100644 index 0000000..e70b2e0 --- /dev/null +++ b/index.php @@ -0,0 +1,37 @@ + +
+
+
+ 'ASC' + ); +$categories=get_categories($cat_args); + foreach($categories as $category) { + $args=array( + 'post_type' => 'bookmark', + 'posts_per_page' => -1, + 'category__in' => array($category->term_id), + 'order' => 'ASC', + 'orderby' => 'menu_order' + ); + $posts=get_posts($args); + if ($posts) { + echo '
'; + echo '

name ) . '" ' . '>' . $category->name.'

'; + echo '
+ +
+
+ diff --git a/js/jquery.fancybox.pack.js b/js/jquery.fancybox.pack.js new file mode 100644 index 0000000..73f7578 --- /dev/null +++ b/js/jquery.fancybox.pack.js @@ -0,0 +1,46 @@ +/*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */ +(function(r,G,f,v){var J=f("html"),n=f(r),p=f(G),b=f.fancybox=function(){b.open.apply(this,arguments)},I=navigator.userAgent.match(/msie/i),B=null,s=G.createTouch!==v,t=function(a){return a&&a.hasOwnProperty&&a instanceof f},q=function(a){return a&&"string"===f.type(a)},E=function(a){return q(a)&&0
',image:'',iframe:'",error:'

The requested content cannot be loaded.
Please try again later.

',closeBtn:'',next:'',prev:''},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0, +openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:f.noop,beforeLoad:f.noop,afterLoad:f.noop,beforeShow:f.noop,afterShow:f.noop,beforeChange:f.noop,beforeClose:f.noop,afterClose:f.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1, +isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(a,d){if(a&&(f.isPlainObject(d)||(d={}),!1!==b.close(!0)))return f.isArray(a)||(a=t(a)?f(a).get():[a]),f.each(a,function(e,c){var k={},g,h,j,m,l;"object"===f.type(c)&&(c.nodeType&&(c=f(c)),t(c)?(k={href:c.data("fancybox-href")||c.attr("href"),title:c.data("fancybox-title")||c.attr("title"),isDom:!0,element:c},f.metadata&&f.extend(!0,k, +c.metadata())):k=c);g=d.href||k.href||(q(c)?c:null);h=d.title!==v?d.title:k.title||"";m=(j=d.content||k.content)?"html":d.type||k.type;!m&&k.isDom&&(m=c.data("fancybox-type"),m||(m=(m=c.prop("class").match(/fancybox\.(\w+)/))?m[1]:null));q(g)&&(m||(b.isImage(g)?m="image":b.isSWF(g)?m="swf":"#"===g.charAt(0)?m="inline":q(c)&&(m="html",j=c)),"ajax"===m&&(l=g.split(/\s+/,2),g=l.shift(),l=l.shift()));j||("inline"===m?g?j=f(q(g)?g.replace(/.*(?=#[^\s]+$)/,""):g):k.isDom&&(j=c):"html"===m?j=g:!m&&(!g&& +k.isDom)&&(m="inline",j=c));f.extend(k,{href:g,type:m,content:j,title:h,selector:l});a[e]=k}),b.opts=f.extend(!0,{},b.defaults,d),d.keys!==v&&(b.opts.keys=d.keys?f.extend({},b.defaults.keys,d.keys):!1),b.group=a,b._start(b.opts.index)},cancel:function(){var a=b.coming;a&&!1!==b.trigger("onCancel")&&(b.hideLoading(),b.ajaxLoad&&b.ajaxLoad.abort(),b.ajaxLoad=null,b.imgPreload&&(b.imgPreload.onload=b.imgPreload.onerror=null),a.wrap&&a.wrap.stop(!0,!0).trigger("onReset").remove(),b.coming=null,b.current|| +b._afterZoomOut(a))},close:function(a){b.cancel();!1!==b.trigger("beforeClose")&&(b.unbindEvents(),b.isActive&&(!b.isOpen||!0===a?(f(".fancybox-wrap").stop(!0).trigger("onReset").remove(),b._afterZoomOut()):(b.isOpen=b.isOpened=!1,b.isClosing=!0,f(".fancybox-item, .fancybox-nav").remove(),b.wrap.stop(!0,!0).removeClass("fancybox-opened"),b.transitions[b.current.closeMethod]())))},play:function(a){var d=function(){clearTimeout(b.player.timer)},e=function(){d();b.current&&b.player.isActive&&(b.player.timer= +setTimeout(b.next,b.current.playSpeed))},c=function(){d();p.unbind(".player");b.player.isActive=!1;b.trigger("onPlayEnd")};if(!0===a||!b.player.isActive&&!1!==a){if(b.current&&(b.current.loop||b.current.index=c.index?"next":"prev"],b.router=e||"jumpto",c.loop&&(0>a&&(a=c.group.length+a%c.group.length),a%=c.group.length),c.group[a]!==v&&(b.cancel(),b._start(a)))},reposition:function(a,d){var e=b.current,c=e?e.wrap:null,k;c&&(k=b._getPosition(d),a&&"scroll"===a.type?(delete k.position,c.stop(!0,!0).animate(k,200)):(c.css(k),e.pos=f.extend({},e.dim,k)))},update:function(a){var d= +a&&a.type,e=!d||"orientationchange"===d;e&&(clearTimeout(B),B=null);b.isOpen&&!B&&(B=setTimeout(function(){var c=b.current;c&&!b.isClosing&&(b.wrap.removeClass("fancybox-tmp"),(e||"load"===d||"resize"===d&&c.autoResize)&&b._setDimension(),"scroll"===d&&c.canShrink||b.reposition(a),b.trigger("onUpdate"),B=null)},e&&!s?0:300))},toggle:function(a){b.isOpen&&(b.current.fitToView="boolean"===f.type(a)?a:!b.current.fitToView,s&&(b.wrap.removeAttr("style").addClass("fancybox-tmp"),b.trigger("onUpdate")), +b.update())},hideLoading:function(){p.unbind(".loading");f("#fancybox-loading").remove()},showLoading:function(){var a,d;b.hideLoading();a=f('
').click(b.cancel).appendTo("body");p.bind("keydown.loading",function(a){if(27===(a.which||a.keyCode))a.preventDefault(),b.cancel()});b.defaults.fixed||(d=b.getViewport(),a.css({position:"absolute",top:0.5*d.h+d.y,left:0.5*d.w+d.x}))},getViewport:function(){var a=b.current&&b.current.locked||!1,d={x:n.scrollLeft(), +y:n.scrollTop()};a?(d.w=a[0].clientWidth,d.h=a[0].clientHeight):(d.w=s&&r.innerWidth?r.innerWidth:n.width(),d.h=s&&r.innerHeight?r.innerHeight:n.height());return d},unbindEvents:function(){b.wrap&&t(b.wrap)&&b.wrap.unbind(".fb");p.unbind(".fb");n.unbind(".fb")},bindEvents:function(){var a=b.current,d;a&&(n.bind("orientationchange.fb"+(s?"":" resize.fb")+(a.autoCenter&&!a.locked?" scroll.fb":""),b.update),(d=a.keys)&&p.bind("keydown.fb",function(e){var c=e.which||e.keyCode,k=e.target||e.srcElement; +if(27===c&&b.coming)return!1;!e.ctrlKey&&(!e.altKey&&!e.shiftKey&&!e.metaKey&&(!k||!k.type&&!f(k).is("[contenteditable]")))&&f.each(d,function(d,k){if(1h[0].clientWidth||h[0].clientHeight&&h[0].scrollHeight>h[0].clientHeight),h=f(h).parent();if(0!==c&&!j&&1g||0>k)b.next(0>g?"up":"right");d.preventDefault()}}))},trigger:function(a,d){var e,c=d||b.coming||b.current;if(c){f.isFunction(c[a])&&(e=c[a].apply(c,Array.prototype.slice.call(arguments,1)));if(!1===e)return!1;c.helpers&&f.each(c.helpers,function(d,e){if(e&&b.helpers[d]&&f.isFunction(b.helpers[d][a]))b.helpers[d][a](f.extend(!0, +{},b.helpers[d].defaults,e),c)});p.trigger(a)}},isImage:function(a){return q(a)&&a.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(a){return q(a)&&a.match(/\.(swf)((\?|#).*)?$/i)},_start:function(a){var d={},e,c;a=l(a);e=b.group[a]||null;if(!e)return!1;d=f.extend(!0,{},b.opts,e);e=d.margin;c=d.padding;"number"===f.type(e)&&(d.margin=[e,e,e,e]);"number"===f.type(c)&&(d.padding=[c,c,c,c]);d.modal&&f.extend(!0,d,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1, +mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}});d.autoSize&&(d.autoWidth=d.autoHeight=!0);"auto"===d.width&&(d.autoWidth=!0);"auto"===d.height&&(d.autoHeight=!0);d.group=b.group;d.index=a;b.coming=d;if(!1===b.trigger("beforeLoad"))b.coming=null;else{c=d.type;e=d.href;if(!c)return b.coming=null,b.current&&b.router&&"jumpto"!==b.router?(b.current.index=a,b[b.router](b.direction)):!1;b.isActive=!0;if("image"===c||"swf"===c)d.autoHeight=d.autoWidth=!1,d.scrolling="visible";"image"===c&&(d.aspectRatio= +!0);"iframe"===c&&s&&(d.scrolling="scroll");d.wrap=f(d.tpl.wrap).addClass("fancybox-"+(s?"mobile":"desktop")+" fancybox-type-"+c+" fancybox-tmp "+d.wrapCSS).appendTo(d.parent||"body");f.extend(d,{skin:f(".fancybox-skin",d.wrap),outer:f(".fancybox-outer",d.wrap),inner:f(".fancybox-inner",d.wrap)});f.each(["Top","Right","Bottom","Left"],function(a,b){d.skin.css("padding"+b,w(d.padding[a]))});b.trigger("onReady");if("inline"===c||"html"===c){if(!d.content||!d.content.length)return b._error("content")}else if(!e)return b._error("href"); +"image"===c?b._loadImage():"ajax"===c?b._loadAjax():"iframe"===c?b._loadIframe():b._afterLoad()}},_error:function(a){f.extend(b.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:a,content:b.coming.tpl.error});b._afterLoad()},_loadImage:function(){var a=b.imgPreload=new Image;a.onload=function(){this.onload=this.onerror=null;b.coming.width=this.width/b.opts.pixelRatio;b.coming.height=this.height/b.opts.pixelRatio;b._afterLoad()};a.onerror=function(){this.onload= +this.onerror=null;b._error("image")};a.src=b.coming.href;!0!==a.complete&&b.showLoading()},_loadAjax:function(){var a=b.coming;b.showLoading();b.ajaxLoad=f.ajax(f.extend({},a.ajax,{url:a.href,error:function(a,e){b.coming&&"abort"!==e?b._error("ajax",a):b.hideLoading()},success:function(d,e){"success"===e&&(a.content=d,b._afterLoad())}}))},_loadIframe:function(){var a=b.coming,d=f(a.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",s?"auto":a.iframe.scrolling).attr("src",a.href); +f(a.wrap).bind("onReset",function(){try{f(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(a){}});a.iframe.preload&&(b.showLoading(),d.one("load",function(){f(this).data("ready",1);s||f(this).bind("load.fb",b.update);f(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();b._afterLoad()}));a.content=d.appendTo(a.inner);a.iframe.preload||b._afterLoad()},_preloadImages:function(){var a=b.group,d=b.current,e=a.length,c=d.preload?Math.min(d.preload, +e-1):0,f,g;for(g=1;g<=c;g+=1)f=a[(d.index+g)%e],"image"===f.type&&f.href&&((new Image).src=f.href)},_afterLoad:function(){var a=b.coming,d=b.current,e,c,k,g,h;b.hideLoading();if(a&&!1!==b.isActive)if(!1===b.trigger("afterLoad",a,d))a.wrap.stop(!0).trigger("onReset").remove(),b.coming=null;else{d&&(b.trigger("beforeChange",d),d.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove());b.unbindEvents();e=a.content;c=a.type;k=a.scrolling;f.extend(b,{wrap:a.wrap,skin:a.skin, +outer:a.outer,inner:a.inner,current:a,previous:d});g=a.href;switch(c){case "inline":case "ajax":case "html":a.selector?e=f("
").html(e).find(a.selector):t(e)&&(e.data("fancybox-placeholder")||e.data("fancybox-placeholder",f('
').insertAfter(e).hide()),e=e.show().detach(),a.wrap.bind("onReset",function(){f(this).find(e).length&&e.hide().replaceAll(e.data("fancybox-placeholder")).data("fancybox-placeholder",!1)}));break;case "image":e=a.tpl.image.replace("{href}", +g);break;case "swf":e='',h="",f.each(a.swf,function(a,b){e+='';h+=" "+a+'="'+b+'"'}),e+='"}(!t(e)||!e.parent().is(a.inner))&&a.inner.append(e);b.trigger("beforeShow");a.inner.css("overflow","yes"===k?"scroll": +"no"===k?"hidden":k);b._setDimension();b.reposition();b.isOpen=!1;b.coming=null;b.bindEvents();if(b.isOpened){if(d.prevMethod)b.transitions[d.prevMethod]()}else f(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onReset").remove();b.transitions[b.isOpened?a.nextMethod:a.openMethod]();b._preloadImages()}},_setDimension:function(){var a=b.getViewport(),d=0,e=!1,c=!1,e=b.wrap,k=b.skin,g=b.inner,h=b.current,c=h.width,j=h.height,m=h.minWidth,u=h.minHeight,n=h.maxWidth,p=h.maxHeight,s=h.scrolling,q=h.scrollOutside? +h.scrollbarWidth:0,x=h.margin,y=l(x[1]+x[3]),r=l(x[0]+x[2]),v,z,t,C,A,F,B,D,H;e.add(k).add(g).width("auto").height("auto").removeClass("fancybox-tmp");x=l(k.outerWidth(!0)-k.width());v=l(k.outerHeight(!0)-k.height());z=y+x;t=r+v;C=E(c)?(a.w-z)*l(c)/100:c;A=E(j)?(a.h-t)*l(j)/100:j;if("iframe"===h.type){if(H=h.content,h.autoHeight&&1===H.data("ready"))try{H[0].contentWindow.document.location&&(g.width(C).height(9999),F=H.contents().find("body"),q&&F.css("overflow-x","hidden"),A=F.outerHeight(!0))}catch(G){}}else if(h.autoWidth|| +h.autoHeight)g.addClass("fancybox-tmp"),h.autoWidth||g.width(C),h.autoHeight||g.height(A),h.autoWidth&&(C=g.width()),h.autoHeight&&(A=g.height()),g.removeClass("fancybox-tmp");c=l(C);j=l(A);D=C/A;m=l(E(m)?l(m,"w")-z:m);n=l(E(n)?l(n,"w")-z:n);u=l(E(u)?l(u,"h")-t:u);p=l(E(p)?l(p,"h")-t:p);F=n;B=p;h.fitToView&&(n=Math.min(a.w-z,n),p=Math.min(a.h-t,p));z=a.w-y;r=a.h-r;h.aspectRatio?(c>n&&(c=n,j=l(c/D)),j>p&&(j=p,c=l(j*D)),cz||y>r)&&(c>m&&j>u)&&!(19n&&(c=n,j=l(c/D)),g.width(c).height(j),e.width(c+x),a=e.width(),y=e.height();else c=Math.max(m,Math.min(c,c-(a-z))),j=Math.max(u,Math.min(j,j-(y-r)));q&&("auto"===s&&jz||y>r)&&c>m&&j>u;c=h.aspectRatio?cu&&j
').appendTo(b.coming?b.coming.parent:a.parent);this.fixed=!1;a.fixed&&b.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(a){var d=this;a=f.extend({},this.defaults,a);this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(a);this.fixed||(n.bind("resize.overlay",f.proxy(this.update,this)),this.update());a.closeClick&&this.overlay.bind("click.overlay",function(a){if(f(a.target).hasClass("fancybox-overlay"))return b.isActive? +b.close():d.close(),!1});this.overlay.css(a.css).show()},close:function(){var a,b;n.unbind("resize.overlay");this.el.hasClass("fancybox-lock")&&(f(".fancybox-margin").removeClass("fancybox-margin"),a=n.scrollTop(),b=n.scrollLeft(),this.el.removeClass("fancybox-lock"),n.scrollTop(a).scrollLeft(b));f(".fancybox-overlay").remove().hide();f.extend(this,{overlay:null,fixed:!1})},update:function(){var a="100%",b;this.overlay.width(a).height("100%");I?(b=Math.max(G.documentElement.offsetWidth,G.body.offsetWidth), +p.width()>b&&(a=p.width())):p.width()>n.width()&&(a=p.width());this.overlay.width(a).height(p.height())},onReady:function(a,b){var e=this.overlay;f(".fancybox-overlay").stop(!0,!0);e||this.create(a);a.locked&&(this.fixed&&b.fixed)&&(e||(this.margin=p.height()>n.height()?f("html").css("margin-right").replace("px",""):!1),b.locked=this.overlay.append(b.wrap),b.fixed=!1);!0===a.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(a,b){var e,c;b.locked&&(!1!==this.margin&&(f("*").filter(function(){return"fixed"=== +f(this).css("position")&&!f(this).hasClass("fancybox-overlay")&&!f(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),e=n.scrollTop(),c=n.scrollLeft(),this.el.addClass("fancybox-lock"),n.scrollTop(e).scrollLeft(c));this.open(a)},onUpdate:function(){this.fixed||this.update()},afterClose:function(a){this.overlay&&!b.coming&&this.overlay.fadeOut(a.speedOut,f.proxy(this.close,this))}};b.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(a){var d= +b.current,e=d.title,c=a.type;f.isFunction(e)&&(e=e.call(d.element,d));if(q(e)&&""!==f.trim(e)){d=f('
'+e+"
");switch(c){case "inside":c=b.skin;break;case "outside":c=b.wrap;break;case "over":c=b.inner;break;default:c=b.skin,d.appendTo("body"),I&&d.width(d.width()),d.wrapInner(''),b.current.margin[2]+=Math.abs(l(d.css("margin-bottom")))}d["top"===a.position?"prependTo":"appendTo"](c)}}};f.fn.fancybox=function(a){var d, +e=f(this),c=this.selector||"",k=function(g){var h=f(this).blur(),j=d,k,l;!g.ctrlKey&&(!g.altKey&&!g.shiftKey&&!g.metaKey)&&!h.is(".fancybox-wrap")&&(k=a.groupAttr||"data-fancybox-group",l=h.attr(k),l||(k="rel",l=h.get(0)[k]),l&&(""!==l&&"nofollow"!==l)&&(h=c.length?f(c):e,h=h.filter("["+k+'="'+l+'"]'),j=h.index(this)),a.index=j,!1!==b.open(h,a)&&g.preventDefault())};a=a||{};d=a.index||0;!c||!1===a.live?e.unbind("click.fb-start").bind("click.fb-start",k):p.undelegate(c,"click.fb-start").delegate(c+ +":not('.fancybox-item, .fancybox-nav')","click.fb-start",k);this.filter("[data-fancybox-start=1]").trigger("click");return this};p.ready(function(){var a,d;f.scrollbarWidth===v&&(f.scrollbarWidth=function(){var a=f('
').appendTo("body"),b=a.children(),b=b.innerWidth()-b.height(99).innerWidth();a.remove();return b});if(f.support.fixedPosition===v){a=f.support;d=f('
').appendTo("body");var e=20=== +d[0].offsetTop||15===d[0].offsetTop;d.remove();a.fixedPosition=e}f.extend(b.defaults,{scrollbarWidth:f.scrollbarWidth(),fixed:f.support.fixedPosition,parent:f("body")});a=f(r).width();J.addClass("fancybox-lock-test");d=f(r).width();J.removeClass("fancybox-lock-test");f("").appendTo("head")})})(window,document,jQuery); \ No newline at end of file diff --git a/js/respond.min.js b/js/respond.min.js new file mode 100644 index 0000000..21437ba --- /dev/null +++ b/js/respond.min.js @@ -0,0 +1,6 @@ +/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */ +/*! NOTE: If you're already including a window.matchMedia polyfill via Modernizr or otherwise, you don't need this part */ +window.matchMedia=window.matchMedia||(function(e,f){var c,a=e.documentElement,b=a.firstElementChild||a.firstChild,d=e.createElement("body"),g=e.createElement("div");g.id="mq-test-1";g.style.cssText="position:absolute;top:-100em";d.style.background="none";d.appendChild(g);return function(h){g.innerHTML='­';a.insertBefore(d,b);c=g.offsetWidth==42;a.removeChild(d);return{matches:c,media:h}}})(document); + +/*! Respond.js v1.1.0: min/max-width media query polyfill. (c) Scott Jehl. MIT/GPLv2 Lic. j.mp/respondjs */ +(function(e){e.respond={};respond.update=function(){};respond.mediaQueriesSupported=e.matchMedia&&e.matchMedia("only all").matches;if(respond.mediaQueriesSupported){return}var w=e.document,s=w.documentElement,i=[],k=[],q=[],o={},h=30,f=w.getElementsByTagName("head")[0]||s,g=w.getElementsByTagName("base")[0],b=f.getElementsByTagName("link"),d=[],a=function(){var D=b,y=D.length,B=0,A,z,C,x;for(;B-1,minw:F.match(/\(min\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:F.match(/\(max\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}}j()},l,r,v=function(){var z,A=w.createElement("div"),x=w.body,y=false;A.style.cssText="position:absolute;font-size:1em;width:1em";if(!x){x=y=w.createElement("body");x.style.background="none"}x.appendChild(A);s.insertBefore(x,s.firstChild);z=A.offsetWidth;if(y){s.removeChild(x)}else{x.removeChild(A)}z=p=parseFloat(z);return z},p,j=function(I){var x="clientWidth",B=s[x],H=w.compatMode==="CSS1Compat"&&B||w.body[x]||B,D={},G=b[b.length-1],z=(new Date()).getTime();if(I&&l&&z-l-1?(p||v()):1)}if(!!J){J=parseFloat(J)*(J.indexOf(y)>-1?(p||v()):1)}if(!K.hasquery||(!A||!L)&&(A||H>=C)&&(L||H<=J)){if(!D[K.media]){D[K.media]=[]}D[K.media].push(k[K.rules])}}for(var E in q){if(q[E]&&q[E].parentNode===f){f.removeChild(q[E])}}for(var E in D){var M=w.createElement("style"),F=D[E].join("\n");M.type="text/css";M.media=E;f.insertBefore(M,G.nextSibling);if(M.styleSheet){M.styleSheet.cssText=F}else{M.appendChild(w.createTextNode(F))}q.push(M)}},n=function(x,z){var y=c();if(!y){return}y.open("GET",x,true);y.onreadystatechange=function(){if(y.readyState!=4||y.status!=200&&y.status!=304){return}z(y.responseText)};if(y.readyState==4){return}y.send(null)},c=(function(){var x=false;try{x=new XMLHttpRequest()}catch(y){x=new ActiveXObject("Microsoft.XMLHTTP")}return function(){return x}})();a();respond.update=a;function t(){j(true)}if(e.addEventListener){e.addEventListener("resize",t,false)}else{if(e.attachEvent){e.attachEvent("onresize",t)}}})(this); \ No newline at end of file diff --git a/js/scripts.js b/js/scripts.js new file mode 100644 index 0000000..b90a370 --- /dev/null +++ b/js/scripts.js @@ -0,0 +1,66 @@ +//Main JS +(function($) { + $(document).ready(function() { + $('html').removeClass('no-js').addClass('js'); + + //Scroll Effects + $(window).scroll(function () { + if ($(this).scrollTop() < 500) { + $('.scroll-to-top').hide(); + } else { + $('.scroll-to-top').fadeIn(500).click(function () { + $('html, body').stop(true).animate({scrollTop:0}, 1000); + }); + } + }); + + //Google Search + $(".btnSearch").click(function(e) { + e.preventDefault(); + e.stopPropagation(); + $(".search").slideToggle("slow"); + $( ".gsearch" ).focus(); + }); + $(".sclose").click(function(e) { + $(".search").slideUp("fase"); + $( ".myaccount" ).focus(); + }); + + //Fancybox + $(".modal").fancybox({ + fitToView : true, + width : '95%', + maxWidth : '1600px', + height : '95%', + autoSize : true, + closeClick : true, + arrows : false, + openEffect : 'fade', + closeEffect : 'fade' + }); + + //Mobile Menu + $(".mobileNav").click(function(e) { + e.preventDefault(); + e.stopPropagation(); + $("#mobileNav").slideToggle("slow"); + }); + $(document).click(function() { + $("#mobileNav").slideUp("slow"); + }); + + // Dropdown Menus + $('.top-item').click(function(){ + $('.sub-menus').slideToggle('slow'); + }); + + $('.close-nav').click(function(){ + $('.sub-menus').slideUp('fast'); + }); + +}); +})( jQuery ); +/* Modernizr 2.6.2 (Custom Build) | MIT & BSD + * Build: http://modernizr.com/download/#-touch-cssclasses-teststyles-prefixes-load + */ +;window.Modernizr=function(a,b,c){function w(a){j.cssText=a}function x(a,b){return w(m.join(a+";")+(b||""))}function y(a,b){return typeof a===b}function z(a,b){return!!~(""+a).indexOf(b)}function A(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:y(f,"function")?f.bind(d||b):f}return!1}var d="2.6.2",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m=" -webkit- -moz- -o- -ms- ".split(" "),n={},o={},p={},q=[],r=q.slice,s,t=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["­",'"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},u={}.hasOwnProperty,v;!y(u,"undefined")&&!y(u.call,"undefined")?v=function(a,b){return u.call(a,b)}:v=function(a,b){return b in a&&y(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=r.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(r.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(r.call(arguments)))};return e}),n.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:t(["@media (",m.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsetTop===9}),c};for(var B in n)v(n,B)&&(s=B.toLowerCase(),e[s]=n[B](),q.push((e[s]?"":"no-")+s));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)v(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},w(""),i=k=null,e._version=d,e._prefixes=m,e.testStyles=t,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+q.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f0){var a=l,f,e=s.substring(0,e).replace(H,i);if(e==i||e.charAt(e.length-1)==o)e+="*";try{f=t(e)}catch(k){}if(f){e=0;for(c=f.length;e-1&&(a=a.substring(0,l));if(a.charAt(0)==":")switch(a.slice(1)){case "root":c=function(a){return b?a!=p:a==p};break;case "target":if(m==8){c=function(a){function c(){var d=location.hash,e=d.slice(1);return b?d==i||a.id!=e:d!=i&&a.id==e}k(j,"hashchange",function(){g(a,d,c())});return c()};break}return!1;case "checked":c=function(a){J.test(a.type)&&k(a,"propertychange",function(){event.propertyName=="checked"&&g(a,d,a.checked!==b)});return a.checked!==b};break;case "disabled":b=!b;case "enabled":c=function(c){if(K.test(c.tagName))return k(c,"propertychange",function(){event.propertyName=="$disabled"&&g(c,d,c.a===b)}),q.push(c),c.a=c.disabled,c.disabled===b;return a==":enabled"?b:!b};break;case "focus":e="focus",f="blur";case "hover":e||(e="mouseenter",f="mouseleave");c=function(a){k(a,b?f:e,function(){g(a,d,!0)});k(a,b?e:f,function(){g(a,d,!1)});return b};break;default:if(!L.test(a))return!1}return{className:d,b:c}}function w(a){return M+"-"+(m==6&&N?O++:a.replace(P,function(a){return a.charCodeAt(0)}))}function D(a){return a.replace(x,h).replace(Q,o)}function g(a,c,d){var b=a.className,c=u(b,c,d);if(c!=b)a.className=c,a.parentNode.className+=i}function u(a,c,d){var b=RegExp("(^|\\s)"+c+"(\\s|$)"),e=b.test(a);return d?e?a:a+o+c:e?a.replace(b,h).replace(x,h):a}function k(a,c,d){a.attachEvent("on"+c,d)}function r(a,c){if(/^https?:\/\//i.test(a))return c.substring(0,c.indexOf("/",8))==a.substring(0,a.indexOf("/",8))?a:null;if(a.charAt(0)=="/")return c.substring(0,c.indexOf("/",8))+a;var d=c.split(/[?#]/)[0];a.charAt(0)!="?"&&d.charAt(d.length-1)!="/"&&(d=d.substring(0,d.lastIndexOf("/")+1));return d+a}function y(a){if(a)return n.open("GET",a,!1),n.send(),(n.status==200?n.responseText:i).replace(R,i).replace(S,function(c,d,b,e,f){return y(r(b||f,a))}).replace(T,function(c,d,b){d=d||i;return" url("+d+r(b,a)+d+") "});return i}function U(){var a,c;a=f.getElementsByTagName("BASE");for(var d=a.length>0?a[0].href:f.location.href,b=0;b0&&setInterval(function(){for(var a=0,c=q.length;a8||!n)){var z={NW:"*.Dom.select",MooTools:"$$",DOMAssistant:"*.$",Prototype:"$$",YAHOO:"*.util.Selector.query",Sizzle:"*",jQuery:"*",dojo:"*.query"},t,q=[],O=0,N=!0,M="slvzr",R=/(\/\*[^*]*\*+([^\/][^*]*\*+)*\/)\s*/g,S=/@import\s*(?:(?:(?:url\(\s*(['"]?)(.*)\1)\s*\))|(?:(['"])(.*)\3))[^;]*;/g,T=/\burl\(\s*(["']?)(?!data:)([^"')]+)\1\s*\)/g,L=/^:(empty|(first|last|only|nth(-last)?)-(child|of-type))$/,B=/:(:first-(?:line|letter))/g,C=/(^|})\s*([^\{]*?[\[:][^{]+)/g,G=/([ +~>])|(:[a-z-]+(?:\(.*?\)+)?)|(\[.*?\])/g,H=/(:not\()?:(hover|enabled|disabled|focus|checked|target|active|visited|first-line|first-letter)\)?/g,P=/[^\w-]/g,K=/^(INPUT|SELECT|TEXTAREA|BUTTON)$/,J=/^(checkbox|radio)$/,v=m>6?/[\$\^*]=(['"])\1/:null,E=/([(\[+~])\s+/g,F=/\s+([)\]+~])/g,Q=/\s+/g,x=/^\s*((?:[\S\s]*\S)?)\s*$/,i="",o=" ",h="$1";(function(a,c){function d(){try{p.doScroll("left")}catch(a){setTimeout(d,50);return}b("poll")}function b(d){if(!(d.type=="readystatechange"&&f.readyState!="complete")&&((d.type=="load"?a:f).detachEvent("on"+d.type,b,!1),!e&&(e=!0)))c.call(a,d.type||d)}var e=!1,g=!0;if(f.readyState=="complete")c.call(a,i);else{if(f.createEventObject&&p.doScroll){try{g=!a.frameElement}catch(h){}g&&d()}k(f,"readystatechange",b);k(a,"load",b)}})(j,function(){for(var a in z){var c,d,b=j;if(j[a]){for(c=z[a].replace("*",a).split(".");(d=c.shift())&&(b=b[d]););if(typeof b=="function"){t=b;U();break}}}})}}})(this); \ No newline at end of file diff --git a/languages/es_ES.mo b/languages/es_ES.mo new file mode 100644 index 0000000..9a4bc67 Binary files /dev/null and b/languages/es_ES.mo differ diff --git a/languages/es_ES.po b/languages/es_ES.po new file mode 100644 index 0000000..91c08a7 --- /dev/null +++ b/languages/es_ES.po @@ -0,0 +1,233 @@ +msgid "" +msgstr "" +"Project-Id-Version: HTML5-Reset-WordPress-Theme\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-05-06 17:10+0100\n" +"PO-Revision-Date: \n" +"Last-Translator: tx2z \n" +"Language-Team: fxbenard \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: French\n" +"X-Poedit-Country: FRANCE\n" +"X-Poedit-SourceCharset: utf-8\n" +"X-Poedit-KeywordsList: __;_e\n" +"X-Poedit-Basepath: ../\n" +"X-Poedit-SearchPath-0: .\n" + +#: 404.php:3 +msgid "Error 404 - Page Not Found" +msgstr "Error 404 - Página no encontrada" + +#: archive.php:8 +msgid "Archive for the" +msgstr "Archivo para la categoría" + +#: archive.php:8 +msgid "Category" +msgstr " " + +#: archive.php:11 +msgid "Posts Tagged" +msgstr "Entrada etiquetada como" + +#: archive.php:14 +#: archive.php:17 +#: archive.php:20 +msgid "Archive for" +msgstr "Archivo para el" + +#: archive.php:23 +msgid "Author Archive" +msgstr "Archivo del autor" + +#: archive.php:26 +msgid "Blog Archives" +msgstr "Archivo del blog" + +#: archive.php:52 +msgid "Nothing found" +msgstr "Nada encontrado" + +#: comments.php:7 +msgid "This post is password protected. Enter the password to view comments." +msgstr "Esta entrada está protegida por contraseña. Introduce la contraseña para ver los comentarios." + +#: comments.php:15 +msgid "No Responses" +msgstr "Sin respuestas" + +#: comments.php:15 +msgid "One Response" +msgstr "Una respuesta" + +#: comments.php:15 +msgid "% Responses" +msgstr "% respuestas" + +#: comments.php:37 +msgid "Comments are closed." +msgstr "Comentarios cerrados" + +#: comments.php:47 +msgid "Leave a Reply" +msgstr "Deja un comentario" + +#: comments.php:47 +#, php-format +msgid "Leave a Reply to %s" +msgstr "Deja un comentario a %s" + +#: comments.php:54 +msgid "You must be" +msgstr "Debes" + +#: comments.php:54 +msgid "logged in" +msgstr "logearte" + +#: comments.php:54 +msgid "to post a comment" +msgstr "para comentar" + +#: comments.php:61 +msgid "Logged in as" +msgstr "Logeado como" + +#: comments.php:61 +msgid "Log out" +msgstr "Desconectarte" + +#: comments.php:67 +msgid "Name" +msgstr "Nombre" + +#: comments.php:72 +msgid "Mail (will not be published)" +msgstr "Correo electrónico (no será publicado)" + +#: comments.php:77 +msgid "Website" +msgstr "Sitio Web" + +#: comments.php:89 +msgid "Submit Comment" +msgstr "Enviar comentario" + +#: functions.php:35 +msgid "Sidebar Widgets" +msgstr "" + +#: functions.php:37 +msgid "These are widgets for the sidebar." +msgstr "" + +#: header.php:44 +msgid "Tag Archive for "" +msgstr "Etiquetas archivadas para" + +#: header.php:46 +msgid " Archive - " +msgstr " Archivo - " + +#: header.php:48 +msgid "Search for "" +msgstr "Búsqueda por "" + +#: header.php:52 +msgid "Not Found - " +msgstr "No encontrado - " + +#: index.php:16 +msgid "Tags: " +msgstr "Etiquetas: " + +#: index.php:17 +msgid "Posted in" +msgstr "Publicado en" + +#: index.php:18 +msgid "No Comments »" +msgstr "Sin comentarios »" + +#: index.php:18 +msgid "1 Comment »" +msgstr "1 Comentario »" + +#: index.php:18 +msgid "% Comments »" +msgstr "% Comentarios »" + +#: index.php:29 +msgid "Not found." +msgstr "No encontrado." + +#: page.php:15 +msgid "Pages: " +msgstr "Páginas: " + +#: page.php:19 +msgid "Edit this entry." +msgstr "Editar esta entrada." + +#: search.php:5 +msgid "Search Results" +msgstr "Resultados de la búsqueda" + +#: search.php:31 +msgid "No posts found." +msgstr "Ninguna entrada encontrada." + +#: searchform.php:3 +msgid "Search for:" +msgstr "Buscar por: " + +#: searchform.php:6 +msgid "Search" +msgstr "Buscar" + +#: sidebar.php:9 +msgid "Pages" +msgstr "Páginas" + +#: sidebar.php:11 +msgid "Archives" +msgstr "Archivos" + +#: sidebar.php:16 +msgid "Categories" +msgstr "Categorías" + +#: sidebar.php:23 +msgid "Meta" +msgstr "" + +#: sidebar.php:27 +msgid "Powered by WordPress, state-of-the-art semantic personal publishing platform." +msgstr "" + +#: sidebar.php:31 +msgid "Subscribe" +msgstr "Suscribirse" + +#: sidebar.php:33 +msgid "Entries (RSS)" +msgstr "Entradas (RSS)" + +#: sidebar.php:34 +msgid "Comments (RSS)" +msgstr "Comentarios (RSS)" + +#: single.php:13 +msgid "Pages:" +msgstr "Páginas:" + +#: single.php:15 +msgid "Tags:" +msgstr "Etiquetas:" + +#: single.php:21 +msgid "Edit this entry" +msgstr "Editar esta entrada" + diff --git a/languages/fr_FR.mo b/languages/fr_FR.mo new file mode 100644 index 0000000..f2276ac Binary files /dev/null and b/languages/fr_FR.mo differ diff --git a/languages/fr_FR.po b/languages/fr_FR.po new file mode 100644 index 0000000..70f6fe6 --- /dev/null +++ b/languages/fr_FR.po @@ -0,0 +1,26 @@ +msgid "" +msgstr "" +"Project-Id-Version: HTML5-Reset-WordPress-Theme\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2011-08-12 13:40+0100\n" +"PO-Revision-Date: \n" +"Last-Translator: Fx Benard \n" +"Language-Team: fxbenard \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: French\n" +"X-Poedit-Country: FRANCE\n" +"X-Poedit-SourceCharset: utf-8\n" +"X-Poedit-KeywordsList: __;_e\n" +"X-Poedit-Basepath: ../\n" +"X-Poedit-SearchPath-0: .\n" + +#: 404.php:3 +msgid "Error 404 - Page Not Found" +msgstr "Erreur 404 - Page Non Trouvé" + +#: functions.php:30 +msgid "These are widgets for the sidebar." +msgstr "" + diff --git a/options.php b/options.php new file mode 100644 index 0000000..3044d20 --- /dev/null +++ b/options.php @@ -0,0 +1,176 @@ +cat_ID] = $category->cat_name; + } + + // Pull all tags into an array + $options_tags = array(); + $options_tags_obj = get_tags(); + foreach ( $options_tags_obj as $tag ) { + $options_tags[$tag->term_id] = $tag->name; + } + + // Pull all the pages into an array + $options_pages = array(); + $options_pages_obj = get_pages('sort_column=post_parent,menu_order'); + $options_pages[''] = 'Select a page:'; + foreach ($options_pages_obj as $page) { + $options_pages[$page->ID] = $page->post_title; + } + + $options = array(); + + $options[] = array( + 'name' => __('Header Meta', 'html5reset'), + 'type' => 'heading'); + +// Standard Meta + $options[] = array( + 'name' => __('Head ID', 'html5reset'), + 'desc' => __("", 'html5reset'), + 'id' => 'meta_headid', + 'std' => 'www-sitename-com', + 'type' => 'text'); + $options[] = array( + 'name' => __('Google Webmasters', 'html5reset'), + 'desc' => __("Speaking of Google, don't forget to set your site up: http://google.com/webmasters", 'html5reset'), + 'id' => 'meta_google', + 'std' => '', + 'type' => 'text'); + $options[] = array( + 'name' => __('Author Name', 'html5reset'), + 'desc' => __('Populates meta author tag.', 'html5reset'), + 'id' => 'meta_author', + 'std' => '', + 'type' => 'text'); + $options[] = array( + 'name' => __('Mobile Viewport', 'html5reset'), + 'desc' => __('Uncomment to use; use thoughtfully!', 'html5reset'), + 'id' => 'meta_viewport', + 'std' => 'width=device-width, initial-scale=1.0', + 'type' => 'text'); + +// Icons + $options[] = array( + 'name' => __('Site Favicon', 'html5reset'), + 'desc' => __('', 'html5reset'), + 'id' => 'head_favicon', + 'type' => 'upload'); + $options[] = array( + 'name' => __('Apple Touch Icon', 'html5reset'), + 'desc' => __('', 'html5reset'), + 'id' => 'head_apple_touch_icon', + 'type' => 'upload'); + +// App: Windows 8 + $options[] = array( + 'name' => __('App: Windows 8', 'html5reset'), + 'desc' => __('Application Name', 'html5reset'), + 'id' => 'meta_app_win_name', + 'std' => '', + 'type' => 'text'); + $options[] = array( + 'name' => __('', 'html5reset'), + 'desc' => __('Tile Color', 'html5reset'), + 'id' => 'meta_app_win_color', + 'std' => '', + 'type' => 'color'); + $options[] = array( + 'name' => __('', 'html5reset'), + 'desc' => __('Tile Image', 'html5reset'), + 'id' => 'meta_app_win_image', + 'std' => '', + 'type' => 'upload'); + +// App: Twitter + $options[] = array( + 'name' => __('App: Twitter Card', 'html5reset'), + 'desc' => __('twitter:card (summary, photo, gallery, product, app, player)', 'html5reset'), + 'id' => 'meta_app_twt_card', + 'std' => '', + 'type' => 'text'); + $options[] = array( + 'name' => __('', 'html5reset'), + 'desc' => __('twitter:site (@username of website)', 'html5reset'), + 'id' => 'meta_app_twt_site', + 'std' => '', + 'type' => 'text'); + $options[] = array( + 'name' => __('', 'html5reset'), + 'desc' => __("twitter:title (the user's Twitter ID)", 'html5reset'), + 'id' => 'meta_app_twt_title', + 'std' => '', + 'type' => 'text'); + $options[] = array( + 'name' => __('', 'html5reset'), + 'desc' => __('twitter:description (maximum 200 characters)', 'html5reset'), + 'id' => 'meta_app_twt_description', + 'std' => '', + 'type' => 'textarea'); + $options[] = array( + 'name' => __('', 'html5reset'), + 'desc' => __('twitter:url (url for the content)', 'html5reset'), + 'id' => 'meta_app_twt_url', + 'std' => '', + 'type' => 'text'); + +// App: Facebook + $options[] = array( + 'name' => __('App: Facebook', 'html5reset'), + 'desc' => __('og:title', 'html5reset'), + 'id' => 'meta_app_fb_title', + 'std' => '', + 'type' => 'text'); + $options[] = array( + 'name' => __('', 'html5reset'), + 'desc' => __('og:description', 'html5reset'), + 'id' => 'meta_app_fb_description', + 'std' => '', + 'type' => 'textarea'); + $options[] = array( + 'name' => __('', 'html5reset'), + 'desc' => __('og:url', 'html5reset'), + 'id' => 'meta_app_fb_url', + 'std' => '', + 'type' => 'text'); + $options[] = array( + 'name' => __('', 'html5reset'), + 'desc' => __('og:image', 'html5reset'), + 'id' => 'meta_app_fb_image', + 'std' => '', + 'type' => 'upload'); + + return $options; + +} \ No newline at end of file diff --git a/page.php b/page.php new file mode 100644 index 0000000..c4b22b1 --- /dev/null +++ b/page.php @@ -0,0 +1,19 @@ + +
+
+
+ 'page', + 'p' => get_the_ID() + ); + query_posts($args); if (have_posts()) : while (have_posts()) : the_post(); ?> +

+ + ', '

'); ?> + +
+ +
+
+ diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000..a014c52 Binary files /dev/null and b/screenshot.png differ diff --git a/search.php b/search.php new file mode 100644 index 0000000..443ac3e --- /dev/null +++ b/search.php @@ -0,0 +1,43 @@ + + + + +

+ + + + + +
id="post-"> + +

+ + + +
+ + + +
+ +
+ + + + + + + +

+ + + + + + diff --git a/searchform.php b/searchform.php new file mode 100644 index 0000000..39d67ad --- /dev/null +++ b/searchform.php @@ -0,0 +1 @@ + diff --git a/sidebar.php b/sidebar.php new file mode 100644 index 0000000..d4de480 --- /dev/null +++ b/sidebar.php @@ -0,0 +1,22 @@ + diff --git a/single.php b/single.php new file mode 100644 index 0000000..46b3ed1 --- /dev/null +++ b/single.php @@ -0,0 +1,14 @@ + +
+
+ +

+ + + + ', '

'); ?> + + +
+
+ diff --git a/style.css b/style.css new file mode 100644 index 0000000..19f9870 --- /dev/null +++ b/style.css @@ -0,0 +1,8 @@ +/* +Theme Name: StartPress +Theme URI: http://www.startpress.org +Description: Wordpress Start Page Theme +Author: Sigel +Author URI: http://www.sigelnet.com +Version: 0.2 +*/