diff --git a/modules/jhead/helpers/jhead_event.php b/modules/jhead/helpers/jhead_event.php new file mode 100644 index 00000000..260189ca --- /dev/null +++ b/modules/jhead/helpers/jhead_event.php @@ -0,0 +1,53 @@ +is_photo()) { + return; + } + + // Locate jhead + if ( ! is_file($path = exec('which jhead'))) { + // @todo throw an exception ? + Kohana::log('error', 'jhead is not installed'); + } + $binary = str_replace('\\', '/', realpath(dirname($path))); + $binary .= '/jhead'; + $binary .= (PHP_SHLIB_SUFFIX === 'dll') ? '.exe' : ''; + + if ( ! is_file($binary)) { + // @todo throw an exception ? + Kohana::log('error', 'Unable to locate jhead binary'); + } + + // Invoke jhead + if ($error = exec(escapeshellcmd($binary).' -q -autorot '.$item->file_path())) { + // @todo throw an exception ? + Kohana::log('error', 'Error during execution of jhead'); + } + + // Update item + $image_info = getimagesize($item->file_path()); + $item->width = $image_info[0]; + $item->height = $image_info[1]; + $item->save(); + } +} diff --git a/modules/jhead/helpers/jhead_installer.php b/modules/jhead/helpers/jhead_installer.php new file mode 100644 index 00000000..ed2bb243 --- /dev/null +++ b/modules/jhead/helpers/jhead_installer.php @@ -0,0 +1,33 @@ +body #ind { + background-color:transparent; + } +#comments-form td, #comments-form th, .commentlist dd, .commentlist li { + border-color:#AAAB9B; + } + + +/* Count +----------------------------------------------- */ +#info p.count { + border-color:#ddc; + } +.galleryinfo .count { + background:#bba; + } + + +/* Footer +----------------------------------------------- */ +#footer p { + border-color:#ddc; + color:#887; + } diff --git a/themes/stopdesign/css/custom.css b/themes/stopdesign/css/custom.css new file mode 100644 index 00000000..ad0af9a9 --- /dev/null +++ b/themes/stopdesign/css/custom.css @@ -0,0 +1,81 @@ +/* +----------------------------------------------- +Photo Gallery Templates: +Custom Dimensions +----------------------------------------------- */ + +/* This file containes isolated measurement values you should change if you'd like +to use different dimensions for the main photo. All measurements are based off main +photos' maximum width. Default "MaxWidth" for photos (per template docs) is 480. +------------------------------------------------------------------------------------- */ + + + +/* Sets width of main (center) column. +[value] = MaxWidth + 20 +EG: 480 + 20 = 500 +----------------------------------------------- */ +.main { + width:660px; + } + +/* Determines position of prev/next thumbnails. +Measurement is distance from center of main +photo to the nearest edge of slide background +image. */ +#prev { + /* [value] = (MaxWidth / 2) + 22 */ + right:342px; + } +#next { + /* [value] = (MaxWidth / 2) + 25 */ + left:345px; + } + +/* Determines offset of prev/next hoverable +regions that overlay the main photo. Measurement +is distance from nearest edge of slide +background image back to center of main photo. */ +#prev a strong { + /* [value] = 0 - (MaxWidth / 2) - 22 */ + right:-342px; + } +#next a strong { + /* [value] = 0 - (MaxWidth / 2) - 25 */ + left:-345px; + } + +/* Determines position of title and description. +Measurement is distance from center of main +photo to left edge of content. +Note: Second value for background position +should always be 0. */ +#desc h1, #desc p { + /* [value] = (MaxWidth / 2) + 25 */ + background-position:345px 0; + padding-left:345px; + } + +/* Determines position of meta info such as +Photo x of y, date, & keywords. Measurement is +distance from center of main photo to left +edge of content. */ +#meta ul { + /* [value] = (MaxWidth / 2) + 25 */ + padding-right:345px; + } + +/* If customizing the photo dimensions, one +more value needs to change in the Individual +Photo template (t_photo.php). Search for the +following tag: +<$MTSetVar2 name="padvalue" value="480"$> +and change the value to your new photo MaxWidth. + + + +/* End of custom values +------------------------------------------------------------------------------------- */ + + + diff --git a/themes/stopdesign/css/custom.gallery3-dialog.css b/themes/stopdesign/css/custom.gallery3-dialog.css new file mode 100644 index 00000000..549a8224 --- /dev/null +++ b/themes/stopdesign/css/custom.gallery3-dialog.css @@ -0,0 +1,113 @@ +.ui-widget-overlay { + background: #000; + opacity: 0.7; + position: fixed; + top: 0; + bottom: 0; + left: 0; + right: 0; +} + +.ui-dialog { + background: #e5e5e5; + position: absolute; + /*top: 25px !important;*/ + -moz-box-shadow: 10px 10px 5px #fff; + box-shadow: 10px 10px 5px #fff; +} + +.ui-dialog-titlebar { + display: none; +} + +.ui-dialog-titlebar-close { + display: none; +} + +.ui-dialog fieldset { + border: 0; +} + +.ui-dialog fieldset legend { + text-align: center; + font-weight: bold; + font-size: 1em; +} + +/*#gDialog > form > fieldset { + border: 0; + margin: 0; + padding: 0; +} + +#gDialog > form > fieldset > legend { + font-weight: bold; +} + +#gDialog > form > fieldset > ul { + list-style-type: none; + margin: 0; + padding: 0; +} + +#gDialog > form > fieldset > ul > li > input { + width: 100%; +} + +#gPermissions { + + +}*/ +/* Simple uploader ~~~~~~~~~~~~~~~~~~~~~~~ */ + +#g-add-photos-canvas { + border: 1px solid #ccc; + height: 200px; + margin: .5em 0; + overflow: auto; + width: 469px; +} + +#g-add-photos-status { + border: 1px solid #ccc; + height: 125px; + margin: .5em 0; + overflow: auto; + width: 469px; +} + +#g-add-photos button { + float: right; + margin-bottom: .5em; + margin-left: .5em; +} + +#g-add-photos-status li { + text-align: left; + padding-left: 2em; +} + +#g-add-photos-status li.g-success { + background: #d9efc2 url('images/ico-success.png') no-repeat .4em 50%; + width: 429px; +} + +#g-add-photos-status li.g-error { + background: #f6cbca url('images/ico-error.png') no-repeat .4em 50%; + width: 429px; +/* color: #f00;*/ +} + +#g-add-photos-button { + background: #DFEFFC; + border: 1px solid #C5DBEC; + color: #2E6E9E +} + +#g-add-photos p { + margin: 0 +} + +#g-add-photos .g-breadcrumbs li { + padding-top: .5em; +} diff --git a/themes/stopdesign/css/custom.gallery3.css b/themes/stopdesign/css/custom.gallery3.css new file mode 100644 index 00000000..f9ffae3c --- /dev/null +++ b/themes/stopdesign/css/custom.gallery3.css @@ -0,0 +1,108 @@ +body { +background-image: url("../img/bg.jpg"); +} +.thumb a strong { + /* MaxWidth / 2 */ + width: 320px; + /* MaxHeight */ + height: 480px; +} +.vertical .thumb a strong { + /* MaxWidth / 2 */ + width: 180px; + /* MaxHeight */ + height: 480px; +} +.vertical .main { + width: 380px; +} +.thumb a strong { + margin-top: 11px; +} +.thumb a:hover strong { + background-position:50% 0px !important; +} + +.thumb a { + /* thumb size + 31 */ + width: 231px !important; + height: 231px !important; +} + +#prev, #next { + /* thumb size + 34 */ + width: 234px; +} +#prev a, #next a { + /* thumb size + 34 */ + width: 231px; +} + +#desc, #meta { + /* thumb size + 80 */ + top:280px; +} + +.slideset .thumb a { + position: relative; + line-height: 234px !important; + text-align: center; + text-indent: 0 !important; + font-size: 12px !important; +} + +.slideset .thumb a span { + position: absolute; + line-height: 12px; + bottom: 2px; + width: 100%; + font-size:90%; + line-height:1.4em; + font-family:"Gill Sans","Trebuchet MS",Verdana,Sans-serif; + font-weight:normal; + text-transform:uppercase; + letter-spacing:.2em; + text-align:center; + color:#333; +} + +.slideset .thumb a:hover span { + /*background: #ddd;*/ +} + +.galleryinfo p { + position: relative; +} + +.galleryinfo .count { + text-align: center; +} + +#next-page { + position: absolute; + right: 0; + clear: both; +} + +#footer #credits { + margin: 0; + padding: 0; + list-style-type: none; +} +#footer #credits li { + background: none; + padding: 0; + display: inline; +} + +#meta ul#actions { + margin-top: 10px; +} + +#meta ul#actions li:first-child { + background:url("../img/divider_l.gif") no-repeat 100% 0; + padding-top:10px; + } +html>body #meta ul#actions li:first-child { + background-image:url("../img/divider_l.png"); + } diff --git a/themes/stopdesign/css/photos.css b/themes/stopdesign/css/photos.css new file mode 100644 index 00000000..84367843 --- /dev/null +++ b/themes/stopdesign/css/photos.css @@ -0,0 +1,1056 @@ +/* +----------------------------------------------- +Photo Gallery Templates: Main Style Sheet +Author: Douglas Bowman +Version: 1.1 - 10 May 2006 +The design and Movable Type templates that +build these pages are available for anyone to +download and use: +http://stopdesign.com/templates/photos/ +----------------------------------------------- */ + +body { + background:#ddd url("../img/bg_page.jpg") repeat-x 0 0; + margin:0; + padding:0; + font:small Verdana,Sans-serif; + color:#333; + } +.title, .index { + text-align:center; + } +#content { + position:relative; + margin:1.6em 0 0; + padding:26px 15px 15px; + font-size:85%; + line-height:1.6; + } +.photosolo #content { + padding:25px 0 15px; + } +.index #content, .archive #content, .recentcomments #content, .comments-entry #content { + width:720px; + margin-left:auto; + margin-right:auto; + } +.title #content { + width:733px; + margin-left:auto; + margin-right:auto; + padding:40px 20px 0; + text-align:left; + } +.comments-entry #content { + margin-top:1em; + padding-top:0; + } + + +/* =Links +----------------------------------------------- */ +a, a:visited { + color:#258; + text-decoration:none; + border-bottom:1px solid #469; + outline:none; + } +html>body a, html>body a:visited { + border-bottom-style:dotted; + } +a:hover, a:active { + color:#933; + border-color:#b55; + border-bottom-style:solid; + } +a img, a.btn, a.btn:visited, a.i, a.i:visited, a.i:hover { + border-width:0; + } +a.btn img, a.i>img { + position:relative; + top:2px; + } + + +/* =Headings +----------------------------------------------- */ +h2 { + margin:.5em 0 .75em; + font:145% "Trebuchet MS",Verdana,Sans-serif; + color:#974; + } +h2 .btn { + margin-left:.25em; + font-weight:normal; + color:#666; + } +.index h2, .archive h2, .recentcomments h2 { + background:url("../img/slide_minis.gif") no-repeat 50% 0; + margin:0 0 8px; + padding:24px 0 0; + font-size:100%; + line-height:1.4em; + font-family:"Gill Sans","Trebuchet MS",Verdana,Sans-serif; + font-weight:normal; + text-transform:uppercase; + letter-spacing:.2em; + text-align:center; + color:#333; + } +.galleries h2 { + position:relative; + top:-10px; + margin-bottom:0; + } + + +/* =Lists +----------------------------------------------- */ +ul { + margin:.5em 0 1.5em; + padding:0; + } +li { + background:url("../img/bullet_white.gif") no-repeat 5px .55em; + margin:0; + padding:0 0 0 15px; + list-style:none; + } +dl { + margin:.5em 0 1em; + padding:0; + } +dt { + font-weight:bold; + } +dd { + margin:0 0 1em; + padding:0; + } + + +/* =Forms +----------------------------------------------- */ +form { + margin:0 0 .75em; + } +input.text, textarea { + border:1px solid; + border-color:#999 #fff #fff #999; + } +input.text:focus, textarea:focus { + background:#ffc; + } +#btn-preview, #btn-post { + background:#888; + padding:2px 5px; + border:2px solid; + border-color:#aaa #666 #666 #aaa; + font:100% Verdana,Sans-serif; + text-transform:uppercase; + color:#fff; + } +#btn-post { + background:#354; + border-color:#576 #243 #243 #576; + } + + +/* =Misc +----------------------------------------------- */ +p { + margin:0 0 .75em; + } +.buttons p { + margin:0; + } +.note, .error { + color:#c33; + } +.inset, .inset2 { + float:left; + margin:3px 10px 5px 0; + } +.inset2 { + float:right; + margin:3px 0 5px 10px; + } +img.inset, img.inset2 { + display:block; + } +.reset { + clear:both; + display:block; + height:1px; + font-size:1px; + line-height:1px; + } +hr.reset { + overflow:hidden; + visibility:hidden; + } +th, td { + text-align:left; + vertical-align:top; + } +input, textarea, select, code { + margin:1px 0; + font:117%/1.2em Monaco,Monospace; + } +.mainbutton { + margin:0; + padding:5px 0 10px; + font-size:100%; + text-align:center; + } +.galleries .mainbutton { + margin:0; + } +#commentblock .mainbutton { + padding-top:0; + } +em.date { + font-style:normal; + } + + +/* =Path +Breadcrumb navigation that gets positioned to +the top of the page. +----------------------------------------------- */ +#path { + background:#000 url("../img/bg_path.gif"); + position:absolute; + top:0; + left:0; + width:100%; + margin:0; + padding:4px 0 6px; + border-bottom:3px solid #555; + font-size:85%; + line-height:1.6em; + color:#777; + text-align:center; + } +#path a { + font-weight:normal; + border-color:#777; + color:#888; + } + + +/* =Header +----------------------------------------------- */ +h1 { + margin:0 0 3px; + padding:0 0 .35em; + border-bottom:1px solid #ddd; + font:200% "Gill Sans","Trebuchet MS",Verdana,Sans-serif; + line-height:1.2em; + text-align:center; + text-transform:uppercase; + letter-spacing:.15em; + } +.title h1 { + margin:0; + padding:0 0 10px; + border-width:0; + } +.title h1 a, .title h1 a:visited { + border-bottom-width:0; + border-style:none; + } + +h1 a, h1 a:hover, .auto #titleimg a { + border-style:none; + } +h1 em { + margin-left:.25em; + padding-left:.5em; + border-left:1px solid #aaa; + font:66% Verdana,Sans-serif; + color:#666; + } +h1 img { + display:block; + } + + +/* =Auto-generated title images +----------------------------------------------- */ +.auto h1 { + margin:10px 0 .5em; + padding:0; + border-width:0; + font-size:170%; + line-height:1.2em; + color:#333; + text-align:left; + text-transform:none; + letter-spacing:0; + } +.auto #titleimg { + background:#bbb; + position:relative; + top:3px; + left:3px; + float:left; + margin:0 0 10px 0; + padding:0; + border-width:0; + } +html>body .auto #titleimg { + background:url("../img/bg_shadow.png"); + } +.auto #titleimg img { + display:block; + position:relative; + top:-3px; + left:-3px; + border:10px solid #fff; + } + + +/* =Gallery Description +Text block appearing on Gallery Title page +----------------------------------------------- */ +#gallerydesc { + position:relative; + margin:-110px 29px 0 405px; + font-size:100%; + } +.auto #gallerydesc, .v #gallerydesc { + float:right; + width:218px; + position:static; + margin:0; + } +.v #gallerydesc { + width:338px; + } +#gallerydesc p { + margin:0 0 .75em; + } +#gallerydesc .date { + display:block; + margin-bottom:.5em; + } + + +/* =Gallery Listing +Module showing all galleries in system +----------------------------------------------- */ +#secondary { + float:left; + width:705px; + padding:10px 0 0 15px; + margin:0; + } +.index .module { + float:left; + width:210px; + margin:0 17px 0 0; + padding:0 4px; + text-align:left; + } + +.galleries { + background:#eee; + float:left; + width:100%; + margin:0 0 15px; + position:relative; + } +.index .galleries { + margin-bottom:5px; + } +.galleries ul { + float:left; + margin-left:0; + margin-bottom:0; + list-style:none; + text-align:left; + } +.galleries li { + background-image:none; + float:left; + position:relative; + width:220px; + height:6.4em; + overflow:hidden; + margin-bottom:0; + padding:75px 0 1.6em 15px; + } +.archive .galleries li { + height:10.5em; + } +.galleries h3 { + margin:0 10px 0 4px; + font-size:100%; + } +.galleries h3 a, .galleries a.img, .galleries h3 a:visited { + border-width:0; + } +.galleries .img { + position:absolute; + top:0; + left:15px; + } +.galleries .img img { + display:block; + } +.galleries p { + margin:0 10px 0 4px; + } +.galleries div { + margin:0 4px; + } + + +/* =Auto-generated Gallery Index +Slide-formatted list of all galleries +----------------------------------------------- */ +.useslides ul { + text-align:center; + } +.useslides li { + padding-top:128px; + } +.useslides .thumb { + position:absolute; + top:0; + left:62px; + } +.useslides p { + margin-right:4px; + } + + +/* Feed links +Links to feeds appearing at bottom of Gallery Archive +----------------------------------------------- */ +#feeds { + float:left; + width:100%; + margin:0 0 10px; + } +#feeds ul { + margin:15px 0 0; + padding:9px 0; + list-style:none; + text-align:center; + } +#feeds li { + background-color:transparent; + background-image:none; + float:none; + width:auto; + display:inline; + margin:0 2px; + padding:0; + text-align:center; + } +#feeds li a { + background-color:#eee; + padding:8px 5px; + border:1px solid #fff; + } +#feeds li a:hover { + background-color:#ddd; + } + + +/* =GalleryData +Table of stats appearing on Gallery Index +----------------------------------------------- */ +.gallerydata { + width:100%; + border-top:1px solid #ccc; + font-size:100%; + } +.gallerydata th, .gallerydata td { + padding:5px; + border-bottom:1px solid #ccc; + font-weight:normal; + vertical-align:middle; + } +.gallerydata td { + text-align:right; + white-space:nowrap; + } + + +/* =FavList +Module on Index page displaying tiny thumbnails +of most recent favorite photos +----------------------------------------------- */ +#favlist { + float:left; + width:204px; + margin:0 -3px 0 0; + padding:0 0 0 6px; + list-style:none; + } +#favlist li { + background:url("../img/bg_slide_sm.gif") 0 0 no-repeat; + float:left; + width:62px; + margin:0 6px 6px 0; + padding:0; + } +html>body #favlist li { + background-image:url("../img/bg_slide_sm.png"); + } +#favlist table { + width:62px; + height:62px; + margin:0; + border-collapse:collapse; + font-size:1px; + } +#favlist td { + padding:0 2px 2px 0; + text-align:center; + vertical-align:middle; + } +#favlist li a { + border-width:0; + } + + +/* =Gallery Info +Title, description, & prefs on Photo Gallery page +----------------------------------------------- */ +.galleryinfo { + clear:left; + float:left; + width:22%; + margin:0; + line-height:1.4em; + } +.galleryinfo h1 { + margin:0 0 .5em; + text-align:left; + text-transform:none; + letter-spacing:0; + } +.galleryinfo .desc { + line-height:1.6em; + margin-bottom:1em; + } +.galleryinfo form { + margin:0 0 .5em; + padding:5px 0; + } +.galleryinfo fieldset { + margin:0 0 .75em; + padding:.25em 0 .5em; + border-width:0; + border-bottom:1px dotted #ccc; + } +.galleryinfo form strong { + display:block; + margin:0; + padding:0 0 .25em; + color:#222; + } +.galleryinfo fieldset div { + margin:0 0 .25em; + } + + +/* =Thumbs +Reusable style for thumbnail photos as slides +----------------------------------------------- */ +.thumb { + background:url("../img/bg_slide.gif") 0 0 no-repeat; + display:block; + float:left; + margin:0; + padding:0 3px 3px 0; + } +html>body .thumb { + background-image:url("../img/bg_slide.png"); + } +.thumb span { + background-repeat:no-repeat; + background-position:50% 104px; + display:block; + } +.thumbv span { + background-position:9px 50%; + } +.thumb em { + background-repeat:no-repeat; + background-position:50% 50%; + display:block; + } +.thumb a, .thumb a:link, .thumb a:visited { + background:none !important; + display:block; + width:120px; + height:120px; + border:none; + text-indent:-9999px; + font-size:1px; + line-height:1px; + } + + +/* =Slideset +Normal group of slide-like thumbnails +----------------------------------------------- */ +.slideset { + float:right; + position:relative; + width:75%; + margin:0 0 15px; + padding:0; + list-style:none; + line-height:1.4em; + } +.slideset .thumb { + float:left; + margin:0 10px 10px 0; + } + + +/* =Individual Photo +----------------------------------------------- */ +/* NOTE: + See [custom.css] to customize your own + photo dimensions with override values. */ +.main { + width:500px; + margin:0 auto; + text-align:center; + } +#photo { + margin:0 0 10px; + } +#photo strong { + background:#bbb; + position:relative; + display:block; + top:3px; + left:3px; + margin:0 0 10px 0; + border-width:0; + } +html>body #photo strong { + background:url("../img/bg_shadow.png"); + } +#photo img { + display:block; + position:relative; + top:-3px; + left:-3px; + border:10px solid #fff; + } + + +/* =PrevNext Nav (Individual Photo template) +Thumbnails used for prev/next photo navigation +----------------------------------------------- */ +#prevnext { + position:absolute; + top:25px; + left:50%; + } +#prev, #next { + position:absolute; + top:0; + width:123px; + margin:0; + font-weight:bold; + } +#prev { + right:262px; + } +#next { + left:265px; + } +#prev a, #next a { + width:120px; + } + + +/* =PrevNextHovers (Individual Photo template) +The two hoverable regions overlaying the main photo +----------------------------------------------- */ +/* Note: + Width and height for the following + strong element is set inline using the style + attribute. Both values are automatically + determined by taking the width/height of the + main photo. + Width is ((width of main photo + 20) / 2). + Height is (height of main photo + 20). */ +#prevnext a strong { + position:absolute; + top:0; + } +#prev a strong { + background:url("../img/photonav_prev.gif") no-repeat 50% -100px; + right:-262px; + } +#next a strong { + background:url("../img/photonav_next.gif") no-repeat 50% -100px; + left:-265px; + } +html>body #prev a strong { + background-image:url("../img/photonav_prev.png"); + } +html>body #next a strong { + background-image:url("../img/photonav_next.png"); + } +#prev a:hover strong, #next a:hover strong, #prev a:active strong, #next a:active strong { + background-position:50% 10px; + cursor:pointer; + } + + +/* =Description (Individual Photo template) +Title and description of photo +----------------------------------------------- */ +#desc { + position:absolute; + top:170px; + right:0; + width:50%; + text-align:left; + } +#desc h1 { + background:url("../img/divider_r.gif") no-repeat 265px 0; + max-width:30em; + margin:0; + padding:10px 15px 5px 265px; + border-width:0; + font:bold 100% Verdana,Sans-serif; + line-height:1.6em; + letter-spacing:0; + text-transform:none; + text-align:left; + } +html>body #desc h1 { + background-image:url("../img/divider_r.png"); + } +#desc p { + max-width:30em; + margin:0 0 .75em; + padding:0 15px 0 0; + } +#desc p.posted { + margin-top:1.25em; + } + + +/* =Meta info (Individual Photo template) +Photo x of y, date, and keywords +----------------------------------------------- */ +#meta { + position:absolute; + top:170px; + left:0; + width:50%; + } +#meta ul { + margin:0; + padding:0 265px 0 15px; + list-style:none; + } +#meta li { + background:none; + margin:0; + padding:0; + text-align:right; + } +#meta li.count { + background:url("../img/divider_l.gif") no-repeat 100% 0; + padding-top:10px; + padding-bottom:5px; + } +html>body #meta li.count { + background-image:url("../img/divider_l.png"); + } + + +/* =Count +Miscellaneous portions of the UI that display +a total count of photos for each gallery +----------------------------------------------- */ +.count { + font-style:italic; + } +.galleryinfo .count { + background:#ccc; + display:block; + margin:0 0 .5em; + padding:2px 5px; + font-style:normal; + } +#info p.count { + margin:3em 0 1.5em; + padding:5px 0; + border:solid #bbb; + border-width:1px 0; + font-size:100%; + line-height:1.6em; + } +input.btn, .header form select { + vertical-align:middle; + font-size:100%; + } + + +/* =Comments +General div IDs and headings that surround the +comment listing for an entry. These are the divs +the JavaScript uses to hide/show comments +----------------------------------------------- */ +#commentblock { + display:block; + width:480px; + margin:0 auto; + text-align:left; + } +#commentblock h2, #commentblock p.sub { + text-align:center; + font-weight:normal; + } +#commentblock h2 { + margin-top:0; + font:100% Verdana,Sans-serif; + color:#333; + } +#commentblock h2 a { + margin-left:.25em; + font-weight:normal; + border-width:0; + color:#666; + } +#commentblock h2 a img { + position:relative; + top:2px; + } +#showcomments, #hidecomments, #addcommentbutton { + display:none; + } +#addcomment h2 { + margin-top:.5em; + text-align:left; + font:140% "Trebuchet MS",Verdana,Sans-serif; + color:#974; + } + + +/* =Comment photo +Region on comment preview/error pages that displays +the thumbnail image, photo name, date, & keywords +----------------------------------------------- */ +#comment-photo { + float:left; + width:100%; + padding:35px 0 12px; + } +#comment-photo #desc { + position:static; + width:auto; + margin-left:133px; + padding:22px 0 2px; + } +#comment-photo #desc h1 { + background:none; + padding:0; + } +#comment-photo #desc p { + margin:0; + padding:0; + } + + +/* =CommentList +List of existing comments for an entry +----------------------------------------------- */ +dl.commentlist, ul.commentlist { + margin-bottom:1.5em; + } +#commentblock .commentlist { + margin-bottom:1em; + } +.commentlist dt, .commentlist li p.commenter { + padding:8px 0 .25em; + font-weight:normal; + } +.commentlist dd, .commentlist li { + background-image:none; + padding:2px 18px 4px; + margin:0 0 .5em; + border-bottom:1px dotted #bbb; + } +.commentlist .postno { + background:url("../img/icon_pushpin.gif") no-repeat 0 50%; + border-width:0; + padding:0 0 0 18px; + margin-right:2px; + font:150% "Gill Sans","Trebuchet MS",Georgia,Serif; + color:#567; + } +.commentlist a.postno { + border-bottom-width:0; + border-style:none; + } + +p.comment-error { + margin:0 0 1.5em; + color:#c33; + } +#comment-notes { + margin-top:2em; + } +#comment-notes p { + color:#554; + } + +.commentlink, .commentlink:visited { + background:url("../img/icon_pushpin.gif") no-repeat 0 50%; + border-width:0; + padding-left:17px; + white-space:nowrap; + } +a.commentlink, a.commentlink:visited { + color:#359; + font-weight:normal; + } +a.commentlink:hover { + color:#933; + border-color:#ccb; + text-decoration:none; + } + + +/* =Recent Comments +Only used on recent comments listing page +----------------------------------------------- */ +.recentcomments .commentlist { + float:left; + width:100%; + margin:0 0 15px; + padding:0; + list-style:none; + } +.recentcomments .commentlist li { + background-color:#eee; + float:left; + width:100%; + min-height:138px; + margin:0 0 15px; + padding:0 0 15px; + border-bottom-width:0; + } +.recentcomments li p { + margin-left:148px; + margin-right:15px; + } +.recentcomments li p.commenter { + margin-left:0; + padding-top:20px; + padding-left:148px; + font-style:italic; + } +.recentcomments p.thumb { + float:left; + background-position:15px 0; + height:123px; + margin:15px 10px 0 0; + padding-left:15px; + } +.commenton { + margin-bottom:5px; + padding-top:.5em; + border-top:1px solid #ccc; + color:#888; + } +.commenton a { + font-weight:bold; + } + + +/* =Comment Form +Comment Submission form +----------------------------------------------- */ +#comments-form table { + width:100%; + margin:0; + padding:0; + border-width:0; + font-size:100%; + color:#333; + } +#comments-form td { + width:100%; + } +#comments-form td, #comments-form th { + padding:5px 10px 5px 0; + border-bottom:1px dotted #bbb; + font-weight:normal; + } +#comments-form th { + text-transform:lowercase; + white-space:nowrap; + } +#comments-form td.buttons, #comments-form th.buttons { + border-width:0; + text-align:right; + } +#comments-form label { + text-transform:lowercase; + cursor:pointer; + } +#comments-form label:hover { + color:#963; + } +#comments-form textarea { + background:#fff; + display:block; + width:97%; + color:#000; + } +#comments-form textarea:focus { + background:#ffc; + } +#comments-form form p { + margin:.5em 0; + } +#comments-form .text { + width:65%; + } + + +/* =Footer +----------------------------------------------- */ +#footer { + clear:both; + width:100%; + padding:15px 0; + font-size:85%; + line-height:1.8em; + text-align:center; + color:#888; + } +#footer p { + margin:0 15px; + padding:5px 0; + border-top:1px solid #eee; + } +#footer hr { + display:none; + } +#footer a { + font-weight:normal; + color:#678; + } +#footer a:hover, #footer a:active { + color:#933; + border-bottom-width:1px; + } diff --git a/themes/stopdesign/img/bg.jpg b/themes/stopdesign/img/bg.jpg new file mode 100644 index 00000000..36273d69 Binary files /dev/null and b/themes/stopdesign/img/bg.jpg differ diff --git a/themes/stopdesign/img/bg_page.jpg b/themes/stopdesign/img/bg_page.jpg new file mode 100644 index 00000000..aebe2d8f Binary files /dev/null and b/themes/stopdesign/img/bg_page.jpg differ diff --git a/themes/stopdesign/img/bg_path.gif b/themes/stopdesign/img/bg_path.gif new file mode 100644 index 00000000..f923d9aa Binary files /dev/null and b/themes/stopdesign/img/bg_path.gif differ diff --git a/themes/stopdesign/img/bg_shadow.png b/themes/stopdesign/img/bg_shadow.png new file mode 100644 index 00000000..25703b76 Binary files /dev/null and b/themes/stopdesign/img/bg_shadow.png differ diff --git a/themes/stopdesign/img/bg_slide.gif b/themes/stopdesign/img/bg_slide.gif new file mode 100644 index 00000000..a801e33d Binary files /dev/null and b/themes/stopdesign/img/bg_slide.gif differ diff --git a/themes/stopdesign/img/bg_slide.png b/themes/stopdesign/img/bg_slide.png new file mode 100644 index 00000000..b54fa198 Binary files /dev/null and b/themes/stopdesign/img/bg_slide.png differ diff --git a/themes/stopdesign/img/bg_slide_sm.gif b/themes/stopdesign/img/bg_slide_sm.gif new file mode 100644 index 00000000..8ddd2c18 Binary files /dev/null and b/themes/stopdesign/img/bg_slide_sm.gif differ diff --git a/themes/stopdesign/img/bg_slide_sm.png b/themes/stopdesign/img/bg_slide_sm.png new file mode 100644 index 00000000..1df1a4b2 Binary files /dev/null and b/themes/stopdesign/img/bg_slide_sm.png differ diff --git a/themes/stopdesign/img/bullet_white.gif b/themes/stopdesign/img/bullet_white.gif new file mode 100644 index 00000000..d7545b2c Binary files /dev/null and b/themes/stopdesign/img/bullet_white.gif differ diff --git a/themes/stopdesign/img/divider_l.gif b/themes/stopdesign/img/divider_l.gif new file mode 100644 index 00000000..88ab52d2 Binary files /dev/null and b/themes/stopdesign/img/divider_l.gif differ diff --git a/themes/stopdesign/img/divider_l.png b/themes/stopdesign/img/divider_l.png new file mode 100644 index 00000000..0c8de096 Binary files /dev/null and b/themes/stopdesign/img/divider_l.png differ diff --git a/themes/stopdesign/img/divider_r.gif b/themes/stopdesign/img/divider_r.gif new file mode 100644 index 00000000..92605376 Binary files /dev/null and b/themes/stopdesign/img/divider_r.gif differ diff --git a/themes/stopdesign/img/divider_r.png b/themes/stopdesign/img/divider_r.png new file mode 100644 index 00000000..813fe176 Binary files /dev/null and b/themes/stopdesign/img/divider_r.png differ diff --git a/themes/stopdesign/img/icon_pushpin.gif b/themes/stopdesign/img/icon_pushpin.gif new file mode 100644 index 00000000..b9e8461e Binary files /dev/null and b/themes/stopdesign/img/icon_pushpin.gif differ diff --git a/themes/stopdesign/img/moreslide_next.gif b/themes/stopdesign/img/moreslide_next.gif new file mode 100644 index 00000000..987a638e Binary files /dev/null and b/themes/stopdesign/img/moreslide_next.gif differ diff --git a/themes/stopdesign/img/moreslide_prev.gif b/themes/stopdesign/img/moreslide_prev.gif new file mode 100644 index 00000000..93c2e11f Binary files /dev/null and b/themes/stopdesign/img/moreslide_prev.gif differ diff --git a/themes/stopdesign/img/photonav_next.gif b/themes/stopdesign/img/photonav_next.gif new file mode 100644 index 00000000..f2f572e1 Binary files /dev/null and b/themes/stopdesign/img/photonav_next.gif differ diff --git a/themes/stopdesign/img/photonav_next.png b/themes/stopdesign/img/photonav_next.png new file mode 100644 index 00000000..d0986f5e Binary files /dev/null and b/themes/stopdesign/img/photonav_next.png differ diff --git a/themes/stopdesign/img/photonav_prev.gif b/themes/stopdesign/img/photonav_prev.gif new file mode 100644 index 00000000..2c774ae7 Binary files /dev/null and b/themes/stopdesign/img/photonav_prev.gif differ diff --git a/themes/stopdesign/img/photonav_prev.png b/themes/stopdesign/img/photonav_prev.png new file mode 100644 index 00000000..d5773739 Binary files /dev/null and b/themes/stopdesign/img/photonav_prev.png differ diff --git a/themes/stopdesign/img/slide_minis.gif b/themes/stopdesign/img/slide_minis.gif new file mode 100644 index 00000000..2f31ed93 Binary files /dev/null and b/themes/stopdesign/img/slide_minis.gif differ diff --git a/themes/stopdesign/js/comments.js b/themes/stopdesign/js/comments.js new file mode 100644 index 00000000..0f92405f --- /dev/null +++ b/themes/stopdesign/js/comments.js @@ -0,0 +1,73 @@ + diff --git a/themes/stopdesign/js/rememberMe.js b/themes/stopdesign/js/rememberMe.js new file mode 100644 index 00000000..71fcb2f0 --- /dev/null +++ b/themes/stopdesign/js/rememberMe.js @@ -0,0 +1,60 @@ + diff --git a/themes/stopdesign/js/stopdesign.ui.init.js b/themes/stopdesign/js/stopdesign.ui.init.js new file mode 100644 index 00000000..895f9333 --- /dev/null +++ b/themes/stopdesign/js/stopdesign.ui.init.js @@ -0,0 +1,9 @@ +/** + * Initialize jQuery UI and Gallery Plugin elements + */ + +$(document).ready(function() { + $(".g-dialog-link").gallery_dialog('option', 'position', 'top'); + $(".g-dialog-link").gallery_dialog('option', 'draggable', false); + $(".g-ajax-link").gallery_ajax(); +}); diff --git a/themes/stopdesign/js/ui.init.js b/themes/stopdesign/js/ui.init.js new file mode 100644 index 00000000..465eda86 --- /dev/null +++ b/themes/stopdesign/js/ui.init.js @@ -0,0 +1,111 @@ +/** + * Initialize jQuery UI and Gallery Plugins + */ + +$(document).ready(function() { + + // Initialize Superfish menus (hidden, then shown to address IE issue) + /*$("#g-site-menu .g-menu").hide().addClass("sf-menu"); + $("#g-site-menu .g-menu").superfish({ + delay: 500, + animation: { + opacity:'show', + height:'show' + }, + pathClass: "g-selected", + speed: 'fast' + }).show();*/ + + // Initialize status message effects + /*$("#g-action-status li").gallery_show_message();*/ + + // Initialize dialogs + $(".g-dialog-link").gallery_dialog(); + + // Initialize short forms + /*$(".g-short-form").gallery_short_form();*/ + + // Apply jQuery UI icon, hover, and rounded corner styles + /*$("input[type=submit]:not(.g-short-form input)").addClass("ui-state-default ui-corner-all"); + if ($("#g-view-menu").length) { + $("#g-view-menu ul").removeClass("g-menu").removeClass("sf-menu"); + $("#g-view-menu a").addClass("ui-icon"); + }*/ + + // Apply jQuery UI icon and hover styles to context menus + /*if ($(".g-context-menu").length) { + $(".g-context-menu li").addClass("ui-state-default"); + $(".g-context-menu a").addClass("g-button ui-icon-left"); + $(".g-context-menu a").prepend(""); + $(".g-context-menu a span").each(function() { + var iconClass = $(this).parent().attr("class").match(/ui-icon-.[^\s]+/).toString(); + $(this).addClass(iconClass); + }); + }*/ + + // Album view only + /*if ($("#g-album-grid").length) { + // Set equal height for album items and vertically align thumbnails/metadata + $('.g-item').equal_heights().gallery_valign(); + + // Initialize thumbnail hover effect + $(".g-item").hover( + function() { + // Insert a placeholder to hold the item's position in the grid + var placeHolder = $(this).clone().attr("id", "g-place-holder"); + $(this).after($(placeHolder)); + // Style and position the hover item + var position = $(this).position(); + $(this).css("top", position.top).css("left", position.left); + $(this).addClass("g-hover-item"); + // Initialize the contextual menu + $(this).gallery_context_menu(); + // Set the hover item's height + $(this).height("auto"); + var context_menu = $(this).find(".g-context-menu"); + var adj_height = $(this).height() + context_menu.height(); + $(this).height(adj_height); + }, + function() { + // Reset item height and position + if ($(this).next().height()) { + var sib_height = $(this).next().height(); + } else { + var sib_height = $(this).prev().height(); + } + if ($.browser.msie && $.browser.version >= 8) { + sib_height = sib_height + 1; + } + $(this).css("height", sib_height); + $(this).css("position", "relative"); + $(this).css("top", 0).css("left", 0); + // Remove the placeholder and hover class from the item + $(this).removeClass("g-hover-item"); + $("#g-place-holder").remove(); + } + ); + }*/ + + // Photo/Item item view + /*if ($("#g-photo,#g-movie").length) { + // Ensure the resized image fits within its container + $("#g-photo,#g-movie").gallery_fit_photo(); + + // Initialize context menus + var resize = $("#g-photo,#g-movie").gallery_get_photo(); + $(resize).hover(function(){ + $(this).gallery_context_menu(); + }); + + // Add scroll effect for links to named anchors + $.localScroll({ + queue: true, + duration: 1000, + hash: true + }); + }*/ + + // Initialize button hover effect + /*$.fn.gallery_hover_init();*/ + +}); diff --git a/themes/stopdesign/theme.info b/themes/stopdesign/theme.info new file mode 100644 index 00000000..660cda32 --- /dev/null +++ b/themes/stopdesign/theme.info @@ -0,0 +1,6 @@ +name = "Stop Design" +description = "A clean and sober theme from stopdesign.com, by Douglas Bowman." +version = 1 +author = "Romain LE DISEZ" +site = 1 +admin = 0 diff --git a/themes/stopdesign/thumbnail.png b/themes/stopdesign/thumbnail.png new file mode 100644 index 00000000..53abcecf Binary files /dev/null and b/themes/stopdesign/thumbnail.png differ diff --git a/themes/stopdesign/views/album.html.php b/themes/stopdesign/views/album.html.php new file mode 100644 index 00000000..f235ecd2 --- /dev/null +++ b/themes/stopdesign/views/album.html.php @@ -0,0 +1,61 @@ + + +
+

title) ?>

+

description)) ?>

+
+ + + +
+

+ ($page - 1) * $page_size + 1, + "to_number" => min($page * $page_size, $children_count), + "count" => $children_count)) ?> + + + $page - 1))) ?>" accesskey="z">« + +   + + $page + 1))) ?>" accesskey="x"> » + +

+ + +

Actions

+ + +
\ No newline at end of file diff --git a/themes/stopdesign/views/block.html.php b/themes/stopdesign/views/block.html.php new file mode 100644 index 00000000..699d7c22 --- /dev/null +++ b/themes/stopdesign/views/block.html.php @@ -0,0 +1,10 @@ + + + + +
+

+
+ +
+
diff --git a/themes/stopdesign/views/dynamic.html.php b/themes/stopdesign/views/dynamic.html.php new file mode 100644 index 00000000..a8a4d362 --- /dev/null +++ b/themes/stopdesign/views/dynamic.html.php @@ -0,0 +1,29 @@ + +
+
+ dynamic_top() ?> +
+

+
+ + +dynamic_bottom() ?> + +paginator() ?> diff --git a/themes/stopdesign/views/movie.html.php b/themes/stopdesign/views/movie.html.php new file mode 100644 index 00000000..27c293ce --- /dev/null +++ b/themes/stopdesign/views/movie.html.php @@ -0,0 +1,18 @@ + +
+ photo_top() ?> + + paginator() ?> + +
+ movie_img(array("class" => "g-movie", "id" => "g-movie-id-{$item->id}")) ?> + context_menu($item, "#g-movie-id-{$item->id}") ?> +
+ +
+

title) ?>

+
description)) ?>
+
+ + photo_bottom() ?> +
diff --git a/themes/stopdesign/views/no_sidebar.html.php b/themes/stopdesign/views/no_sidebar.html.php new file mode 100644 index 00000000..378bd971 --- /dev/null +++ b/themes/stopdesign/views/no_sidebar.html.php @@ -0,0 +1,6 @@ + + diff --git a/themes/stopdesign/views/page.html.php b/themes/stopdesign/views/page.html.php new file mode 100644 index 00000000..e7703272 --- /dev/null +++ b/themes/stopdesign/views/page.html.php @@ -0,0 +1,96 @@ + + + + + + + <? if ($page_title): ?> + <?= $page_title ?> + <? else: ?> + <? if ($theme->item()): ?> + <? if ($theme->item()->is_album()): ?> + <?= t("Browse Album :: %album_title", array("album_title" => $theme->item()->title)) ?> + <? elseif ($theme->item()->is_photo()): ?> + <?= t("Photo :: %photo_title", array("photo_title" => $theme->item()->title)) ?> + <? else: ?> + <?= t("Movie :: %movie_title", array("movie_title" => $theme->item()->title)) ?> + <? endif ?> + <? elseif ($theme->tag()): ?> + <?= t("Browse Tag :: %tag_title", array("tag_title" => $theme->tag()->name)) ?> + <? else: /* Not an item, not a tag, no page_title specified. Help! */ ?> + <?= t("Gallery") ?> + <? endif ?> + <? endif ?> + + " type="image/x-icon" /> + + css("_DISABLED_yui/reset-fonts-grids.css") ?> + css("_DISABLED_superfish/css/superfish.css") ?> + css("_DISABLED_themeroller/ui.base.css") ?> + css("_DISABLED_gallery.common.css") ?> + script("jquery.js") ?> + script("jquery.form.js") ?> + script("jquery-ui.js") ?> + script("gallery.common.js") ?> + + + script("gallery.ajax.js") ?> + script("gallery.dialog.js") ?> + script("superfish/js/superfish.js") ?> + script("jquery.localscroll.js") ?> + script("ui.init.js") ?> + + head() they get combined */ ?> + page_subtype == "photo"): ?> + script("jquery.scrollTo.js") ?> + script("gallery.show_full_size.js") ?> + page_subtype == "movie"): ?> + script("flowplayer.js") ?> + + + css("photos.css") ?> + css("aus04.css") ?> + css("custom.css") ?> + css("custom.gallery3.css") ?> + css("custom.gallery3-dialog.css") ?> + script("_DISABLED_rememberMe.js") ?> + script("_DISABLED_comments.js") ?> + script("stopdesign.ui.init.js") ?> + + head() ?> + + + +
+ +
+ + item() && !empty($parents)): ?> +

+ + + item()->id}" : null) ?>"> + title) ?> + » + + + item()->title) ?> +

+ + + + + diff --git a/themes/stopdesign/views/paginator.html.php b/themes/stopdesign/views/paginator.html.php new file mode 100644 index 00000000..5034c965 --- /dev/null +++ b/themes/stopdesign/views/paginator.html.php @@ -0,0 +1,87 @@ + + + + diff --git a/themes/stopdesign/views/photo.html.php b/themes/stopdesign/views/photo.html.php new file mode 100644 index 00000000..fb3d99de --- /dev/null +++ b/themes/stopdesign/views/photo.html.php @@ -0,0 +1,49 @@ + + +
+
+

title) ?>

+

description)) ?>

+
+ +
+

resize_img(array()) ?>

+
+ +
+ + + + +
+ +
+ +
+ + + + + + + +
+
+ + photo_bottom() ?> diff --git a/themes/stopdesign/views/sidebar.html.php b/themes/stopdesign/views/sidebar.html.php new file mode 100644 index 00000000..086d1359 --- /dev/null +++ b/themes/stopdesign/views/sidebar.html.php @@ -0,0 +1,16 @@ + +sidebar_top() ?> +
+ + album_menu() ?> + + photo_menu() ?> + + movie_menu() ?> + + tag_menu() ?> + +
+ +sidebar_blocks() ?> +sidebar_bottom() ?>