diff --git a/README.md b/README.md index d9d8b01..93d0442 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ # flatpress-theme-snail-orange -snail theme for flatpress but in orange color \ No newline at end of file +snail theme for flatpress but in orange color + +![Preview](preview.png) diff --git a/admin.tpl b/admin.tpl new file mode 100644 index 0000000..29245cf --- /dev/null +++ b/admin.tpl @@ -0,0 +1,15 @@ +{include file=cpheader.tpl} +
+
+ + + {page} +

{$subject}

+
{controlpanel}
+ {/page} +
+
+{include file=footer.tpl} \ No newline at end of file diff --git a/comments.tpl b/comments.tpl new file mode 100644 index 0000000..0517a60 --- /dev/null +++ b/comments.tpl @@ -0,0 +1,36 @@ +{include file=header.tpl} +
+ {entry_block} + {entry} + {include file=entry-default.tpl} + {comment_block} +
    + {comment} +
  1. + + {$url|notempty:"$name"|default:$name} + + + {include file=shared:commentadminctrls.tpl} {* this shows edit/delete links*} + +
    + {$date|date_format:"%B %d, %Y - %H:%M"} +
    + + {$content|tag:comment_text} +
  2. + {/comment} +
+ {/comment_block} + + {/entry} + + + {/entry_block} + {include file="shared:comments.tpl"} +
+{include file=widgets.tpl} +
+{include file=footer.tpl} \ No newline at end of file diff --git a/cpheader.tpl b/cpheader.tpl new file mode 100644 index 0000000..ee6df9c --- /dev/null +++ b/cpheader.tpl @@ -0,0 +1,11 @@ + + + + {$flatpress.TITLE}{$pagetitle} + + {action hook=wp_head} + + + +
+
\ No newline at end of file diff --git a/default.tpl b/default.tpl new file mode 100644 index 0000000..d0807d5 --- /dev/null +++ b/default.tpl @@ -0,0 +1,15 @@ +{include file=header.tpl} +
+
+ {page} +

{$subject}

+
+ {if $rawcontent} {$content} + {else} {include file=$content}{/if} +
+ {/page} +
+
+ +{include file=widgets.tpl} +{include file=footer.tpl} \ No newline at end of file diff --git a/entry-default.tpl b/entry-default.tpl new file mode 100644 index 0000000..52bcdbe --- /dev/null +++ b/entry-default.tpl @@ -0,0 +1,11 @@ +
+

{$subject|tag:the_title}

+ {$date|date_format:'

%B %d, %Y @ %H:%M

'} + {include file=shared:entryadminctrls.tpl} + + {$content|tag:the_content} + + +
\ No newline at end of file diff --git a/footer.tpl b/footer.tpl new file mode 100644 index 0000000..354873f --- /dev/null +++ b/footer.tpl @@ -0,0 +1,10 @@ +
+
+ +
+ + diff --git a/header.tpl b/header.tpl new file mode 100644 index 0000000..7e10e40 --- /dev/null +++ b/header.tpl @@ -0,0 +1,16 @@ + + + + {$flatpress.TITLE}{$pagetitle} + + {action hook=wp_head} + + + +
+ +
+
\ No newline at end of file diff --git a/imgs/circle.gif b/imgs/circle.gif new file mode 100644 index 0000000..7956c76 Binary files /dev/null and b/imgs/circle.gif differ diff --git a/imgs/logo.jpg b/imgs/logo.jpg new file mode 100644 index 0000000..284349b Binary files /dev/null and b/imgs/logo.jpg differ diff --git a/index.tpl b/index.tpl new file mode 100644 index 0000000..b389e7f --- /dev/null +++ b/index.tpl @@ -0,0 +1,14 @@ +{include file=header.tpl} +{include file=widgets.tpl} +
+ {entry_block} + {entry} + {include file='entry-default.tpl'} + {/entry} + + {/entry_block} +
+ +{include file=footer.tpl} \ No newline at end of file diff --git a/preview.png b/preview.png new file mode 100644 index 0000000..a9ab7cd Binary files /dev/null and b/preview.png differ diff --git a/preview.tpl b/preview.tpl new file mode 100644 index 0000000..e97ab1d --- /dev/null +++ b/preview.tpl @@ -0,0 +1,7 @@ +{entry content=$entry} +
+

{$subject|tag:the_title}

+

Published by {$author} on {$date|date_format:"%A, %B %e, %Y - %H:%M:%S"}

+ {$content|tag:the_content} +
+{/entry} \ No newline at end of file diff --git a/previewstatic.tpl b/previewstatic.tpl new file mode 100644 index 0000000..193c473 --- /dev/null +++ b/previewstatic.tpl @@ -0,0 +1,7 @@ +{static content=$entry} +
+

{$subject}

+

Published by {$author} on {$date|date_format:"%A, %B %e, %Y - %H:%M:%S"}

+ {$content} +
+{/static} \ No newline at end of file diff --git a/res/admin.css b/res/admin.css new file mode 100644 index 0000000..32729d8 --- /dev/null +++ b/res/admin.css @@ -0,0 +1,376 @@ +/* +Name: Snail-orange +Author: Marcoverga86 +Version: 2.0 +Module: admin.css +*/ + +@import url(common.css); +@import url(globals.css); + +/* ===== HEADERS TAGS ===== */ +h1.title { + text-align: center; + margin-top: 20px; +} + +#admin-content h2 { + font-size: 1.7em; + margin-bottom: 0.5em; +} + +/* DIV CONTAINER ALL ADMIN DIV BLOCK */ +#cpmain { + padding: 10px; + background: #2D2D2D; +} + +/* ===== SMALL NAVBAR (home and logout links) ===== */ +ul#admin-small-nav { + font-size: 80%; + float: right; + list-style-type: none +} + +ul#admin-small-nav li { display: inline; margin: 5px } + +/* ===== DRAFTS ===== */ +#admin-drafts { + border-top: 1px solid #bbb; + border-bottom: 1px solid #bbb; + padding: .4em; + background-color: #444444; + overflow: auto; +} + +#admin-drafts p { + font-weight: bold; + float: left; + padding: 0; + margin: 0; +} + +#admin-content #admin-drafts ul { margin: 0; padding: 0} + +#admin-drafts li { + float:left; + list-style-type: none; + margin-left: 15px; + padding-left: 1em; +} + +/* ===== TAB MENU ===== */ +ul#admin-tabmenu { + text-align: center; + margin: 1em 0 0 0; + padding: .5em; + border-top: solid 2px #003399; + border-bottom: solid 2px #003399; +} + +ul#admin-tabmenu li, ul#admin-submenu li { + display: inline; + font-size: 85%; + font-weight: normal; + text-decoration: none +} + +ul#admin-tabmenu li a { + color: #222; + line-height: 2em; + font-weight: normal; + text-decoration: none; + padding: 0.5em; + background-color: #fff +} + +ul#admin-tabmenu li a:hover { + color: black; + font-weight: normal; + background-color: #A29D7D +} + +ul#admin-tabmenu a#admin-tab-current { + font-weight: bold; + background-color: #DAAA55 +} + +/* ===== SUBMENU ====== */ +#admin-submenu { + text-align: center; + padding: .1em .3em .2em; +} + +#admin-submenu li { + display: inline; + font-size: 80%; + margin-right: 5px +} + +#admin-submenu li a { + padding: 2px 5px 1px 5px; + color: black; + font-weight: normal; + background: white; +} + +#admin-submenu li a:hover { + padding: 2px 5px 1px 5px; + background: #DEAA52; + border-top: 4px solid #003399; + border-bottom: 3px solid #DEAA52; + text-decoration: none; + color: white; +} + +#admin-submenu li a.active { + color: white; + background: #A59E7B; + font-weight: bold; + padding: 2px 5px 1px 5px; + border-top: 4px solid #0066FF; + border-bottom: 3px solid #A59E7B; +} + +/* ===== MAIN MENU ITEM ===== */ +#admin-content { padding: 1em } +.admin-mainmenu-item img { padding-right: 1em } + +.admin-mainmenu-item { + display: block; + padding: 1em; + clear: both +} + +.admin-mainmenu-item .admin-icon-descr { + font-size: 80%; + font-style: italic +} + +/* ===== ADMIN ENTRY ===== */ +input#subject { + width: 100%; + font-size: 1.3em; + color: #333333; + font-weight: bold +} + +textarea.code { + font-family: monospace, Lucida Console, Monaco, monospace; + font-size: 90% +} + +textarea#content { background: #777777 } +#admin-entry-categories ul li { padding: 0 } +#admin-bbcode-toolbar p { display: inline } +#admin-bbcode-toolbar select { width: 10em } + +#admin-entry-categories ul { + display:block; + list-style-type: none; + margin-right: 10px; + padding-left: 1em +} + +#admin-content table { + width: 100%; + border-collapse: collapse +} + +#admin-content td.main-cell { + text-align:left; + width:30%; +} + +#admin-content td { + font-size: 11px; + padding: 4px; + background:#333333 none repeat scroll 0%; + text-align: center; + border: 2px solid #777777; +} + +#admin-content th { + background:#222222 none repeat scroll 0%; + font-size:0.75em; + text-align:center; + padding: 4px; + border: 2px solid #777777; +} + +#plugin-table-body td { padding: 1em .6em } +#admin-bbcode-toolbar legend { display: none } +#admin-content ul { margin-left: 2em } +#admin-content ul li{ padding: 0 } +input.maxsize, select.maxsize { width: 100% } +.link-general { padding: 0 5px 0 5px } + +#admin-bbcode-toolbar { + margin: 0; + padding: 0; + padding-right: 0.7%; + border: none +} + +/* ===== WIDGET PANEL ====== */ +#admin-widgetset-list { width: 30em } + +#admin-widgetset-list ul { + list-style-type: none; + margin: 0; + margin-bottom: 2em; + text-align: left; +} + +li.admin-widgetset { + padding: .5em; + margin-bottom: 2em; + border: 1px solid #666666; +} + +#available-widgets { + border: 1px solid #666666; + font-size: 80%; + float: right; + padding: 1em; + width: 30%; + z-index: 1000; + position: relative; + text-align: left; +} + +#widget-trashcan { + background-color: #CC3333; + color: #ddd; + font-size: 120%; + font-weight: bold; + padding: 2em; + text-align: center; + margin: 2em; +} + +#available-widgets ul, .admin-widgetset ul { padding-left: 0; margin-left: 0 } +#available-widgets p, .admin-widgetset p { margin: 0 0.5em } + +li.widget-instance, li.widget-class { + cursor: move; + border: 1px solid #666666; + margin: 3px; + padding: .5em; + height: 20px; + list-style-type: none; +} + +.admin-widgetset h3 { + margin-bottom: 1em; + padding: .3em; + background: #333333; + text-align: center; +} + +#available-widgets h2 { + cursor: move; + color: white; + margin-bottom: 1em; + padding: .3em; + background: #333333; + margin-top: 0; +} + +.widget-instance .textinput { + background: transparent; + font-weight: bold; + font-style: oblique; + color: white; + border: #0066FF 2px solid; +} + +.widget-instance .textinput:hover { border: 2px solid #336699 } +.widgetname a, .widgetname a:link, .widgetname a:visited { color: #ddd } + +.widget-instance .textinput:focus { + font-style: normal; + border: 2px solid #1100FF; +} + +.widget-placeholder { + padding: .5em; + font-style: oblique; + text-align: center; + border: 1px dashed #666666; +} + +.widget-dragger { + text-align: left; + z-index: 1000; + padding: .5em; + height: 30px !important; +} + +/* ===== PLUGINS ===== */ + +#plugin-table { color: #777777 } +#plugin-table-head, .enabled { color: white } + +/* ===== THEME PANEL ===== */ +#current-theme h5, #available-themes h5 { margin:0.5em } +#available-themes { clear: both } +#available-themes ul { list-style-type: none } +#available-themes ul li:hover { background: #333333 } + +#current-theme { + margin-bottom: 2em; + overflow:hidden; +} + +#current-theme img { + float:left; + border: 1px solid #ddd; + margin-right: 2em; +} + +#available-themes ul li { + float:left; + padding: 1em 2em 1em 2em; + text-align: center; + width: 300px; +} + +/* ===== CONFIG PANEL ===== */ +#admin-config dt { + width: 33%; + text-align:right; + margin-top: 1.8em; + line-height: 1.5em; + font-weight: bold; +} + +#admin-config dd { + margin-left: 35%; + margin-top: -1.7em; + line-height: 1.5em; +} + +#admin-config dt label { padding-top: .2em } +#admin-config dl { margin-bottom: 4em } +#admin-config dd p { margin: 0 } +#admin-config dd input{ margin-bottom: .2em } +#admin-config input.textinput , #admin-config select.textinput { width: 15em } +#admin-config input.bigtextinput { width: 20em } +#admin-config input.smalltextinput { width: 5em } + +/* ===== PREVIEW SETTINGS ===== */ +#post-preview h3 { color: #0066FF } +#post-preview .entry .date { font-size: 11px } +#post-preview .entry { padding: 1em } + +#post-preview ul { + list-style-type: disc; + padding: 0 1.6 0 1.6em; + margin-top: 1em; +} + +#post-preview ol { + list-style-position: inside; + padding: 0 1.6em 0 1.6em +} \ No newline at end of file diff --git a/res/column.css b/res/column.css new file mode 100644 index 0000000..2567052 --- /dev/null +++ b/res/column.css @@ -0,0 +1,68 @@ +/* +Theme Name: Snail-orange +Author: Marcoverga86 +Version: 2.0 +Module: style.css +*/ + +/* ===== COLUMN ===== */ +#column { + background: #393939; + float: left; + width: 24% !important; + width: 21%; + font-size: 80% !important; + font-size: 75%; + margin: 0 0 15px 15px; + padding: 10px; +} + +#column h4 { + color: #DAAA55; + border-bottom: 2px solid #333333; + padding: 5px 0 5px 5px; + margin-bottom: .5em; + border-top: 5px solid #2D2D2D; +} + +#column ul li, #column p { font-size: 12px } + +#column div { margin: 0 } +#column div, #column ul { background: #393939 } +#column p, #column div { margin: 10px 5px } +#column a:link, #column a:visited { color: #A29D7D } + +#column a:hover { + text-decoration: underline; + /*color: #315A94;*/ + color: #e69138; +} + +/* === List === */ +#column ul li { + list-style-image: url('../imgs/circle.gif'); + padding: 1px; + margin-left: 10px; +} + +#column ul { + list-style-type: none; + margin-right: 10px; + margin-bottom: .5em; + padding-left: 1em +} + +#column ul li table { font-size: 100%; color: #999999 } +#column fieldset { margin: 0 5px 0 5px } +#column legend { font-size: 100% } +#column #widget-searchbox ul li { margin-left: -10px } + +#column #widget_calendar table { + width: 75%; + margin-left: -20px; +} + +#column #widget_calendar li, #column #widget-searchbox li { + list-style-image: none; + padding: 0 +} diff --git a/res/common.css b/res/common.css new file mode 100644 index 0000000..ccafc08 --- /dev/null +++ b/res/common.css @@ -0,0 +1,272 @@ +/* +Theme Name: Snail-orange +Author: Marcoverga86, DeltaLima +Version: 2.0 +Module: common.css +*/ + +/* ===== GENERAL (redefinition HTML tag) ===== */ +html { + font-size: 13px; + font-family: Tahoma, 'Lucida Grande', 'Trebuchet MS', arial, Helvetica, sans-serif; + margin: 0; + padding: 0 +} + +body { + color: #999999; + padding: 0; + text-align: center; + /*background: #315A94;*/ + background: #222; +} + +hr { display: none } +p { margin: .5em 0 } +img { border: none } + +blockquote { + width: 90%; + margin: 1em 1em; + padding: 0 10px; + /*border-left: 10px solid white;*/ + border-left: 10px solid #a8a8a8; +} + +pre, code { + font-family: Lucida Console, Monaco, monospace; + font-size: 90%; +} + +pre { + border-top: 1px solid #ddd; + border-bottom: 1px solid #ddd; + /*background-color: #efefef;*/ + background-color: #a8a8a8; + color: black; + overflow: auto; + width: 90%; + margin: 1em 1em; + padding: 5px 10px; +} + +ul, li, ol { margin: 0; padding: 0 } + +/* === Form === */ +form { margin: 1em 0 } + +fieldset { + margin: 0 0 1em 0; + padding: .5em; + border: #ddd solid 1px +} + +legend { + color: white; + font-size: 80%; + font-style: oblique +} + +input, textarea { + padding: .1em; + border: 1px solid #315A94;; + font-family: 'Trebuchet MS', Tahoma, 'Times New Roman'; +} + +input, admin-static-filename { + font-weight:bold; + background-color: #A29D7D; +} + +input:hover, input:focus { + border: 1px solid #000099; + background-color: #DAAA55; +} + +select { background-color: #ddd } + +textarea { + font-size: 100%; + font-family: 'Lucida Grande', 'Trebuchet MS', arial, Helvetica, sans-serif; + width: 99%; + margin-top: .1em; + margin-bottom: 1em; + background-color: #999999; +} + +/* ===== LINKS GENERAL ===== */ +a:link, a:visited { + /*color: #0066ff;*/ + color: #e69138; + font-weight: bold; + text-decoration: none +} + +a:hover { + /*color: #1100FF;*/ + color: #f6b26b; + text-decoration: underline +} + +/* ===== HEADERS TAGS ===== */ +h1, h2, h3, h4, h5, h6 { margin:0 } +h1 { font-size: 3em } +h2 { font-size: 2.3em } +h3 { font-size: 1.8em } +h4 { font-size: 1.5em } +h5 { font-size: 1.2em } +h6 { font-size: 0.9em } + +/* ===== DIV CONTAINER ALL ELEMENTS BLOCK ===== */ +#body-container { + text-align: left; + width: 67% !important; + width: 67%; /* fix for I.E. */ + margin: 0 auto 10px auto; + padding: 5px; + background-color: #2D2D2D +} + +/* ===== HEAD ===== */ +#head { + background: url("../imgs/logo.jpg") no-repeat; + width: 100% !important; + width: 95%; + height: 150px; + font-family: Tahoma, sans-serif; + float: center; +} + +#head a { + color: white; + font-weight: normal; + text-decoration: none; +} + +#head h1 { padding: 35px 20px 0 25px } + +.subtitle { + font-style: oblique; + color: white; + margin: .5em 0 0 0; + padding-left: 25px; +} + +/* ===== MAIN ===== */ +#main h1, #main h2, #main h3, #main h4, #main h5, #main h6 { + margin: 0 0 10px 0; + font-weight: normal; +} + +#main { + float:right; + position: relative; + width: 67% !important; + width: 65%; + font-size: 100%; + margin: 0 0.5em 0 1.2em; +} + +#main p { + line-height: 1.5em; + margin-top: 1.2em; +} + +#main img { margin: .2em } + +/* === List === */ +#main ul { + list-style-type: disc; + padding: 0 0 0 1.6em +} + +ol li, ul li { padding-bottom: 0.9em } + +#main ol { + list-style-position: inside; + padding: 0 1.6em 0 1.6em +} + +/* ===== COMMENTS ===== */ +#comments li { + margin: 0 0 1.5em 0; + padding: 5px; + border-top: 2px solid #6699FF; + border-bottom: 2px solid #6699FF; + background: #2D2D2D; +} + +#commentform fieldset p { margin: 0 0 .5em 0 } +#commentform textarea { background-color: #999999; } +#commentform textarea:hover { background-color: #777777; } +#comments p { padding-left: 20px } +#comments li.comment-admin strong.comment-name { font-size:160% } + +#comments li.comment-admin { + background-color: #DAAA55; + color: black; + padding: 1em; +} + +/* === Class of main block === */ +.date, p.date { + font-size: 11px; + margin: 3px 0 3px 0; + padding-bottom: 2px; + font-weight: normal; + border-bottom: 2px solid #333333; +} + +.entry { + margin: 0 0 1.5em 0; + padding: 0; + overflow: hidden; /* floating images fix */ + height:1%; /* i.e. hack*/ +} + +.entry p { font-size: 13px } + +#main .entrytitle { + font-family: Candara, 'Cataneo BT', 'book antiqua', georgia, garamond, times, 'times new roman'; + margin: 0; +} + +.entry-footer a { color: #A29D7D } +.entry-footer a:hover { color: #4B4B4B } + +.entry-footer { + text-align: right; + font-family: 'Lucida Grande', 'Trebuchet MS', arial, Helvetica, sans-serif; + font-size: 0.9em; + margin: 2em 0 .5em 0; + margin-left: 58%; + border-top: 2px solid #333333; +} + +.admincontrols { /* [edit] and [delete] */ + float: right; + font-size: 80% +} + +.buttonbar { text-align: center } + +.buttonbar input { + text-align: center; + margin: .1em .5em; + padding: 0 1em +} + +.navigation { /* next entries & previous entries link */ + font-size: 80%; + margin-bottom: 5em +} + +/* ===== FOOTER ===== */ +#footer { + text-align: center; + background: #2D2D2D; + clear: both; + font-size: 80%; + padding: 8px; + border-top: #315A94 2px solid +} diff --git a/res/globals.css b/res/globals.css new file mode 100644 index 0000000..23113be --- /dev/null +++ b/res/globals.css @@ -0,0 +1,55 @@ +/* +Theme Name: Snail-orange +Author: Marcoverga86 +Version: 2.0 +Module: globals.css +*/ + +.alignleft { float: left } +.alignright { float: right } + +/* ===== NOTIFICATION ===== */ +#main ul.msgs, ul.msgs { + margin-top: 1em; + margin-left: 0em; + padding: 1em 2em; +} + +.errors { + border: 2px solid red; + background: white; +} + + +.notifications { + /*color: #315A94;*/ + color: #f6b26b; + border-top: 2px solid blue; + border-bottom: 2px solid blue; + background: white; +} + +msgs errors ul li a { + color: blue; + text-decoration: underline; + font-weight: bold +} + +.field-error { + border: 2px solid white; + background: #FF6666; +} + +.warnings { + background: #6699FF none repeat scroll 0%; + color: white; +} + +#admin-content ul.msgs { + margin-left: 0em; + margin-bottom: 2em; + padding: 1em 2em; + list-style-type: none +} + +background: white; diff --git a/res/style.css b/res/style.css new file mode 100644 index 0000000..03edd40 --- /dev/null +++ b/res/style.css @@ -0,0 +1,13 @@ +/* +Theme Name: Snail-orange +Author: Marcoverga86 +Version: 2.0 +Module: style.css +*/ + +/* imports common style ruleset */ +@import url(common.css); +@import url(globals.css); + +/* imports column (where widgets usually go) rules */ +@import url(column.css); diff --git a/static.tpl b/static.tpl new file mode 100644 index 0000000..0350a6b --- /dev/null +++ b/static.tpl @@ -0,0 +1,15 @@ +{include file=header.tpl} +
+ {static_block} + {static} +
+

{$subject}

+

Published by {$author} on {$date|date_format:"%A, %B %e, %Y - %H:%M:%S"}

+ {$content|tag:the_content} +
+ {/static} + {/static_block} +
+ +{include file=widgets.tpl} +{include file=footer.tpl} \ No newline at end of file diff --git a/theme.conf.php b/theme.conf.php new file mode 100644 index 0000000..da71203 --- /dev/null +++ b/theme.conf.php @@ -0,0 +1,27 @@ + diff --git a/widgets.tpl b/widgets.tpl new file mode 100644 index 0000000..eac37e9 --- /dev/null +++ b/widgets.tpl @@ -0,0 +1,8 @@ +
+ {widgets pos=right} +
+

{$subject}

+ {$content} +
+ {/widgets} +
\ No newline at end of file