From cbf9b10fda096010d287667b40901fdaba48ca8f Mon Sep 17 00:00:00 2001
From: Steph Gray Successfully created " . count($counter) . " fragments: " . implode("" . __( ' Public Reading Stage Fragment Importer' ) . "
";
+
+ if ($_REQUEST['action'] == "processimport") {
+
+ $fragarray = explode("\n",$_REQUEST['rawfragments']);
+
+ foreach((array)$fragarray as $f) {
+ $fragments[] = str_getcsv(stripslashes($f));
+ }
+
+ foreach((array)$fragments as $parsedf) {
+
+ if (is_numeric($parsedf[4])) {
+ $parent = get_page_by_title($parsedf[4], OBJECT, 'fragment' );
+ $parentid = ($parent->ID) ? $parent->ID : null;
+ } else {
+ $parentid = null;
+ }
+
+ $fragment = array(
+ 'menu_order' => trim($parsedf[0]),
+ 'ping_status' => 'closed',
+ 'post_title' => trim($parsedf[1]),
+ 'post_content' => trim($parsedf[2]),
+ 'post_status' => 'publish',
+ 'post_parent' => trim($parentid),
+ 'post_type' => 'fragment',
+ );
+
+ $insertid = wp_insert_post($fragment);
+ add_post_meta($insertid, '_notes', $parsedf[3]);
+
+ $counter[] = $parsedf[1];
+ sleep(0.5); // small 1/2 sec delay to let things catch up
+ }
+
+ echo "
",$counter) . "
+ ";
+
+ }
+
+ echo "";
+
+ ob_end_flush();
+}
+
+?>
diff --git a/theme/publicreadingstage/404.php b/theme/publicreadingstage/404.php
new file mode 100644
index 0000000..ac624a9
--- /dev/null
+++ b/theme/publicreadingstage/404.php
@@ -0,0 +1,30 @@
+
+
+
+
← %s', 'twentyten' ), get_the_title( $post->post_parent ) ); + ?>
+ + + + $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) ); + foreach ( $attachments as $k => $attachment ) { + if ( $attachment->ID == $post->ID ) + break; + } + $k++; + // If there is more than 1 image attachment in a gallery + if ( count( $attachments ) > 1 ) { + if ( isset( $attachments[ $k ] ) ) + // get the URL of the next image attachment + $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID ); + else + // or get the URL of the first image attachment + $next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID ); + } else { + // or, if there's only 1 image attachment, get the URL of the image + $next_attachment_url = wp_get_attachment_url(); + } +?> + + + + + + post_excerpt ) ) the_excerpt(); ?> + + + + +' . + '
', + ); + + $args = array( + 'comment_notes_before' => 'Your email address will not be publised. Name, email address and comment are required fields. Please note our moderation policy.
', + 'comment_notes_after' => '', + 'title_reply' => 'Leave a comment', + 'fields' => $fields + ); + + comment_form($args); + +?> \ No newline at end of file diff --git a/theme/publicreadingstage/cookiebar.php b/theme/publicreadingstage/cookiebar.php new file mode 100644 index 0000000..8a7cd97 --- /dev/null +++ b/theme/publicreadingstage/cookiebar.php @@ -0,0 +1,8 @@ + + + + + + \ No newline at end of file diff --git a/theme/publicreadingstage/css/1140.css b/theme/publicreadingstage/css/1140.css new file mode 100644 index 0000000..b8d6fa2 --- /dev/null +++ b/theme/publicreadingstage/css/1140.css @@ -0,0 +1,130 @@ +/* CSS Resets */ + +html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,address,cite,code,del,dfn,em,img,ins,q,small,strong,sub,sup,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{border:0;margin:0;padding:0}article,aside,figure,figure img,figcaption,hgroup,footer,header,nav,section,video,object{display:block}a img{border:0}figure{position:relative}figure img{width:100%} + + +/* ==================================================================================================================== */ +/* ! The 1140px Grid V2 by Andy Taylor \ http://cssgrid.net \ http://www.twitter.com/andytlr \ http://www.andytlr.com */ +/* ==================================================================================================================== */ + +.container { +padding-left: 20px; +padding-right: 20px; +} + +.row { +width: 100%; +max-width: 1140px; +min-width: 755px; +margin: 0 auto; +overflow: hidden; +} + +.onecol, .twocol, .threecol, .fourcol, .fivecol, .sixcol, .sevencol, .eightcol, .ninecol, .tencol, .elevencol { +margin-right: 3.8%; +float: left; +min-height: 1px; +} + +.row .onecol { +width: 4.85%; +} + +.row .twocol { +width: 13.45%; +} + +.row .threecol { +width: 22.05%; +} + +.row .fourcol { +width: 30.75%; +} + +.row .fivecol { +width: 39.45%; +} + +.row .sixcol { +width: 48%; +} + +.row .sevencol { +width: 56.75%; +} + +.row .eightcol { +width: 65.4%; +} + +.row .ninecol { +width: 74.05%; +} + +.row .tencol { +width: 82.7%; +} + +.row .elevencol { +width: 91.35%; +} + +.row .twelvecol { +width: 100%; +float: left; +} + +.last { +margin-right: 0px; +} + +img, object, embed { +max-width: 100%; +} + +img { + height: auto; +} + + +/* Smaller screens */ + +@media only screen and (max-width: 1023px) { + + body { + font-size: 0.8em; + line-height: 1.5em; + } + + } + + +/* Mobile */ + +@media handheld, only screen and (max-width: 767px) { + + body { + font-size: 16px; + -webkit-text-size-adjust: none; + } + + .row, body, .container { + width: 100%; + min-width: 0; + margin-left: 0px; + margin-right: 0px; + padding-left: 0px; + padding-right: 0px; + } + + .row .onecol, .row .twocol, .row .threecol, .row .fourcol, .row .fivecol, .row .sixcol, .row .sevencol, .row .eightcol, .row .ninecol, .row .tencol, .row .elevencol, .row .twelvecol { + width: auto; + float: none; + margin-left: 0px; + margin-right: 0px; + padding-left: 20px; + padding-right: 20px; + } + +} \ No newline at end of file diff --git a/theme/publicreadingstage/css/ie.css b/theme/publicreadingstage/css/ie.css new file mode 100644 index 0000000..1ee4275 --- /dev/null +++ b/theme/publicreadingstage/css/ie.css @@ -0,0 +1,47 @@ + +/* IE (all versions) */ +/* ----------------------------------------- */ + +.onecol { +width: 4.7%; +} + +.twocol { +width: 13.2%; +} + +.threecol { +width: 22.05%; +} + +.fourcol { +width: 30.6%; +} + +.fivecol { +width: 39%; +} + +.sixcol { +width: 48%; +} + +.sevencol { +width: 56.75%; +} + +.eightcol { +width: 61.6%; +} + +.ninecol { +width: 74.05%; +} + +.tencol { +width: 82%; +} + +.elevencol { +width: 91.35%; +} \ No newline at end of file diff --git a/theme/publicreadingstage/css/layout.css b/theme/publicreadingstage/css/layout.css new file mode 100644 index 0000000..5c61fab --- /dev/null +++ b/theme/publicreadingstage/css/layout.css @@ -0,0 +1,49 @@ +/* LAYOUT */ +/* ----------------------------------------- */ + +/* These rather presentational classes are generated by WordPress, so it's useful to have some styles for them. Edit as you see fit. More info: http://codex.wordpress.org/CSS */ +.aligncenter { display:block; margin:0 auto } +.alignleft { float:left } +.alignright { float:right } +.wp-caption { border:1px solid #666; text-align:center; background:#ccc; padding:10px; margin:10px } + +/* You might find the following useful */ +/* div, ul, li { position:relative } This will save you having to declare each div / ul / li's position as 'relative' and allows you to absolutely position elements inside them */ +br.clear { clear:both; display:block; height:1px; margin:-1px 0 0 0 } /* Use this br class to clear your floated columns */ +li#theme-switcher { background:#fff; border:10px solid red; padding:20px; position:fixed; top:0; right:0 } /* Use this if you have the Theme Switcher Reloaded plugin (http://themebot.com/webmaster-tools/1-wordpress-theme-switcher-reloaded) installed and want to make it nice and obvious */ + + +/* ============================== */ +/* ! Layout for desktop version */ +/* ============================== */ + + body { + + } + + +/* ============================= */ +/* ! Layout for mobile version */ +/* ============================= */ + +@media handheld, only screen and (max-width: 767px) { + + body { + + } + +} + + +/* ========================================== */ +/* ! Provide higher res assets for iPhone 4 */ +/* ========================================== */ + +@media only screen and (-webkit-min-device-pixel-ratio: 2) { + +/* .logo { + background: url(logo2x.jpg) no-repeat; + background-size: 212px 303px; + }*/ + +} \ No newline at end of file diff --git a/theme/publicreadingstage/css/lightbox.css b/theme/publicreadingstage/css/lightbox.css new file mode 100644 index 0000000..01776c4 --- /dev/null +++ b/theme/publicreadingstage/css/lightbox.css @@ -0,0 +1,40 @@ +#lightbox-background { + display:none; + background-image: url("../images/macFFBgHack.png"); + background-color:#000000; + opacity:0.8; + filter:alpha(opacity=80); + position:absolute; + top:0px; + left:0px; + min-width:100%; + min-height:100%; + height: 10000px; + overflow: hidden; + z-index:1000; +} + +#lightbox-panel { + display:none; + position:absolute; + top:20%; + left:20%; + width:60%; + background:#FFFFFF; + padding:1.5em; + border:2px solid #CCCCCC; + z-index:1001; +} + +#lightbox-panel p { + margin: 0.5em 0; +} + +#lightbox-panel a#close-panel { + padding: 0.5em 1em; + background: #EEB211; + font-size: 1.2em; + text-decoration: none; + color: white; + line-height: 140%; +} \ No newline at end of file diff --git a/theme/publicreadingstage/css/reset.css b/theme/publicreadingstage/css/reset.css new file mode 100644 index 0000000..9b06070 --- /dev/null +++ b/theme/publicreadingstage/css/reset.css @@ -0,0 +1,20 @@ + +/* RESET */ +/* ----------------------------------------- */ + +/* Global reset */ +/* Based upon 'reset.css' in the Yahoo! User Interface Library: http://developer.yahoo.com/yui */ +*, html, body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, label, fieldset, input, p, blockquote, th, td { margin:0; padding:0 } +table { border-collapse:collapse; border-spacing:0 } +fieldset, img { border:0 } +address, caption, cite, code, dfn, em, strong, th, var { font-style:normal; font-weight:normal } +ol, ul, li { list-style:none } +caption, th { text-align:left } +h1, h2, h3, h4, h5, h6 { font-size:100%; font-weight:normal } +q:before, q:after { content:''} + +/* Global reset-RESET */ +/* The below restores some sensible defaults */ +strong { font-weight:bold } +em { font-style:italic } +a img { border:none } /* Gets rid of IE's blue borders */ \ No newline at end of file diff --git a/theme/publicreadingstage/css/typography.css b/theme/publicreadingstage/css/typography.css new file mode 100644 index 0000000..64b5eb3 --- /dev/null +++ b/theme/publicreadingstage/css/typography.css @@ -0,0 +1,72 @@ + +/* TYPOGRAPHY */ +/* ----------------------------------------- */ + +h1, h2, h3, h4, h5, h6 { font-weight:bold } /* This helps to identify headings at the initial build stage, so I thought it'd be useful to have it */ +.alert { background:red; color:white } /* 'alert' has a basic style, since it's useful to have it standing out for testing purposes. + + + +/* Font stack options + + The following represents a list of font stacks, as recommended by Nathan Ford in + http://unitinteractive.com/blog/2008/06/26/better-css-font-stacks/ + + I've added inverted commas around the relevant family names to ensure compatibility. + p = balanced for paragraphs or body copy + t = balanced for headlines or titles + + - - - - + +Arial, "Helvetica Neue", Helvetica, sans-serif - p, t + +Baskerville, "Times New Roman", Times, serif - p +Baskerville, "Times, Times New Roman", serif - t + +Cambria, Georgia, Times, "Times New Roman", serif - p, t +"Century Gothic", "Apple Gothic", sans-serif - p, t + +Consolas, "Lucida Console", Monaco, monospace - p, t + +"Copperplate Light", "Copperplate Gothic Light", serif - p, t + +"Courier New", Courier, monospace - p, t + +"Franklin Gothic Medium", "Arial Narrow Bold", Arial, sans-serif - p, t + +Futura, "Century Gothic", "Apple Gothic", sans-serif - p, t + +Garamond, "Hoefler Text", "Times New Roman", Times, serif - p +Garamond, "Hoefler Text", Palatino, "Palatino Linotype", serif - t + +Geneva, "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif - p +Geneva, Verdana, "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", sans-serif - t + +Georgia, Palatino, "Palatino Linotype", Times, "Times New Roman", serif - p +Georgia, Times, "Times New Roman", serif - t + +GillSans, Calibri, Trebuchet, sans-serif - p +GillSans, Trebuchet, Calibri, sans-serif - t + +"Helvetica Neue", Arial, Helvetica, sans-serif - p +Helvetica, "Helvetica Neue", Arial, sans-serif - t + +Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif - p, t + +"Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", sans-serif - p, t + +Palatino, "Palatino Linotype", Georgia, Times, "Times New Roman", serif - p +Palatino, "Palatino Linotype", "Hoefler Text", Times, "Times New Roman", serif - t + +Tahoma, Geneva, Verdana - p +Tahoma, Verdana, Geneva - t + +Times, "Times New Roman", Georgia, serif - p, t + +Trebuchet, "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif - p +Trebuchet, Tahoma, Arial, sans-serif - t + +Verdana, Geneva, Tahoma, sans-serif - p +Verdana, Tahoma, Geneva, sans-serif - t + +*/ \ No newline at end of file diff --git a/theme/publicreadingstage/editor-style.css b/theme/publicreadingstage/editor-style.css new file mode 100644 index 0000000..63461ee --- /dev/null +++ b/theme/publicreadingstage/editor-style.css @@ -0,0 +1,295 @@ +/* +Theme Name: Starkers +*/ +/* +Used to style the TinyMCE editor. +*/ + +html .mceContentBody { + max-width:640px; +} +* { + font-family: Georgia, "Bitstream Charter", serif; + color: #444; + line-height: 1.5; +} +p, +dl, +td, +th, +ul, +ol, +blockquote { + font-size: 16px; +} +tr th, +thead th, +label, +tr th, +thead th { + font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif; +} +pre { + font-family: "Courier 10 Pitch", Courier, monospace; +} +code, code var { + font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace; +} +body, input, textarea { + font-size: 12px; + line-height: 18px; +} +hr { + background-color: #E7E7E7; + border:0; + height: 1px; + margin-bottom: 18px; + clear:both; +} +/* Text elements */ +p { + margin-bottom: 18px; +} +ul { + list-style: square; + margin: 0 0 18px 1.5em; +} +ol { + list-style: decimal; + margin: 0 0 18px 1.5em; +} +ol ol { + list-style:upper-alpha; +} +ol ol ol { + list-style:lower-roman; +} +ol ol ol ol { + list-style:lower-alpha; +} +ul ul, +ol ol, +ul ol, +ol ul { + margin-bottom:0; +} +dl { + margin:0 0 24px 0; +} +dt { + font-weight: bold; +} +dd { + margin-bottom: 18px; +} +strong { + font-weight: bold; + color: #000; +} +cite, +em, +i { + font-style: italic; + border: none; +} +big { + font-size: 131.25%; +} +ins { + background: #FFFFCC; + border: none; + color: #333; +} +del { + text-decoration: line-through; + color: #555; +} +blockquote { + font-style: italic; + padding: 0 3em; +} +blockquote cite, +blockquote em, +blockquote i { + font-style: normal; +} +pre { + background: #f7f7f7; + color: #222; + line-height: 18px; + margin-bottom: 18px; + padding: 1.5em; +} +abbr, +acronym { + border-bottom: 1px dotted #666; + cursor: help; +} +ins { + text-decoration: none; +} +sup, +sub { + height: 0; + line-height: 1; + vertical-align: baseline; + position: relative; + font-size: 10px; +} +sup { + bottom: 1ex; +} +sub { + top: .5ex; +} +a:link { + color:#0066CC; +} +a:visited { + color:#743399; +} +a:active, +a:hover { + color: #FF4B33; +} +p, +ul, +ol, +dd, +pre, +hr { + margin-bottom:24px; +} +ul ul, +ol ol, +ul ol, +ol ul { + margin-bottom:0; +} +pre, +kbd, +tt, +var { + font-size: 15px; + line-height: 21px; +} +code { + font-size: 13px; +} +strong, +b, +dt, +th { + color: #000; +} +h1, +h2, +h3, +h4, +h5, +h6 { + color: #000; + margin: 0 0 20px 0; + line-height: 1.5em; + font-weight: normal; +} +h1 { + font-size: 2.4em; +} +h2 { + font-size: 1.8em; +} +h3 { + font-size: 1.4em; +} +h4 { + font-size: 1.2em; +} +h5 { + font-size: 1em; +} +h6 { + font-size: 0.9em; +} +table { + border: 1px solid #e7e7e7 !important; + text-align: left; + margin: 0 -1px 24px 0; + width: 100%; + border-collapse: collapse; + border-spacing: 0; +} +tr th, +thead th { + border: none !important; + color: #888; + font-size: 12px; + font-weight: bold; + line-height: 18px; + padding: 9px 24px; +} +tr td { + border: none !important; + border-top: 1px solid #e7e7e7 !important; + padding: 6px 24px; +} + + +img { + margin: 0; + max-width: 640px; +} +.alignleft, +img.alignleft { + display: inline; + float: left; + margin-right: 24px; + margin-top: 4px; +} +.alignright, +img.alignright { + display: inline; + float: right; + margin-left: 24px; + margin-top: 4px; +} +.aligncenter, +img.aligncenter { + clear: both; + display: block; + margin-left: auto; + margin-right: auto; +} +img.alignleft, +img.alignright, +img.aligncenter { + margin-bottom: 12px; +} +.wp-caption { + border: none; + background: #f1f1f1; + color: #888; + font-size: 12px; + line-height: 18px; + text-align: center; + margin-bottom: 20px; + padding: 4px; + -moz-border-radius: 0; + -khtml-border-radius: 0; + -webkit-border-radius: 0; + border-radius: 0; +} +.wp-caption img { + margin: 5px; +} +.wp-caption p.wp-caption-text { + margin: 0 0 4px; +} +.wp-smiley { + margin:0; +} + +.firstpara { + font-size: 140% !important; + line-height: 140%; +} diff --git a/theme/publicreadingstage/favicon.ico b/theme/publicreadingstage/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..2c31fd3a6251bff5ab3db8a04fab6dec8e13040c GIT binary patch literal 318 zcmZQzU<5(|0RbS%!l1#(z#zuJz@P!d0zj+)#2|58KtW!aK~L9^!N%I2!OPQ!AtF4A zAuTn7p`^HsVM6~zhPiX+Gpt^{mSN}4T@1&MpJ2Fp^%}$D$4?kOe*DPr|Nnnn#xgL- z@7}$8?*|5koPG0NzB