diff --git a/src/wp-content/themes/broadside/404.php b/src/wp-content/themes/broadside/404.php new file mode 100644 index 0000000..be7339d --- /dev/null +++ b/src/wp-content/themes/broadside/404.php @@ -0,0 +1,5 @@ + +
+

+
+ \ No newline at end of file diff --git a/src/wp-content/themes/broadside/admin/css/admin-style.css b/src/wp-content/themes/broadside/admin/css/admin-style.css new file mode 100644 index 0000000..7304476 --- /dev/null +++ b/src/wp-content/themes/broadside/admin/css/admin-style.css @@ -0,0 +1,220 @@ +/*-------------------------------------------------------------------------------------------*/ +/* OptionsFramework Admin Styles */ +/*-------------------------------------------------------------------------------------------*/ + +.updated { + max-width:764px; + margin-bottom:0px !important; +} +#optionsframework { + position:relative; + z-index: 0; + max-width:780px; + background:#fff; +} +#optionsframework p { + margin-bottom:0; + padding-bottom:10px; +} +#optionsframework .section { + padding:10px 10px 0; +} +#optionsframework .group .section:last-of-type { + padding-bottom:40px; +} +#optionsframework .section .heading { + padding:10px 0px; + margin:0 0 15px; + border-bottom: 1px solid #dfdfdf; +} +#optionsframework .section .controls { + float: left; + min-width:350px; + width: 54%; + padding-right:2%; +} +#optionsframework .section .explain { + max-width:38%; + float: left; + font-size: 12px; + line-height:16px; + color: #777; +} +#optionsframework .section-checkbox .controls { + min-width:25px; + width:25px +} +#optionsframework .section-checkbox .explain { + max-width:93%; +} +#optionsframework .section-color .controls { + min-width:125px; + width:125px +} +#optionsframework .controls input, #optionsframework .controls select, #optionsframework .controls textarea { + margin-bottom: 10px; + width:100%; +} +#optionsframework .section-radio label, #optionsframework .section-multicheck label { + float:left; +} +#optionsframework input.checkbox, #optionsframework input.of-radio { + width: 30px; + float:left; + clear:both; +} +#optionsframework .controls .of-color { + float:left; + width: 80px; + margin-left:5px; + margin-right:5px; +} +#optionsframework .controls .of-typography-size { + width:80px; + margin-left:5px; + float:left +} +#optionsframework .controls .of-typography-unit { + width:50px; + margin-left:5px; + float:left +} +#optionsframework .controls .of-typography-face { + width:100px; + margin-left:5px; + float:left +} +#optionsframework .controls .of-typography-style { + width:80px; + margin-left:5px; + margin-right:5px; + float:left +} +#optionsframework .of-background-properties { + clear:both; + margin-top: 18px; +} +#optionsframework .controls .of-background-repeat { + width:125px; + margin-right:5px; + float:left +} +#optionsframework .controls .of-background-position { + width:125px; + margin-right:5px; + float:left +} +#optionsframework .controls .of-background-attachment { + width:125px; + margin-right:5px; + float:left +} +#optionsframework div.section-background .controls input.upload { + width:47%; +} +#optionsframework .controls .of-radio-img-img { + border:3px solid #f9f9f9; + margin:0 5px 10px 0; + display:none; + cursor:pointer; + float:left; +} +#optionsframework .controls .of-radio-img-selected { + border:3px solid #ccc +} +#optionsframework .controls .of-radio-img-img:hover { + opacity:.8; +} +#optionsframework .controls .of-border-width { + width:80px; + float:left +} +#optionsframework .controls .of-border-style { + width:120px; + float:left +} +#optionsframework .hide { + display:none; +} +#optionsframework .of-option-image { + max-width:340px; + margin:3px 0 18px 0; +} +#optionsframework .mini .controls select, #optionsframework .section .mini .controls { + width: 140px; +} +#optionsframework .mini .controls input, #optionsframework .mini .controls { + min-width:140px; + width: 140px; +} +#optionsframework .mini .explain { + max-width:74%; +} +/* Image Uploader */ + +#optionsframework .controls input.upload { + width:80%; +} +#optionsframework .controls input.upload_button { + float:right; + width:45px; + border-color:#BBBBBB; + cursor:pointer; + height:16px; +} +#optionsframework .controls input.upload_button:hover { + border-color:#666666; + color:#000; +} +#optionsframework .screenshot { + float:left; + margin-left:1px; + position:relative; + width:344px; + margin-top:3px; +} +#optionsframework .screenshot img { + background:#FAFAFA; + border-color:#ccc #eee #eee #ccc; + border-style:solid; + border-width:1px; + float:left; + max-width:334px; + padding:4px; + margin-bottom:10px; +} +#optionsframework .screenshot .mlu_remove { + background:url("../images/ico-delete.png") no-repeat; + border:medium none; + bottom:4px; + display:block; + float:left; + height:16px; + padding:0; + position:absolute; + left:-4px; + text-indent:-9999px; + width:16px; +} +#optionsframework .screenshot .no_image .file_link { + margin-left: 20px; +} +#optionsframework .screenshot .no_image .mlu_remove { + bottom: 0px; +} +#optionsframework .reset-button { + float:left; + cursor:pointer; +} + +/* Bottom Section */ + +#optionsframework-submit { + padding: 7px 10px; + border-top: 1px solid #ECECEC; + background-color: #F1F1F1; + background-image: -moz-linear-gradient(center top , #F9F9F9, #ECECEC); +} +#optionsframework .button-primary { + float:right; +} \ No newline at end of file diff --git a/src/wp-content/themes/broadside/admin/css/colorpicker.css b/src/wp-content/themes/broadside/admin/css/colorpicker.css new file mode 100644 index 0000000..8f66acc --- /dev/null +++ b/src/wp-content/themes/broadside/admin/css/colorpicker.css @@ -0,0 +1,177 @@ +.colorpicker { + width: 356px; + height: 176px; + overflow: hidden; + position: absolute; + background: url(../images/colorpicker/colorpicker_background.png); + font-family: Arial, Helvetica, sans-serif; + display: none; +} +.colorpicker_color { + width: 150px; + height: 150px; + left: 14px; + top: 13px; + position: absolute; + background: #f00; + overflow: hidden; + cursor: crosshair; +} +.colorpicker_color div { + position: absolute; + top: 0; + left: 0; + width: 150px; + height: 150px; + background: url(../images/colorpicker/colorpicker_overlay.png); +} +.colorpicker_color div div { + position: absolute; + top: 0; + left: 0; + width: 11px; + height: 11px; + overflow: hidden; + background: url(../images/colorpicker/colorpicker_select.gif); + margin: -5px 0 0 -5px; +} +.colorpicker_hue { + position: absolute; + top: 13px; + left: 171px; + width: 35px; + height: 150px; + cursor: n-resize; +} +.colorpicker_hue div { + position: absolute; + width: 35px; + height: 9px; + overflow: hidden; + background: url(../images/colorpicker/colorpicker_indic.gif) left top; + margin: -4px 0 0 0; + left: 0px; +} +.colorpicker_new_color { + position: absolute; + width: 60px; + height: 30px; + left: 213px; + top: 13px; + background: #f00; +} +.colorpicker_current_color { + position: absolute; + width: 60px; + height: 30px; + left: 283px; + top: 13px; + background: #f00; +} +.colorpicker input { + background-color: transparent; + border: 1px solid transparent; + position: absolute; + font-size: 10px; + font-family: Arial, Helvetica, sans-serif; + color: #898989; + top: 4px; + right: 11px; + text-align: right; + margin: 0; + padding: 0; + height: 12px; +} +.colorpicker_hex { + position: absolute; + width: 72px; + height: 22px; + background: url(../images/colorpicker/colorpicker_hex.png) top; + left: 212px; + top: 142px; +} +.colorpicker_hex input { + right: 6px; +} +.colorpicker_field { + height: 22px; + width: 62px; + background-position: top; + position: absolute; +} +.colorpicker_field span { + position: absolute; + width: 12px; + height: 22px; + overflow: hidden; + top: 0; + right: 0; + cursor: n-resize; +} +.colorpicker_rgb_r { + background-image: url(../images/colorpicker/colorpicker_rgb_r.png); + top: 52px; + left: 212px; +} +.colorpicker_rgb_g { + background-image: url(../images/colorpicker/colorpicker_rgb_g.png); + top: 82px; + left: 212px; +} +.colorpicker_rgb_b { + background-image: url(../images/colorpicker/colorpicker_rgb_b.png); + top: 112px; + left: 212px; +} +.colorpicker_hsb_h { + background-image: url(../images/colorpicker/colorpicker_hsb_h.png); + top: 52px; + left: 282px; +} +.colorpicker_hsb_s { + background-image: url(../images/colorpicker/colorpicker_hsb_s.png); + top: 82px; + left: 282px; +} +.colorpicker_hsb_b { + background-image: url(../images/colorpicker/colorpicker_hsb_b.png); + top: 112px; + left: 282px; +} +.colorpicker_submit { + position: absolute; + width: 22px; + height: 22px; + background: url(../images/colorpicker/colorpicker_submit.png) top; + left: 322px; + top: 142px; + overflow: hidden; +} +.colorpicker_focus { + background-position: center; +} +.colorpicker_hex.colorpicker_focus { + background-position: bottom; +} +.colorpicker_submit.colorpicker_focus { + background-position: bottom; +} +.colorpicker_slider { + background-position: bottom; +} + +.colorSelector { + position: relative; + width: 27px; + height: 27px; + background: url(../images/colorpicker/select.png); + float:left; +} +.colorSelector div { + position: absolute; + top: 4px; + left: 3px; + width: 21px; + height: 19px; + background: url(../images/colorpicker/select.png) center; +} \ No newline at end of file diff --git a/src/wp-content/themes/broadside/admin/images/colorpicker/blank.gif b/src/wp-content/themes/broadside/admin/images/colorpicker/blank.gif new file mode 100644 index 0000000..8368bae Binary files /dev/null and b/src/wp-content/themes/broadside/admin/images/colorpicker/blank.gif differ diff --git a/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_background.png b/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_background.png new file mode 100644 index 0000000..8401572 Binary files /dev/null and b/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_background.png differ diff --git a/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_hex.png b/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_hex.png new file mode 100644 index 0000000..4e532d7 Binary files /dev/null and b/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_hex.png differ diff --git a/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_hsb_b.png b/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_hsb_b.png new file mode 100644 index 0000000..dfac595 Binary files /dev/null and b/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_hsb_b.png differ diff --git a/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_hsb_h.png b/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_hsb_h.png new file mode 100644 index 0000000..3977ed9 Binary files /dev/null and b/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_hsb_h.png differ diff --git a/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_hsb_s.png b/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_hsb_s.png new file mode 100644 index 0000000..a2a6997 Binary files /dev/null and b/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_hsb_s.png differ diff --git a/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_indic.gif b/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_indic.gif new file mode 100644 index 0000000..f9fa95e Binary files /dev/null and b/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_indic.gif differ diff --git a/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_overlay.png b/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_overlay.png new file mode 100644 index 0000000..561cdd9 Binary files /dev/null and b/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_overlay.png differ diff --git a/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_rgb_b.png b/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_rgb_b.png new file mode 100644 index 0000000..dfac595 Binary files /dev/null and b/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_rgb_b.png differ diff --git a/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_rgb_g.png b/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_rgb_g.png new file mode 100644 index 0000000..72b3276 Binary files /dev/null and b/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_rgb_g.png differ diff --git a/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_rgb_r.png b/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_rgb_r.png new file mode 100644 index 0000000..4855fe0 Binary files /dev/null and b/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_rgb_r.png differ diff --git a/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_select.gif b/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_select.gif new file mode 100644 index 0000000..599f7f1 Binary files /dev/null and b/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_select.gif differ diff --git a/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_submit.png b/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_submit.png new file mode 100644 index 0000000..7f4c082 Binary files /dev/null and b/src/wp-content/themes/broadside/admin/images/colorpicker/colorpicker_submit.png differ diff --git a/src/wp-content/themes/broadside/admin/images/colorpicker/select.png b/src/wp-content/themes/broadside/admin/images/colorpicker/select.png new file mode 100644 index 0000000..bfc46dc Binary files /dev/null and b/src/wp-content/themes/broadside/admin/images/colorpicker/select.png differ diff --git a/src/wp-content/themes/broadside/admin/images/ico-delete.png b/src/wp-content/themes/broadside/admin/images/ico-delete.png new file mode 100644 index 0000000..08f2493 Binary files /dev/null and b/src/wp-content/themes/broadside/admin/images/ico-delete.png differ diff --git a/src/wp-content/themes/broadside/admin/js/colorpicker.js b/src/wp-content/themes/broadside/admin/js/colorpicker.js new file mode 100644 index 0000000..634884b --- /dev/null +++ b/src/wp-content/themes/broadside/admin/js/colorpicker.js @@ -0,0 +1,455 @@ +/** + * + * Color picker + * Author: Stefan Petre www.eyecon.ro + * + * Dependencies: jQuery + * + */ +(function ($) { + var ColorPicker = function () { + var + ids = {}, + inAction, + charMin = 65, + visible, + tpl = '
', + defaults = { + eventName: 'click', + onShow: function () {}, + onBeforeShow: function(){}, + onHide: function () {}, + onChange: function () {}, + onSubmit: function () {}, + color: 'ff0000', + livePreview: true, + flat: false + }, + fillRGBFields = function (hsb, cal) { + var rgb = HSBToRGB(hsb); + $(cal).data('colorpicker').fields + .eq(1).val(rgb.r).end() + .eq(2).val(rgb.g).end() + .eq(3).val(rgb.b).end(); + }, + fillHSBFields = function (hsb, cal) { + $(cal).data('colorpicker').fields + .eq(4).val(hsb.h).end() + .eq(5).val(hsb.s).end() + .eq(6).val(hsb.b).end(); + }, + fillHexFields = function (hsb, cal) { + $(cal).data('colorpicker').fields + .eq(0).val(HSBToHex(hsb)).end(); + }, + setSelector = function (hsb, cal) { + $(cal).data('colorpicker').selector.css('backgroundColor', '#' + HSBToHex({h: hsb.h, s: 100, b: 100})); + $(cal).data('colorpicker').selectorIndic.css({ + left: parseInt(150 * hsb.s/100, 10), + top: parseInt(150 * (100-hsb.b)/100, 10) + }); + }, + setHue = function (hsb, cal) { + $(cal).data('colorpicker').hue.css('top', parseInt(150 - 150 * hsb.h/360, 10)); + }, + setCurrentColor = function (hsb, cal) { + $(cal).data('colorpicker').currentColor.css('backgroundColor', '#' + HSBToHex(hsb)); + }, + setNewColor = function (hsb, cal) { + $(cal).data('colorpicker').newColor.css('backgroundColor', '#' + HSBToHex(hsb)); + }, + keyDown = function (ev) { + var pressedKey = ev.charCode || ev.keyCode || -1; + if ((pressedKey > charMin && pressedKey <= 90) || pressedKey == 32) { + return false; + } + var cal = $(this).parent().parent(); + if (cal.data('colorpicker').livePreview === true) { + change.apply(this); + } + }, + change = function (ev) { + var cal = $(this).parent().parent(), col; + if (this.parentNode.className.indexOf('_hex') > 0) { + cal.data('colorpicker').color = col = HexToHSB(fixHex(this.value)); + } else if (this.parentNode.className.indexOf('_hsb') > 0) { + cal.data('colorpicker').color = col = fixHSB({ + h: parseInt(cal.data('colorpicker').fields.eq(4).val(), 10), + s: parseInt(cal.data('colorpicker').fields.eq(5).val(), 10), + b: parseInt(cal.data('colorpicker').fields.eq(6).val(), 10) + }); + } else { + cal.data('colorpicker').color = col = RGBToHSB(fixRGB({ + r: parseInt(cal.data('colorpicker').fields.eq(1).val(), 10), + g: parseInt(cal.data('colorpicker').fields.eq(2).val(), 10), + b: parseInt(cal.data('colorpicker').fields.eq(3).val(), 10) + })); + } + if (ev) { + fillRGBFields(col, cal.get(0)); + fillHexFields(col, cal.get(0)); + fillHSBFields(col, cal.get(0)); + } + setSelector(col, cal.get(0)); + setHue(col, cal.get(0)); + setNewColor(col, cal.get(0)); + cal.data('colorpicker').onChange.apply(cal, [col, HSBToHex(col), HSBToRGB(col)]); + }, + blur = function (ev) { + var cal = $(this).parent().parent(); + cal.data('colorpicker').fields.parent().removeClass('colorpicker_focus') + }, + focus = function () { + charMin = this.parentNode.className.indexOf('_hex') > 0 ? 70 : 65; + $(this).parent().parent().data('colorpicker').fields.parent().removeClass('colorpicker_focus'); + $(this).parent().addClass('colorpicker_focus'); + }, + downIncrement = function (ev) { + var field = $(this).parent().find('input').focus(); + var current = { + el: $(this).parent().addClass('colorpicker_slider'), + max: this.parentNode.className.indexOf('_hsb_h') > 0 ? 360 : (this.parentNode.className.indexOf('_hsb') > 0 ? 100 : 255), + y: ev.pageY, + field: field, + val: parseInt(field.val(), 10), + preview: $(this).parent().parent().data('colorpicker').livePreview + }; + $(document).bind('mouseup', current, upIncrement); + $(document).bind('mousemove', current, moveIncrement); + }, + moveIncrement = function (ev) { + ev.data.field.val(Math.max(0, Math.min(ev.data.max, parseInt(ev.data.val + ev.pageY - ev.data.y, 10)))); + if (ev.data.preview) { + change.apply(ev.data.field.get(0), [true]); + } + return false; + }, + upIncrement = function (ev) { + change.apply(ev.data.field.get(0), [true]); + ev.data.el.removeClass('colorpicker_slider').find('input').focus(); + $(document).unbind('mouseup', upIncrement); + $(document).unbind('mousemove', moveIncrement); + return false; + }, + downHue = function (ev) { + var current = { + cal: $(this).parent(), + y: $(this).offset().top + }; + current.preview = current.cal.data('colorpicker').livePreview; + $(document).bind('mouseup', current, upHue); + $(document).bind('mousemove', current, moveHue); + }, + moveHue = function (ev) { + change.apply( + ev.data.cal.data('colorpicker') + .fields + .eq(4) + .val(parseInt(360*(150 - Math.max(0,Math.min(150,(ev.pageY - ev.data.y))))/150, 10)) + .get(0), + [ev.data.preview] + ); + return false; + }, + upHue = function (ev) { + fillRGBFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0)); + fillHexFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0)); + $(document).unbind('mouseup', upHue); + $(document).unbind('mousemove', moveHue); + return false; + }, + downSelector = function (ev) { + var current = { + cal: $(this).parent(), + pos: $(this).offset() + }; + current.preview = current.cal.data('colorpicker').livePreview; + $(document).bind('mouseup', current, upSelector); + $(document).bind('mousemove', current, moveSelector); + }, + moveSelector = function (ev) { + change.apply( + ev.data.cal.data('colorpicker') + .fields + .eq(6) + .val(parseInt(100*(150 - Math.max(0,Math.min(150,(ev.pageY - ev.data.pos.top))))/150, 10)) + .end() + .eq(5) + .val(parseInt(100*(Math.max(0,Math.min(150,(ev.pageX - ev.data.pos.left))))/150, 10)) + .get(0), + [ev.data.preview] + ); + return false; + }, + upSelector = function (ev) { + fillRGBFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0)); + fillHexFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0)); + $(document).unbind('mouseup', upSelector); + $(document).unbind('mousemove', moveSelector); + return false; + }, + enterSubmit = function (ev) { + $(this).addClass('colorpicker_focus'); + }, + leaveSubmit = function (ev) { + $(this).removeClass('colorpicker_focus'); + }, + clickSubmit = function (ev) { + var cal = $(this).parent(); + var col = cal.data('colorpicker').color; + cal.data('colorpicker').origColor = col; + setCurrentColor(col, cal.get(0)); + cal.data('colorpicker').onSubmit(col, HSBToHex(col), HSBToRGB(col)); + cal.hide(); + }, + show = function (ev) { + var cal = $('#' + $(this).data('colorpickerId')); + cal.data('colorpicker').onBeforeShow.apply(this, [cal.get(0)]); + var pos = $(this).offset(); + var viewPort = getViewport(); + var top = pos.top + this.offsetHeight; + var left = pos.left; + if (top + 176 > viewPort.t + viewPort.h) { + top -= this.offsetHeight + 176; + } else { + top += 5; + } + if (left + 356 > viewPort.l + viewPort.w) { + left -= 356; + } + cal.css({left: left + 'px', top: top + 'px'}); + if (cal.data('colorpicker').onShow.apply(this, [cal.get(0)]) != false) { + cal.show(); + } + $(document).bind('mousedown', {cal: cal}, hide); + return false; + }, + hide = function (ev) { + if (!isChildOf(ev.data.cal.get(0), ev.target, ev.data.cal.get(0))) { + if (ev.data.cal.data('colorpicker').onHide.apply(this, [ev.data.cal.get(0)]) != false) { + ev.data.cal.hide(); + } + $(document).unbind('mousedown', hide); + } + }, + isChildOf = function(parentEl, el, container) { + if (parentEl == el) { + return true; + } + if (parentEl.contains) { + return parentEl.contains(el); + } + if ( parentEl.compareDocumentPosition ) { + return !!(parentEl.compareDocumentPosition(el) & 16); + } + var prEl = el.parentNode; + while(prEl && prEl != container) { + if (prEl == parentEl) + return true; + prEl = prEl.parentNode; + } + return false; + }, + getViewport = function () { + var m = document.compatMode == 'CSS1Compat'; + return { + l : window.pageXOffset || (m ? document.documentElement.scrollLeft : document.body.scrollLeft), + t : window.pageYOffset || (m ? document.documentElement.scrollTop : document.body.scrollTop), + w : window.innerWidth || (m ? document.documentElement.clientWidth : document.body.clientWidth), + h : window.innerHeight || (m ? document.documentElement.clientHeight : document.body.clientHeight) + }; + }, + fixHSB = function (hsb) { + return { + h: Math.min(360, Math.max(0, hsb.h)), + s: Math.min(100, Math.max(0, hsb.s)), + b: Math.min(100, Math.max(0, hsb.b)) + }; + }, + fixRGB = function (rgb) { + return { + r: Math.min(255, Math.max(0, rgb.r)), + g: Math.min(255, Math.max(0, rgb.g)), + b: Math.min(255, Math.max(0, rgb.b)) + }; + }, + fixHex = function (hex) { + var len = 6 - hex.length; + if (len > 0) { + var o = []; + for (var i=0; i -1) ? hex.substring(1) : hex), 16); + return {r: hex >> 16, g: (hex & 0x00FF00) >> 8, b: (hex & 0x0000FF)}; + }, + HexToHSB = function (hex) { + return RGBToHSB(HexToRGB(hex)); + }, + RGBToHSB = function (rgb) { + var hsb = {}; + hsb.b = Math.max(Math.max(rgb.r,rgb.g),rgb.b); + hsb.s = (hsb.b <= 0) ? 0 : Math.round(100*(hsb.b - Math.min(Math.min(rgb.r,rgb.g),rgb.b))/hsb.b); + hsb.b = Math.round((hsb.b /255)*100); + if((rgb.r==rgb.g) && (rgb.g==rgb.b)) hsb.h = 0; + else if(rgb.r>=rgb.g && rgb.g>=rgb.b) hsb.h = 60*(rgb.g-rgb.b)/(rgb.r-rgb.b); + else if(rgb.g>=rgb.r && rgb.r>=rgb.b) hsb.h = 60 + 60*(rgb.g-rgb.r)/(rgb.g-rgb.b); + else if(rgb.g>=rgb.b && rgb.b>=rgb.r) hsb.h = 120 + 60*(rgb.b-rgb.r)/(rgb.g-rgb.r); + else if(rgb.b>=rgb.g && rgb.g>=rgb.r) hsb.h = 180 + 60*(rgb.b-rgb.g)/(rgb.b-rgb.r); + else if(rgb.b>=rgb.r && rgb.r>=rgb.g) hsb.h = 240 + 60*(rgb.r-rgb.g)/(rgb.b-rgb.g); + else if(rgb.r>=rgb.b && rgb.b>=rgb.g) hsb.h = 300 + 60*(rgb.r-rgb.b)/(rgb.r-rgb.g); + else hsb.h = 0; + hsb.h = Math.round(hsb.h); + return hsb; + }, + HSBToRGB = function (hsb) { + var rgb = {}; + var h = Math.round(hsb.h); + var s = Math.round(hsb.s*255/100); + var v = Math.round(hsb.b*255/100); + if(s == 0) { + rgb.r = rgb.g = rgb.b = v; + } else { + var t1 = v; + var t2 = (255-s)*v/255; + var t3 = (t1-t2)*(h%60)/60; + if(h==360) h = 0; + if(h<60) {rgb.r=t1; rgb.b=t2; rgb.g=t2+t3} + else if(h<120) {rgb.g=t1; rgb.b=t2; rgb.r=t1-t3} + else if(h<180) {rgb.g=t1; rgb.r=t2; rgb.b=t2+t3} + else if(h<240) {rgb.b=t1; rgb.r=t2; rgb.g=t1-t3} + else if(h<300) {rgb.b=t1; rgb.g=t2; rgb.r=t2+t3} + else if(h<360) {rgb.r=t1; rgb.g=t2; rgb.b=t1-t3} + else {rgb.r=0; rgb.g=0; rgb.b=0} + } + return {r:Math.round(rgb.r), g:Math.round(rgb.g), b:Math.round(rgb.b)}; + }, + RGBToHex = function (rgb) { + var hex = [ + rgb.r.toString(16), + rgb.g.toString(16), + rgb.b.toString(16) + ]; + $.each(hex, function (nr, val) { + if (val.length == 1) { + hex[nr] = '0' + val; + } + }); + return hex.join(''); + }, + HSBToHex = function (hsb) { + return RGBToHex(HSBToRGB(hsb)); + }; + return { + init: function (options) { + options = $.extend({}, defaults, options||{}); + if (typeof options.color == 'string') { + options.color = HexToHSB(options.color); + } else if (options.color.r != undefined && options.color.g != undefined && options.color.b != undefined) { + options.color = RGBToHSB(options.color); + } else if (options.color.h != undefined && options.color.s != undefined && options.color.b != undefined) { + options.color = fixHSB(options.color); + } else { + return this; + } + options.origColor = options.color; + return this.each(function () { + if (!$(this).data('colorpickerId')) { + var id = 'collorpicker_' + parseInt(Math.random() * 1000); + $(this).data('colorpickerId', id); + var cal = $(tpl).attr('id', id); + if (options.flat) { + cal.appendTo(this).show(); + } else { + cal.appendTo(document.body); + } + options.fields = cal + .find('input') + .bind('keydown', keyDown) + .bind('change', change) + .bind('blur', blur) + .bind('focus', focus); + cal.find('span').bind('mousedown', downIncrement); + options.selector = cal.find('div.colorpicker_color').bind('mousedown', downSelector); + options.selectorIndic = options.selector.find('div div'); + options.hue = cal.find('div.colorpicker_hue div'); + cal.find('div.colorpicker_hue').bind('mousedown', downHue); + options.newColor = cal.find('div.colorpicker_new_color'); + options.currentColor = cal.find('div.colorpicker_current_color'); + cal.data('colorpicker', options); + cal.find('div.colorpicker_submit') + .bind('mouseenter', enterSubmit) + .bind('mouseleave', leaveSubmit) + .bind('click', clickSubmit); + fillRGBFields(options.color, cal.get(0)); + fillHSBFields(options.color, cal.get(0)); + fillHexFields(options.color, cal.get(0)); + setHue(options.color, cal.get(0)); + setSelector(options.color, cal.get(0)); + setCurrentColor(options.color, cal.get(0)); + setNewColor(options.color, cal.get(0)); + if (options.flat) { + cal.css({ + position: 'relative', + display: 'block' + }); + } else { + $(this).bind(options.eventName, show); + } + } + }); + }, + showPicker: function() { + return this.each( function () { + if ($(this).data('colorpickerId')) { + show.apply(this); + } + }); + }, + hidePicker: function() { + return this.each( function () { + if ($(this).data('colorpickerId')) { + $('#' + $(this).data('colorpickerId')).hide(); + } + }); + }, + setColor: function(col) { + if (typeof col == 'string') { + col = HexToHSB(col); + } else if (col.r != undefined && col.g != undefined && col.b != undefined) { + col = RGBToHSB(col); + } else if (col.h != undefined && col.s != undefined && col.b != undefined) { + col = fixHSB(col); + } else { + return this; + } + return this.each(function(){ + if ($(this).data('colorpickerId')) { + var cal = $('#' + $(this).data('colorpickerId')); + cal.data('colorpicker').color = col; + cal.data('colorpicker').origColor = col; + fillRGBFields(col, cal.get(0)); + fillHSBFields(col, cal.get(0)); + fillHexFields(col, cal.get(0)); + setHue(col, cal.get(0)); + setSelector(col, cal.get(0)); + setCurrentColor(col, cal.get(0)); + setNewColor(col, cal.get(0)); + } + }); + } + }; + }(); + $.fn.extend({ + ColorPicker: ColorPicker.init, + ColorPickerHide: ColorPicker.hide, + ColorPickerShow: ColorPicker.show, + ColorPickerSetColor: ColorPicker.setColor + }); +})(jQuery) \ No newline at end of file diff --git a/src/wp-content/themes/broadside/admin/js/of-medialibrary-uploader.js b/src/wp-content/themes/broadside/admin/js/of-medialibrary-uploader.js new file mode 100644 index 0000000..eaa0afe --- /dev/null +++ b/src/wp-content/themes/broadside/admin/js/of-medialibrary-uploader.js @@ -0,0 +1,163 @@ +/*-----------------------------------------------------------------------------------*/ +/* WooFramework Media Library-driven AJAX File Uploader Module +/* JavaScript Functions (2010-11-05) +/* +/* The code below is designed to work as a part of the WooFramework Media Library-driven +/* AJAX File Uploader Module. It is included only on screens where this module is used. +/* +/* Used with (very) slight modifications for Options Framework. +/*-----------------------------------------------------------------------------------*/ + +(function ($) { + + optionsframeworkMLU = { + +/*-----------------------------------------------------------------------------------*/ +/* Remove file when the "remove" button is clicked. +/*-----------------------------------------------------------------------------------*/ + + removeFile: function () { + + $('.mlu_remove').live('click', function(event) { + $(this).hide(); + $(this).parents().parents().children('.upload').attr('value', ''); + $(this).parents('.screenshot').slideUp(); + $(this).parents('.screenshot').siblings('.of-background-properties').hide(); //remove background properties + return false; + }); + + // Hide the delete button on the first row + $('a.delete-inline', "#option-1").hide(); + + }, // End removeFile + +/*-----------------------------------------------------------------------------------*/ +/* Replace the default file upload field with a customised version. +/*-----------------------------------------------------------------------------------*/ + + recreateFileField: function () { + + $('input.file').each(function(){ + var uploadbutton = ''; + $(this).wrap('
'); + $(this).addClass('file').css('opacity', 0); //set to invisible + $(this).parent().append($('
').append($('').attr('id',$(this).attr('id')+'_file')).val( $(this).val() ).append(uploadbutton)); + + $(this).bind('change', function() { + $('#'+$(this).attr('id')+'_file').val($(this).val()); + }); + $(this).bind('mouseout', function() { + $('#'+$(this).attr('id')+'_file').val($(this).val()); + }); + }); + + }, // End recreateFileField + +/*-----------------------------------------------------------------------------------*/ +/* Use a custom function when working with the Media Uploads popup. +/* Requires jQuery, Media Upload and Thickbox JavaScripts. +/*-----------------------------------------------------------------------------------*/ + + mediaUpload: function () { + + jQuery.noConflict(); + + $( 'input.upload_button' ).removeAttr('style'); + + var formfield, + formID, + btnContent = true, + tbframe_interval; + // On Click + $('input.upload_button').live("click", function () { + formfield = $(this).prev('input').attr('id'); + formID = $(this).attr('rel'); + + //Change "insert into post" to "Use this Button" + tbframe_interval = setInterval(function() {jQuery('#TB_iframeContent').contents().find('.savesend .button').val('Use This Image');}, 2000); + + // Display a custom title for each Thickbox popup. + var woo_title = ''; + + if ( $(this).parents('.section').find('.heading') ) { woo_title = $(this).parents('.section').find('.heading').text(); } // End IF Statement + + tb_show( woo_title, 'media-upload.php?post_id='+formID+'&TB_iframe=1' ); + return false; + }); + + window.original_send_to_editor = window.send_to_editor; + window.send_to_editor = function(html) { + + if (formfield) { + + //clear interval for "Use this Button" so button text resets + clearInterval(tbframe_interval); + + // itemurl = $(html).attr('href'); // Use the URL to the main image. + + if ( $(html).html(html).find('img').length > 0 ) { + + itemurl = $(html).html(html).find('img').attr('src'); // Use the URL to the size selected. + + } else { + + // It's not an image. Get the URL to the file instead. + + var htmlBits = html.split("'"); // jQuery seems to strip out XHTML when assigning the string to an object. Use alternate method. + itemurl = htmlBits[1]; // Use the URL to the file. + + var itemtitle = htmlBits[2]; + + itemtitle = itemtitle.replace( '>', '' ); + itemtitle = itemtitle.replace( '', '' ); + + } // End IF Statement + + var image = /(^.*\.jpg|jpeg|png|gif|ico*)/gi; + var document = /(^.*\.pdf|doc|docx|ppt|pptx|odt*)/gi; + var audio = /(^.*\.mp3|m4a|ogg|wav*)/gi; + var video = /(^.*\.mp4|m4v|mov|wmv|avi|mpg|ogv|3gp|3g2*)/gi; + + if (itemurl.match(image)) { + btnContent = 'Remove Image'; + } else { + + // No output preview if it's not an image. + // btnContent = ''; + // Standard generic output if it's not an image. + + html = 'View File'; + btnContent = '
'+html+'Remove
'; + } + + $('#' + formfield).val(itemurl); + // $('#' + formfield).next().next('div').slideDown().html(btnContent); + $('#' + formfield).siblings('.screenshot').slideDown().html(btnContent); + $('#' + formfield).siblings('.of-background-properties').show(); //show background properties + tb_remove(); + + } else { + window.original_send_to_editor(html); + } + + // Clear the formfield value so the other media library popups can work as they are meant to. - 2010-11-11. + formfield = ''; + } + + } // End mediaUpload + + }; // End optionsframeworkMLU Object // Don't remove this, or the sky will fall on your head. + +/*-----------------------------------------------------------------------------------*/ +/* Execute the above methods in the optionsframeworkMLU object. +/*-----------------------------------------------------------------------------------*/ + + $(document).ready(function () { + + optionsframeworkMLU.removeFile(); + optionsframeworkMLU.recreateFileField(); + optionsframeworkMLU.mediaUpload(); + + }); + +})(jQuery); \ No newline at end of file diff --git a/src/wp-content/themes/broadside/admin/js/options-custom.js b/src/wp-content/themes/broadside/admin/js/options-custom.js new file mode 100644 index 0000000..788570e --- /dev/null +++ b/src/wp-content/themes/broadside/admin/js/options-custom.js @@ -0,0 +1,101 @@ +/** + * Prints out the inline javascript needed for the colorpicker and choosing + * the tabs in the panel. + */ + +jQuery(document).ready(function($) { + + // Fade out the save message + $('.fade').delay(1000).fadeOut(1000); + + // Color Picker + $('.colorSelector').each(function(){ + var Othis = this; //cache a copy of the this variable for use inside nested function + var initialColor = $(Othis).next('input').attr('value'); + $(this).ColorPicker({ + color: initialColor, + onShow: function (colpkr) { + $(colpkr).fadeIn(500); + return false; + }, + onHide: function (colpkr) { + $(colpkr).fadeOut(500); + return false; + }, + onChange: function (hsb, hex, rgb) { + $(Othis).children('div').css('backgroundColor', '#' + hex); + $(Othis).next('input').attr('value','#' + hex); + } + }); + }); //end color picker + + // Switches option sections + $('.group').hide(); + var activetab = ''; + if (typeof(localStorage) != 'undefined' ) { + activetab = localStorage.getItem("activetab"); + } + if (activetab != '' && $(activetab).length ) { + $(activetab).fadeIn(); + } else { + $('.group:first').fadeIn(); + } + $('.group .collapsed').each(function(){ + $(this).find('input:checked').parent().parent().parent().nextAll().each( + function(){ + if ($(this).hasClass('last')) { + $(this).removeClass('hidden'); + return false; + } + $(this).filter('.hidden').removeClass('hidden'); + }); + }); + + if (activetab != '' && $(activetab + '-tab').length ) { + $(activetab + '-tab').addClass('nav-tab-active'); + } + else { + $('.nav-tab-wrapper a:first').addClass('nav-tab-active'); + } + $('.nav-tab-wrapper a').click(function(evt) { + $('.nav-tab-wrapper a').removeClass('nav-tab-active'); + $(this).addClass('nav-tab-active').blur(); + var clicked_group = $(this).attr('href'); + if (typeof(localStorage) != 'undefined' ) { + localStorage.setItem("activetab", $(this).attr('href')); + } + $('.group').hide(); + $(clicked_group).fadeIn(); + evt.preventDefault(); + }); + + $('.group .collapsed input:checkbox').click(unhideHidden); + + function unhideHidden(){ + if ($(this).attr('checked')) { + $(this).parent().parent().parent().nextAll().removeClass('hidden'); + } + else { + $(this).parent().parent().parent().nextAll().each( + function(){ + if ($(this).filter('.last').length) { + $(this).addClass('hidden'); + return false; + } + $(this).addClass('hidden'); + }); + + } + } + + // Image Options + $('.of-radio-img-img').click(function(){ + $(this).parent().parent().find('.of-radio-img-img').removeClass('of-radio-img-selected'); + $(this).addClass('of-radio-img-selected'); + }); + + $('.of-radio-img-label').hide(); + $('.of-radio-img-img').show(); + $('.of-radio-img-radio').hide(); + +}); \ No newline at end of file diff --git a/src/wp-content/themes/broadside/admin/options-framework.php b/src/wp-content/themes/broadside/admin/options-framework.php new file mode 100644 index 0000000..c366e2d --- /dev/null +++ b/src/wp-content/themes/broadside/admin/options-framework.php @@ -0,0 +1,389 @@ + + +
+ + + +
+
+
+ + + + +
+ + +
+
+
+
+
+
+ + $value ) { + $input[$id][$key] = '0'; + } + } + + // For a value to be submitted to database it must pass through a sanitization filter + if ( has_filter( 'of_sanitize_' . $option['type'] ) ) { + $clean[$id] = apply_filters( 'of_sanitize_' . $option['type'], $input[$id], $option ); + } + } + + add_settings_error( 'options-framework', 'save_options', __( 'Options saved.', 'optionsframework' ), 'updated fade' ); + return $clean; + } + + /* + * Request Not Recognized. + */ + + return of_get_default_values(); +} + +/** + * Format Configuration Array. + * + * Get an array of all default values as set in + * options.php. The 'id','std' and 'type' keys need + * to be defined in the configuration array. In the + * event that these keys are not present the option + * will not be included in this function's output. + * + * @return array Rey-keyed options configuration array. + * + * @access private + */ + +function of_get_default_values() { + $output = array(); + $config = optionsframework_options(); + foreach ( (array) $config as $option ) { + if ( ! isset( $option['id'] ) ) { + continue; + } + if ( ! isset( $option['std'] ) ) { + continue; + } + if ( ! isset( $option['type'] ) ) { + continue; + } + if ( has_filter( 'of_sanitize_' . $option['type'] ) ) { + $output[$option['id']] = apply_filters( 'of_sanitize_' . $option['type'], $option['std'], $option ); + } + } + return $output; +} + +/** + * Add Theme Options menu item to Admin Bar. + */ + +add_action( 'wp_before_admin_bar_render', 'optionsframework_adminbar' ); + +function optionsframework_adminbar() { + + global $wp_admin_bar; + + $wp_admin_bar->add_menu( array( + 'parent' => 'appearance', + 'id' => 'of_theme_options', + 'title' => __( 'Theme Options' ), + 'href' => admin_url( 'themes.php?page=options-framework' ) + )); +} + +if ( ! function_exists( 'of_get_option' ) ) { + + /** + * Get Option. + * + * Helper function to return the theme option value. + * If no value has been saved, it returns $default. + * Needed because options are saved as serialized strings. + */ + + function of_get_option( $name, $default = false ) { + $config = get_option( 'optionsframework' ); + + if ( ! isset( $config['id'] ) ) { + return $default; + } + + $options = get_option( $config['id'] ); + + if ( isset( $options[$name] ) ) { + return $options[$name]; + } + + return $default; + } +} \ No newline at end of file diff --git a/src/wp-content/themes/broadside/admin/options-interface.php b/src/wp-content/themes/broadside/admin/options-interface.php new file mode 100644 index 0000000..aa89463 --- /dev/null +++ b/src/wp-content/themes/broadside/admin/options-interface.php @@ -0,0 +1,312 @@ +'."\n"; + $output .= '

' . esc_html( $value['name'] ) . '

' . "\n"; + $output .= '
' . "\n" . '
' . "\n"; + } + + // Set default value to $val + if ( isset( $value['std']) ) { + $val = $value['std']; + } + + // If the option is already saved, ovveride $val + if ( ($value['type'] != 'heading') && ($value['type'] != 'info')) { + if ( isset($settings[($value['id'])]) ) { + $val = $settings[($value['id'])]; + // Striping slashes of non-array options + if (!is_array($val)) { + $val = stripslashes($val); + } + } + } + + switch ( $value['type'] ) { + + // Basic text input + case 'text': + $output .= ''; + break; + + // Textarea + case 'textarea': + $cols = '8'; + $ta_value = ''; + + if(isset($value['options'])){ + $ta_options = $value['options']; + if(isset($ta_options['cols'])){ + $cols = $ta_options['cols']; + } else { $cols = '8'; } + } + + $val = stripslashes( $val ); + + $output .= ''; + break; + + // Select Box + case ($value['type'] == 'select'): + $output .= ''; + break; + + + // Radio Box + case "radio": + $name = $option_name .'['. $value['id'] .']'; + foreach ($value['options'] as $key => $option) { + $id = $option_name . '-' . $value['id'] .'-'. $key; + $output .= ''; + } + break; + + // Image Selectors + case "images": + $name = $option_name .'['. $value['id'] .']'; + foreach ( $value['options'] as $key => $option ) { + $selected = ''; + $checked = ''; + if ( $val != '' ) { + if ( $val == $key ) { + $selected = ' of-radio-img-selected'; + $checked = ' checked="checked"'; + } + } + $output .= ''; + $output .= '
' . esc_html( $key ) . '
'; + $output .= '' . $option .''; + } + break; + + // Checkbox + case "checkbox": + $output .= ''; + break; + + // Multicheck + case "multicheck": + foreach ($value['options'] as $key => $option) { + $checked = ''; + $label = $option; + $option = preg_replace('/\W/', '', strtolower($key)); + + $id = $option_name . '-' . $value['id'] . '-'. $option; + $name = $option_name . '[' . $value['id'] . '][' . $option .']'; + + if ( isset($val[$option]) ) { + $checked = checked($val[$option], 1, false); + } + + $output .= ''; + } + break; + + // Color picker + case "color": + $output .= '
'; + $output .= ''; + break; + + // Uploader + case "upload": + $output .= optionsframework_medialibrary_uploader( $value['id'], $val, null ); // New AJAX Uploader using Media Library + break; + + // Typography + case 'typography': + + $typography_stored = $val; + + // Font Size + $output .= ''; + + // Font Face + $output .= ''; + + // Font Weight + $output .= ''; + + // Font Color + $output .= '
'; + $output .= ''; + + break; + + // Background + case 'background': + + $background = $val; + + // Background Color + $output .= '
'; + $output .= ''; + + // Background Image - New AJAX Uploader using Media Library + if (!isset($background['image'])) { + $background['image'] = ''; + } + + $output .= optionsframework_medialibrary_uploader( $value['id'], $background['image'], null, '',0,'image'); + $class = 'of-background-properties'; + if ( '' == $background['image'] ) { + $class .= ' hide'; + } + $output .= '
'; + + // Background Repeat + $output .= ''; + + // Background Position + $output .= ''; + + // Background Attachment + $output .= ''; + $output .= '
'; + + break; + + // Info + case "info": + $class = 'section'; + if ( isset( $value['type'] ) ) { + $class .= ' section-' . $value['type']; + } + if ( isset( $value['class'] ) ) { + $class .= ' ' . $value['class']; + } + + $output .= '
' . "\n"; + if ( isset($value['name']) ) { + $output .= '

' . esc_html( $value['name'] ) . '

' . "\n"; + } + if ( $value['desc'] ) { + $output .= apply_filters('of_sanitize_info', $value['desc'] ) . "\n"; + } + $output .= '
' . "\n"; + break; + + // Heading for Navigation + case "heading": + if($counter >= 2){ + $output .= '
'."\n"; + } + $jquery_click_hook = preg_replace('/\W/', '', strtolower($value['name']) ); + $jquery_click_hook = "of-option-" . $jquery_click_hook; + $menu .= '' . esc_html( $value['name'] ) . ''; + $output .= '
'; + $output .= '

' . esc_html( $value['name'] ) . '

' . "\n"; + break; + } + + if ( ( $value['type'] != "heading" ) && ( $value['type'] != "info" ) ) { + if ( $value['type'] != "checkbox" ) { + $output .= '
'; + } + $explain_value = ''; + if ( isset( $value['desc'] ) ) { + $explain_value = $value['desc']; + } + $output .= '
' . wp_kses( $explain_value, $allowedtags) . '
'."\n"; + $output .= '
'."\n"; + } + } + $output .= '
'; + return array($output,$menu); +} \ No newline at end of file diff --git a/src/wp-content/themes/broadside/admin/options-medialibrary-uploader.php b/src/wp-content/themes/broadside/admin/options-medialibrary-uploader.php new file mode 100644 index 0000000..296e17d --- /dev/null +++ b/src/wp-content/themes/broadside/admin/options-medialibrary-uploader.php @@ -0,0 +1,291 @@ + array( + 'name' => __( 'Options Framework Internal Container' ), + ), + 'public' => true, + 'show_ui' => false, + 'capability_type' => 'post', + 'hierarchical' => false, + 'rewrite' => false, + 'supports' => array( 'title', 'editor' ), + 'query_var' => false, + 'can_export' => true, + 'show_in_nav_menus' => false + ) ); + } +} + +/** + * Adds the Thickbox CSS file and specific loading and button images to the header + * on the pages where this function is called. + */ + +if ( ! function_exists( 'optionsframework_mlu_css' ) ) { + + function optionsframework_mlu_css () { + + $_html = ''; + $_html .= '' . "\n"; + $_html .= '' . "\n"; + + echo $_html; + + } + +} + +/** + * Registers and enqueues (loads) the necessary JavaScript file for working with the + * Media Library-driven AJAX File Uploader Module. + */ + +if ( ! function_exists( 'optionsframework_mlu_js' ) ) { + + function optionsframework_mlu_js () { + + // Registers custom scripts for the Media Library AJAX uploader. + wp_register_script( 'of-medialibrary-uploader', OPTIONS_FRAMEWORK_DIRECTORY .'js/of-medialibrary-uploader.js', array( 'jquery', 'thickbox' ) ); + wp_enqueue_script( 'of-medialibrary-uploader' ); + wp_enqueue_script( 'media-upload' ); + } + +} + +/** + * Media Uploader Using the WordPress Media Library. + * + * Parameters: + * - string $_id - A token to identify this field (the name). + * - string $_value - The value of the field, if present. + * - string $_mode - The display mode of the field. + * - string $_desc - An optional description of the field. + * - int $_postid - An optional post id (used in the meta boxes). + * + * Dependencies: + * - optionsframework_mlu_get_silentpost() + */ + +if ( ! function_exists( 'optionsframework_medialibrary_uploader' ) ) { + + function optionsframework_medialibrary_uploader( $_id, $_value, $_mode = 'full', $_desc = '', $_postid = 0, $_name = '') { + + $optionsframework_settings = get_option('optionsframework'); + + // Gets the unique option id + $option_name = $optionsframework_settings['id']; + + $output = ''; + $id = ''; + $class = ''; + $int = ''; + $value = ''; + $name = ''; + + $id = strip_tags( strtolower( $_id ) ); + // Change for each field, using a "silent" post. If no post is present, one will be created. + $int = optionsframework_mlu_get_silentpost( $id ); + + // If a value is passed and we don't have a stored value, use the value that's passed through. + if ( $_value != '' && $value == '' ) { + $value = $_value; + } + + if ($_name != '') { + $name = $option_name.'['.$id.']['.$_name.']'; + } + else { + $name = $option_name.'['.$id.']'; + } + + if ( $value ) { $class = ' has-file'; } + $output .= '' . "\n"; + $output .= '' . "\n"; + + if ( $_desc != '' ) { + $output .= '' . $_desc . '' . "\n"; + } + + $output .= '
' . "\n"; + + if ( $value != '' ) { + $remove = 'Remove'; + $image = preg_match( '/(^.*\.jpg|jpeg|png|gif|ico*)/i', $value ); + if ( $image ) { + $output .= ''.$remove.''; + } else { + $parts = explode( "/", $value ); + for( $i = 0; $i < sizeof( $parts ); ++$i ) { + $title = $parts[$i]; + } + + // No output preview if it's not an image. + $output .= ''; + + // Standard generic output if it's not an image. + $title = __( 'View File', 'optionsframework' ); + $output .= '
'.$title.'' . $remove . '
'; + } + } + $output .= '
' . "\n"; + return $output; + } +} + +/** + * Uses "silent" posts in the database to store relationships for images. + * This also creates the facility to collect galleries of, for example, logo images. + * + * Return: $_postid. + * + * If no "silent" post is present, one will be created with the type "optionsframework" + * and the post_name of "of-$_token". + * + * Example Usage: + * optionsframework_mlu_get_silentpost ( 'of_logo' ); + */ + +if ( ! function_exists( 'optionsframework_mlu_get_silentpost' ) ) { + + function optionsframework_mlu_get_silentpost ( $_token ) { + + global $wpdb; + $_id = 0; + + // Check if the token is valid against a whitelist. + // $_whitelist = array( 'of_logo', 'of_custom_favicon', 'of_ad_top_image' ); + // Sanitise the token. + + $_token = strtolower( str_replace( ' ', '_', $_token ) ); + + // if ( in_array( $_token, $_whitelist ) ) { + if ( $_token ) { + + // Tell the function what to look for in a post. + + $_args = array( 'post_type' => 'optionsframework', 'post_name' => 'of-' . $_token, 'post_status' => 'draft', 'comment_status' => 'closed', 'ping_status' => 'closed' ); + + // Look in the database for a "silent" post that meets our criteria. + $query = 'SELECT ID FROM ' . $wpdb->posts . ' WHERE post_parent = 0'; + foreach ( $_args as $k => $v ) { + $query .= ' AND ' . $k . ' = "' . $v . '"'; + } // End FOREACH Loop + + $query .= ' LIMIT 1'; + $_posts = $wpdb->get_row( $query ); + + // If we've got a post, loop through and get it's ID. + if ( count( $_posts ) ) { + $_id = $_posts->ID; + } else { + + // If no post is present, insert one. + // Prepare some additional data to go with the post insertion. + $_words = explode( '_', $_token ); + $_title = join( ' ', $_words ); + $_title = ucwords( $_title ); + $_post_data = array( 'post_title' => $_title ); + $_post_data = array_merge( $_post_data, $_args ); + $_id = wp_insert_post( $_post_data ); + } + } + return $_id; + } +} + +/** + * Trigger code inside the Media Library popup. + */ + +if ( ! function_exists( 'optionsframework_mlu_insidepopup' ) ) { + + function optionsframework_mlu_insidepopup () { + + if ( isset( $_REQUEST['is_optionsframework'] ) && $_REQUEST['is_optionsframework'] == 'yes' ) { + + add_action( 'admin_head', 'optionsframework_mlu_js_popup' ); + add_filter( 'media_upload_tabs', 'optionsframework_mlu_modify_tabs' ); + } + } +} + +if ( ! function_exists( 'optionsframework_mlu_js_popup' ) ) { + + function optionsframework_mlu_js_popup () { + + $_of_title = $_REQUEST['of_title']; + if ( ! $_of_title ) { $_of_title = 'file'; } // End IF Statement +?> + + $value ) { + $output[$key] = "0"; + } + foreach( $input as $key => $value ) { + if ( array_key_exists( $key, $option['options'] ) && $value ) { + $output[$key] = "1"; + } + } + } + return $output; +} +add_filter( 'of_sanitize_multicheck', 'of_sanitize_multicheck', 10, 2 ); + +/* Color Picker */ + +add_filter( 'of_sanitize_color', 'of_sanitize_hex' ); + +/* Uploader */ + +function of_sanitize_upload( $input ) { + $output = ''; + $filetype = wp_check_filetype($input); + if ( $filetype["ext"] ) { + $output = $input; + } + return $output; +} +add_filter( 'of_sanitize_upload', 'of_sanitize_upload' ); + +/* Check that the key value sent is valid */ + +function of_sanitize_enum( $input, $option ) { + $output = ''; + if ( array_key_exists( $input, $option['options'] ) ) { + $output = $input; + } + return $output; +} + +/* Background */ + +function of_sanitize_background( $input ) { + $output = wp_parse_args( $input, array( + 'color' => '', + 'image' => '', + 'repeat' => 'repeat', + 'position' => 'top center', + 'attachment' => 'scroll' + ) ); + + $output['color'] = apply_filters( 'of_sanitize_hex', $input['color'] ); + $output['image'] = apply_filters( 'of_sanitize_upload', $input['image'] ); + $output['repeat'] = apply_filters( 'of_background_repeat', $input['repeat'] ); + $output['position'] = apply_filters( 'of_background_position', $input['position'] ); + $output['attachment'] = apply_filters( 'of_background_attachment', $input['attachment'] ); + + return $output; +} +add_filter( 'of_sanitize_background', 'of_sanitize_background' ); + +function of_sanitize_background_repeat( $value ) { + $recognized = of_recognized_background_repeat(); + if ( array_key_exists( $value, $recognized ) ) { + return $value; + } + return apply_filters( 'of_default_background_repeat', current( $recognized ) ); +} +add_filter( 'of_background_repeat', 'of_sanitize_background_repeat' ); + +function of_sanitize_background_position( $value ) { + $recognized = of_recognized_background_position(); + if ( array_key_exists( $value, $recognized ) ) { + return $value; + } + return apply_filters( 'of_default_background_position', current( $recognized ) ); +} +add_filter( 'of_background_position', 'of_sanitize_background_position' ); + +function of_sanitize_background_attachment( $value ) { + $recognized = of_recognized_background_attachment(); + if ( array_key_exists( $value, $recognized ) ) { + return $value; + } + return apply_filters( 'of_default_background_attachment', current( $recognized ) ); +} +add_filter( 'of_background_attachment', 'of_sanitize_background_attachment' ); + + +/* Typography */ + +function of_sanitize_typography( $input ) { + $output = wp_parse_args( $input, array( + 'size' => '', + 'face' => '', + 'style' => '', + 'color' => '' + ) ); + + $output['size'] = apply_filters( 'of_font_size', $output['size'] ); + $output['face'] = apply_filters( 'of_font_face', $output['face'] ); + $output['style'] = apply_filters( 'of_font_style', $output['style'] ); + $output['color'] = apply_filters( 'of_color', $output['color'] ); + + return $output; +} +add_filter( 'of_sanitize_typography', 'of_sanitize_typography' ); + + +function of_sanitize_font_size( $value ) { + $recognized = of_recognized_font_sizes(); + $value = preg_replace('/px/','', $value); + if ( in_array( (int) $value, $recognized ) ) { + return (int) $value; + } + return (int) apply_filters( 'of_default_font_size', $recognized ); +} +add_filter( 'of_font_face', 'of_sanitize_font_face' ); + + +function of_sanitize_font_style( $value ) { + $recognized = of_recognized_font_styles(); + if ( array_key_exists( $value, $recognized ) ) { + return $value; + } + return apply_filters( 'of_default_font_style', current( $recognized ) ); +} +add_filter( 'of_font_style', 'of_sanitize_font_style' ); + + +function of_sanitize_font_face( $value ) { + $recognized = of_recognized_font_faces(); + if ( array_key_exists( $value, $recognized ) ) { + return $value; + } + return apply_filters( 'of_default_font_face', current( $recognized ) ); +} +add_filter( 'of_font_face', 'of_sanitize_font_face' ); + +/** + * Get recognized background repeat settings + * + * @return array + * + */ +function of_recognized_background_repeat() { + $default = array( + 'no-repeat' => 'No Repeat', + 'repeat-x' => 'Repeat Horizontally', + 'repeat-y' => 'Repeat Vertically', + 'repeat' => 'Repeat All', + ); + return apply_filters( 'of_recognized_background_repeat', $default ); +} + +/** + * Get recognized background positions + * + * @return array + * + */ +function of_recognized_background_position() { + $default = array( + 'top left' => 'Top Left', + 'top center' => 'Top Center', + 'top right' => 'Top Right', + 'center left' => 'Middle Left', + 'center center' => 'Middle Center', + 'center right' => 'Middle Right', + 'bottom left' => 'Bottom Left', + 'bottom center' => 'Bottom Center', + 'bottom right' => 'Bottom Right' + ); + return apply_filters( 'of_recognized_background_position', $default ); +} + +/** + * Get recognized background attachment + * + * @return array + * + */ +function of_recognized_background_attachment() { + $default = array( + 'scroll' => 'Scroll Normally', + 'fixed' => 'Fixed in Place' + ); + return apply_filters( 'of_recognized_background_attachment', $default ); +} + +/** + * Sanitize a color represented in hexidecimal notation. + * + * @param string Color in hexidecimal notation. "#" may or may not be prepended to the string. + * @param string The value that this function should return if it cannot be recognized as a color. + * @return string + * + */ + +function of_sanitize_hex( $hex, $default = '' ) { + if ( of_validate_hex( $hex ) ) { + return $hex; + } + return $default; +} + +/** + * Get recognized font sizes. + * + * Returns an indexed array of all recognized font sizes. + * Values are integers and represent a range of sizes from + * smallest to largest. + * + * @return array + */ + +function of_recognized_font_sizes() { + $sizes = range( 9, 71 ); + $sizes = apply_filters( 'of_recognized_font_sizes', $sizes ); + $sizes = array_map( 'absint', $sizes ); + return $sizes; +} + +/** + * Get recognized font faces. + * + * Returns an array of all recognized font faces. + * Keys are intended to be stored in the database + * while values are ready for display in in html. + * + * @return array + * + */ +function of_recognized_font_faces() { + $default = array( + 'arial' => 'Arial', + 'verdana' => 'Verdana, Geneva', + 'trebuchet' => 'Trebuchet', + 'georgia' => 'Georgia', + 'times' => 'Times New Roman', + 'tahoma' => 'Tahoma, Geneva', + 'palatino' => 'Palatino', + 'helvetica' => 'Helvetica*' + ); + return apply_filters( 'of_recognized_font_faces', $default ); +} + +/** + * Get recognized font styles. + * + * Returns an array of all recognized font styles. + * Keys are intended to be stored in the database + * while values are ready for display in in html. + * + * @return array + * + */ +function of_recognized_font_styles() { + $default = array( + 'normal' => 'Normal', + 'italic' => 'Italic', + 'bold' => 'Bold', + 'bold italic' => 'Bold Italic' + ); + return apply_filters( 'of_recognized_font_styles', $default ); +} + +/** + * Is a given string a color formatted in hexidecimal notation? + * + * @param string Color in hexidecimal notation. "#" may or may not be prepended to the string. + * @return bool + * + */ + +function of_validate_hex( $hex ) { + $hex = trim( $hex ); + /* Strip recognized prefixes. */ + if ( 0 === strpos( $hex, '#' ) ) { + $hex = substr( $hex, 1 ); + } + elseif ( 0 === strpos( $hex, '%23' ) ) { + $hex = substr( $hex, 3 ); + } + /* Regex match. */ + if ( 0 === preg_match( '/^[0-9a-fA-F]{6}$/', $hex ) ) { + return false; + } + else { + return true; + } +} \ No newline at end of file diff --git a/src/wp-content/themes/broadside/archive.php b/src/wp-content/themes/broadside/archive.php new file mode 100644 index 0000000..41f0bd2 --- /dev/null +++ b/src/wp-content/themes/broadside/archive.php @@ -0,0 +1,79 @@ + + +
+ + +
+

+ + ' . get_the_date() . '' ); ?> + + ' . get_the_date( 'F Y' ) . '' ); ?> + + ' . get_the_date( 'Y' ) . '' ); ?> + + + +

+
+ +
px;"> + + + + + + + + +
> + +
+ + +
+
+
+

+ Posted by in | +
+
+
+ +
+
+ +
+ + + + + + +
+
+

+
+ +
+

+
+
+ + + + + + + + + + + +
+
+ \ No newline at end of file diff --git a/src/wp-content/themes/broadside/author.php b/src/wp-content/themes/broadside/author.php new file mode 100644 index 0000000..a80b577 --- /dev/null +++ b/src/wp-content/themes/broadside/author.php @@ -0,0 +1,87 @@ + +
+ + +
+

+ +

+ +
+ + +
px;"> + + + + + + + + + + + + + + +
> + +
+ + +
+
+
+

+ Posted by in | +
+
+
+ +
+
+ +
+ + + + + + + + + + + + + +
+
+ \ No newline at end of file diff --git a/src/wp-content/themes/broadside/cache/index.html b/src/wp-content/themes/broadside/cache/index.html new file mode 100644 index 0000000..e69de29 diff --git a/src/wp-content/themes/broadside/cache/timthumb_cacheLastCleanTime.touch b/src/wp-content/themes/broadside/cache/timthumb_cacheLastCleanTime.touch new file mode 100644 index 0000000..e69de29 diff --git a/src/wp-content/themes/broadside/cache/timthumb_int_4a6d0d915762c48f0f26de1e063ef7b9.timthumb.txt b/src/wp-content/themes/broadside/cache/timthumb_int_4a6d0d915762c48f0f26de1e063ef7b9.timthumb.txt new file mode 100644 index 0000000..dac72be Binary files /dev/null and b/src/wp-content/themes/broadside/cache/timthumb_int_4a6d0d915762c48f0f26de1e063ef7b9.timthumb.txt differ diff --git a/src/wp-content/themes/broadside/cache/timthumb_int_f3aca24f78d43845e9fcd255a809d4e3.timthumb.txt b/src/wp-content/themes/broadside/cache/timthumb_int_f3aca24f78d43845e9fcd255a809d4e3.timthumb.txt new file mode 100644 index 0000000..5cb03ff Binary files /dev/null and b/src/wp-content/themes/broadside/cache/timthumb_int_f3aca24f78d43845e9fcd255a809d4e3.timthumb.txt differ diff --git a/src/wp-content/themes/broadside/category.php b/src/wp-content/themes/broadside/category.php new file mode 100644 index 0000000..0c60854 --- /dev/null +++ b/src/wp-content/themes/broadside/category.php @@ -0,0 +1,78 @@ + +
+ + +
+

' . single_cat_title( '', false ) . '' ); + ?>

+
+ + +
px;"> + + + + ' . $category_description . '
' ); + ?> + + + + + + +
> + +
+ + +
+
+
+

+ Posted by in | +
+
+
+ +
+
+ +
+ + + + + + + +
+
+

+
+ +
+

+ +
+
+ + + + + + + + + + +
+ + \ No newline at end of file diff --git a/src/wp-content/themes/broadside/comments.php b/src/wp-content/themes/broadside/comments.php new file mode 100644 index 0000000..83257d6 --- /dev/null +++ b/src/wp-content/themes/broadside/comments.php @@ -0,0 +1,63 @@ +
+ +

+
+ + + + + +

+ ' . get_the_title() . '' ); + ?> +

+ + 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> + + + +
    + 'twentyeleven_comment' ) ); + ?> +
+ + 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> + + + + +

+ + + + + diff --git a/src/wp-content/themes/broadside/contact.php b/src/wp-content/themes/broadside/contact.php new file mode 100644 index 0000000..b46b308 --- /dev/null +++ b/src/wp-content/themes/broadside/contact.php @@ -0,0 +1,128 @@ + +' . "\r\n" . 'Reply-To: ' . $email; + + mail($emailTo, 'Your Website Subject', $body, $headers); //Replace Your Website Subject + $emailSent = true; + } +} +?> + + +
+
+

+ ID, 'pyre_heading_sub', true)): ?> +

ID, 'pyre_heading_sub', true); ?>

+ +
+ +
px;"> + + +
+
+ +
+
+ +
+
+
+ +

Please check if you've filled all the fields with valid information. Thank you.

+ + + +

Email Successfully Sent!

+ + +
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+
+
+ + Facebook + + + Twitter + + + Flickr + + + Vimeo + + + Google + + + StumbleUpon + + + YouTube + + + E-Mail + +
+
+
+ +
+ +
+
+ + \ No newline at end of file diff --git a/src/wp-content/themes/broadside/css/fancybox.css b/src/wp-content/themes/broadside/css/fancybox.css new file mode 100644 index 0000000..cec22bc --- /dev/null +++ b/src/wp-content/themes/broadside/css/fancybox.css @@ -0,0 +1,359 @@ +/* + * FancyBox - jQuery Plugin + * Simple and fancy lightbox alternative + * + * Examples and documentation at: http://fancybox.net + * + * Copyright (c) 2008 - 2010 Janis Skarnelis + * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated. + * + * Version: 1.3.4 (11/11/2010) + * Requires: jQuery v1.3+ + * + * Dual licensed under the MIT and GPL licenses: + * http://www.opensource.org/licenses/mit-license.php + * http://www.gnu.org/licenses/gpl.html + */ + +#fancybox-loading { + position: fixed; + top: 50%; + left: 50%; + width: 40px; + height: 40px; + margin-top: -20px; + margin-left: -20px; + cursor: pointer; + overflow: hidden; + z-index: 1104; + display: none; +} + +#fancybox-loading div { + position: absolute; + top: 0; + left: 0; + width: 40px; + height: 480px; + background-image: url('../images/fancybox/fancybox.png'); +} + +#fancybox-overlay { + position: absolute; + top: 0; + left: 0; + width: 100%; + z-index: 1100; + display: none; +} + +#fancybox-tmp { + padding: 0; + margin: 0; + border: 0; + overflow: auto; + display: none; +} + +#fancybox-wrap { + position: absolute; + top: 0; + left: 0; + padding: 20px; + z-index: 1101; + outline: none; + display: none; +} + +#fancybox-outer { + position: relative; + width: 100%; + height: 100%; + background: #fff; +} + +#fancybox-content { + width: 0; + height: 0; + padding: 0; + outline: none; + position: relative; + overflow: hidden; + z-index: 1102; + border: 0px solid #fff; +} + +#fancybox-hide-sel-frame { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: transparent; + z-index: 1101; +} + +#fancybox-close { + position: absolute; + top: -15px; + right: -15px; + width: 30px; + height: 30px; + background: transparent url('../images/fancybox/fancybox.png') -40px 0px; + cursor: pointer; + z-index: 1103; + display: none; +} + +#fancybox-error { + color: #444; + font: normal 12px/20px Arial; + padding: 14px; + margin: 0; +} + +#fancybox-img { + width: 100%; + height: 100%; + padding: 0; + margin: 0; + border: none; + outline: none; + line-height: 0; + vertical-align: top; +} + +#fancybox-frame { + width: 100%; + height: 100%; + border: none; + display: block; +} + +#fancybox-left, #fancybox-right { + position: absolute; + bottom: 0px; + height: 100%; + width: 35%; + cursor: pointer; + outline: none; + background: transparent url('../images/fancybox/blank.gif'); + z-index: 1102; + display: none; +} + +#fancybox-left { + left: 0px; +} + +#fancybox-right { + right: 0px; +} + +#fancybox-left-ico, #fancybox-right-ico { + position: absolute; + top: 50%; + left: -9999px; + width: 30px; + height: 30px; + margin-top: -15px; + cursor: pointer; + z-index: 1102; + display: block; +} + +#fancybox-left-ico { + background-image: url('../images/fancybox/fancybox.png'); + background-position: -40px -30px; +} + +#fancybox-right-ico { + background-image: url('../images/fancybox/fancybox.png'); + background-position: -40px -60px; +} + +#fancybox-left:hover, #fancybox-right:hover { + visibility: visible; /* IE6 */ +} + +#fancybox-left:hover span { + left: 20px; +} + +#fancybox-right:hover span { + left: auto; + right: 20px; +} + +.fancybox-bg { + position: absolute; + padding: 0; + margin: 0; + border: 0; + width: 20px; + height: 20px; + z-index: 1001; +} + +#fancybox-bg-n { + top: -20px; + left: 0; + width: 100%; + background-image: url('../images/fancybox/fancybox-x.png'); +} + +#fancybox-bg-ne { + top: -20px; + right: -20px; + background-image: url('../images/fancybox/fancybox.png'); + background-position: -40px -162px; +} + +#fancybox-bg-e { + top: 0; + right: -20px; + height: 100%; + background-image: url('../images/fancybox/fancybox-y.png'); + background-position: -20px 0px; +} + +#fancybox-bg-se { + bottom: -20px; + right: -20px; + background-image: url('../images/fancybox/fancybox.png'); + background-position: -40px -182px; +} + +#fancybox-bg-s { + bottom: -20px; + left: 0; + width: 100%; + background-image: url('../images/fancybox/fancybox-x.png'); + background-position: 0px -20px; +} + +#fancybox-bg-sw { + bottom: -20px; + left: -20px; + background-image: url('../images/fancybox/fancybox.png'); + background-position: -40px -142px; +} + +#fancybox-bg-w { + top: 0; + left: -20px; + height: 100%; + background-image: url('../images/fancybox/fancybox-y.png'); +} + +#fancybox-bg-nw { + top: -20px; + left: -20px; + background-image: url('../images/fancybox/fancybox.png'); + background-position: -40px -122px; +} + +#fancybox-title { + font-family: Helvetica; + font-size: 12px; + z-index: 1102; +} + +.fancybox-title-inside { + padding-bottom: 10px; + text-align: center; + color: #333; + background: #fff; + position: relative; +} + +.fancybox-title-outside { + padding-top: 10px; + color: #fff; +} + +.fancybox-title-over { + position: absolute; + bottom: 0; + left: 0; + color: #FFF; + text-align: left; +} + +#fancybox-title-over { + padding: 10px; + background-image: url('../images/fancybox/fancy_title_over.png'); + display: block; +} + +.fancybox-title-float { + position: absolute; + left: 0; + bottom: -20px; + height: 32px; +} + +#fancybox-title-float-wrap { + border: none; + border-collapse: collapse; + width: auto; +} + +#fancybox-title-float-wrap td { + border: none; + white-space: nowrap; +} + +#fancybox-title-float-left { + padding: 0 0 0 15px; + background: url('../images/fancybox/fancybox.png') -40px -90px no-repeat; +} + +#fancybox-title-float-main { + color: #FFF; + line-height: 29px; + font-weight: bold; + padding: 0 0 3px 0; + background: url('../images/fancybox/fancybox-x.png') 0px -40px; +} + +#fancybox-title-float-right { + padding: 0 0 0 15px; + background: url('../images/fancybox/fancybox.png') -55px -90px no-repeat; +} + +/* IE6 */ + +.fancybox-ie6 #fancybox-close { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_close.png', sizingMethod='scale'); } + +.fancybox-ie6 #fancybox-left-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_nav_left.png', sizingMethod='scale'); } +.fancybox-ie6 #fancybox-right-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_nav_right.png', sizingMethod='scale'); } + +.fancybox-ie6 #fancybox-title-over { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_over.png', sizingMethod='scale'); zoom: 1; } +.fancybox-ie6 #fancybox-title-float-left { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_left.png', sizingMethod='scale'); } +.fancybox-ie6 #fancybox-title-float-main { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_main.png', sizingMethod='scale'); } +.fancybox-ie6 #fancybox-title-float-right { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_right.png', sizingMethod='scale'); } + +.fancybox-ie6 #fancybox-bg-w, .fancybox-ie6 #fancybox-bg-e, .fancybox-ie6 #fancybox-left, .fancybox-ie6 #fancybox-right, #fancybox-hide-sel-frame { + height: expression(this.parentNode.clientHeight + "px"); +} + +#fancybox-loading.fancybox-ie6 { + position: absolute; margin-top: 0; + top: expression( (-20 + (document.documentElement.clientHeight ? document.documentElement.clientHeight/2 : document.body.clientHeight/2 ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop )) + 'px'); +} + +#fancybox-loading.fancybox-ie6 div { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_loading.png', sizingMethod='scale'); } + +/* IE6, IE7, IE8 */ + +.fancybox-ie .fancybox-bg { background: transparent !important; } + +.fancybox-ie #fancybox-bg-n { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_n.png', sizingMethod='scale'); } +.fancybox-ie #fancybox-bg-ne { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_ne.png', sizingMethod='scale'); } +.fancybox-ie #fancybox-bg-e { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_e.png', sizingMethod='scale'); } +.fancybox-ie #fancybox-bg-se { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_se.png', sizingMethod='scale'); } +.fancybox-ie #fancybox-bg-s { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_s.png', sizingMethod='scale'); } +.fancybox-ie #fancybox-bg-sw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_sw.png', sizingMethod='scale'); } +.fancybox-ie #fancybox-bg-w { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_w.png', sizingMethod='scale'); } +.fancybox-ie #fancybox-bg-nw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_nw.png', sizingMethod='scale'); } \ No newline at end of file diff --git a/src/wp-content/themes/broadside/css/ie7.css b/src/wp-content/themes/broadside/css/ie7.css new file mode 100644 index 0000000..d7d1624 --- /dev/null +++ b/src/wp-content/themes/broadside/css/ie7.css @@ -0,0 +1,2 @@ +html {overflow:hidden; max-height:100%;} +.side-barheading {display:none;} \ No newline at end of file diff --git a/src/wp-content/themes/broadside/css/instaldeco.css b/src/wp-content/themes/broadside/css/instaldeco.css new file mode 100644 index 0000000..704ca68 --- /dev/null +++ b/src/wp-content/themes/broadside/css/instaldeco.css @@ -0,0 +1,12 @@ +body { + background-color: #1c242d; +} + +.bgwidth { + width: auto !important; +} + +h1, h2, h3, h4, h5, h6, .sub-navigation, #next_link2, #previous_link2, .prev_link a, .next_link a, form#contactform input.submit-form, +.sf-menu, .blog-post .comments, #respond input#submit { + font-family: 'Marvel', Arial, sans-serif; +} diff --git a/src/wp-content/themes/broadside/css/navigation.css b/src/wp-content/themes/broadside/css/navigation.css new file mode 100644 index 0000000..4884a0b --- /dev/null +++ b/src/wp-content/themes/broadside/css/navigation.css @@ -0,0 +1,174 @@ +/*** DEMO SKIN ***/ +/*** adding sf-vertical in addition to sf-menu creates a vertical menu ***/ + +.navigation-space {line-height:1px;} + +.sf-vertical, .sf-vertical li { + width: 165px !important; +} + +.sf-menu li li a {margin-left:15px; } +.sf-vertical {padding:38px 0 28px 0 !important; position:relative; z-index:3000;} +.sf-menu { + float: left; +} +.sf-menu a { + padding: 2px 0px 2px 1px; + text-decoration:none; + font-size:17px; +} +.sf-menu li li a, .sf-menu li .current-menu-item a { + background-position: 0px -155px !important; + opacity:1; filter:alpha(opacity=100); + padding:7px 0 4px 1px; + font-size:16px; +} +.sf-menu .current-menu-item a, .sf-menu li .current-menu-item a:hover {padding-left:7px; opacity:0.7; filter:alpha(opacity=70); } +.sf-menu .current-menu-item .sliding-element a {padding-left:0px; opacity:1; filter:alpha(opacity=100); background:none; } +.sf-menu a:hover {opacity:0.7;filter:alpha(opacity=70); } +.sf-menu li li a:hover, .sf-menu .current-menu-item .sliding-element a:hover, .sf-menu li .current-menu-item a:hover {background-position: 0px 9px !important;} +.sf-menu li li:hover, .sf-menu li li.sfHover, +.sf-menu li li a:focus, .sf-menu li li a:hover, .sf-menu li li a:active { + outline: 0; +} + + +/*** ESSENTIAL STYLES ***/ +.sf-menu, .sf-menu * { + margin: 0; + padding: 0; + list-style: none; +} +.sf-menu { + line-height: 1.0; +} +.sf-menu ul { + position: absolute; + top: -999em; + width: 165px; /* left offset of submenus need to match (see below) */ +} +.sf-menu ul li { + width: 100%; +} +.sf-menu li:hover { + visibility: inherit; /* fixes IE7 'sticky bug' */ +} +.sf-menu li { + float: left; + position: relative; +} +.sf-menu a { + display: block; + position: relative; +} +.sf-menu li:hover ul, +.sf-menu li.sfHover ul { + left: 0; + top: 2.5em; /* match top ul list item height */ + z-index: 99; +} +ul.sf-menu li:hover li ul, +ul.sf-menu li.sfHover li ul { + top: -999em; +} +ul.sf-menu li li:hover ul, +ul.sf-menu li li.sfHover ul { + left: 165px; /* match ul width */ + top: 0; +} +ul.sf-menu li li:hover li ul, +ul.sf-menu li li.sfHover li ul { + top: -999em; +} +ul.sf-menu li li li:hover ul, +ul.sf-menu li li li.sfHover ul { + left: 165px; /* match ul width */ + top: 0; +} + + +/*** arrows **/ +.sf-menu a.sf-with-ul { + padding-right: 2.25em; + min-width: 1px; /* trigger IE7 hasLayout so spans position accurately */ +} +.sf-menu li li a > .sf-sub-indicator {top: 9px; } +.sf-sub-indicator { + position: absolute; + display: block; + right: 1.45em; + top: 1.75em; /* IE6 only */ + width: 10px; + height: 10px; + text-indent: -999em; + overflow: hidden; + background: url('../images/arrows-ffffff.png') no-repeat -10px -100px; /* 8-bit indexed alpha png. IE6 gets solid image only */ +} +a > .sf-sub-indicator { /* give all except IE6 the correct values */ + top: 4px; + background-position: 0 -100px; /* use translucent arrow for modern browsers*/ +} +/* apply hovers to modern browsers */ +a:focus > .sf-sub-indicator, +a:hover > .sf-sub-indicator, +a:active > .sf-sub-indicator, +li:hover > a > .sf-sub-indicator, +li.sfHover > a > .sf-sub-indicator { + background-position: -10px -100px; /* arrow hovers for modern browsers*/ +} + +/* point right for anchors in subs */ +.sf-menu ul .sf-sub-indicator { background-position: -10px 0; } +.sf-menu ul a > .sf-sub-indicator { background-position: 0 0; } +/* apply hovers to modern browsers */ +.sf-menu ul a:focus > .sf-sub-indicator, +.sf-menu ul a:hover > .sf-sub-indicator, +.sf-menu ul a:active > .sf-sub-indicator, +.sf-menu ul li:hover > a > .sf-sub-indicator, +.sf-menu ul li.sfHover > a > .sf-sub-indicator { + background-position: -10px 0; /* arrow hovers for modern browsers*/ +} + +/*** shadows for all but IE6 ***/ +.sf-shadow ul { + background: url('../images/shadow.png') no-repeat bottom right; + padding: 0 8px 9px 0; + -moz-border-radius-bottomleft: 17px; + -moz-border-radius-topright: 17px; + -webkit-border-top-right-radius: 17px; + -webkit-border-bottom-left-radius: 17px; +} +.sf-shadow ul.sf-shadow-off { + background: transparent; +} + +/* this lacks ul at the start of the selector, so the styles from the main CSS file override it where needed */ +.sf-vertical li:hover ul, +.sf-vertical li.sfHover ul { + left: 165px; /* match ul width */ + top: 0; +} + + +/*** adding sf-vertical in addition to sf-menu creates a vertical menu ***/ +.sf-vertical, .sf-vertical li { +} +/* this lacks ul at the start of the selector, so the styles from the main CSS file override it where needed */ +.sf-vertical li:hover ul, +.sf-vertical li.sfHover ul { + left: 165px; /* match ul width */ + top: 0; +} + +/*** alter arrow directions ***/ +.sf-vertical .sf-sub-indicator { background-position: -10px 0; } /* IE6 gets solid image only */ +.sf-vertical a > .sf-sub-indicator { background-position: 0 0; } /* use translucent arrow for modern browsers*/ + +/* hover arrow direction for modern browsers*/ +.sf-vertical a:focus > .sf-sub-indicator, +.sf-vertical a:hover > .sf-sub-indicator, +.sf-vertical a:active > .sf-sub-indicator, +.sf-vertical li:hover > a > .sf-sub-indicator, +.sf-vertical li.sfHover > a > .sf-sub-indicator { + background-position: -10px 0; /* arrow hovers for modern browsers*/ +} diff --git a/src/wp-content/themes/broadside/css/orbit-1.2.3.css b/src/wp-content/themes/broadside/css/orbit-1.2.3.css new file mode 100644 index 0000000..32c5f16 --- /dev/null +++ b/src/wp-content/themes/broadside/css/orbit-1.2.3.css @@ -0,0 +1,203 @@ +/* CSS for jQuery Orbit Plugin 1.2.3 + * www.ZURB.com/playground + * Copyright 2010, ZURB + * Free to use under the MIT license. + * http://www.opensource.org/licenses/mit-license.php + + + +/* PUT IN YOUR SLIDER ID AND SIZE TO MAKE LOAD BEAUTIFULLY + ================================================== */ + + #featured { + width: 980px; + background: #000 url('../images/orbit/loading.gif') no-repeat center center; + overflow: hidden; + } + + #featured div {width:980px; display:block;} + +#featured>img, +#featured>div, +#featured>a { display: none; } + + +/* CONTAINER + ================================================== */ + +div.orbit-wrapper { + width: 1px; + height: 1px; + position: relative; } + +div.orbit { + width: 1px; + height: 1px; + position: relative; + overflow: hidden } + +div.orbit>img { + position: absolute; + top: 0; + left: 0; + display: none; } + +div.orbit>a { + border: none; + position: absolute; + top: 0; + left: 0; + line-height: 0; + display: none; } + +.orbit>div { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; } + +/* Note: If your slider only uses content or anchors, you're going to want to put the width and height declarations on the ".orbit>div" and "div.orbit>a" tags in addition to just the .orbit-wrapper */ + + +/* TIMER + ================================================== */ + +div.timer { + width: 20px; + height: 20px; + overflow: hidden; + position: absolute; + bottom: 22px; + right: 25px; + opacity: .8; + cursor: pointer; + z-index: 1001; } + +span.rotator { + display: block; + width: 20px; + height: 20px; + position: absolute; + top: 0; + left: -10px; + background: url(../images/orbit/rotator-black2.png) no-repeat; + z-index: 3; } + +span.mask { + display: block; + width: 10px; + height: 20px; + position: absolute; + top: 0; + right: 0; + z-index: 2; + overflow: hidden; } + +span.rotator.move { + left: 0 } + +span.mask.move { + width: 20px; + left: 0; + background: url(../images/orbit/timer-black2.png) repeat 0 0; } + +span.pause { + display: block; + width: 20px; + height: 20px; + position: absolute; + top: 0; + left: 0; + background: url(../images/orbit/pause-black2.png) no-repeat; + z-index: 4; + opacity: 0; } + +span.pause.active { + background: url(../images/orbit/pause-black2.png) no-repeat 0 -20px } + +div.timer:hover span.pause, +span.pause.active { + opacity: 1 } + + +/* CAPTIONS + ================================================== */ + +.orbit-caption { + display: none; + font-family: "HelveticaNeue", "Helvetica-Neue", Helvetica, Arial, sans-serif; } + +.orbit-wrapper .orbit-caption { + background: #000; + background: rgba(0,0,0,.6); + z-index: 1000; + color: #fff; + text-align: center; + padding: 7px 0; + font-size: 13px; + position: absolute; + right: 0; + bottom: 0; + width: 100%; } + + +/* DIRECTIONAL NAV + ================================================== */ + +div.slider-nav { + display: block } + +div.slider-nav span { + width:26px; + height: 44px; + text-indent: -9999px; + position: absolute; + z-index: 1000; + top: 50%; + margin-top: -22px; + cursor: pointer; } + +div.slider-nav span.right { + background: url(../images/orbit/arrows-new.png) -26px 0px no-repeat; + right: 15px; } + +div.slider-nav span.left { + background: url(../images/orbit/arrows-new.png) 0px 0px no-repeat; + left: 15px; } + +/* BULLET NAV + ================================================== */ + +.orbit-bullets { + position: absolute; + z-index: 1000; + list-style: none; + bottom: -3px; + left: 50%; + margin-left: -38px; + padding: 0; } + +.orbit-bullets li { + float: left; + margin-left: 5px; + cursor: pointer; + color: #999; + text-indent: -9999px; + background: url(../images/orbit/bullets2.png) no-repeat top left; + width: 10px; + height: 10px; + overflow: hidden; } + +.orbit-bullets li.active { + color: #222; + background-position: top right; } + +.orbit-bullets li.has-thumb { + background: none; + width: 100px; + height: 75px; } + +.orbit-bullets li.active.has-thumb { + background-position: 0 0; + border-top: 2px solid #000; } \ No newline at end of file diff --git a/src/wp-content/themes/broadside/css/reset.css b/src/wp-content/themes/broadside/css/reset.css new file mode 100644 index 0000000..99a0211 --- /dev/null +++ b/src/wp-content/themes/broadside/css/reset.css @@ -0,0 +1 @@ +html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}:focus{outline:0}ins{text-decoration:none}del{text-decoration:line-through}table{border-collapse:collapse;border-spacing:0} \ No newline at end of file diff --git a/src/wp-content/themes/broadside/css/standard.css b/src/wp-content/themes/broadside/css/standard.css new file mode 100644 index 0000000..a064040 --- /dev/null +++ b/src/wp-content/themes/broadside/css/standard.css @@ -0,0 +1,533 @@ +/* DEFAULT STYLES */ +body { + background:#e8e8e8; + font-size:12px; + line-height:18px; + min-width:1000px; + min-height:20px; + font-family: "Lucida Sans Unicode", "Lucida Grande", Arial, sans-serif; +} +* { margin: 0; outline: none; } +p {padding-bottom:18px;} +ul {margin-bottom:24px;} +.sf-menu, .blog-post .comments, #respond input#submit {font-family: Arial, serif;} +#randomdiv {font-family: "Lucida Sans Unicode", "Lucida Grande", Arial, sans-serif;} +h1, h2, h3, h4, h5, h6, .sub-navigation, #next_link2, #previous_link2, .prev_link a, .next_link a, form#contactform input.submit-form {text-transform:uppercase; font-weight:normal; font-family: Arial, serif;} +h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { text-decoration:none; } +h1 { font-size:42px; line-height:38px; margin-bottom:3px;} +h2 { font-size:35px; line-height:32px; margin-bottom:2px;} +h3 { font-size:27px; line-height:24px; margin-bottom:2px; } +h4 { font-size:24px; line-height:22px; margin-bottom:2px;} +h5 {font-size:18px; line-height:19px; margin-bottom:2px;} +h6 {font-size:14px; line-height:24px; margin-bottom:2px;} +iframe {border:0px; margin:0px; padding:0px; } +img.noborder {border:none !important;} +#bg { position: fixed; top: 0; left: 0; } +.bgwidth { width: 100%; } +.bgheight { height: 100%; } +.center-align {text-align:center;} +.left-align {text-align:left;} +.right-align {text-align:right;} +.alignright {float:right; margin:0 0 10px 10px;} +.alignleft {float:left; margin:0 10px 10px 0;} +.aligncenter { text-align:center; display: block; margin:4px auto 10px auto;} + +.bypostauthor {} +.sticky {} +.wp-caption {} +.wp-caption-text {} +.gallery-caption {} + + +/* BODY LINK COLOUR AND MISC COLORS */ +body, a, .side-barheading h2, ul.sub-navigation li a, .content-heading h5, .content-heading h6 {color:#515151;} /* Dark Grey Color for Links and some Headings Default: #515151 */ + +a:hover {color:#000;} /* Main hover link color */ +#footer, #footer a {color:#fff;} /* Footer Text and Link Color Default #fff */ +#footer a:hover {color:#e7e7e7;} /* Footer Link Hover Color Default #e7e7e7 */ +.sf-menu a, .sf-menu a:visited { color: #fff;} /* Color for the Navigation link Default #fff */ +.light-fonts, .light-fonts h1, .light-fonts a, .light-fonts h1, .navigation-menu h1 {color:#fff;} /* .light-fonts class Font Color Default #fff*/ +.light-fonts a:hover {color:#e7e7e7;} /* .light-fonts class Link Font Color Default #e7e7e7 */ +.custom-color {color:#fcc73c;} /* Custom Color Orange Used in Space Template Index Page Default #fcc73c */ + + + + + +/* CAROUSEL and SCROLL HEIGHTS */ +.content-container .list_carousel li { height:292px;} /* Default Carousel Container Height */ +.portfolio-carousel ul li {height:290px !important;} /* Portfolio Carousel Image Gallery Height */ +.content-container .news_carousel li { height:356px;} /* Latest Carousel News Regular Height */ +.news_carousel .scroll-pane { height:315px;} /* Latest News Carousel Scrolling Height */ + + +/* MENU AND NAVIGATION POSITIONING AND WIDTH */ +#featured { position: relative; float:right;} +#left-container { float:left; width:270px; position:relative; } +.navigation-menu {width:180px; z-index:16; position:relative; top:0; } +.side-barheading {width:180px; z-index:5; position:absolute; right:0; top:170px; } +.logo-menu {text-align:center; position:relative; top:0; z-index:15; } +.bottom-box .logo-menu {margin-bottom:65px;} +.top-box { position:absolute; top:0px; right:0px; } +.bottom-box {position:absolute; bottom:0px; right:0px; } +.hover-box {padding:6px 15px 2px 15px; } +.navigation-menu h1 {font-size:14px; margin:0px; line-height:17px; } +.navigation-menu h1:hover {cursor:pointer;} +ul.sub-navigation {width:650px; margin:5px 0 -25px 0; } +ul.sub-navigation li {display:inline;} +ul.sub-navigation li a {margin-right:25px; font-size:18px; text-decoration:none;} +.logo-menu a img {margin-bottom:-5px;} + +/* MAIN STYLES */ +#box-container {position:absolute; width:100%; top:50%;} +.content-container {float:right; display:inline-block; width:650px; padding:60px 50px 0px 0px; position:relative; z-index:5;} +#page-wrap { position: relative; width:980px; margin:0 auto; } +#container {background:white; width:980px; margin-bottom:5px; } +.featured-heading {margin:145px 180px 0 0; text-align:right; } +.featured-text {width:200px; float:right; margin-right:50px;} +.featured-heading2 {margin:120px 180px 0 0; text-align:right; } +.content-heading {padding-left:25px; width:625px; overflow:hidden;} +.latest-news-heading {float:left; position:absolute; left:0px; top:75px; z-index:25; } +blockquote {font-style:italic; line-height:22px; font-size:13px; color:#626262; background:url(../images/blockquote.png) 15px 9px no-repeat; padding:5px 0 0 50px; margin-bottom:20px;} +.content-container ul, .content-container ol {padding-bottom:18px;} +.content-container ul.checkmark li { margin-left:0px; background:url(../images/checkmark.png) 0px 4px no-repeat; padding:0 0 2px 20px; list-style:none;} +.content-container ul.arrow li { margin-left:0px; background:url(../images/sidebar-arrow.png) 0px 4px no-repeat; padding:0 0 2px 20px; list-style:none;} +.content-container ul li {list-style:disc; margin-left:20px;} +.content-container ol li {list-style:decimal; margin-left:23px;} +a.button, a.big-button {font-family: Arial, sans-serif; display: inline-block; text-decoration: none; line-height: 1; border-radius: 4px; -moz-border-radius: 4px; padding: 10px 19px 11px 19px;} +a.button {font-size:12px; font-weight:bold; color:#858585; background: #f6f6f6 url(../images/big-button-overlay.png) top left repeat-x; -moz-box-shadow: 0 1px 3px #ccc; -webkit-box-shadow: 0 1px 3px #ccc box-shadow:0 1px 3px #ccc; border-bottom: 1px solid #b8b8b8; position: relative; cursor: pointer;} +a.button:hover {background-color:#fff; color:#787878;} +a.big-button {font-size:14px; font-weight:bold; color:#fff; background: #434343 url(../images/big-button-overlay.png) top left repeat-x; -webkit-border-radius: 4px; -moz-box-shadow: 0 1px 4px #999; -webkit-box-shadow: 0 1px 4px #999; box-shadow:0 1px 4px #999; border-bottom: 1px solid #343434; position: relative; cursor: pointer; } +a.big-button:hover {background-color:#373737; color:#fff;} +table {border:1px solid #ccc; background:#ecebeb; width:100%; margin:8px 0 0 0; } +table td {padding:8px; border:1px solid #d6d6d6;} +table thead th {border:1px solid #ccc;} +table thead {background:#dadada;} +table tfoot td {padding:5px;} +table thead th {padding:8px 0 8px 0;} +table .t-headings {font-weight:bold; font-size:115%; background:#dadada;} +table .t-footer {background:#e1e1e1; text-align:center; font-size:90%; font-style:italic;} +.team-member {padding:10px 0 10px 0;overflow:hidden;width:100%;} +.team-member h5 {margin-bottom:3px; padding-top:5px;} +.team-member img {margin-right:15px; float:left;} +.divider {border-bottom:1px solid #b7b7b7; color:#9f9f9f; margin-bottom:30px; padding-bottom:10px;} +.content-container h1#error404 {padding:165px 0px 0px 85px;} +.page-header {padding-bottom:10px;} + +/* BLOG SECTION STYLES */ + +.blog-post {width:585px; overflow:hidden; margin-right:15px;} +.blog-post .blog-image {float:left; margin-right:25px; margin-bottom:18px;} +.post-heading { overflow:hidden; padding-bottom:5px; } +.blog-post .post-data {font-size:11px; float:left;} +.post-data h3 {margin-bottom:5px;} +.blog-post .comments {position:absolute; right:12px; text-align:center; width:31px; height:34px; font-size:15px; } +.blog-post .comments a {color:#949494; margin-top:2px; background:url(../images/blog-comments.png) 0px 0px no-repeat; display:block; width:32px; height:28px; text-decoration:none; padding-top:6px;} +.blog-post .comments a:hover {color:#6a6a6a; background:url(../images/blog-comments.png) 0px -34px no-repeat;} +.type-portfolio .post-heading .comments {display:none;} + +.comment-author, .comment-author cite {font-style:normal; padding-bottom:2px; font-size:12px;} +span.fn {font-size:14px;} +.comment-meta {font-size:10px; margin-bottom:4px;} +.comment-meta a {text-decoration:none;} +#reply-title {font-size:22px; line-height:24px;} +#comments ol.commentlist p {padding-bottom:12px;} +.comment-author img.avatar {float:left; margin:0px 15px 24px 0px; position:relative; top:-2px;} +p.form-allowed-tags {font-size:11px; line-height:16px;} +code {font-family: monospace, sans-serif; display:block; padding-top:5px;} + +#comments h2#comments-title {font-size:20px; line-height:24px; margin-bottom:15px;} +#comments ol.commentlist li {list-style:none; margin:0px 0px 15px 0px; padding:0px 0px 0px 0px; border-bottom:1px solid #b7b7b7;} +#reply-title a#cancel-comment-reply-link {font-size:18px; padding-left:5px;} +#comments ol.commentlist li ul.children {margin-bottom:0px; padding-bottom:0px;} +#comments ol.commentlist li ul.children li {margin:0px 0px 0px 0px; padding:15px 0px 0px 50px; border-top:1px solid #b7b7b7; border-bottom:none;} + +.reply a {border:1px solid #4c4c4c; display:inline-block; padding:1px 10px; margin-bottom:15px; font-size:9px; text-decoration:none;} +.reply a:hover {border:1px solid #000; color:#000; -webkit-box-shadow: 0px 0px 4px #6a9ec9; -moz-box-shadow: 0px 2px 4px #6a9ec9; box-shadow: 0px 0px 4px #6a9ec9;} +.light-fonts .reply a {border:1px solid #B7B7B7;} +.light-fonts .reply a:hover {border:1px solid #d6d6d6; color:#fff;} +#respond input#submit {border:1px solid #4c4c4c; background:url(../images/none.gif);cursor:pointer; font-size:12px; line-height:1; text-decoration:none !important; width:100px; padding:5px 10px 4px 10px; } +input#submit:hover {background:#000; color:#000; -webkit-box-shadow: 0px 0px 4px #6a9ec9; -moz-box-shadow: 0px 2px 4px #6a9ec9; box-shadow: 0px 0px 4px #6a9ec9;} +.light-fonts #respond input#submit {border-color:#B7B7B7; color:#fff;} +.light-fonts #respond input#submit:hover {border-color:#d6d6d6; color:#fff;} +#respond span.required {color:red; position:relative; right:2px; } +label {vertical-align:top;} +input:focus, textarea:focus { border: 1px solid #bddae3; -webkit-box-shadow: 0px 0px 4px #6a9ec9; -moz-box-shadow: 0px 2px 4px #6a9ec9; box-shadow: 0px 0px 4px #6a9ec9;} + +#respond label {font-size:11px;} +#respond input, #respond textarea { background:url(../images/none.gif); border-style:solid; border-width:1px; font-size:13px; padding:4px; border-color:#4c4c4c; display:block;} +.light-fonts #respond input, .light-fonts #respond textarea { border-color:#B7B7B7;} +p.comment-form-author, p.comment-form-email, p.comment-form-url, p.comment-form-comment, p.comment-notes {padding-bottom:10px;} + +#author-info {padding-top:15px;} +#author-avatar {float:left; margin:0px 15px 15px 0px;} +#author-description h4 {margin-bottom:7px;} + +/* CONTACT FORM STYLES */ +form#contactform input, form#contactform textarea, #contact-wrapper input.error, #contact-wrapper textarea.error, #contact-wrapper div {color:#515151;} +.light-fonts form#contactform input, .light-fonts form#contactform textarea, .light-fonts #contact-wrapper input.error, .light-fonts #contact-wrapper textarea.error, .light-fonts form#contactform input.submit-form {color:#fff;} +.light-fonts #contact-wrapper p.success {color:#fff; margin-bottom:0px; padding-bottom:10px;} +#contact-wrapper p.success {color:#00a651; margin-bottom:0px;} +#contact-wrapper .error {color:#888;} +.light-fonts #contact-wrapper div {color:#ccc;} +body.contact-body {background:transparent !important; } +.contact-form #social-icons {float:none; position:absolute; bottom:0px; right:0px;} +.contact-details {border-right:1px solid #888; margin:25px 40px 25px 25px; font-size:13px;} +.contact-form {margin:25px 0 25px 0; } +#contact-wrapper { width:290px; overflow:hidden; display:block; font-size:13px;} +#contact-wrapper div { clear:both; font-size:11px;} +#contact-wrapper label { display:block; float:right; width:auto; position:relative; right:35px; top:5px; } +form#contactform textarea {float:none !important; margin-bottom:9px !important;} +#contact-wrapper .error { font-style:italic; margin-bottom:2px; margin-top:2px; font-size:10px; float:left; right:0px; top:0px;} +#contact-wrapper input.error {font-size:12px; font-style:normal; margin-top:0px;} +form#contactform input { width:205px; } + +.light-fonts form#contactform input, .light-fonts form#contactform textarea, .light-fonts form#contactform input.submit-form {border-color:#B7B7B7;} +form#contactform input, form#contactform textarea, form#contactform input.submit-form {border-color:#4c4c4c;} +form#contactform input, form#contactform textarea { font-family: "Lucida Sans Unicode", "Lucida Grande", Arial, sans-serif; font-size:12px; float:left; margin-bottom:15px; background:url(../images/none.gif); border-style:solid; border-width:1px; padding:4px; } +form#contactform input.submit-form {color:#555; cursor:pointer; display:inline-block; font-size:12px; line-height:1; text-decoration:none !important; width:100px; padding:5px 11px 4px 11px; } +form#contactform input.submit-form:hover {color:#000; border-color:#000; -webkit-box-shadow: 0px 0px 4px #6a9ec9; -moz-box-shadow: 0px 0px 4px #6a9ec9; box-shadow: 0px 0px 4px #6a9ec9;} +.light-fonts form#contactform input.submit-form:hover {color:#fff; border-color:#d6d6d6; -webkit-box-shadow: 0px 0px 4px #6a9ec9; -moz-box-shadow: 0px 0px 4px #6a9ec9; box-shadow: 0px 0px 4px #6a9ec9;} + +/* CONTACT FORM 7 STYLES */ +.wpcf7 input, .wpcf7 textarea { background:url(../images/none.gif); border-style:solid; border-width:1px; font-size:13px; padding:4px; border-color:#4c4c4c; display:block; } +.light-fonts .wpcf7 input, .light-fonts .wpcf7 textarea { border-color:#B7B7B7; color:#fff;} +.wpcf7 p {padding-bottom:10px; font-size:11px;} +.wpcf7-submit {cursor:pointer;} +.wpcf7-submit:hover { color:#000; border-color:#000; -webkit-box-shadow: 0px 0px 4px #6a9ec9; -moz-box-shadow: 0px 0px 4px #6a9ec9; box-shadow: 0px 0px 4px #6a9ec9;} +.light-fonts .wpcf7-submit:hover {color:#fff; border-color:#d6d6d6; } + + +/* FOOTER STYLES */ +#footer {width:980px; overflow:hidden; font-size:10px;} +#social-icons {float:left; padding:3px 0px 0px 1px;} +#social-icons img {margin-right:2px;} +#copyright {float:right; text-align:right; padding-right:2px;} + + + +/* CAROUSEL STYLES */ +.list_carousel, .portfolio_carousel, .news_carousel { + margin: 0; + width: 600px; +} +.list_carousel ul, .portfolio_carousel ul, .news_carousel ul { + width: 600px; + margin: 0; + padding: 0; + list-style: none; + display: block; +} +.portfolio-carousel ul li { + text-align:center !important; +} +.content-container .list_carousel li { + width: 570px; + padding: 0; + margin:0 0 0 30px; + display: block; + float: left; +} +.news_carousel .scroll-pane { + width:370px; + float:none; + overflow: auto; + margin:0px; + padding:0 8px 0 0; +} + +.news_carousel .news-post { + width:370px; + padding:25px; + background:#fff; + color:#888; + display:block; +} +.news_carousel .pagination {margin-top:7px;} + +.content-container .news_carousel li { + width: 475px; + padding: 0; + margin:0 0 0 125px; + display: block; + float: left; + list-style:none; +} +.date-stamp h1, .date-stamp h2, .date-stamp h3, .date-stamp h5, .date-stamp h4, .date-stamp h6 {} +.date-stamp {} +.news_carousel .news-post a {color:#515151;} +.news_carousel .news-post a:hover {color:#000;} +.content-container .portfolio_carousel li a { display:block; height:210px; width:135px; text-decoration:none; color:#888;} +.content-container .portfolio_carousel li a:hover {background:#282828;} +.content-container .portfolio_carousel li a:hover img, .thumbnails a:hover img { + opacity: 0.8; + filter: alpha(opacity=80); + -webkit-transition: opacity .5s ease-in-out; + -moz-transition: opacity .5s ease-in-out; + -o-transition: opacity .5s ease-in-out; + transition: opacity .5s ease-in-out; +} + +.content-container .portfolio_carousel li { + width: 135px; + height:210px; + padding: 0; + margin:0 15px 0 0; + display: block; + float: left; + background:#222; + color:#888; + font-size:10px; +} +.content-container .portfolio_carousel .description {padding:12px;} +.content-container .portfolio_carousel li h5, .content-container .portfolio_carousel li h6, .content-container .portfolio_carousel li h4 { + color:#fff; +} +.content-container .portfolio_carousel li a {} +.clearfix { + float: none; + clear: both; +} +.prev_link a { + float: left; + margin-left: 10px; + padding-top:5px; +} +.next_link a { + float: right; + margin-right: 10px; + padding-top:5px; +} + +a.next.disabled, a.prev.disabled, a.next.disabled span, a.prev.disabled span { + cursor:default; + color:#ccc !important; +} + + +#previous_link2 { + float: left; + margin-left: 10px; + padding-top:5px; +} +#next_link2 { + float: right; + margin-right: 10px; + padding-top:5px; +} +a#previous_link2-arrow, a#next_link2-arrow { + background:url(../images/arrow-navigation.png) top left no-repeat; + width:20px; + text-indent:-9999px; + display:block; + margin-top:15px; +} +a#next_link2-arrow {background-position: top right !important;} + +a#previous_link2-arrow.disabled, a#next_link2-arrow.disabled { + opacity:0.4; + filter: alpha(opacity=40); +} +a#next_link2, a#previous_link2 {text-decoration:none; font-size:13px;} +a#previous_link2 span {padding-left:5px;} + + +.prev_link a, .next_link a { + background:url(../images/arrow-navigation.png) top left no-repeat; + width:20px; + text-indent:-9999px; + display:block; + margin-top:15px; +} +.next_link a {background-position: top right !important;} + +.prev_link a.disabled, .next_link a.disabled { + opacity:0.4; + filter: alpha(opacity=40); +} + +.pagination {text-align:center; padding-top:5px; width:300px; margin:0 auto;} + +.pagination a { + background: url(../images/orbit/bullets2.png) no-repeat top left; + width: 10px; + height: 10px; + overflow: hidden; + display:inline-block; + cursor: pointer; + margin-left: 5px; +} + +.pagination a.selected { + color: #222; + background-position: top right; +} +.pagination a span { + display:none; + } +.next_link a, .prev_link a {text-decoration:none; font-size:13px;} +.next_link a span {padding-right:5px;} +.prev_link a span {padding-left:5px;} + + + +/* COLUMN LAYOUTS */ +.column-container {width:100%; overflow:hidden;} +.col_1_1,.col_1_2,.col_2_2,.col_1_3,.col_2_3,.col_3_3,.col_1-2_3,.col_2-3_3,.col_1_4,.col_2_4,.col_3_4,.col_4_4,.col_1-2_4,.col_2-3_4,.col_3-4_4,.col_1-3_4,.col_2-4_4,.col_1_5,.col_2_5,.col_3_5,.col_4_5,.col_5_5,.col_1-2_5,.col_2-3_5,.col_3-4_5,.col_4-5_5,.col_1-3_5,.col_2-4_5,.col_3-5_5,.col_1-4_5,.col_2-5_5{float:left;display:inline;overflow:hidden;} +* html .col_1_1,* html .col_1_2,* html .col_2_2,* html .col_1_3,* html .col_2_3,* html .col_3_3,* html .col_1-2_3,* html .col_2-3_3,* html .col_1_4,* html .col_2_4,* html .col_3_4,* html .col_4_4,* html .col_1-2_4,* html .col_2-3_4,* html .col_3-4_4,* html .col_1-3_4,* html .col_2-4_4,* html .col_1_5,* html .col_2_5,* html .col_3_5,* html .col_4_5,* html .col_5_5,* html .col_1-2_5,* html .col_2-3_5,* html .col_3-4_5,* html .col_4-5_5,* html .col_1-3_5,* html .col_2-4_5,* html .col_3-5_5,* html .col_1-4_5,* html .col_2-5_5{margin-left:-.04em;} +.col_1_1{width:100%;} +.col_1_2,.col_2_2{width:50%;} +.col_1_3,.col_2_3,.col_3_3{width:33.33%;} +.col_1-2_3,.col_2-3_3{width:66.66%;} +.col_1_4,.col_2_4,.col_3_4,.col_4_4{width:25%;} +.col_1-2_4,.col_2-3_4,.col_3-4_4{width:50%;} +.col_1-3_4,.col_2-4_4{width:75%;} +.col_1_5,.col_2_5,.col_3_5,.col_4_5,.col_5_5{width:20%;} +.col_1-2_5,.col_2-3_5,.col_3-4_5,.col_4-5_5{width:40%;} +.col_1-3_5,.col_2-4_5,.col_3-5_5{width:60%;} +.col_1-4_5,.col_2-5_5{width:80%;} +.content{padding:0 10px;overflow:hidden;} +.col_1_2 .content,.col_1_3 .content,.col_1-2_3 .content,.col_1_4 .content,.col_1-2_4 .content,.col_1-3_4 .content,.col_1_5 .content,.col_1-2_5 .content,.col_1-3_5 .content,.col_1-4_5 .content,.col_1-2_5 .content,.col_1-3_5 .content,.col_1-4_5 .content{padding-left:0;} +.col_2_2 .content,.col_3_3 .content,.col_2-3_3 .content,.col_4_4 .content,.col_3-4_4 .content,.col_2-4_4 .content,.col_5_5 .content,.col_4-5_5 .content,.col_3-5_5 .content,.col_2-5_5 .content,.col_4-5_5 .content,.col_3-5_5 .content,.col_2-5_5 .content{padding-right:0;} +.clear, .clearboth {clear:both;display:block;overflow:hidden;visibility:hidden;width:0;height:0;} + +.last {padding-right:0px !important; padding-left: 0px !important;} + + +/* + * CSS Styles that are needed by jScrollPane for it to operate correctly. + * + * Include this stylesheet in your site or copy and paste the styles below into your stylesheet - jScrollPane + * may not operate correctly without them. + */ + + /* Styles specific to this particular page */ +.scroll-pane +{ + width: 600px; + float:right; + overflow: auto; + margin-top:14px; + padding:0 8px 0 0; +} + +.list_carousel .scroll-pane, .portfolio_carousel .scroll-pane {width:570px; float:none; margin:0px; } + +.horizontal-only +{ + height: auto; + max-height: 200px; +} + +.jspContainer +{ + overflow: hidden; + position: relative; +} + +.jspPane +{ + position: absolute; +} + +.jspVerticalBar +{ + position: absolute; + top: 0; + right: 0; + width: 7px; + height: 100%; + background: red; +} + +.jspHorizontalBar +{ + position: absolute; + bottom: 0; + left: 0; + width: 100%; + height: 16px; + background: red; +} + +.jspVerticalBar *, +.jspHorizontalBar * +{ + margin: 0; + padding: 0; +} + +.jspCap +{ + display: none; +} + +.jspHorizontalBar .jspCap +{ + float: left; +} + +.jspTrack +{ + background: #ccc; + position: relative; +} + +.jspDrag +{ + position: relative; + top: 0; + left: 0; + cursor: pointer; +} + +.jspHorizontalBar .jspTrack, +.jspHorizontalBar .jspDrag +{ + float: left; + height: 100%; +} + +.jspArrow +{ + background: #50506d; + text-indent: -20000px; + display: block; + cursor: pointer; +} + +.jspArrow.jspDisabled +{ + cursor: default; + background: #80808d; +} + +.jspVerticalBar .jspArrow +{ + height: 16px; +} + +.jspHorizontalBar .jspArrow +{ + width: 16px; + float: left; + height: 100%; +} + +.jspVerticalBar .jspArrow:focus +{ + outline: none; +} + +.jspCorner +{ + background: #eeeef4; + float: left; + height: 100%; +} + +/* Yuk! CSS Hack for IE6 3 pixel bug :( */ +* html .jspCorner +{ + margin: 0 -3px 0 0; +} diff --git a/src/wp-content/themes/broadside/footer.php b/src/wp-content/themes/broadside/footer.php new file mode 100644 index 0000000..bfc5fb4 --- /dev/null +++ b/src/wp-content/themes/broadside/footer.php @@ -0,0 +1,146 @@ + + + + + + + + + + + + + + + + + + + + + + '; ?> + + '; ?> + + + \ No newline at end of file diff --git a/src/wp-content/themes/broadside/framework/bootstrap.php b/src/wp-content/themes/broadside/framework/bootstrap.php new file mode 100644 index 0000000..168177c --- /dev/null +++ b/src/wp-content/themes/broadside/framework/bootstrap.php @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/src/wp-content/themes/broadside/framework/metaboxes.php b/src/wp-content/themes/broadside/framework/metaboxes.php new file mode 100644 index 0000000..f449cbf --- /dev/null +++ b/src/wp-content/themes/broadside/framework/metaboxes.php @@ -0,0 +1,127 @@ +add_meta_box('post_options', 'Post Options', 'post'); + $this->add_meta_box('page_options', 'Page Options', 'page'); + $this->add_meta_box('portfolio_options', 'Portfolio Options', 'portfolio'); + //$this->add_meta_box('team_options', 'Team Options', 'team'); + } + + public function add_meta_box($id, $label, $post_type) + { + add_meta_box( + 'pyre_' . $id, + __($label, 'Avenue'), + array($this, $id), + $post_type + ); + } + + public function save_meta_boxes($post_id) + { + if(defined( 'DOING_AUTOSAVE') && DOING_AUTOSAVE) { + return; + } + + foreach($_POST as $key => $value) { + update_post_meta($post_id, $key, $value); + } + } + + public function post_options() + { + include 'views/metaboxes/style.php'; + include 'views/metaboxes/post_options.php'; + } + + public function page_options() + { + include 'views/metaboxes/style.php'; + include 'views/metaboxes/page_options.php'; + } + + public function portfolio_options() + { + include 'views/metaboxes/style.php'; + include 'views/metaboxes/portfolio_options.php'; + } + + public function text($id, $label, $desc, $html = '') + { + global $post; + + $html .= '
'; + $html .= ''; + $html .= '
'; + $html .= ''; + if($desc) { + $html .= '

' . $desc . '

'; + } + $html .= '
'; + $html .= '
'; + + echo $html; + } + + public function textarea($id, $label, $desc, $html = '') + { + global $post; + + $html .= '
'; + $html .= ''; + $html .= '
'; + $html .= ''; + if($desc) { + $html .= '

' . $desc . '

'; + } + $html .= '
'; + $html .= '
'; + + echo $html; + } + + public function select($id, $label, $options, $desc, $html = '') + { + global $post; + + $html .= '
'; + $html .= ''; + $html .= '
'; + $html .= ''; + if($desc) { + $html .= '

' . $desc . '

'; + } + $html .= '
'; + $html .= '
'; + + echo $html; + } + +} + +$metaboxes = new PyreThemeFrameworkMetaboxes; \ No newline at end of file diff --git a/src/wp-content/themes/broadside/framework/views/metaboxes/page_options.php b/src/wp-content/themes/broadside/framework/views/metaboxes/page_options.php new file mode 100644 index 0000000..46b7ce0 --- /dev/null +++ b/src/wp-content/themes/broadside/framework/views/metaboxes/page_options.php @@ -0,0 +1,49 @@ +
+select( 'font_color', + 'Font Color', + array('light' => 'Light', 'dark' => 'Dark'), + '' + ); +?> +textarea( 'background_images', + 'Background Image(s)', + 'Add link(s) to background image separated by a comma but no spaces.' + ); +?> +text( 'heading_sub', + 'Sub-headline', + '' + ); +?> +text( 'heading_1', + 'Sidebar Headline', + '' + ); +?> +text( 'heading_2', + 'Sidebar Sub-headline', + '' + ); +?> +term_id] = $type->name; + } +} + +if($types) { +$this->select( 'portfolio_type', + 'Portfolio Type', + $types_array, + 'Note: Portfolio Type only applies on Portfolio Page Templates. See documentation for details.' + ); +} +?> +
\ No newline at end of file diff --git a/src/wp-content/themes/broadside/framework/views/metaboxes/portfolio_options.php b/src/wp-content/themes/broadside/framework/views/metaboxes/portfolio_options.php new file mode 100644 index 0000000..d5d91ec --- /dev/null +++ b/src/wp-content/themes/broadside/framework/views/metaboxes/portfolio_options.php @@ -0,0 +1,6 @@ +text( 'video_link', + 'Video Player Link', + 'Use the video embed link without any code. Example: http://player.vimeo.com/video/22884674' + ); +?> \ No newline at end of file diff --git a/src/wp-content/themes/broadside/framework/views/metaboxes/post_options.php b/src/wp-content/themes/broadside/framework/views/metaboxes/post_options.php new file mode 100644 index 0000000..c316b1f --- /dev/null +++ b/src/wp-content/themes/broadside/framework/views/metaboxes/post_options.php @@ -0,0 +1,2 @@ +
+
\ No newline at end of file diff --git a/src/wp-content/themes/broadside/framework/views/metaboxes/style.php b/src/wp-content/themes/broadside/framework/views/metaboxes/style.php new file mode 100644 index 0000000..00efc6b --- /dev/null +++ b/src/wp-content/themes/broadside/framework/views/metaboxes/style.php @@ -0,0 +1,10 @@ + \ No newline at end of file diff --git a/src/wp-content/themes/broadside/functions.php b/src/wp-content/themes/broadside/functions.php new file mode 100644 index 0000000..72c6cb8 --- /dev/null +++ b/src/wp-content/themes/broadside/functions.php @@ -0,0 +1,170 @@ + array( + 'name' => 'Portfolio', + 'singular_name' => 'Portfolio' + ), + 'public' => true, + 'has_archive' => true, + 'rewrite' => array('slug' => 'portfolio'), + 'supports' => array('title', 'editor', 'thumbnail'), + 'can_export' => true, + ) + ); + + register_taxonomy('type', 'portfolio', array('hierarchical' => true, 'label' => 'Type', 'query_var' => true, 'rewrite' => true)); + +} + + +function get_progression($args) { + $output = get_option('admin_email'); + return apply_filters('get_progression', $output); +} + + + +// Include boostrap file for the pyre theme framework +include_once('framework/bootstrap.php'); + +if ( ! function_exists( 'twentyeleven_comment' ) ) : +/** + * Template for comments and pingbacks. + * + * To override this walker in a child theme without modifying the comments template + * simply create your own twentyeleven_comment(), and that function will be used instead. + * + * Used as a callback by wp_list_comments() for displaying the comments. + * + * @since Twenty Eleven 1.0 + */ +function twentyeleven_comment( $comment, $args, $depth ) { + $GLOBALS['comment'] = $comment; + switch ( $comment->comment_type ) : + case 'pingback' : + case 'trackback' : + ?> +
  • +

    ', '' ); ?>

    + +
  • id="li-comment-"> +
    +
    +
    + comment_parent ) + $avatar_size = 39; + + echo get_avatar( $comment, $avatar_size ); + + /* translators: 1: comment author, 2: date and time */ + printf( __( '%1$s on %2$s said:', 'twentyeleven' ), + sprintf( '%s', get_comment_author_link() ), + sprintf( '', + esc_url( get_comment_link( $comment->comment_ID ) ), + get_comment_time( 'c' ), + /* translators: 1: date, 2: time */ + sprintf( __( '%1$s at %2$s', 'twentyeleven' ), get_comment_date(), get_comment_time() ) + ) + ); + ?> + + ', '' ); ?> +
    + + comment_approved == '0' ) : ?> + +
    + + +
    + +
    + +
    + __( 'Reply ', 'twentyeleven' ), 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?> +
    +
    + + + + + + +> + + + <?php echo of_get_option('home_title'); ?> + + <?php bloginfo('name'); ?> <?php wp_title(' - ', true, 'left'); ?> + + + + + + + + + + + + + + + + + + '; ?> + /* MAIN CONTAINER HEIGHT SIZE */ + #container, #left-container, #featured, #featured div { height:px; } + #featured { margin-top:-px;} + #box-container {height:px; margin-top:-px; } /* Margin-top is half of the total height */ + + /* MAIN HIGHLIGHTED COLOUR FOR HEADINGS */ + h1, h2, h3, h4, h5, h6, ul.sub-navigation li a:hover, ul.sub-navigation li.current-menu-item a, ul.sub-navigation li.current_page_item a, a.prev span, a.next span, a.prev:hover, a.next:hover, .light-fonts .content-heading h5, .light-fonts .content-heading h6 {color:;} + + /* MAIN BACKGROUND COLOUR FOR MENU AND LOGO */ + .logo-menu, .navigation-menu, .sf-vertical li, .jspDrag {background-color:;} + .sf-menu .current-menu-item a, .sf-menu a:hover, .sf-menu .current-menu-item .sliding-element a:hover {background: url(/images/nav-arrow.png) 0px 5px no-repeat;} + '; ?> + + + '; ?> + + '; ?> + + + + '; ?> + + '; ?> + + + + + + + + + + + + + + + + + + + + +ID, 'pyre_font_color', true) == 'light') { + $class = 'light-fonts'; +} +$page_for_posts = get_option('page_for_posts'); +if((is_home() || is_single()) && get_option('page_for_posts') && get_post_meta($page_for_posts, 'pyre_font_color', true) == 'light') { + $class = 'light-fonts'; +} +?> + +" id="bg" alt="background"> + +
    +
    + +
    + +
    + +
    -box"> + +
    + + + + +
    + +
    + + +

    + +
    + + + + ID; ?> + +
    + +
    + + +

    + +
    + + + +
    -box"> + +
    + +
    +
    \ No newline at end of file diff --git a/src/wp-content/themes/broadside/homepage.php b/src/wp-content/themes/broadside/homepage.php new file mode 100644 index 0000000..827ade1 --- /dev/null +++ b/src/wp-content/themes/broadside/homepage.php @@ -0,0 +1,19 @@ + +
    + + + + +
    + \ No newline at end of file diff --git a/src/wp-content/themes/broadside/images/1col.png b/src/wp-content/themes/broadside/images/1col.png new file mode 100644 index 0000000..32bddc1 Binary files /dev/null and b/src/wp-content/themes/broadside/images/1col.png differ diff --git a/src/wp-content/themes/broadside/images/2cl.png b/src/wp-content/themes/broadside/images/2cl.png new file mode 100644 index 0000000..def0bcd Binary files /dev/null and b/src/wp-content/themes/broadside/images/2cl.png differ diff --git a/src/wp-content/themes/broadside/images/2cr.png b/src/wp-content/themes/broadside/images/2cr.png new file mode 100644 index 0000000..2aed4f9 Binary files /dev/null and b/src/wp-content/themes/broadside/images/2cr.png differ diff --git a/src/wp-content/themes/broadside/images/arrow-navigation.png b/src/wp-content/themes/broadside/images/arrow-navigation.png new file mode 100644 index 0000000..cb60989 Binary files /dev/null and b/src/wp-content/themes/broadside/images/arrow-navigation.png differ diff --git a/src/wp-content/themes/broadside/images/arrows-ffffff.png b/src/wp-content/themes/broadside/images/arrows-ffffff.png new file mode 100644 index 0000000..995df52 Binary files /dev/null and b/src/wp-content/themes/broadside/images/arrows-ffffff.png differ diff --git a/src/wp-content/themes/broadside/images/background-dark.jpg b/src/wp-content/themes/broadside/images/background-dark.jpg new file mode 100644 index 0000000..79d1ded Binary files /dev/null and b/src/wp-content/themes/broadside/images/background-dark.jpg differ diff --git a/src/wp-content/themes/broadside/images/background.jpg b/src/wp-content/themes/broadside/images/background.jpg new file mode 100644 index 0000000..7393c20 Binary files /dev/null and b/src/wp-content/themes/broadside/images/background.jpg differ diff --git a/src/wp-content/themes/broadside/images/backgrounds/about-background.jpg b/src/wp-content/themes/broadside/images/backgrounds/about-background.jpg new file mode 100644 index 0000000..76d796e Binary files /dev/null and b/src/wp-content/themes/broadside/images/backgrounds/about-background.jpg differ diff --git a/src/wp-content/themes/broadside/images/backgrounds/background-image-600tall.jpg b/src/wp-content/themes/broadside/images/backgrounds/background-image-600tall.jpg new file mode 100644 index 0000000..c080162 Binary files /dev/null and b/src/wp-content/themes/broadside/images/backgrounds/background-image-600tall.jpg differ diff --git a/src/wp-content/themes/broadside/images/backgrounds/background2-image-600tall.jpg b/src/wp-content/themes/broadside/images/backgrounds/background2-image-600tall.jpg new file mode 100644 index 0000000..ff6f962 Binary files /dev/null and b/src/wp-content/themes/broadside/images/backgrounds/background2-image-600tall.jpg differ diff --git a/src/wp-content/themes/broadside/images/backgrounds/background3-image-600tall.jpg b/src/wp-content/themes/broadside/images/backgrounds/background3-image-600tall.jpg new file mode 100644 index 0000000..cad95a9 Binary files /dev/null and b/src/wp-content/themes/broadside/images/backgrounds/background3-image-600tall.jpg differ diff --git a/src/wp-content/themes/broadside/images/backgrounds/background4-image-600tall.jpg b/src/wp-content/themes/broadside/images/backgrounds/background4-image-600tall.jpg new file mode 100644 index 0000000..c8248cb Binary files /dev/null and b/src/wp-content/themes/broadside/images/backgrounds/background4-image-600tall.jpg differ diff --git a/src/wp-content/themes/broadside/images/backgrounds/blog-background-tall.jpg b/src/wp-content/themes/broadside/images/backgrounds/blog-background-tall.jpg new file mode 100644 index 0000000..741f098 Binary files /dev/null and b/src/wp-content/themes/broadside/images/backgrounds/blog-background-tall.jpg differ diff --git a/src/wp-content/themes/broadside/images/backgrounds/blog-background.jpg b/src/wp-content/themes/broadside/images/backgrounds/blog-background.jpg new file mode 100644 index 0000000..f36b338 Binary files /dev/null and b/src/wp-content/themes/broadside/images/backgrounds/blog-background.jpg differ diff --git a/src/wp-content/themes/broadside/images/backgrounds/company-background.jpg b/src/wp-content/themes/broadside/images/backgrounds/company-background.jpg new file mode 100644 index 0000000..147d0e2 Binary files /dev/null and b/src/wp-content/themes/broadside/images/backgrounds/company-background.jpg differ diff --git a/src/wp-content/themes/broadside/images/backgrounds/contact-background-tall.jpg b/src/wp-content/themes/broadside/images/backgrounds/contact-background-tall.jpg new file mode 100644 index 0000000..eeea4f1 Binary files /dev/null and b/src/wp-content/themes/broadside/images/backgrounds/contact-background-tall.jpg differ diff --git a/src/wp-content/themes/broadside/images/backgrounds/contact-background.jpg b/src/wp-content/themes/broadside/images/backgrounds/contact-background.jpg new file mode 100644 index 0000000..c032622 Binary files /dev/null and b/src/wp-content/themes/broadside/images/backgrounds/contact-background.jpg differ diff --git a/src/wp-content/themes/broadside/images/backgrounds/img_1.jpg b/src/wp-content/themes/broadside/images/backgrounds/img_1.jpg new file mode 100644 index 0000000..1256e5f Binary files /dev/null and b/src/wp-content/themes/broadside/images/backgrounds/img_1.jpg differ diff --git a/src/wp-content/themes/broadside/images/backgrounds/img_2.jpg b/src/wp-content/themes/broadside/images/backgrounds/img_2.jpg new file mode 100644 index 0000000..1226b38 Binary files /dev/null and b/src/wp-content/themes/broadside/images/backgrounds/img_2.jpg differ diff --git a/src/wp-content/themes/broadside/images/backgrounds/img_3.jpg b/src/wp-content/themes/broadside/images/backgrounds/img_3.jpg new file mode 100644 index 0000000..2ce461b Binary files /dev/null and b/src/wp-content/themes/broadside/images/backgrounds/img_3.jpg differ diff --git a/src/wp-content/themes/broadside/images/backgrounds/img_4.jpg b/src/wp-content/themes/broadside/images/backgrounds/img_4.jpg new file mode 100644 index 0000000..decea22 Binary files /dev/null and b/src/wp-content/themes/broadside/images/backgrounds/img_4.jpg differ diff --git a/src/wp-content/themes/broadside/images/backgrounds/news-background-tall.jpg b/src/wp-content/themes/broadside/images/backgrounds/news-background-tall.jpg new file mode 100644 index 0000000..6427cea Binary files /dev/null and b/src/wp-content/themes/broadside/images/backgrounds/news-background-tall.jpg differ diff --git a/src/wp-content/themes/broadside/images/backgrounds/news-background.jpg b/src/wp-content/themes/broadside/images/backgrounds/news-background.jpg new file mode 100644 index 0000000..fed4853 Binary files /dev/null and b/src/wp-content/themes/broadside/images/backgrounds/news-background.jpg differ diff --git a/src/wp-content/themes/broadside/images/backgrounds/portfolio-background.jpg b/src/wp-content/themes/broadside/images/backgrounds/portfolio-background.jpg new file mode 100644 index 0000000..06333be Binary files /dev/null and b/src/wp-content/themes/broadside/images/backgrounds/portfolio-background.jpg differ diff --git a/src/wp-content/themes/broadside/images/backgrounds/projects-background.jpg b/src/wp-content/themes/broadside/images/backgrounds/projects-background.jpg new file mode 100644 index 0000000..8ed92a3 Binary files /dev/null and b/src/wp-content/themes/broadside/images/backgrounds/projects-background.jpg differ diff --git a/src/wp-content/themes/broadside/images/backgrounds/services-background-tall.jpg b/src/wp-content/themes/broadside/images/backgrounds/services-background-tall.jpg new file mode 100644 index 0000000..9b9fa04 Binary files /dev/null and b/src/wp-content/themes/broadside/images/backgrounds/services-background-tall.jpg differ diff --git a/src/wp-content/themes/broadside/images/backgrounds/services-background.jpg b/src/wp-content/themes/broadside/images/backgrounds/services-background.jpg new file mode 100644 index 0000000..fd6eb10 Binary files /dev/null and b/src/wp-content/themes/broadside/images/backgrounds/services-background.jpg differ diff --git a/src/wp-content/themes/broadside/images/big-button-overlay.png b/src/wp-content/themes/broadside/images/big-button-overlay.png new file mode 100644 index 0000000..bb18bc2 Binary files /dev/null and b/src/wp-content/themes/broadside/images/big-button-overlay.png differ diff --git a/src/wp-content/themes/broadside/images/blockquote.png b/src/wp-content/themes/broadside/images/blockquote.png new file mode 100644 index 0000000..987f5b1 Binary files /dev/null and b/src/wp-content/themes/broadside/images/blockquote.png differ diff --git a/src/wp-content/themes/broadside/images/blog-comments.png b/src/wp-content/themes/broadside/images/blog-comments.png new file mode 100644 index 0000000..c41ed9c Binary files /dev/null and b/src/wp-content/themes/broadside/images/blog-comments.png differ diff --git a/src/wp-content/themes/broadside/images/checkmark.png b/src/wp-content/themes/broadside/images/checkmark.png new file mode 100644 index 0000000..97aafb1 Binary files /dev/null and b/src/wp-content/themes/broadside/images/checkmark.png differ diff --git a/src/wp-content/themes/broadside/images/fancybox/blank.gif b/src/wp-content/themes/broadside/images/fancybox/blank.gif new file mode 100644 index 0000000..35d42e8 Binary files /dev/null and b/src/wp-content/themes/broadside/images/fancybox/blank.gif differ diff --git a/src/wp-content/themes/broadside/images/fancybox/fancy_close.png b/src/wp-content/themes/broadside/images/fancybox/fancy_close.png new file mode 100644 index 0000000..0703530 Binary files /dev/null and b/src/wp-content/themes/broadside/images/fancybox/fancy_close.png differ diff --git a/src/wp-content/themes/broadside/images/fancybox/fancy_loading.png b/src/wp-content/themes/broadside/images/fancybox/fancy_loading.png new file mode 100644 index 0000000..2503017 Binary files /dev/null and b/src/wp-content/themes/broadside/images/fancybox/fancy_loading.png differ diff --git a/src/wp-content/themes/broadside/images/fancybox/fancy_nav_left.png b/src/wp-content/themes/broadside/images/fancybox/fancy_nav_left.png new file mode 100644 index 0000000..ebaa6a4 Binary files /dev/null and b/src/wp-content/themes/broadside/images/fancybox/fancy_nav_left.png differ diff --git a/src/wp-content/themes/broadside/images/fancybox/fancy_nav_right.png b/src/wp-content/themes/broadside/images/fancybox/fancy_nav_right.png new file mode 100644 index 0000000..873294e Binary files /dev/null and b/src/wp-content/themes/broadside/images/fancybox/fancy_nav_right.png differ diff --git a/src/wp-content/themes/broadside/images/fancybox/fancy_shadow_e.png b/src/wp-content/themes/broadside/images/fancybox/fancy_shadow_e.png new file mode 100644 index 0000000..2eda089 Binary files /dev/null and b/src/wp-content/themes/broadside/images/fancybox/fancy_shadow_e.png differ diff --git a/src/wp-content/themes/broadside/images/fancybox/fancy_shadow_n.png b/src/wp-content/themes/broadside/images/fancybox/fancy_shadow_n.png new file mode 100644 index 0000000..69aa10e Binary files /dev/null and b/src/wp-content/themes/broadside/images/fancybox/fancy_shadow_n.png differ diff --git a/src/wp-content/themes/broadside/images/fancybox/fancy_shadow_ne.png b/src/wp-content/themes/broadside/images/fancybox/fancy_shadow_ne.png new file mode 100644 index 0000000..79f6980 Binary files /dev/null and b/src/wp-content/themes/broadside/images/fancybox/fancy_shadow_ne.png differ diff --git a/src/wp-content/themes/broadside/images/fancybox/fancy_shadow_nw.png b/src/wp-content/themes/broadside/images/fancybox/fancy_shadow_nw.png new file mode 100644 index 0000000..7182cd9 Binary files /dev/null and b/src/wp-content/themes/broadside/images/fancybox/fancy_shadow_nw.png differ diff --git a/src/wp-content/themes/broadside/images/fancybox/fancy_shadow_s.png b/src/wp-content/themes/broadside/images/fancybox/fancy_shadow_s.png new file mode 100644 index 0000000..d8858bf Binary files /dev/null and b/src/wp-content/themes/broadside/images/fancybox/fancy_shadow_s.png differ diff --git a/src/wp-content/themes/broadside/images/fancybox/fancy_shadow_se.png b/src/wp-content/themes/broadside/images/fancybox/fancy_shadow_se.png new file mode 100644 index 0000000..541e3ff Binary files /dev/null and b/src/wp-content/themes/broadside/images/fancybox/fancy_shadow_se.png differ diff --git a/src/wp-content/themes/broadside/images/fancybox/fancy_shadow_sw.png b/src/wp-content/themes/broadside/images/fancybox/fancy_shadow_sw.png new file mode 100644 index 0000000..b451689 Binary files /dev/null and b/src/wp-content/themes/broadside/images/fancybox/fancy_shadow_sw.png differ diff --git a/src/wp-content/themes/broadside/images/fancybox/fancy_shadow_w.png b/src/wp-content/themes/broadside/images/fancybox/fancy_shadow_w.png new file mode 100644 index 0000000..8a4e4a8 Binary files /dev/null and b/src/wp-content/themes/broadside/images/fancybox/fancy_shadow_w.png differ diff --git a/src/wp-content/themes/broadside/images/fancybox/fancy_title_left.png b/src/wp-content/themes/broadside/images/fancybox/fancy_title_left.png new file mode 100644 index 0000000..6049223 Binary files /dev/null and b/src/wp-content/themes/broadside/images/fancybox/fancy_title_left.png differ diff --git a/src/wp-content/themes/broadside/images/fancybox/fancy_title_main.png b/src/wp-content/themes/broadside/images/fancybox/fancy_title_main.png new file mode 100644 index 0000000..8044271 Binary files /dev/null and b/src/wp-content/themes/broadside/images/fancybox/fancy_title_main.png differ diff --git a/src/wp-content/themes/broadside/images/fancybox/fancy_title_over.png b/src/wp-content/themes/broadside/images/fancybox/fancy_title_over.png new file mode 100644 index 0000000..d9f458f Binary files /dev/null and b/src/wp-content/themes/broadside/images/fancybox/fancy_title_over.png differ diff --git a/src/wp-content/themes/broadside/images/fancybox/fancy_title_right.png b/src/wp-content/themes/broadside/images/fancybox/fancy_title_right.png new file mode 100644 index 0000000..e36d9db Binary files /dev/null and b/src/wp-content/themes/broadside/images/fancybox/fancy_title_right.png differ diff --git a/src/wp-content/themes/broadside/images/fancybox/fancybox-x.png b/src/wp-content/themes/broadside/images/fancybox/fancybox-x.png new file mode 100644 index 0000000..c2130f8 Binary files /dev/null and b/src/wp-content/themes/broadside/images/fancybox/fancybox-x.png differ diff --git a/src/wp-content/themes/broadside/images/fancybox/fancybox-y.png b/src/wp-content/themes/broadside/images/fancybox/fancybox-y.png new file mode 100644 index 0000000..7ef399b Binary files /dev/null and b/src/wp-content/themes/broadside/images/fancybox/fancybox-y.png differ diff --git a/src/wp-content/themes/broadside/images/fancybox/fancybox.png b/src/wp-content/themes/broadside/images/fancybox/fancybox.png new file mode 100644 index 0000000..65e14f6 Binary files /dev/null and b/src/wp-content/themes/broadside/images/fancybox/fancybox.png differ diff --git a/src/wp-content/themes/broadside/images/logo-space.png b/src/wp-content/themes/broadside/images/logo-space.png new file mode 100644 index 0000000..50251af Binary files /dev/null and b/src/wp-content/themes/broadside/images/logo-space.png differ diff --git a/src/wp-content/themes/broadside/images/logo.png b/src/wp-content/themes/broadside/images/logo.png new file mode 100644 index 0000000..240f8fa Binary files /dev/null and b/src/wp-content/themes/broadside/images/logo.png differ diff --git a/src/wp-content/themes/broadside/images/nav-arrow.png b/src/wp-content/themes/broadside/images/nav-arrow.png new file mode 100644 index 0000000..20d595a Binary files /dev/null and b/src/wp-content/themes/broadside/images/nav-arrow.png differ diff --git a/src/wp-content/themes/broadside/images/orbit/arrows-new.png b/src/wp-content/themes/broadside/images/orbit/arrows-new.png new file mode 100644 index 0000000..e39a65f Binary files /dev/null and b/src/wp-content/themes/broadside/images/orbit/arrows-new.png differ diff --git a/src/wp-content/themes/broadside/images/orbit/bullets.jpg b/src/wp-content/themes/broadside/images/orbit/bullets.jpg new file mode 100644 index 0000000..f3c734f Binary files /dev/null and b/src/wp-content/themes/broadside/images/orbit/bullets.jpg differ diff --git a/src/wp-content/themes/broadside/images/orbit/bullets.png b/src/wp-content/themes/broadside/images/orbit/bullets.png new file mode 100644 index 0000000..8147763 Binary files /dev/null and b/src/wp-content/themes/broadside/images/orbit/bullets.png differ diff --git a/src/wp-content/themes/broadside/images/orbit/bullets2.png b/src/wp-content/themes/broadside/images/orbit/bullets2.png new file mode 100644 index 0000000..1090c4a Binary files /dev/null and b/src/wp-content/themes/broadside/images/orbit/bullets2.png differ diff --git a/src/wp-content/themes/broadside/images/orbit/left-arrow.png b/src/wp-content/themes/broadside/images/orbit/left-arrow.png new file mode 100644 index 0000000..e832021 Binary files /dev/null and b/src/wp-content/themes/broadside/images/orbit/left-arrow.png differ diff --git a/src/wp-content/themes/broadside/images/orbit/loading.gif b/src/wp-content/themes/broadside/images/orbit/loading.gif new file mode 100644 index 0000000..969f505 Binary files /dev/null and b/src/wp-content/themes/broadside/images/orbit/loading.gif differ diff --git a/src/wp-content/themes/broadside/images/orbit/mask-black.png b/src/wp-content/themes/broadside/images/orbit/mask-black.png new file mode 100644 index 0000000..ea62557 Binary files /dev/null and b/src/wp-content/themes/broadside/images/orbit/mask-black.png differ diff --git a/src/wp-content/themes/broadside/images/orbit/mask-black2.png b/src/wp-content/themes/broadside/images/orbit/mask-black2.png new file mode 100644 index 0000000..7582356 Binary files /dev/null and b/src/wp-content/themes/broadside/images/orbit/mask-black2.png differ diff --git a/src/wp-content/themes/broadside/images/orbit/pause-black.png b/src/wp-content/themes/broadside/images/orbit/pause-black.png new file mode 100644 index 0000000..3268f70 Binary files /dev/null and b/src/wp-content/themes/broadside/images/orbit/pause-black.png differ diff --git a/src/wp-content/themes/broadside/images/orbit/pause-black2.png b/src/wp-content/themes/broadside/images/orbit/pause-black2.png new file mode 100644 index 0000000..ebee229 Binary files /dev/null and b/src/wp-content/themes/broadside/images/orbit/pause-black2.png differ diff --git a/src/wp-content/themes/broadside/images/orbit/right-arrow.png b/src/wp-content/themes/broadside/images/orbit/right-arrow.png new file mode 100644 index 0000000..e4e0345 Binary files /dev/null and b/src/wp-content/themes/broadside/images/orbit/right-arrow.png differ diff --git a/src/wp-content/themes/broadside/images/orbit/rotator-black.png b/src/wp-content/themes/broadside/images/orbit/rotator-black.png new file mode 100644 index 0000000..53d9535 Binary files /dev/null and b/src/wp-content/themes/broadside/images/orbit/rotator-black.png differ diff --git a/src/wp-content/themes/broadside/images/orbit/rotator-black2.png b/src/wp-content/themes/broadside/images/orbit/rotator-black2.png new file mode 100644 index 0000000..372792d Binary files /dev/null and b/src/wp-content/themes/broadside/images/orbit/rotator-black2.png differ diff --git a/src/wp-content/themes/broadside/images/orbit/timer-black.png b/src/wp-content/themes/broadside/images/orbit/timer-black.png new file mode 100644 index 0000000..ea62557 Binary files /dev/null and b/src/wp-content/themes/broadside/images/orbit/timer-black.png differ diff --git a/src/wp-content/themes/broadside/images/orbit/timer-black2.png b/src/wp-content/themes/broadside/images/orbit/timer-black2.png new file mode 100644 index 0000000..7582356 Binary files /dev/null and b/src/wp-content/themes/broadside/images/orbit/timer-black2.png differ diff --git a/src/wp-content/themes/broadside/images/photo-left.jpg b/src/wp-content/themes/broadside/images/photo-left.jpg new file mode 100644 index 0000000..1fc7555 Binary files /dev/null and b/src/wp-content/themes/broadside/images/photo-left.jpg differ diff --git a/src/wp-content/themes/broadside/images/photo-right.jpg b/src/wp-content/themes/broadside/images/photo-right.jpg new file mode 100644 index 0000000..3742d70 Binary files /dev/null and b/src/wp-content/themes/broadside/images/photo-right.jpg differ diff --git a/src/wp-content/themes/broadside/images/portfolio/blog-img_2.jpg b/src/wp-content/themes/broadside/images/portfolio/blog-img_2.jpg new file mode 100644 index 0000000..00ff445 Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/blog-img_2.jpg differ diff --git a/src/wp-content/themes/broadside/images/portfolio/blog-img_3.jpg b/src/wp-content/themes/broadside/images/portfolio/blog-img_3.jpg new file mode 100644 index 0000000..f309057 Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/blog-img_3.jpg differ diff --git a/src/wp-content/themes/broadside/images/portfolio/blog-img_4.jpg b/src/wp-content/themes/broadside/images/portfolio/blog-img_4.jpg new file mode 100644 index 0000000..7b68a28 Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/blog-img_4.jpg differ diff --git a/src/wp-content/themes/broadside/images/portfolio/blog-post-image.jpg b/src/wp-content/themes/broadside/images/portfolio/blog-post-image.jpg new file mode 100644 index 0000000..ccbe42a Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/blog-post-image.jpg differ diff --git a/src/wp-content/themes/broadside/images/portfolio/contact-filler.jpg b/src/wp-content/themes/broadside/images/portfolio/contact-filler.jpg new file mode 100644 index 0000000..d3a90c5 Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/contact-filler.jpg differ diff --git a/src/wp-content/themes/broadside/images/portfolio/img_1-tall.jpg b/src/wp-content/themes/broadside/images/portfolio/img_1-tall.jpg new file mode 100644 index 0000000..c080162 Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/img_1-tall.jpg differ diff --git a/src/wp-content/themes/broadside/images/portfolio/img_1.jpg b/src/wp-content/themes/broadside/images/portfolio/img_1.jpg new file mode 100644 index 0000000..1256e5f Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/img_1.jpg differ diff --git a/src/wp-content/themes/broadside/images/portfolio/img_2-tall.jpg b/src/wp-content/themes/broadside/images/portfolio/img_2-tall.jpg new file mode 100644 index 0000000..ff6f962 Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/img_2-tall.jpg differ diff --git a/src/wp-content/themes/broadside/images/portfolio/img_2.jpg b/src/wp-content/themes/broadside/images/portfolio/img_2.jpg new file mode 100644 index 0000000..1226b38 Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/img_2.jpg differ diff --git a/src/wp-content/themes/broadside/images/portfolio/img_3-tall.jpg b/src/wp-content/themes/broadside/images/portfolio/img_3-tall.jpg new file mode 100644 index 0000000..cad95a9 Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/img_3-tall.jpg differ diff --git a/src/wp-content/themes/broadside/images/portfolio/img_3.jpg b/src/wp-content/themes/broadside/images/portfolio/img_3.jpg new file mode 100644 index 0000000..2ce461b Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/img_3.jpg differ diff --git a/src/wp-content/themes/broadside/images/portfolio/img_4.jpg b/src/wp-content/themes/broadside/images/portfolio/img_4.jpg new file mode 100644 index 0000000..decea22 Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/img_4.jpg differ diff --git a/src/wp-content/themes/broadside/images/portfolio/img_5.jpg b/src/wp-content/themes/broadside/images/portfolio/img_5.jpg new file mode 100644 index 0000000..1226b38 Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/img_5.jpg differ diff --git a/src/wp-content/themes/broadside/images/portfolio/img_6.jpg b/src/wp-content/themes/broadside/images/portfolio/img_6.jpg new file mode 100644 index 0000000..1256e5f Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/img_6.jpg differ diff --git a/src/wp-content/themes/broadside/images/portfolio/img_7-tall.jpg b/src/wp-content/themes/broadside/images/portfolio/img_7-tall.jpg new file mode 100644 index 0000000..c8248cb Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/img_7-tall.jpg differ diff --git a/src/wp-content/themes/broadside/images/portfolio/img_7.jpg b/src/wp-content/themes/broadside/images/portfolio/img_7.jpg new file mode 100644 index 0000000..2ce461b Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/img_7.jpg differ diff --git a/src/wp-content/themes/broadside/images/portfolio/img_8-tall.jpg b/src/wp-content/themes/broadside/images/portfolio/img_8-tall.jpg new file mode 100644 index 0000000..4fe0a43 Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/img_8-tall.jpg differ diff --git a/src/wp-content/themes/broadside/images/portfolio/img_8.jpg b/src/wp-content/themes/broadside/images/portfolio/img_8.jpg new file mode 100644 index 0000000..decea22 Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/img_8.jpg differ diff --git a/src/wp-content/themes/broadside/images/portfolio/lightbox-thumbnail.jpg b/src/wp-content/themes/broadside/images/portfolio/lightbox-thumbnail.jpg new file mode 100644 index 0000000..884e30b Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/lightbox-thumbnail.jpg differ diff --git a/src/wp-content/themes/broadside/images/portfolio/lightbox.jpg b/src/wp-content/themes/broadside/images/portfolio/lightbox.jpg new file mode 100644 index 0000000..55c95a8 Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/lightbox.jpg differ diff --git a/src/wp-content/themes/broadside/images/portfolio/minigallery_img1.png b/src/wp-content/themes/broadside/images/portfolio/minigallery_img1.png new file mode 100644 index 0000000..d7f923f Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/minigallery_img1.png differ diff --git a/src/wp-content/themes/broadside/images/portfolio/minigallery_img2.png b/src/wp-content/themes/broadside/images/portfolio/minigallery_img2.png new file mode 100644 index 0000000..d7f923f Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/minigallery_img2.png differ diff --git a/src/wp-content/themes/broadside/images/portfolio/minigallery_img3.png b/src/wp-content/themes/broadside/images/portfolio/minigallery_img3.png new file mode 100644 index 0000000..d7f923f Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/minigallery_img3.png differ diff --git a/src/wp-content/themes/broadside/images/portfolio/minigallery_img4.png b/src/wp-content/themes/broadside/images/portfolio/minigallery_img4.png new file mode 100644 index 0000000..d7f923f Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/minigallery_img4.png differ diff --git a/src/wp-content/themes/broadside/images/portfolio/photo-center-thumbnail.jpg b/src/wp-content/themes/broadside/images/portfolio/photo-center-thumbnail.jpg new file mode 100644 index 0000000..7b5c2ed Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/photo-center-thumbnail.jpg differ diff --git a/src/wp-content/themes/broadside/images/portfolio/photo-center.jpg b/src/wp-content/themes/broadside/images/portfolio/photo-center.jpg new file mode 100644 index 0000000..419ddcd Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/photo-center.jpg differ diff --git a/src/wp-content/themes/broadside/images/portfolio/photo-left.jpg b/src/wp-content/themes/broadside/images/portfolio/photo-left.jpg new file mode 100644 index 0000000..ea3f513 Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/photo-left.jpg differ diff --git a/src/wp-content/themes/broadside/images/portfolio/photo-right.jpg b/src/wp-content/themes/broadside/images/portfolio/photo-right.jpg new file mode 100644 index 0000000..1d9956b Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/photo-right.jpg differ diff --git a/src/wp-content/themes/broadside/images/portfolio/portfolio-item1-thumb.jpg b/src/wp-content/themes/broadside/images/portfolio/portfolio-item1-thumb.jpg new file mode 100644 index 0000000..803afcc Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/portfolio-item1-thumb.jpg differ diff --git a/src/wp-content/themes/broadside/images/portfolio/portfolio-item2-thumb.jpg b/src/wp-content/themes/broadside/images/portfolio/portfolio-item2-thumb.jpg new file mode 100644 index 0000000..55ad67c Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/portfolio-item2-thumb.jpg differ diff --git a/src/wp-content/themes/broadside/images/portfolio/portfolio-item3-thumb.jpg b/src/wp-content/themes/broadside/images/portfolio/portfolio-item3-thumb.jpg new file mode 100644 index 0000000..f56d3da Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/portfolio-item3-thumb.jpg differ diff --git a/src/wp-content/themes/broadside/images/portfolio/portfolio-item4-thumb.jpg b/src/wp-content/themes/broadside/images/portfolio/portfolio-item4-thumb.jpg new file mode 100644 index 0000000..1e3fb1f Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/portfolio-item4-thumb.jpg differ diff --git a/src/wp-content/themes/broadside/images/portfolio/portfolio-item5-thumb.jpg b/src/wp-content/themes/broadside/images/portfolio/portfolio-item5-thumb.jpg new file mode 100644 index 0000000..06b45b3 Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/portfolio-item5-thumb.jpg differ diff --git a/src/wp-content/themes/broadside/images/portfolio/portfolio-item6-thumb.jpg b/src/wp-content/themes/broadside/images/portfolio/portfolio-item6-thumb.jpg new file mode 100644 index 0000000..2825941 Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/portfolio-item6-thumb.jpg differ diff --git a/src/wp-content/themes/broadside/images/portfolio/portfolio-item7-thumb.jpg b/src/wp-content/themes/broadside/images/portfolio/portfolio-item7-thumb.jpg new file mode 100644 index 0000000..1006a60 Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/portfolio-item7-thumb.jpg differ diff --git a/src/wp-content/themes/broadside/images/portfolio/portfolio-item8-thumb.jpg b/src/wp-content/themes/broadside/images/portfolio/portfolio-item8-thumb.jpg new file mode 100644 index 0000000..bfa7f7e Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/portfolio-item8-thumb.jpg differ diff --git a/src/wp-content/themes/broadside/images/portfolio/sample_img_2.png b/src/wp-content/themes/broadside/images/portfolio/sample_img_2.png new file mode 100644 index 0000000..056dc8f Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/sample_img_2.png differ diff --git a/src/wp-content/themes/broadside/images/portfolio/sample_img_3.png b/src/wp-content/themes/broadside/images/portfolio/sample_img_3.png new file mode 100644 index 0000000..8cabefb Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/sample_img_3.png differ diff --git a/src/wp-content/themes/broadside/images/portfolio/sample_img_4.png b/src/wp-content/themes/broadside/images/portfolio/sample_img_4.png new file mode 100644 index 0000000..8cabefb Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/sample_img_4.png differ diff --git a/src/wp-content/themes/broadside/images/portfolio/sample_img_5.png b/src/wp-content/themes/broadside/images/portfolio/sample_img_5.png new file mode 100644 index 0000000..8cabefb Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/sample_img_5.png differ diff --git a/src/wp-content/themes/broadside/images/portfolio/sample_img_6.png b/src/wp-content/themes/broadside/images/portfolio/sample_img_6.png new file mode 100644 index 0000000..25fc7b2 Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/sample_img_6.png differ diff --git a/src/wp-content/themes/broadside/images/portfolio/services_img_sample_5.png b/src/wp-content/themes/broadside/images/portfolio/services_img_sample_5.png new file mode 100644 index 0000000..b5771fa Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/services_img_sample_5.png differ diff --git a/src/wp-content/themes/broadside/images/portfolio/video-thumnail.jpg b/src/wp-content/themes/broadside/images/portfolio/video-thumnail.jpg new file mode 100644 index 0000000..2d80e5c Binary files /dev/null and b/src/wp-content/themes/broadside/images/portfolio/video-thumnail.jpg differ diff --git a/src/wp-content/themes/broadside/images/services_img_sample_1.png b/src/wp-content/themes/broadside/images/services_img_sample_1.png new file mode 100644 index 0000000..1f5bcb6 Binary files /dev/null and b/src/wp-content/themes/broadside/images/services_img_sample_1.png differ diff --git a/src/wp-content/themes/broadside/images/services_img_sample_2.png b/src/wp-content/themes/broadside/images/services_img_sample_2.png new file mode 100644 index 0000000..001410b Binary files /dev/null and b/src/wp-content/themes/broadside/images/services_img_sample_2.png differ diff --git a/src/wp-content/themes/broadside/images/services_img_sample_3.png b/src/wp-content/themes/broadside/images/services_img_sample_3.png new file mode 100644 index 0000000..bfc9d88 Binary files /dev/null and b/src/wp-content/themes/broadside/images/services_img_sample_3.png differ diff --git a/src/wp-content/themes/broadside/images/shadow.png b/src/wp-content/themes/broadside/images/shadow.png new file mode 100644 index 0000000..c04d21b Binary files /dev/null and b/src/wp-content/themes/broadside/images/shadow.png differ diff --git a/src/wp-content/themes/broadside/images/sidebar-arrow.png b/src/wp-content/themes/broadside/images/sidebar-arrow.png new file mode 100644 index 0000000..6ac1455 Binary files /dev/null and b/src/wp-content/themes/broadside/images/sidebar-arrow.png differ diff --git a/src/wp-content/themes/broadside/images/social-icons/email_16.png b/src/wp-content/themes/broadside/images/social-icons/email_16.png new file mode 100644 index 0000000..2cabb17 Binary files /dev/null and b/src/wp-content/themes/broadside/images/social-icons/email_16.png differ diff --git a/src/wp-content/themes/broadside/images/social-icons/facebook_16.png b/src/wp-content/themes/broadside/images/social-icons/facebook_16.png new file mode 100644 index 0000000..f0faf29 Binary files /dev/null and b/src/wp-content/themes/broadside/images/social-icons/facebook_16.png differ diff --git a/src/wp-content/themes/broadside/images/social-icons/flickr_16.png b/src/wp-content/themes/broadside/images/social-icons/flickr_16.png new file mode 100644 index 0000000..4a6b134 Binary files /dev/null and b/src/wp-content/themes/broadside/images/social-icons/flickr_16.png differ diff --git a/src/wp-content/themes/broadside/images/social-icons/google_16.png b/src/wp-content/themes/broadside/images/social-icons/google_16.png new file mode 100644 index 0000000..aeaca23 Binary files /dev/null and b/src/wp-content/themes/broadside/images/social-icons/google_16.png differ diff --git a/src/wp-content/themes/broadside/images/social-icons/stumbleupon_16.png b/src/wp-content/themes/broadside/images/social-icons/stumbleupon_16.png new file mode 100644 index 0000000..484ba49 Binary files /dev/null and b/src/wp-content/themes/broadside/images/social-icons/stumbleupon_16.png differ diff --git a/src/wp-content/themes/broadside/images/social-icons/twitter_16.png b/src/wp-content/themes/broadside/images/social-icons/twitter_16.png new file mode 100644 index 0000000..2bcd957 Binary files /dev/null and b/src/wp-content/themes/broadside/images/social-icons/twitter_16.png differ diff --git a/src/wp-content/themes/broadside/images/social-icons/vimeo_16.png b/src/wp-content/themes/broadside/images/social-icons/vimeo_16.png new file mode 100644 index 0000000..dc6fc51 Binary files /dev/null and b/src/wp-content/themes/broadside/images/social-icons/vimeo_16.png differ diff --git a/src/wp-content/themes/broadside/images/social-icons/youtube_16.png b/src/wp-content/themes/broadside/images/social-icons/youtube_16.png new file mode 100644 index 0000000..2281d7f Binary files /dev/null and b/src/wp-content/themes/broadside/images/social-icons/youtube_16.png differ diff --git a/src/wp-content/themes/broadside/images/team-member.png b/src/wp-content/themes/broadside/images/team-member.png new file mode 100644 index 0000000..8469d65 Binary files /dev/null and b/src/wp-content/themes/broadside/images/team-member.png differ diff --git a/src/wp-content/themes/broadside/index.php b/src/wp-content/themes/broadside/index.php new file mode 100644 index 0000000..7f0f25d --- /dev/null +++ b/src/wp-content/themes/broadside/index.php @@ -0,0 +1,49 @@ + +
    + + +
    +

    + +

    + +
    + +
    px;"> + + + +
    > + +
    + + +
    +
    +
    +

    + Posted by in | +
    +
    +
    + +
    +
    + +
    + + + + + + + + + +
    +
    + \ No newline at end of file diff --git a/src/wp-content/themes/broadside/js/custom-no-hover.js b/src/wp-content/themes/broadside/js/custom-no-hover.js new file mode 100644 index 0000000..e5f636b --- /dev/null +++ b/src/wp-content/themes/broadside/js/custom-no-hover.js @@ -0,0 +1,147 @@ +//Lightbox Code +jQuery(document).ready(function($) { + $("a.fancylightbox").fancybox({ + 'titleShow' : true, + 'titlePosition' : 'over', + 'transitionIn' : 'fade', + 'transitionOut' : 'fade', + 'overlayOpacity': '0.5', + 'overlayColor' : '#333' + }); + $("a[rel=portfolio]").fancybox({ + 'titleShow' : true, + 'titlePosition' : 'over', + 'transitionIn' : 'elastic', + 'transitionOut' : 'elastic', + 'overlayOpacity': '0.5', + 'overlayColor' : '#333' + }); + $(".videolightbox").fancybox({ + 'titleShow' : false, + 'transitionIn' : 'fade', + 'transitionOut' : 'fade', + 'type' : 'iframe', + 'overlayOpacity': '0.5', + 'overlayColor' : '#333' + }); + $(".buttonvideolightbox").fancybox({ + 'titleShow' : false, + 'transitionIn' : 'fade', + 'transitionOut' : 'fade', + 'type' : 'iframe', + 'overlayOpacity': '0.5', + 'overlayColor' : '#333' + }); + $(".iframe-popup").fancybox({ + 'width' : '75%', + 'height' : '75%', + 'autoScale' : false, + 'transitionIn' : 'none', + 'transitionOut' : 'none', + 'type' : 'iframe' + }); +}); + +//Transparency Adjustments +jQuery(document).ready(function($) { + $('.transparent').each(function() { + $(this).hover( + function() { + $(this).stop().animate({ opacity: 0.6 }, 400); + }, + function() { + $(this).stop().animate({ opacity: 1.0 }, 400); + }) + }); +}); + + + + +//Hover Menu +jQuery(document).ready(function($) +{ + slide(".sf-menu", 7, 0, 150, .8); +}); + +function slide(navigation_id, pad_out, pad_in, time, multiplier) +{ + // creates the target paths + var list_elements = navigation_id + " li"; + var link_elements = list_elements + " a"; + + // initiates the timer used for the sliding animation + var timer = 0; + + // creates the slide animation for all list elements + jQuery(list_elements).each(function(i) + { + // margin left = - ([width of element] + [total vertical padding of element]) + jQuery(this).css("margin-left","-180px"); + // updates timer + timer = (timer*multiplier + time); + jQuery(this).animate({ marginLeft: "0" }, timer); + jQuery(this).animate({ marginLeft: "0" }, timer); + jQuery(this).animate({ marginLeft: "0" }, timer); + }); + + // creates the hover-slide effect for all link elements + jQuery(link_elements).each(function(i) + { + jQuery(this).hover( + function() + { + jQuery(this).animate({ paddingLeft: pad_out }, 150); + }, + function() + { + jQuery(this).animate({ paddingLeft: pad_in }, 150); + }); + }); +} + + + + +//IE7 Z-Index Fix +jQuery(document).ready(function($) { + if ($.browser.msie && parseInt($.browser.version) == 7) { + var zIndexNumber = 1000; + + $('div').each(function() { + $(this).css('zIndex', zIndexNumber); + zIndexNumber -= 10; + }); + } +}); + + + + +//Full Screen Background Image Load +jQuery(window).load(function() { + + var theWindow = jQuery(window), + $bg = jQuery("#bg"), + aspectRatio = $bg.width() / $bg.height(); + + function resizeBg() { + + if ( (theWindow.width() / theWindow.height()) < aspectRatio ) { + $bg + .removeClass() + .addClass('bgheight'); + } else { + $bg + .removeClass() + .addClass('bgwidth'); + } + + } + + theWindow.resize(function() { + resizeBg(); + }).trigger("resize"); + +}); + diff --git a/src/wp-content/themes/broadside/js/custom.js b/src/wp-content/themes/broadside/js/custom.js new file mode 100644 index 0000000..0321b90 --- /dev/null +++ b/src/wp-content/themes/broadside/js/custom.js @@ -0,0 +1,159 @@ +//Lightbox Code +jQuery(document).ready(function($) { + $("a.fancylightbox").fancybox({ + 'titleShow' : true, + 'titlePosition' : 'over', + 'transitionIn' : 'fade', + 'transitionOut' : 'fade', + 'overlayOpacity': '0.5', + 'overlayColor' : '#333' + }); + $("a[rel=portfolio]").fancybox({ + 'titleShow' : true, + 'titlePosition' : 'over', + 'transitionIn' : 'elastic', + 'transitionOut' : 'elastic', + 'overlayOpacity': '0.5', + 'overlayColor' : '#333' + }); + $(".videolightbox").fancybox({ + 'titleShow' : false, + 'transitionIn' : 'fade', + 'transitionOut' : 'fade', + 'type' : 'iframe', + 'overlayOpacity': '0.5', + 'overlayColor' : '#333' + }); + $(".buttonvideolightbox").fancybox({ + 'titleShow' : false, + 'transitionIn' : 'fade', + 'transitionOut' : 'fade', + 'type' : 'iframe', + 'overlayOpacity': '0.5', + 'overlayColor' : '#333' + }); + $(".iframe-popup").fancybox({ + 'width' : '75%', + 'height' : '75%', + 'autoScale' : false, + 'transitionIn' : 'none', + 'transitionOut' : 'none', + 'type' : 'iframe' + }); +}); + +//Transparency Adjustments +jQuery(document).ready(function($) { + $('.transparent').each(function() { + $(this).hover( + function() { + $(this).stop().animate({ opacity: 0.6 }, 400); + }, + function() { + $(this).stop().animate({ opacity: 1.0 }, 400); + }) + }); +}); + + + +//View/Hide Menu +jQuery(document).ready(function($) { + $(".sf-menu").hide(); + $(".hover-box").hoverIntent( + function(){ + $(".sf-menu").stop(true, true).slideDown('medium'); + }, + function(){ + $(".sf-menu").slideUp('medium'); + } + ); +}); + + +//Hover Menu +jQuery(document).ready(function($) +{ + slide(".sf-menu", 7, 0, 150, .8); +}); + +function slide(navigation_id, pad_out, pad_in, time, multiplier) +{ + // creates the target paths + var list_elements = navigation_id + " li"; + var link_elements = list_elements + " a"; + + // initiates the timer used for the sliding animation + var timer = 0; + + // creates the slide animation for all list elements + jQuery(list_elements).each(function(i) + { + // margin left = - ([width of element] + [total vertical padding of element]) + jQuery(this).css("margin-left","-180px"); + // updates timer + timer = (timer*multiplier + time); + jQuery(this).animate({ marginLeft: "0" }, timer); + jQuery(this).animate({ marginLeft: "0" }, timer); + jQuery(this).animate({ marginLeft: "0" }, timer); + }); + + // creates the hover-slide effect for all link elements + jQuery(link_elements).each(function(i) + { + jQuery(this).hover( + function() + { + jQuery(this).animate({ paddingLeft: pad_out }, 150); + }, + function() + { + jQuery(this).animate({ paddingLeft: pad_in }, 150); + }); + }); +} + + + + +//IE7 Z-Index Fix +jQuery(document).ready(function($) { + if ($.browser.msie && parseInt($.browser.version) == 7) { + var zIndexNumber = 1000; + + $('div').each(function() { + $(this).css('zIndex', zIndexNumber); + zIndexNumber -= 10; + }); + } +}); + + + + +//Full Screen Background Image Load +jQuery(window).load(function() { + + var theWindow = jQuery(window), + $bg = jQuery("#bg"), + aspectRatio = $bg.width() / $bg.height(); + + function resizeBg() { + + if ( (theWindow.width() / theWindow.height()) < aspectRatio ) { + $bg + .removeClass() + .addClass('bgheight'); + } else { + $bg + .removeClass() + .addClass('bgwidth'); + } + + } + + theWindow.resize(function() { + resizeBg(); + }).trigger("resize"); + +}); \ No newline at end of file diff --git a/src/wp-content/themes/broadside/js/hoverIntent.js b/src/wp-content/themes/broadside/js/hoverIntent.js new file mode 100644 index 0000000..91da57b --- /dev/null +++ b/src/wp-content/themes/broadside/js/hoverIntent.js @@ -0,0 +1,84 @@ +(function($){ + /* hoverIntent by Brian Cherne */ + $.fn.hoverIntent = function(f,g) { + // default configuration options + var cfg = { + sensitivity: 7, + interval: 100, + timeout: 0 + }; + // override configuration options with user supplied object + cfg = $.extend(cfg, g ? { over: f, out: g } : f ); + + // instantiate variables + // cX, cY = current X and Y position of mouse, updated by mousemove event + // pX, pY = previous X and Y position of mouse, set by mouseover and polling interval + var cX, cY, pX, pY; + + // A private function for getting mouse position + var track = function(ev) { + cX = ev.pageX; + cY = ev.pageY; + }; + + // A private function for comparing current and previous mouse position + var compare = function(ev,ob) { + ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); + // compare mouse positions to see if they've crossed the threshold + if ( ( Math.abs(pX-cX) + Math.abs(pY-cY) ) < cfg.sensitivity ) { + $(ob).unbind("mousemove",track); + // set hoverIntent state to true (so mouseOut can be called) + ob.hoverIntent_s = 1; + return cfg.over.apply(ob,[ev]); + } else { + // set previous coordinates for next time + pX = cX; pY = cY; + // use self-calling timeout, guarantees intervals are spaced out properly (avoids JavaScript timer bugs) + ob.hoverIntent_t = setTimeout( function(){compare(ev, ob);} , cfg.interval ); + } + }; + + // A private function for delaying the mouseOut function + var delay = function(ev,ob) { + ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); + ob.hoverIntent_s = 0; + return cfg.out.apply(ob,[ev]); + }; + + // A private function for handling mouse 'hovering' + var handleHover = function(e) { + // next three lines copied from jQuery.hover, ignore children onMouseOver/onMouseOut + var p = (e.type == "mouseover" ? e.fromElement : e.toElement) || e.relatedTarget; + while ( p && p != this ) { try { p = p.parentNode; } catch(e) { p = this; } } + if ( p == this ) { return false; } + + // copy objects to be passed into t (required for event object to be passed in IE) + var ev = jQuery.extend({},e); + var ob = this; + + // cancel hoverIntent timer if it exists + if (ob.hoverIntent_t) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); } + + // else e.type == "onmouseover" + if (e.type == "mouseover") { + // set "previous" X and Y position based on initial entry point + pX = ev.pageX; pY = ev.pageY; + // update "current" X and Y position based on mousemove + $(ob).bind("mousemove",track); + // start polling interval (self-calling timeout) to compare mouse coordinates over time + if (ob.hoverIntent_s != 1) { ob.hoverIntent_t = setTimeout( function(){compare(ev,ob);} , cfg.interval );} + + // else e.type == "onmouseout" + } else { + // unbind expensive mousemove event + $(ob).unbind("mousemove",track); + // if hoverIntent state is true, then call the mouseOut function after the specified delay + if (ob.hoverIntent_s == 1) { ob.hoverIntent_t = setTimeout( function(){delay(ev,ob);} , cfg.timeout );} + } + }; + + // bind the function to the two event listeners + return this.mouseover(handleHover).mouseout(handleHover); + }; + +})(jQuery); \ No newline at end of file diff --git a/src/wp-content/themes/broadside/js/jquery.carouFredSel-4.1.0-packed.js b/src/wp-content/themes/broadside/js/jquery.carouFredSel-4.1.0-packed.js new file mode 100644 index 0000000..88b0663 --- /dev/null +++ b/src/wp-content/themes/broadside/js/jquery.carouFredSel-4.1.0-packed.js @@ -0,0 +1,15 @@ +/* + * jQuery carouFredSel 4.1.0 + * Demo's and documentation: + * caroufredsel.frebsite.nl + * + * Copyright (c) 2010 Fred Heusschen + * www.frebsite.nl + * + * Dual licensed under the MIT and GPL licenses. + * http://en.wikipedia.org/wiki/MIT_License + * http://en.wikipedia.org/wiki/GNU_General_Public_License + */ + + +eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(z($){$.1n.1o=z(o){q(S.W==0)A 16(\'4d 4e 2W.\');q(S.W>1){A S.1p(z(){$(S).1o(o)})}B l=S,$19=l[0],$r=$(S);l.2X=z(o,a){q(y o!=\'1a\')o={};q(y o.U==\'J\'){q(o.U<=2Y)o.U={u:o.U};F o.U={13:o.U}}F{q(y o.U==\'1d\')o.U={Y:o.U}}q(y o.u==\'J\')o.u={C:o.u};F q(y o.u==\'1d\')o.u={C:o.u,1M:o.u,24:o.u};q(a){25=$.1N(G,{},$.1n.1o.2Z,o)}4=$.1N(G,{},$.1n.1o.2Z,o);4.26=P;1v=(4.1v==\'3l\'||4.1v==\'1w\')?\'M\':\'N\';q(4.1v==\'3m\'||4.1v==\'1w\'){4.w=[\'1M\',\'3n\',\'3o\',\'24\',\'3p\',\'3q\',\'1w\',\'2m\',\'1O\',0,1,2,3]}F{4.w=[\'24\',\'3p\',\'3q\',\'1M\',\'3n\',\'3o\',\'2m\',\'1w\',\'1P\',3,2,1,0]}B b=K($r);B c=30(b,4,5,P);q(4[4.w[3]]==\'E\'){4[4.w[3]]=c;4.u[4.w[3]]=c}q(!4.u[4.w[3]]){4.u[4.w[3]]=(31(b,4,5))?\'X\':b[4.w[5]](G)}q(!4[4.w[3]]){4[4.w[3]]=4.u[4.w[3]]}q(!4.u[4.w[0]]){4.u[4.w[0]]=(31(b,4,2))?\'X\':b[4.w[2]](G)}q(!4.u.C&&4.u[4.w[0]]==\'X\'){4.u.C=\'X\'}q(!4.u.C&&!4[4.w[0]]){q(4.u[4.w[0]]!=\'X\'){4[4.w[0]]=32(n.1Q(),4,1)}}q(!4.u.C){4.u.C=(y 4[4.w[0]]==\'J\'&&4.u[4.w[0]]!=\'X\')?1B.3r(4[4.w[0]]/4.u[4.w[0]]):\'X\'}q(!4[4.w[0]]){4[4.w[0]]=(4.u.C!=\'X\'&&4.u[4.w[0]]!=\'X\')?4.u.C*4.u[4.w[0]]:\'X\'}q(4.u.C==\'X\'){4.26=G;4.33=(4[4.w[0]]==\'X\')?32(n.1Q(),4,1):4[4.w[0]];q(4.H===P||4.H===0){4[4.w[0]]=\'X\'}4.u.C=27($r,4,0)}F{q(4.H===P){4.H=0}}q(y 4.H==\'1b\'){4.H=(4[4.w[0]]==\'X\')?0:\'E\'}4.u.1C=4.u.C;4.R=P;q(4.H==\'E\'){4.H=[0,0,0,0];q(4[4.w[0]]!=\'X\'){4.R=\'E\';B p=2n(3s($r,4),4);4.H[4.w[10]]=p[0];4.H[4.w[12]]=p[0]}q(4[4.w[3]]!=\'X\'){B p=(4[4.w[3]]-c)/2;q(p<0)p=0;4.H[4.w[9]]=p;4.H[4.w[11]]=p}}F{4.H=3t(4.H);4.R=(4.H[0]==0&&4.H[1]==0&&4.H[2]==0&&4.H[3]==0)?P:G}q(y 4.u.2o!=\'J\')4.u.2o=(4.26)?1:4.u.C;q(y 4.U.u!=\'J\')4.U.u=(4.26)?\'X\':4.u.C;q(y 4.U.13!=\'J\')4.U.13=4f;4.E=28(4.E,P,G);4.N=28(4.N);4.M=28(4.M);4.V=28(4.V,G);4.E=$.1N(G,{},4.U,4.E);4.N=$.1N(G,{},4.U,4.N);4.M=$.1N(G,{},4.U,4.M);4.V=$.1N(G,{},4.U,4.V);q(y 4.V.2p!=\'14\')4.V.2p=P;q(y 4.V.34!=\'z\')4.V.34=$.1n.1o.3u;q(y 4.E.Z!=\'14\')4.E.Z=G;q(y 4.E.29!=\'14\')4.E.29=G;q(y 4.E.35!=\'J\')4.E.35=0;q(y 4.E.1D!=\'J\')4.E.1D=(4.E.13<10)?4g:4.E.13*5};l.3v=z(){q($r.L(\'1E\')==\'3w\'||$r.L(\'1E\')==\'4h\'){16(\'4i 4j-4k "1E" 4l 4m "4n" 4o "3x".\')}n.L({1E:\'3x\',4p:\'3y\',2a:$r.L(\'2a\'),1O:$r.L(\'1O\'),1P:$r.L(\'1P\'),2b:$r.L(\'2b\')});$r.17(\'3z\',{1M:$r.L(\'1M\'),24:$r.L(\'24\'),2a:$r.L(\'2a\'),1O:$r.L(\'1O\'),1P:$r.L(\'1P\'),2b:$r.L(\'2b\'),\'36\':$r.L(\'36\'),1E:$r.L(\'1E\'),2m:$r.L(\'2m\'),1w:$r.L(\'1w\')}).L({2a:0,1O:0,1P:0,2b:0,\'36\':\'4q\',1E:\'3w\'});q(4.R){K($r).1p(z(){B m=1x($(S).L(4.w[8]));q(1F(m))m=0;$(S).17(\'1g\',m)})}2q(4,I)};l.3A=z(){l.3a();$r.15(\'1q\',z(e,g){q(y g!=\'14\')g=P;q(g)2c=G;q(2r!=1R)4r(2r);q(2s!=1R)3B(2s);q(2t!=1R)3B(2t);B a=4.E.1D-1S,1G=2u-1B.3b(a*2u/4.E.1D);q(1G!=0){q(4.E.3C)4.E.3C.1c($19,1G,a)}});$r.15(\'Z\',z(e,d,f,g){$r.D(\'1q\');q(!4.E.Z)A;q(y g!=\'14\'){q(y f==\'14\')g=f;F q(y d==\'14\')g=d;F g=P}q(y f!=\'J\'){q(y d==\'J\')f=d;F f=0}q(d!=\'N\'&&d!=\'M\')d=1v;q(g)2c=P;q(2c)A;B a=4.E.1D-1S,3D=a+f;1G=2u-1B.3b(a*2u/4.E.1D);2r=3E(z(){q($r.1r(\':3c\')){$r.D(\'Z\',d)}F{1S=0;$r.D(d,4.E)}},3D);q(4.E.1T===\'4s\'){2s=4t(z(){1S+=2Y},2Y)}q(1G==0){q(4.E.3F)4.E.3F.1c($19,1G,a)}q(4.E.3G){2t=3E(z(){4.E.3G.1c($19,1G,a)},f)}});$r.15(\'N M\',z(e){q(2c||$r.1r(\':3c\')||$r.1r(\':3y\')){e.3H();A}q(4.u.2o>=I){16(\'1U 3I u: 2v 2w\');e.3H();A}1S=0});q(4.26){$r.15(\'N\',z(e,a,b){q(y a==\'J\')b=a;q(y a!=\'1a\')a=4.N;q(y b!=\'J\')b=(y a.u==\'J\')?a.u:4.u.C;2d=b;4.u.1C=4.u.C;B c=K($r);q(4.R){1e(c,4)}4.u.C=3J($r,4,2d);b=4.u.C-4.u.1C+2d;q(b<=0){4.u.C=27($r,4,I-2d);b=2d}q(4.R){1e(c,4,G)}$r.D(\'2x\',[a,b])});$r.15(\'M\',z(e,a,b){q(y a==\'J\')b=a;q(y a!=\'1a\')a=4.M;q(y b!=\'J\')b=(y a.u==\'J\')?a.u:4.u.C;4.u.1C=4.u.C;B c=K($r);1e(c,4);4.u.C=27($r,4,b);q(4.u.1C-b>=4.u.C){4.u.C=27($r,4,++b)}1e(c,4,G);$r.D(\'2y\',[a,b])})}F{$r.15(\'N\',z(e,a,b){$r.D(\'2x\',[a,b])});$r.15(\'M\',z(e,a,b){$r.D(\'2y\',[a,b])})}$r.15(\'2x\',z(e,b,c){q(y b==\'J\')c=b;q(y b!=\'1a\')b=4.N;q(y c!=\'J\')c=(y b.u==\'J\')?b.u:4.u.C;q(y c!=\'J\')A 16(\'1U a 2z J: 2v 2w\');q(b.2A&&!b.2A.1c($19))A;q(!4.1H){B d=I-O;q(d-c<0){c=d}q(O==0){c=0}}O+=c;q(O>=I)O-=I;q(!4.1H){q(O==0&&c!=0&&b.2B)b.2B.1c($19);q(4.2C){q(c==0){$r.D(\'M\',I-4.u.C);A}}F{q(O==0&&4.N.T)4.N.T.2D(\'2e\');q(4.M.T)4.M.T.3d(\'2e\')}}q(c==0)A;K($r,\':2f(\'+(I-c-1)+\')\').4u($r);q(I<4.u.C+c)K($r,\':1h(\'+((4.u.C+c)-I)+\')\').3K(G).3e($r);B f=3L($r,4,c),1j=3f($r,4),1I=K($r,\':1k(\'+(c-1)+\')\'),1l=f.1i(\':1V\'),1s=1j.1i(\':1V\');q(4.R){1e(1l,4);1e(1s,4)}q(4.R==\'E\'){B p=2n(3f($r,4,c),4)}B g=1W(K($r,\':1h(\'+c+\')\'),4,0),1y=2E(2F(1j,4,G),4,!4.R);q(4.R){1e(1l,4,4.H[4.w[10]]);1e(1I,4,4.H[4.w[12]])}q(4.R==\'E\'){4.H[4.w[9]]=p[1];4.H[4.w[10]]=p[0];4.H[4.w[11]]=p[1];4.H[4.w[12]]=p[0]}B h={},3g={},1X={},1Y={},Q=b.13;q(Q==\'E\')Q=4.U.13/4.U.u*c;F q(Q<=0)Q=0;F q(Q<10)Q=g/Q;q(b.2G)b.2G.1c($19,f,1j,1y,Q);q(4.R){B i=4.H[4.w[12]];1X[4.w[8]]=1I.17(\'1g\');3g[4.w[8]]=1s.17(\'1g\')+4.H[4.w[10]];1Y[4.w[8]]=1l.17(\'1g\');1I.1J().1t(1X,{13:Q,Y:b.Y});1s.1J().1t(3g,{13:Q,Y:b.Y});1l.1J().1t(1Y,{13:Q,Y:b.Y})}F{B i=0}h[4.w[6]]=i;q(4[4.w[0]]==\'X\'||4[4.w[3]]==\'X\'){n.1J().1t(1y,{13:Q,Y:b.Y})}B j=c;$r.L(4.w[6],-g);$r.1t(h,{13:Q,Y:b.Y,3M:z(){q(b.2H)b.2H.1c($19,f,1j,1y);q(I<4.u.C+c){K($r,\':2f(\'+(I-1)+\')\').2g()}B a=K($r,\':1k(\'+(4.u.C+c-1)+\')\');q(4.R)a.L(4.w[8],a.17(\'1g\'))}});$r.D(\'1K\').D(\'Z\',Q)});$r.15(\'2y\',z(e,c,d){q(y c==\'J\')d=c;q(y c!=\'1a\')c=4.M;q(y d!=\'J\')d=(y c.u==\'J\')?c.u:4.u.C;q(y d!=\'J\')A 16(\'1U a 2z J: 2v 2w\');q(c.2A&&!c.2A.1c($19))A;q(!4.1H){q(O==0){q(d>I-4.u.C){d=I-4.u.C}}F{q(O-d<4.u.C){d=O-4.u.C}}}O-=d;q(O<0)O+=I;q(!4.1H){q(O==4.u.C&&d!=0&&c.2B)c.2B.1c($19);q(4.2C){q(d==0){$r.D(\'N\',I-4.u.C);A}}F{q(O==4.u.C&&4.M.T)4.M.T.2D(\'2e\');q(4.N.T)4.N.T.3d(\'2e\')}}q(d==0)A;q(I<4.u.C+d)K($r,\':1h(\'+((4.u.C+d)-I)+\')\').3K(G).3e($r);B f=3N($r,4),1j=3h($r,4,d),1I=f.1i(\':1k(\'+(d-1)+\')\'),1l=f.1i(\':1V\'),1s=1j.1i(\':1V\');q(4.R){1e(1l,4);1e(1s,4)}q(4.R==\'E\'){B p=2n(3h($r,4,d),4)}B g=1W(K($r,\':1h(\'+d+\')\'),4,0),1y=2E(2F(1j,4,G),4,!4.R);q(4.R){1e(1l,4,4.H[4.w[10]]);1e(1s,4,4.H[4.w[10]])}q(4.R==\'E\'){4.H[4.w[9]]=p[1];4.H[4.w[10]]=p[0];4.H[4.w[11]]=p[1];4.H[4.w[12]]=p[0]}B h={},1Y={},1X={},Q=c.13;q(Q==\'E\')Q=4.U.13/4.U.u*d;F q(Q<=0)Q=0;F q(Q<10)Q=g/Q;q(c.2G)c.2G.1c($19,f,1j,1y,Q);q(4.R){1Y[4.w[8]]=1l.17(\'1g\');1X[4.w[8]]=1I.17(\'1g\')+4.H[4.w[12]];1s.L(4.w[8],1s.17(\'1g\')+4.H[4.w[10]]);1l.1J().1t(1Y,{13:Q,Y:c.Y});1I.1J().1t(1X,{13:Q,Y:c.Y})}h[4.w[6]]=-g;q(4[4.w[0]]==\'X\'||4[4.w[3]]==\'X\'){n.1J().1t(1y,{13:Q,Y:c.Y})}B i=d;$r.1t(h,{13:Q,Y:c.Y,3M:z(){q(c.2H)c.2H.1c($19,f,1j,1y);q(I<4.u.C+i){K($r,\':2f(\'+(I-1)+\')\').2g()}B a=(4.R)?4.H[4.w[12]]:0;$r.L(4.w[6],a);B b=K($r,\':1h(\'+i+\')\').3e($r).1i(\':1V\');q(4.R)b.L(4.w[8],b.17(\'1g\'))}});$r.D(\'1K\').D(\'Z\',Q)});$r.15(\'1Z\',z(e,a,b,c,d){q($r.1r(\':3c\'))A;a=2h(a,b,c,O,I,$r);q(a==0)A;q(y d!=\'1a\')d=P;q(4.1H){q(aa)$r.D(\'M\',[d,a]);F $r.D(\'N\',[d,I-a])}});$r.15(\'3O\',z(e,a,b,c,d){q(y a==\'1a\'&&y a.2i==\'1b\')a=$(a);q(y a==\'1d\')a=$(a);q(y a!=\'1a\'||y a.2i==\'1b\'||a.W==0)A 16(\'1U a 2z 1a.\');q(y b==\'1b\'||b==\'3P\'){$r.3i(a)}F{b=2h(b,d,c,O,I,$r);B f=K($r,\':1k(\'+b+\')\');q(4.R){a.1p(z(){B m=1x($(S).L(4.w[8]));q(1F(m))m=0;$(S).17(\'1g\',m)})}q(f.W){q(b=I)O-=I;f.4v(a)}F{$r.3i(a)}}I=K($r).W;$r.D(\'20\');2j($r,4);2q(4,I);$r.D(\'1K\',G)});$r.15(\'3Q\',z(e,a,b,c){q(y a==\'1b\'||a==\'3P\'){K($r,\':1V\').2g()}F{a=2h(a,c,b,O,I,$r);B d=K($r,\':1k(\'+a+\')\');q(d.W){q(a0&&K($r).3T($(h))!=-1){$(S).18(\'21\').21(z(e){e.1u();$r.D(\'1Z\',h)})}})});$r.15(\'2I\',z(e,a){q(O==0)B b=0;F B b=I-O;q(y a==\'z\')a.1c($19,b)});$r.15(\'22\',z(e,a,b){q(y a==\'z\'){a.1c($19,4)}F q(y b==\'z\'){B c=3U(\'4.\'+a);q(y c==\'1b\')c=\'\';b.1c($19,c)}F q(y a!=\'1b\'&&y b!=\'1b\'){3U(\'25.\'+a+\' = b\');l.2X(25);2j($r,4)}});$r.15(\'1L\',z(e){$r.D(\'1q\').L($r.17(\'3z\'));l.3a();n.4y($r)});$r.15(\'1K\',z(e,b){q(!4.V.1f)A;q(y b==\'14\'&&b){K(4.V.1f).2g();2k(B a=0;a<1B.3b(I/4.u.C);a++){B i=K($r,\':1k(\'+2h(a*4.u.C,0,G,O,I,$r)+\')\');4.V.1f.3i(4.V.34(a+1,i))}K(4.V.1f).18(\'21\').1p(z(a){$(S).21(z(e){e.1u();$r.D(\'1Z\',[a*4.u.C,0,G,4.V])})})}B c=(O==0)?0:1B.4z((I-O)/4.u.C);K(4.V.1f).3d(\'2W\').1i(\':1k(\'+c+\')\').2D(\'2W\')})};l.3a=z(){$r.18(\'1q\').18(\'Z\').18(\'N\').18(\'M\').18(\'2x\').18(\'2y\').18(\'1Z\').18(\'3O\').18(\'3Q\').18(\'20\').18(\'1L\').18(\'1K\').18(\'2I\').18(\'22\')};l.3V=z(){q(4.E.1T&&4.E.Z){n.2J(z(){$r.D(\'1q\')},z(){$r.D(\'Z\')})}q(4.N.T){4.N.T.21(z(e){e.1u();$r.D(\'N\')});q(4.N.1T&&4.E.Z){4.N.T.2J(z(){$r.D(\'1q\')},z(){$r.D(\'Z\')})}q(!4.1H&&!4.2C){4.N.T.2D(\'2e\')}}q($.1n.1m){q(4.N.1m){n.1m(z(e,a){q(a>0){e.1u();2K=(y 4.N.1m==\'J\')?4.N.1m:\'\';$r.D(\'N\',2K)}})}q(4.M.1m){n.1m(z(e,a){q(a<0){e.1u();2K=(y 4.M.1m==\'J\')?4.M.1m:\'\';$r.D(\'M\',2K)}})}}q(4.M.T){4.M.T.21(z(e){e.1u();$r.D(\'M\')});q(4.M.1T&&4.E.Z){4.M.T.2J(z(){$r.D(\'1q\')},z(){$r.D(\'Z\')})}}q(4.V.1f){$r.D(\'1K\',G);q(4.V.1T&&4.E.Z){4.V.1f.2J(z(){$r.D(\'1q\')},z(){$r.D(\'Z\')})}}q(4.M.1z||4.N.1z){$(3W).3X(z(e){B k=e.3Y;q(k==4.M.1z){e.1u();$r.D(\'M\')}q(k==4.N.1z){e.1u();$r.D(\'N\')}})}q(4.V.2p){$(3W).3X(z(e){B k=e.3Y;q(k>=49&&k<4A){k=(k-49)*4.u.C;q(k<=I){e.1u();$r.D(\'1Z\',[k,0,G,4.V])}}})}q(4.E.Z){$r.D(\'Z\',4.E.35);q($.1n.29&&4.E.29){$r.29(\'1q\',\'Z\')}}};l.22=z(a,b){16(\'2L "22" 2M 2N 1r 2O, 2P 2Q "22" 2R 2S.\');B c=P;B d=z(a){c=a};q(!a)a=d;q(!b)b=d;$r.D(\'22\',[a,b]);A c};l.3Z=z(){16(\'2L "3Z" 2M 2N 1r 2O, 2P 2Q "2I" 2R 2S.\');B b=P;$r.D(\'2I\',z(a){b=a});A b};l.1L=z(){16(\'2L "1L" 2M 2N 1r 2O, 2P 2Q "1L" 2R 2S.\');$r.D(\'1L\');A l};l.41=z(a,b){16(\'2L "41" 2M 2N 1r 2O, 2P 2Q "20" 2R 2S.\');$r.D(\'20\',[a,b]);A l};q($r.1Q().1r(\'.42\')){B n=$r.1Q();$r.D(\'1L\')}B n=$r.4B(\'<4C 4D="42" />\').1Q(),4={},25=o,I=K($r).W,O=0,2r=1R,2s=1R,2t=1R,1S=0,2c=P,1v=\'M\';l.2X(25,G);l.3v();l.3A();l.3V();$r.D(\'20\');2j($r,4,P);q(4.u.1A!==0&&4.u.1A!==P){B s=4.u.1A;q(s===G){s=2T.4E.3S;q(!s.W)s=0}q(s===\'43\'){s=1B.3r(1B.43()*I)}$r.D(\'1Z\',[s,0,G,{13:0}])}A S};$.1n.1o.2Z={2C:G,1H:G,1v:\'1w\',u:{1A:0},U:{Y:\'4F\',1T:P,1m:P}};$.1n.1o.3u=z(a,b){A\'<44>\'+a+\'\'};z 2q(o,t){q(o.u.2o>=t){16(\'1U 3I u: 2v 2w\');B f=\'4H\'}F{B f=\'4I\'}q(o.N.T)o.N.T[f]();q(o.M.T)o.M.T[f]();q(o.V.1f)o.V.1f[f]()}z 3j(k){q(k==\'3m\')A 39;q(k==\'1w\')A 37;q(k==\'3l\')A 38;q(k==\'4J\')A 40;A-1}z 28(a,b,c){q(y b!=\'14\')b=P;q(y c!=\'14\')c=P;q(y a==\'1b\')a={};q(y a==\'1d\'){B d=3j(a);q(d==-1)a=$(a);F a=d}q(b){q(y a==\'14\')a={2p:a};q(y a.2i!=\'1b\')a={1f:a};q(y a.1f==\'1d\')a.1f=$(a.1f)}F q(c){q(y a==\'14\')a={Z:a};q(y a==\'J\')a={1D:a};q(y a.45!=\'1a\')a.45={}}F{q(y a.2i!=\'1b\')a={T:a};q(y a==\'J\')a={1z:a};q(y a.T==\'1d\')a.T=$(a.T);q(y a.1z==\'1d\')a.1z=3j(a.1z)}A a}z 2h(a,b,c,d,e,f){q(y a==\'1d\'){q(1F(a))a=$(a);F a=1x(a)}q(y a==\'1a\'){q(y a.2i==\'1b\')a=$(a);a=K(f).3T(a);q(a==-1)a=0;q(y c!=\'14\')c=P}F{q(y c!=\'14\')c=G}q(1F(a))a=0;F a=1x(a);q(1F(b))b=0;F b=1x(b);q(c){a+=d}a+=b;q(e>0){46(a>=e){a-=e}46(a<0){a+=e}}A a}z K(c,f){q(y f!=\'1d\')f=\'\';A $(\'> *\'+f,c)}z 3s(c,o){A K(c,\':1h(\'+o.u.C+\')\')}z 3L(c,o,n){A K(c,\':1h(\'+(o.u.1C+n)+\'):2f(\'+(n-1)+\')\')}z 3f(c,o){A K(c,\':1h(\'+o.u.C+\')\')}z 3N(c,o){A K(c,\':1h(\'+o.u.1C+\')\')}z 3h(c,o,n){A K(c,\':1h(\'+(o.u.C+n)+\'):2f(\'+(n-1)+\')\')}z 1e(i,o,m){B x=(y m==\'14\')?m:P;q(y m!=\'J\')m=0;i.1p(z(){B t=1x($(S).L(o.w[8]));q(1F(t))t=0;$(S).17(\'47\',t);$(S).L(o.w[8],((x)?$(S).17(\'47\'):m+$(S).17(\'1g\')))})}z 2F(i,o,a){48=1W(i,o,0,a);4a=2l(i,o,3,a);A[48,4a]}z 2l(i,o,a,b){q(y b!=\'14\')b=P;q(y o[o.w[a]]==\'J\'&&b)A o[o.w[a]];q(y o.u[o.w[a]]==\'J\')A o.u[o.w[a]];A 30(i,o,a+2)}z 30(i,o,a){B s=0;i.1p(z(){B m=$(S)[o.w[a]](G);q(s-1)?[\'4M\',\'4N\']:[\'4O\',\'4P\'];2k(a=0;a<3k.W;a++){B m=1x(b.L(3k[a]));q(1F(m))m=0;d-=m}A d}z 1W(i,o,a,b){q(y b!=\'14\')b=P;q(y o[o.w[a]]==\'J\'&&b)A o[o.w[a]];q(y o.u[o.w[a]]==\'J\')A o.u[o.w[a]]*i.W;A 4b(i,o,a+2)}z 4b(i,o,a){B s=0;i.1p(z(){s+=$(S)[o.w[a]](G)});A s}z 31(i,o,a){B s=P,v=P;i.1p(z(){c=$(S)[o.w[a]]();q(s===P)s=c;F q(s!=c)v=G});A v}z 2E(a,o,p){q(y p!=\'14\')p=G;B b=(o.R&&p)?o.H:[0,0,0,0];B c={};c[o.w[0]]=a[0]+b[1]+b[3];c[o.w[3]]=a[1]+b[0]+b[2];A c}z 2j(a,o,p){B b=a.1Q(),$i=K(a),$l=$i.1i(\':1k(\'+(o.u.C-1)+\')\');b.L(2E(2F($i.1i(\':1h(\'+o.u.C+\')\'),o,G),o,p));q(o.R){$l.L(o.w[8],$l.17(\'1g\')+o.H[o.w[10]]);a.L(o.w[7],o.H[o.w[9]]);a.L(o.w[6],o.H[o.w[12]])}a.L(o.w[0],1W($i,o,0)*2);a.L(o.w[3],2l($i,o,3))}z 3t(p){q(y p==\'1b\')A[0,0,0,0];q(y p==\'J\')A[p,p,p,p];F q(y p==\'1d\')p=p.4c(\'4Q\').4R(\'\').4c(\' \');q(y p!=\'1a\'){A[0,0,0,0]}2k(i 4S p){p[i]=1x(p[i])}4T(p.W){2U 0:A[0,0,0,0];2U 1:A[p[0],p[0],p[0],p[0]];2U 2:A[p[0],p[1],p[0],p[1]];2U 3:A[p[0],p[1],p[2],p[1]];4U:A[p[0],p[1],p[2],p[3]]}}z 2n(a,o){B b=(y o[o.w[3]]==\'J\')?o[o.w[3]]:2l(a,o,3);A[(o[o.w[0]]-1W(a,o,0))/2,(b-2l(a,o,3))/2]}z 3J(b,o,c){B d=K(b),23=0,1A=o.u.C-c-1,x=0;q(1A<0)1A=d.W-1;2k(B a=1A;a>=0;a--){23+=d.1i(\':1k(\'+a+\')\')[o.w[2]](G);q(23>o.33)A x;q(a==0)a=d.W;x++}}z 27(b,o,c){B d=K(b),23=0,x=0;2k(B a=c;a<=d.W-1;a++){23+=d.1i(\':1k(\'+a+\')\')[o.w[2]](G);q(23>o.33)A x;q(a==d.W-1)a=-1;x++}}z 16(m){q(y m==\'1d\')m=\'1o: \'+m;q(2T.2V&&2T.2V.16)2T.2V.16(m);F 4V{2V.16(m)}4W(4X){}A P}$.1n.3R=z(o){A S.1o(o)}})(4Y);',62,309,'||||opts||||||||||||||||||||||if|cfs|||items||dimensions||typeof|function|return|var|visible|trigger|auto|else|true|padding|totalItems|number|getItems|css|next|prev|firstItem|false|a_dur|usePadding|this|button|scroll|pagination|length|variable|easing|play||||duration|boolean|bind|log|data|unbind|tt0|object|undefined|call|string|resetMargin|container|cfs_origCssMargin|lt|filter|c_new|eq|l_old|mousewheel|fn|carouFredSel|each|pause|is|l_new|animate|preventDefault|direction|left|parseInt|w_siz|key|start|Math|oldVisible|pauseDuration|position|isNaN|perc|circular|l_cur|stop|updatePageStatus|destroy|width|extend|marginRight|marginBottom|parent|null|pauseTimePassed|pauseOnHover|Not|last|getTotalSize|a_cur|a_old|slideTo|linkAnchors|click|configuration|total|height|opts_orig|variableVisible|getVisibleItemsNext|getNaviObject|nap|marginTop|marginLeft|pausedGlobal|oI|disabled|gt|remove|getItemIndex|jquery|setSizes|for|getLargestSize|top|getAutoPadding|minimum|keys|showNavi|autoTimeout|autoInterval|timerInterval|100|not|scrolling|slidePrev|slideNext|valid|conditions|onEnd|infinite|addClass|mapWrapperSizes|getSizes|onBefore|onAfter|currentPosition|hover|num|The|public|method|deprecated|use|the|custom|event|window|case|console|selected|init|50|defaults|getTrueLargestSize|hasVariableSizes|getTrueInnerSize|maxDimention|anchorBuilder|delay|float||||unbind_events|ceil|animated|removeClass|appendTo|getNewItemsPrev|a_new|getNewItemsNext|append|getKeyCode|arr|up|right|innerWidth|outerWidth|innerHeight|outerHeight|floor|getCurrentItems|getPadding|pageAnchorBuilder|build|absolute|relative|hidden|cfs_origCss|bind_events|clearInterval|onPausePause|dur2|setTimeout|onPauseEnd|onPauseStart|stopImmediatePropagation|enough|getVisibleItemsPrev|clone|getOldItemsPrev|complete|getOldItemsNext|insertItem|end|removeItem|caroufredsel|hash|index|eval|bind_buttons|document|keyup|keyCode|current_position||link_anchors|caroufredsel_wrapper|random|span|timer|while|cfs_tempCssMargin|s1||s2|getTotalSizeVariable|split|No|element|500|2500|fixed|Carousels|CSS|attribute|should|be|static|or|overflow|none|clearTimeout|resume|setInterval|prependTo|before|body|find|replaceWith|round|58|wrap|div|class|location|swing|href|hide|show|down|toLowerCase|indexOf|paddingLeft|paddingRight|paddingTop|paddingBottom|px|join|in|switch|default|try|catch|err|jQuery'.split('|'),0,{})) \ No newline at end of file diff --git a/src/wp-content/themes/broadside/js/jquery.fancybox.js b/src/wp-content/themes/broadside/js/jquery.fancybox.js new file mode 100644 index 0000000..1373ed0 --- /dev/null +++ b/src/wp-content/themes/broadside/js/jquery.fancybox.js @@ -0,0 +1,46 @@ +/* + * FancyBox - jQuery Plugin + * Simple and fancy lightbox alternative + * + * Examples and documentation at: http://fancybox.net + * + * Copyright (c) 2008 - 2010 Janis Skarnelis + * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated. + * + * Version: 1.3.4 (11/11/2010) + * Requires: jQuery v1.3+ + * + * Dual licensed under the MIT and GPL licenses: + * http://www.opensource.org/licenses/mit-license.php + * http://www.gnu.org/licenses/gpl.html + */ + +;(function(b){var m,t,u,f,D,j,E,n,z,A,q=0,e={},o=[],p=0,d={},l=[],G=null,v=new Image,J=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,W=/[^\.]\.(swf)\s*$/i,K,L=1,y=0,s="",r,i,h=false,B=b.extend(b("
    ")[0],{prop:0}),M=b.browser.msie&&b.browser.version<7&&!window.XMLHttpRequest,N=function(){t.hide();v.onerror=v.onload=null;G&&G.abort();m.empty()},O=function(){if(false===e.onError(o,q,e)){t.hide();h=false}else{e.titleShow=false;e.width="auto";e.height="auto";m.html('

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

    '); +F()}},I=function(){var a=o[q],c,g,k,C,P,w;N();e=b.extend({},b.fn.fancybox.defaults,typeof b(a).data("fancybox")=="undefined"?e:b(a).data("fancybox"));w=e.onStart(o,q,e);if(w===false)h=false;else{if(typeof w=="object")e=b.extend(e,w);k=e.title||(a.nodeName?b(a).attr("title"):a.title)||"";if(a.nodeName&&!e.orig)e.orig=b(a).children("img:first").length?b(a).children("img:first"):b(a);if(k===""&&e.orig&&e.titleFromAlt)k=e.orig.attr("alt");c=e.href||(a.nodeName?b(a).attr("href"):a.href)||null;if(/^(?:javascript)/i.test(c)|| +c=="#")c=null;if(e.type){g=e.type;if(!c)c=e.content}else if(e.content)g="html";else if(c)g=c.match(J)?"image":c.match(W)?"swf":b(a).hasClass("iframe")?"iframe":c.indexOf("#")===0?"inline":"ajax";if(g){if(g=="inline"){a=c.substr(c.indexOf("#"));g=b(a).length>0?"inline":"ajax"}e.type=g;e.href=c;e.title=k;if(e.autoDimensions)if(e.type=="html"||e.type=="inline"||e.type=="ajax"){e.width="auto";e.height="auto"}else e.autoDimensions=false;if(e.modal){e.overlayShow=true;e.hideOnOverlayClick=false;e.hideOnContentClick= +false;e.enableEscapeButton=false;e.showCloseButton=false}e.padding=parseInt(e.padding,10);e.margin=parseInt(e.margin,10);m.css("padding",e.padding+e.margin);b(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){b(this).replaceWith(j.children())});switch(g){case "html":m.html(e.content);F();break;case "inline":if(b(a).parent().is("#fancybox-content")===true){h=false;break}b('
    ').hide().insertBefore(b(a)).bind("fancybox-cleanup",function(){b(this).replaceWith(j.children())}).bind("fancybox-cancel", +function(){b(this).replaceWith(m.children())});b(a).appendTo(m);F();break;case "image":h=false;b.fancybox.showActivity();v=new Image;v.onerror=function(){O()};v.onload=function(){h=true;v.onerror=v.onload=null;e.width=v.width;e.height=v.height;b("").attr({id:"fancybox-img",src:v.src,alt:e.title}).appendTo(m);Q()};v.src=c;break;case "swf":e.scrolling="no";C='';P="";b.each(e.swf,function(x,H){C+='';P+=" "+x+'="'+H+'"'});C+='";m.html(C);F();break;case "ajax":h=false;b.fancybox.showActivity();e.ajax.win=e.ajax.success;G=b.ajax(b.extend({},e.ajax,{url:c,data:e.ajax.data||{},error:function(x){x.status>0&&O()},success:function(x,H,R){if((typeof R=="object"?R:G).status==200){if(typeof e.ajax.win== +"function"){w=e.ajax.win(c,x,H,R);if(w===false){t.hide();return}else if(typeof w=="string"||typeof w=="object")x=w}m.html(x);F()}}}));break;case "iframe":Q()}}else O()}},F=function(){var a=e.width,c=e.height;a=a.toString().indexOf("%")>-1?parseInt((b(window).width()-e.margin*2)*parseFloat(a)/100,10)+"px":a=="auto"?"auto":a+"px";c=c.toString().indexOf("%")>-1?parseInt((b(window).height()-e.margin*2)*parseFloat(c)/100,10)+"px":c=="auto"?"auto":c+"px";m.wrapInner('
    ');e.width=m.width();e.height=m.height();Q()},Q=function(){var a,c;t.hide();if(f.is(":visible")&&false===d.onCleanup(l,p,d)){b.event.trigger("fancybox-cancel");h=false}else{h=true;b(j.add(u)).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");f.is(":visible")&&d.titlePosition!=="outside"&&f.css("height",f.height());l=o;p=q;d=e;if(d.overlayShow){u.css({"background-color":d.overlayColor, +opacity:d.overlayOpacity,cursor:d.hideOnOverlayClick?"pointer":"auto",height:b(document).height()});if(!u.is(":visible")){M&&b("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"});u.show()}}else u.hide();i=X();s=d.title||"";y=0;n.empty().removeAttr("style").removeClass();if(d.titleShow!==false){if(b.isFunction(d.titleFormat))a=d.titleFormat(s,l,p,d);else a=s&&s.length? +d.titlePosition=="float"?'
    '+s+'
    ':'
    '+s+"
    ":false;s=a;if(!(!s||s==="")){n.addClass("fancybox-title-"+d.titlePosition).html(s).appendTo("body").show();switch(d.titlePosition){case "inside":n.css({width:i.width-d.padding*2,marginLeft:d.padding,marginRight:d.padding}); +y=n.outerHeight(true);n.appendTo(D);i.height+=y;break;case "over":n.css({marginLeft:d.padding,width:i.width-d.padding*2,bottom:d.padding}).appendTo(D);break;case "float":n.css("left",parseInt((n.width()-i.width-40)/2,10)*-1).appendTo(f);break;default:n.css({width:i.width-d.padding*2,paddingLeft:d.padding,paddingRight:d.padding}).appendTo(f)}}}n.hide();if(f.is(":visible")){b(E.add(z).add(A)).hide();a=f.position();r={top:a.top,left:a.left,width:f.width(),height:f.height()};c=r.width==i.width&&r.height== +i.height;j.fadeTo(d.changeFade,0.3,function(){var g=function(){j.html(m.contents()).fadeTo(d.changeFade,1,S)};b.event.trigger("fancybox-change");j.empty().removeAttr("filter").css({"border-width":d.padding,width:i.width-d.padding*2,height:e.autoDimensions?"auto":i.height-y-d.padding*2});if(c)g();else{B.prop=0;b(B).animate({prop:1},{duration:d.changeSpeed,easing:d.easingChange,step:T,complete:g})}})}else{f.removeAttr("style");j.css("border-width",d.padding);if(d.transitionIn=="elastic"){r=V();j.html(m.contents()); +f.show();if(d.opacity)i.opacity=0;B.prop=0;b(B).animate({prop:1},{duration:d.speedIn,easing:d.easingIn,step:T,complete:S})}else{d.titlePosition=="inside"&&y>0&&n.show();j.css({width:i.width-d.padding*2,height:e.autoDimensions?"auto":i.height-y-d.padding*2}).html(m.contents());f.css(i).fadeIn(d.transitionIn=="none"?0:d.speedIn,S)}}}},Y=function(){if(d.enableEscapeButton||d.enableKeyboardNav)b(document).bind("keydown.fb",function(a){if(a.keyCode==27&&d.enableEscapeButton){a.preventDefault();b.fancybox.close()}else if((a.keyCode== +37||a.keyCode==39)&&d.enableKeyboardNav&&a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&a.target.tagName!=="SELECT"){a.preventDefault();b.fancybox[a.keyCode==37?"prev":"next"]()}});if(d.showNavArrows){if(d.cyclic&&l.length>1||p!==0)z.show();if(d.cyclic&&l.length>1||p!=l.length-1)A.show()}else{z.hide();A.hide()}},S=function(){if(!b.support.opacity){j.get(0).style.removeAttribute("filter");f.get(0).style.removeAttribute("filter")}e.autoDimensions&&j.css("height","auto");f.css("height","auto"); +s&&s.length&&n.show();d.showCloseButton&&E.show();Y();d.hideOnContentClick&&j.bind("click",b.fancybox.close);d.hideOnOverlayClick&&u.bind("click",b.fancybox.close);b(window).bind("resize.fb",b.fancybox.resize);d.centerOnScroll&&b(window).bind("scroll.fb",b.fancybox.center);if(d.type=="iframe")b('').appendTo(j); +f.show();h=false;b.fancybox.center();d.onComplete(l,p,d);var a,c;if(l.length-1>p){a=l[p+1].href;if(typeof a!=="undefined"&&a.match(J)){c=new Image;c.src=a}}if(p>0){a=l[p-1].href;if(typeof a!=="undefined"&&a.match(J)){c=new Image;c.src=a}}},T=function(a){var c={width:parseInt(r.width+(i.width-r.width)*a,10),height:parseInt(r.height+(i.height-r.height)*a,10),top:parseInt(r.top+(i.top-r.top)*a,10),left:parseInt(r.left+(i.left-r.left)*a,10)};if(typeof i.opacity!=="undefined")c.opacity=a<0.5?0.5:a;f.css(c); +j.css({width:c.width-d.padding*2,height:c.height-y*a-d.padding*2})},U=function(){return[b(window).width()-d.margin*2,b(window).height()-d.margin*2,b(document).scrollLeft()+d.margin,b(document).scrollTop()+d.margin]},X=function(){var a=U(),c={},g=d.autoScale,k=d.padding*2;c.width=d.width.toString().indexOf("%")>-1?parseInt(a[0]*parseFloat(d.width)/100,10):d.width+k;c.height=d.height.toString().indexOf("%")>-1?parseInt(a[1]*parseFloat(d.height)/100,10):d.height+k;if(g&&(c.width>a[0]||c.height>a[1]))if(e.type== +"image"||e.type=="swf"){g=d.width/d.height;if(c.width>a[0]){c.width=a[0];c.height=parseInt((c.width-k)/g+k,10)}if(c.height>a[1]){c.height=a[1];c.width=parseInt((c.height-k)*g+k,10)}}else{c.width=Math.min(c.width,a[0]);c.height=Math.min(c.height,a[1])}c.top=parseInt(Math.max(a[3]-20,a[3]+(a[1]-c.height-40)*0.5),10);c.left=parseInt(Math.max(a[2]-20,a[2]+(a[0]-c.width-40)*0.5),10);return c},V=function(){var a=e.orig?b(e.orig):false,c={};if(a&&a.length){c=a.offset();c.top+=parseInt(a.css("paddingTop"), +10)||0;c.left+=parseInt(a.css("paddingLeft"),10)||0;c.top+=parseInt(a.css("border-top-width"),10)||0;c.left+=parseInt(a.css("border-left-width"),10)||0;c.width=a.width();c.height=a.height();c={width:c.width+d.padding*2,height:c.height+d.padding*2,top:c.top-d.padding-20,left:c.left-d.padding-20}}else{a=U();c={width:d.padding*2,height:d.padding*2,top:parseInt(a[3]+a[1]*0.5,10),left:parseInt(a[2]+a[0]*0.5,10)}}return c},Z=function(){if(t.is(":visible")){b("div",t).css("top",L*-40+"px");L=(L+1)%12}else clearInterval(K)}; +b.fn.fancybox=function(a){if(!b(this).length)return this;b(this).data("fancybox",b.extend({},a,b.metadata?b(this).metadata():{})).unbind("click.fb").bind("click.fb",function(c){c.preventDefault();if(!h){h=true;b(this).blur();o=[];q=0;c=b(this).attr("rel")||"";if(!c||c==""||c==="nofollow")o.push(this);else{o=b("a[rel="+c+"], area[rel="+c+"]");q=o.index(this)}I()}});return this};b.fancybox=function(a,c){var g;if(!h){h=true;g=typeof c!=="undefined"?c:{};o=[];q=parseInt(g.index,10)||0;if(b.isArray(a)){for(var k= +0,C=a.length;ko.length||q<0)q=0;I()}};b.fancybox.showActivity=function(){clearInterval(K);t.show();K=setInterval(Z,66)};b.fancybox.hideActivity=function(){t.hide()};b.fancybox.next=function(){return b.fancybox.pos(p+ +1)};b.fancybox.prev=function(){return b.fancybox.pos(p-1)};b.fancybox.pos=function(a){if(!h){a=parseInt(a);o=l;if(a>-1&&a1){q=a>=l.length?0:l.length-1;I()}}};b.fancybox.cancel=function(){if(!h){h=true;b.event.trigger("fancybox-cancel");N();e.onCancel(o,q,e);h=false}};b.fancybox.close=function(){function a(){u.fadeOut("fast");n.empty().hide();f.hide();b.event.trigger("fancybox-cleanup");j.empty();d.onClosed(l,p,d);l=e=[];p=q=0;d=e={};h=false}if(!(h||f.is(":hidden"))){h= +true;if(d&&false===d.onCleanup(l,p,d))h=false;else{N();b(E.add(z).add(A)).hide();b(j.add(u)).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");j.find("iframe").attr("src",M&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank");d.titlePosition!=="inside"&&n.empty();f.stop();if(d.transitionOut=="elastic"){r=V();var c=f.position();i={top:c.top,left:c.left,width:f.width(),height:f.height()};if(d.opacity)i.opacity=1;n.empty().hide();B.prop=1; +b(B).animate({prop:0},{duration:d.speedOut,easing:d.easingOut,step:T,complete:a})}else f.fadeOut(d.transitionOut=="none"?0:d.speedOut,a)}}};b.fancybox.resize=function(){u.is(":visible")&&u.css("height",b(document).height());b.fancybox.center(true)};b.fancybox.center=function(a){var c,g;if(!h){g=a===true?1:0;c=U();!g&&(f.width()>c[0]||f.height()>c[1])||f.stop().animate({top:parseInt(Math.max(c[3]-20,c[3]+(c[1]-j.height()-40)*0.5-d.padding)),left:parseInt(Math.max(c[2]-20,c[2]+(c[0]-j.width()-40)*0.5- +d.padding))},typeof a=="number"?a:200)}};b.fancybox.init=function(){if(!b("#fancybox-wrap").length){b("body").append(m=b('
    '),t=b('
    '),u=b('
    '),f=b('
    '));D=b('
    ').append('
    ').appendTo(f); +D.append(j=b('
    '),E=b(''),n=b('
    '),z=b(''),A=b(''));E.click(b.fancybox.close);t.click(b.fancybox.cancel);z.click(function(a){a.preventDefault();b.fancybox.prev()});A.click(function(a){a.preventDefault();b.fancybox.next()}); +b.fn.mousewheel&&f.bind("mousewheel.fb",function(a,c){if(h)a.preventDefault();else if(b(a.target).get(0).clientHeight==0||b(a.target).get(0).scrollHeight===b(a.target).get(0).clientHeight){a.preventDefault();b.fancybox[c>0?"prev":"next"]()}});b.support.opacity||f.addClass("fancybox-ie");if(M){t.addClass("fancybox-ie6");f.addClass("fancybox-ie6");b('').prependTo(D)}}}; +b.fn.fancybox.defaults={padding:10,margin:40,opacity:false,modal:false,cyclic:false,scrolling:"auto",width:560,height:340,autoScale:true,autoDimensions:true,centerOnScroll:false,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:true,hideOnContentClick:false,overlayShow:true,overlayOpacity:0.7,overlayColor:"#777",titleShow:true,titlePosition:"float",titleFormat:null,titleFromAlt:false,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing", +easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,enableKeyboardNav:true,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}};b(document).ready(function(){b.fancybox.init()})})(jQuery); \ No newline at end of file diff --git a/src/wp-content/themes/broadside/js/jquery.jscrollpane.min.js b/src/wp-content/themes/broadside/js/jquery.jscrollpane.min.js new file mode 100644 index 0000000..5742335 --- /dev/null +++ b/src/wp-content/themes/broadside/js/jquery.jscrollpane.min.js @@ -0,0 +1,11 @@ +/* + * jScrollPane - v2.0.0beta10 - 2011-04-17 + * http://jscrollpane.kelvinluck.com/ + * + * Copyright (c) 2010 Kelvin Luck + * Dual licensed under the MIT and GPL licenses. + */ +(function(b,a,c){b.fn.jScrollPane=function(f){function d(E,P){var aA,R=this,Z,al,w,an,U,aa,z,r,aB,aG,aw,j,J,i,k,ab,V,ar,Y,u,B,at,ag,ao,H,m,av,az,y,ax,aJ,g,M,ak=true,Q=true,aI=false,l=false,aq=E.clone(false,false).empty(),ad=b.fn.mwheelIntent?"mwheelIntent.jsp":"mousewheel.jsp";aJ=E.css("paddingTop")+" "+E.css("paddingRight")+" "+E.css("paddingBottom")+" "+E.css("paddingLeft");g=(parseInt(E.css("paddingLeft"),10)||0)+(parseInt(E.css("paddingRight"),10)||0);function au(aS){var aN,aP,aO,aL,aK,aR,aQ=false,aM=false;aA=aS;if(Z===c){aK=E.scrollTop();aR=E.scrollLeft();E.css({overflow:"hidden",padding:0});al=E.innerWidth()+g;w=E.innerHeight();E.width(al);Z=b('
    ').css("padding",aJ).append(E.children());an=b('
    ').css({width:al+"px",height:w+"px"}).append(Z).appendTo(E)}else{E.css("width","");aQ=aA.stickToBottom&&L();aM=aA.stickToRight&&C();aL=E.innerWidth()+g!=al||E.outerHeight()!=w;if(aL){al=E.innerWidth()+g;w=E.innerHeight();an.css({width:al+"px",height:w+"px"})}if(!aL&&M==U&&Z.outerHeight()==aa){E.width(al);return}M=U;Z.css("width","");E.width(al);an.find(">.jspVerticalBar,>.jspHorizontalBar").remove().end()}Z.css("overflow","auto");if(aS.contentWidth){U=aS.contentWidth}else{U=Z[0].scrollWidth}aa=Z[0].scrollHeight;Z.css("overflow","");z=U/al;r=aa/w;aB=r>1;aG=z>1;if(!(aG||aB)){E.removeClass("jspScrollable");Z.css({top:0,width:an.width()-g});o();F();S();x();aj()}else{E.addClass("jspScrollable");aN=aA.maintainPosition&&(J||ab);if(aN){aP=aE();aO=aC()}aH();A();G();if(aN){O(aM?(U-al):aP,false);N(aQ?(aa-w):aO,false)}K();ah();ap();if(aA.enableKeyboardNavigation){T()}if(aA.clickOnTrack){q()}D();if(aA.hijackInternalLinks){n()}}if(aA.autoReinitialise&&!ax){ax=setInterval(function(){au(aA)},aA.autoReinitialiseDelay)}else{if(!aA.autoReinitialise&&ax){clearInterval(ax)}}aK&&E.scrollTop(0)&&N(aK,false);aR&&E.scrollLeft(0)&&O(aR,false);E.trigger("jsp-initialised",[aG||aB])}function aH(){if(aB){an.append(b('
    ').append(b('
    '),b('
    ').append(b('
    ').append(b('
    '),b('
    '))),b('
    ')));V=an.find(">.jspVerticalBar");ar=V.find(">.jspTrack");aw=ar.find(">.jspDrag");if(aA.showArrows){at=b('').bind("mousedown.jsp",aF(0,-1)).bind("click.jsp",aD);ag=b('').bind("mousedown.jsp",aF(0,1)).bind("click.jsp",aD);if(aA.arrowScrollOnHover){at.bind("mouseover.jsp",aF(0,-1,at));ag.bind("mouseover.jsp",aF(0,1,ag))}am(ar,aA.verticalArrowPositions,at,ag)}u=w;an.find(">.jspVerticalBar>.jspCap:visible,>.jspVerticalBar>.jspArrow").each(function(){u-=b(this).outerHeight()});aw.hover(function(){aw.addClass("jspHover")},function(){aw.removeClass("jspHover")}).bind("mousedown.jsp",function(aK){b("html").bind("dragstart.jsp selectstart.jsp",aD);aw.addClass("jspActive");var s=aK.pageY-aw.position().top;b("html").bind("mousemove.jsp",function(aL){W(aL.pageY-s,false)}).bind("mouseup.jsp mouseleave.jsp",ay);return false});p()}}function p(){ar.height(u+"px");J=0;Y=aA.verticalGutter+ar.outerWidth();Z.width(al-Y-g);try{if(V.position().left===0){Z.css("margin-left",Y+"px")}}catch(s){}}function A(){if(aG){an.append(b('
    ').append(b('
    '),b('
    ').append(b('
    ').append(b('
    '),b('
    '))),b('
    ')));ao=an.find(">.jspHorizontalBar");H=ao.find(">.jspTrack");i=H.find(">.jspDrag");if(aA.showArrows){az=b('').bind("mousedown.jsp",aF(-1,0)).bind("click.jsp",aD);y=b('').bind("mousedown.jsp",aF(1,0)).bind("click.jsp",aD); +if(aA.arrowScrollOnHover){az.bind("mouseover.jsp",aF(-1,0,az));y.bind("mouseover.jsp",aF(1,0,y))}am(H,aA.horizontalArrowPositions,az,y)}i.hover(function(){i.addClass("jspHover")},function(){i.removeClass("jspHover")}).bind("mousedown.jsp",function(aK){b("html").bind("dragstart.jsp selectstart.jsp",aD);i.addClass("jspActive");var s=aK.pageX-i.position().left;b("html").bind("mousemove.jsp",function(aL){X(aL.pageX-s,false)}).bind("mouseup.jsp mouseleave.jsp",ay);return false});m=an.innerWidth();ai()}}function ai(){an.find(">.jspHorizontalBar>.jspCap:visible,>.jspHorizontalBar>.jspArrow").each(function(){m-=b(this).outerWidth()});H.width(m+"px");ab=0}function G(){if(aG&&aB){var aK=H.outerHeight(),s=ar.outerWidth();u-=aK;b(ao).find(">.jspCap:visible,>.jspArrow").each(function(){m+=b(this).outerWidth()});m-=s;w-=s;al-=aK;H.parent().append(b('
    ').css("width",aK+"px"));p();ai()}if(aG){Z.width((an.outerWidth()-g)+"px")}aa=Z.outerHeight();r=aa/w;if(aG){av=Math.ceil(1/z*m);if(av>aA.horizontalDragMaxWidth){av=aA.horizontalDragMaxWidth}else{if(avaA.verticalDragMaxHeight){B=aA.verticalDragMaxHeight}else{if(BaU){R.scrollByY(-aR)}else{W(aU)}}else{if(aO>0){if(J+aSaU){R.scrollByX(-aR)}else{X(aU)}}else{if(aO>0){if(ab+aSj){s=j}}if(aK===c){aK=aA.animateScroll}if(aK){R.animate(aw,"top",s,ae)}else{aw.css("top",s);ae(s)}}function ae(aK){if(aK===c){aK=aw.position().top}an.scrollTop(0);J=aK;var aN=J===0,aL=J==j,aM=aK/j,s=-aM*(aa-w);if(ak!=aN||aI!=aL){ak=aN;aI=aL;E.trigger("jsp-arrow-change",[ak,aI,Q,l])}v(aN,aL);Z.css("top",s);E.trigger("jsp-scroll-y",[-s,aN,aL]).trigger("scroll")}function X(aK,s){if(!aG){return}if(aK<0){aK=0}else{if(aK>k){aK=k}}if(s===c){s=aA.animateScroll}if(s){R.animate(i,"left",aK,af) +}else{i.css("left",aK);af(aK)}}function af(aK){if(aK===c){aK=i.position().left}an.scrollTop(0);ab=aK;var aN=ab===0,aM=ab==k,aL=aK/k,s=-aL*(U-al);if(Q!=aN||l!=aM){Q=aN;l=aM;E.trigger("jsp-arrow-change",[ak,aI,Q,l])}t(aN,aM);Z.css("left",s);E.trigger("jsp-scroll-x",[-s,aN,aM]).trigger("scroll")}function v(aK,s){if(aA.showArrows){at[aK?"addClass":"removeClass"]("jspDisabled");ag[s?"addClass":"removeClass"]("jspDisabled")}}function t(aK,s){if(aA.showArrows){az[aK?"addClass":"removeClass"]("jspDisabled");y[s?"addClass":"removeClass"]("jspDisabled")}}function N(s,aK){var aL=s/(aa-w);W(aL*j,aK)}function O(aK,s){var aL=aK/(U-al);X(aL*k,s)}function ac(aX,aS,aL){var aP,aM,aN,s=0,aW=0,aK,aR,aQ,aU,aT,aV;try{aP=b(aX)}catch(aO){return}aM=aP.outerHeight();aN=aP.outerWidth();an.scrollTop(0);an.scrollLeft(0);while(!aP.is(".jspPane")){s+=aP.position().top;aW+=aP.position().left;aP=aP.offsetParent();if(/^body|html$/i.test(aP[0].nodeName)){return}}aK=aC();aQ=aK+w;if(saQ){aT=s-w+aM+aA.verticalGutter}}if(aT){N(aT,aL)}aR=aE();aU=aR+al;if(aWaU){aV=aW-al+aN+aA.horizontalGutter}}if(aV){O(aV,aL)}}function aE(){return -Z.position().left}function aC(){return -Z.position().top}function L(){var s=aa-w;return(s>20)&&(s-aC()<10)}function C(){var s=U-al;return(s>20)&&(s-aE()<10)}function ah(){an.unbind(ad).bind(ad,function(aN,aO,aM,aK){var aL=ab,s=J;R.scrollBy(aM*aA.mouseWheelSpeed,-aK*aA.mouseWheelSpeed,false);return aL==ab&&s==J})}function o(){an.unbind(ad)}function aD(){return false}function K(){Z.find(":input,a").unbind("focus.jsp").bind("focus.jsp",function(s){ac(s.target,false)})}function F(){Z.find(":input,a").unbind("focus.jsp")}function T(){var s,aK,aM=[];aG&&aM.push(ao[0]);aB&&aM.push(V[0]);Z.focus(function(){E.focus()});E.attr("tabindex",0).unbind("keydown.jsp keypress.jsp").bind("keydown.jsp",function(aP){if(aP.target!==this&&!(aM.length&&b(aP.target).closest(aM).length)){return}var aO=ab,aN=J;switch(aP.keyCode){case 40:case 38:case 34:case 32:case 33:case 39:case 37:s=aP.keyCode;aL();break;case 35:N(aa-w);s=null;break;case 36:N(0);s=null;break}aK=aP.keyCode==s&&aO!=ab||aN!=J;return !aK}).bind("keypress.jsp",function(aN){if(aN.keyCode==s){aL()}return !aK});if(aA.hideFocus){E.css("outline","none");if("hideFocus" in an[0]){E.attr("hideFocus",true)}}else{E.css("outline","");if("hideFocus" in an[0]){E.attr("hideFocus",false)}}function aL(){var aO=ab,aN=J;switch(s){case 40:R.scrollByY(aA.keyboardSpeed,false);break;case 38:R.scrollByY(-aA.keyboardSpeed,false);break;case 34:case 32:R.scrollByY(w*aA.scrollPagePercent,false);break;case 33:R.scrollByY(-w*aA.scrollPagePercent,false);break;case 39:R.scrollByX(aA.keyboardSpeed,false);break;case 37:R.scrollByX(-aA.keyboardSpeed,false);break}aK=aO!=ab||aN!=J;return aK}}function S(){E.attr("tabindex","-1").removeAttr("tabindex").unbind("keydown.jsp keypress.jsp")}function D(){if(location.hash&&location.hash.length>1){var aL,aK;try{aL=b(location.hash)}catch(s){return}if(aL.length&&Z.find(location.hash)){if(an.scrollTop()===0){aK=setInterval(function(){if(an.scrollTop()>0){ac(location.hash,true);b(document).scrollTop(an.position().top);clearInterval(aK)}},50)}else{ac(location.hash,true);b(document).scrollTop(an.position().top)}}}}function aj(){b("a.jspHijack").unbind("click.jsp-hijack").removeClass("jspHijack")}function n(){aj();b("a[href^=#]").addClass("jspHijack").bind("click.jsp-hijack",function(){var s=this.href.split("#"),aK;if(s.length>1){aK=s[1];if(aK.length>0&&Z.find("#"+aK).length>0){ac("#"+aK,true);return false}}})}function ap(){var aL,aK,aN,aM,aO,s=false;an.unbind("touchstart.jsp touchmove.jsp touchend.jsp click.jsp-touchclick").bind("touchstart.jsp",function(aP){var aQ=aP.originalEvent.touches[0];aL=aE();aK=aC();aN=aQ.pageX;aM=aQ.pageY;aO=false;s=true}).bind("touchmove.jsp",function(aS){if(!s){return}var aR=aS.originalEvent.touches[0],aQ=ab,aP=J;R.scrollTo(aL+aN-aR.pageX,aK+aM-aR.pageY);aO=aO||Math.abs(aN-aR.pageX)>5||Math.abs(aM-aR.pageY)>5; +return aQ==ab&&aP==J}).bind("touchend.jsp",function(aP){s=false}).bind("click.jsp-touchclick",function(aP){if(aO){aO=false;return false}})}function h(){var s=aC(),aK=aE();E.removeClass("jspScrollable").unbind(".jsp");E.replaceWith(aq.append(Z.children()));aq.scrollTop(s);aq.scrollLeft(aK)}b.extend(R,{reinitialise:function(aK){aK=b.extend({},aA,aK);au(aK)},scrollToElement:function(aL,aK,s){ac(aL,aK,s)},scrollTo:function(aL,s,aK){O(aL,aK);N(s,aK)},scrollToX:function(aK,s){O(aK,s)},scrollToY:function(s,aK){N(s,aK)},scrollToPercentX:function(aK,s){O(aK*(U-al),s)},scrollToPercentY:function(aK,s){N(aK*(aa-w),s)},scrollBy:function(aK,s,aL){R.scrollByX(aK,aL);R.scrollByY(s,aL)},scrollByX:function(s,aL){var aK=aE()+s,aM=aK/(U-al);X(aM*k,aL)},scrollByY:function(s,aL){var aK=aC()+s,aM=aK/(aa-w);W(aM*j,aL)},positionDragX:function(s,aK){X(s,aK)},positionDragY:function(aK,s){W(aK,s)},animate:function(aK,aN,s,aM){var aL={};aL[aN]=s;aK.animate(aL,{duration:aA.animateDuration,ease:aA.animateEase,queue:false,step:aM})},getContentPositionX:function(){return aE()},getContentPositionY:function(){return aC()},getContentWidth:function(){return U},getContentHeight:function(){return aa},getPercentScrolledX:function(){return aE()/(U-al)},getPercentScrolledY:function(){return aC()/(aa-w)},getIsScrollableH:function(){return aG},getIsScrollableV:function(){return aB},getContentPane:function(){return Z},scrollToBottom:function(s){W(j,s)},hijackInternalLinks:function(){n()},destroy:function(){h()}});au(P)}f=b.extend({},b.fn.jScrollPane.defaults,f);b.each(["mouseWheelSpeed","arrowButtonSpeed","trackClickSpeed","keyboardSpeed"],function(){f[this]=f[this]||f.speed});var e;this.each(function(){var g=b(this),h=g.data("jsp");if(h){h.reinitialise(f)}else{h=new d(g,f);g.data("jsp",h)}e=e?e.add(g):g});return e};b.fn.jScrollPane.defaults={showArrows:false,maintainPosition:true,stickToBottom:false,stickToRight:false,clickOnTrack:true,autoReinitialise:false,autoReinitialiseDelay:500,verticalDragMinHeight:0,verticalDragMaxHeight:99999,horizontalDragMinWidth:0,horizontalDragMaxWidth:99999,contentWidth:c,animateScroll:false,animateDuration:300,animateEase:"linear",hijackInternalLinks:false,verticalGutter:4,horizontalGutter:4,mouseWheelSpeed:0,arrowButtonSpeed:0,arrowRepeatFreq:50,arrowScrollOnHover:false,trackClickSpeed:0,trackClickRepeatFreq:70,verticalArrowPositions:"split",horizontalArrowPositions:"split",enableKeyboardNavigation:true,hideFocus:false,keyboardSpeed:0,initialDelay:300,speed:30,scrollPagePercent:0.8}})(jQuery,this); \ No newline at end of file diff --git a/src/wp-content/themes/broadside/js/jquery.mousewheel.js b/src/wp-content/themes/broadside/js/jquery.mousewheel.js new file mode 100644 index 0000000..b793241 --- /dev/null +++ b/src/wp-content/themes/broadside/js/jquery.mousewheel.js @@ -0,0 +1,78 @@ +/*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net) + * Licensed under the MIT License (LICENSE.txt). + * + * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers. + * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix. + * Thanks to: Seamus Leahy for adding deltaX and deltaY + * + * Version: 3.0.4 + * + * Requires: 1.2.2+ + */ + +(function($) { + +var types = ['DOMMouseScroll', 'mousewheel']; + +$.event.special.mousewheel = { + setup: function() { + if ( this.addEventListener ) { + for ( var i=types.length; i; ) { + this.addEventListener( types[--i], handler, false ); + } + } else { + this.onmousewheel = handler; + } + }, + + teardown: function() { + if ( this.removeEventListener ) { + for ( var i=types.length; i; ) { + this.removeEventListener( types[--i], handler, false ); + } + } else { + this.onmousewheel = null; + } + } +}; + +$.fn.extend({ + mousewheel: function(fn) { + return fn ? this.bind("mousewheel", fn) : this.trigger("mousewheel"); + }, + + unmousewheel: function(fn) { + return this.unbind("mousewheel", fn); + } +}); + + +function handler(event) { + var orgEvent = event || window.event, args = [].slice.call( arguments, 1 ), delta = 0, returnValue = true, deltaX = 0, deltaY = 0; + event = $.event.fix(orgEvent); + event.type = "mousewheel"; + + // Old school scrollwheel delta + if ( event.wheelDelta ) { delta = event.wheelDelta/120; } + if ( event.detail ) { delta = -event.detail/3; } + + // New school multidimensional scroll (touchpads) deltas + deltaY = delta; + + // Gecko + if ( orgEvent.axis !== undefined && orgEvent.axis === orgEvent.HORIZONTAL_AXIS ) { + deltaY = 0; + deltaX = -1*delta; + } + + // Webkit + if ( orgEvent.wheelDeltaY !== undefined ) { deltaY = orgEvent.wheelDeltaY/120; } + if ( orgEvent.wheelDeltaX !== undefined ) { deltaX = -1*orgEvent.wheelDeltaX/120; } + + // Add event and delta to the front of the arguments + args.unshift(event, delta, deltaX, deltaY); + + return $.event.handle.apply(this, args); +} + +})(jQuery); \ No newline at end of file diff --git a/src/wp-content/themes/broadside/js/jquery.orbit-1.2.3.min.js b/src/wp-content/themes/broadside/js/jquery.orbit-1.2.3.min.js new file mode 100644 index 0000000..13acb8d --- /dev/null +++ b/src/wp-content/themes/broadside/js/jquery.orbit-1.2.3.min.js @@ -0,0 +1,17 @@ +/* + * jQuery Orbit Plugin 1.2.3 + * www.ZURB.com/playground + * Copyright 2010, ZURB + * Free to use under the MIT license. + * http://www.opensource.org/licenses/mit-license.php +*/ + +(function(d){d.fn.orbit=function(a){a=d.extend({animation:"horizontal-push",animationSpeed:600,timer:!0,advanceSpeed:4E3,pauseOnHover:!1,startClockOnMouseOut:!1,startClockOnMouseOutAfter:1E3,directionalNav:!0,captions:!0,captionAnimation:"fade",captionAnimationSpeed:600,bullets:!1,bulletThumbs:!1,bulletThumbLocation:"",afterSlideChange:function(){}},a);return this.each(function(){function q(){if(!a.timer||a.timer=="false")return!1;else r.is(":hidden")?s=setInterval(function(){l("next")},a.advanceSpeed): +(o=!0,x.removeClass("active"),s=setInterval(function(){var a="rotate("+m+"deg)";m+=2;t.css({"-webkit-transform":a,"-moz-transform":a,"-o-transform":a});m>180&&(t.addClass("move"),z.addClass("move"));m>360&&(t.removeClass("move"),z.removeClass("move"),m=0,l("next"))},a.advanceSpeed/180))}function n(){if(!a.timer||a.timer=="false")return!1;else o=!1,clearInterval(s),x.addClass("active")}function A(){if(!a.captions||a.captions=="false")return!1;else{var y=e.eq(b).data("caption");(_captionHTML=d(y).html())? +(j.attr("id",y).html(_captionHTML),a.captionAnimation=="none"&&j.show(),a.captionAnimation=="fade"&&j.fadeIn(a.captionAnimationSpeed),a.captionAnimation=="slideOpen"&&j.slideDown(a.captionAnimationSpeed)):(a.captionAnimation=="none"&&j.hide(),a.captionAnimation=="fade"&&j.fadeOut(a.captionAnimationSpeed),a.captionAnimation=="slideOpen"&&j.slideUp(a.captionAnimationSpeed))}}function B(){if(a.bullets)D.children("li").removeClass("active").eq(b).addClass("active");else return!1}function l(d){function c(){e.eq(f).css({"z-index":1}); +u=!1;a.afterSlideChange.call(this)}var f=b,g=d;if(f==g)return!1;if(e.length=="1")return!1;u||(u=!0,d=="next"?(b++,b==p&&(b=0)):d=="prev"?(b--,b<0&&(b=p-1)):(b=d,fb&&(g="prev")),B(),e.eq(f).css({"z-index":2}),a.animation=="fade"&&e.eq(b).css({opacity:0,"z-index":3}).animate({opacity:1},a.animationSpeed,c),a.animation=="horizontal-slide"&&(g=="next"&&e.eq(b).css({left:h,"z-index":3}).animate({left:0},a.animationSpeed,c),g=="prev"&&e.eq(b).css({left:-h,"z-index":3}).animate({left:0},a.animationSpeed, +c)),a.animation=="vertical-slide"&&(g=="prev"&&e.eq(b).css({top:v,"z-index":3}).animate({top:0},a.animationSpeed,c),g=="next"&&e.eq(b).css({top:-v,"z-index":3}).animate({top:0},a.animationSpeed,c)),a.animation=="horizontal-push"&&(g=="next"&&(e.eq(b).css({left:h,"z-index":3}).animate({left:0},a.animationSpeed,c),e.eq(f).animate({left:-h},a.animationSpeed)),g=="prev"&&(e.eq(b).css({left:-h,"z-index":3}).animate({left:0},a.animationSpeed,c),e.eq(f).animate({left:h},a.animationSpeed))),A())}var b=0, +p=0,h,v,u,f=d(this).addClass("orbit"),c=f.wrap('
    ').parent();f.add(h).width("1px").height("1px");var e=f.children("img, a, div");e.each(function(){var a=d(this),b=a.width(),a=a.height();b>f.width()&&(f.add(c).width(b),h=f.width());a>f.height()&&(f.add(c).height(a),v=f.height());p++});if(e.length==1)a.directionalNav=!1,a.timer=!1,a.bullets=!1;e.eq(b).css({"z-index":3}).fadeIn(function(){e.css({display:"block"})});if(a.timer){c.append('
    '); +var r=d("div.timer"),o;if(r.length!=0){var t=d("div.timer span.rotator"),z=d("div.timer span.mask"),x=d("div.timer span.pause"),m=0,s;q();r.click(function(){o?n():q()});if(a.startClockOnMouseOut){var C;c.mouseleave(function(){C=setTimeout(function(){o||q()},a.startClockOnMouseOutAfter)});c.mouseenter(function(){clearTimeout(C)})}}}a.pauseOnHover&&c.mouseenter(function(){n()});if(a.captions){c.append('
    ');var j=c.children(".orbit-caption");A()}if(a.directionalNav){if(a.directionalNav== +"false")return!1;c.append('
    RightLeft
    ');var k=c.children("div.slider-nav").children("span.left"),w=c.children("div.slider-nav").children("span.right");k.click(function(){n();l("prev")});w.click(function(){n();l("next")})}if(a.bullets){c.append('
      ');var D=d("ul.orbit-bullets");for(i=0;i"+(i+1)+"
    • ");if(a.bulletThumbs&&(w=e.eq(i).data("thumb")))k=d('
    • '+ +i+"
    • "),k.css({background:"url("+a.bulletThumbLocation+w+") no-repeat"});d("ul.orbit-bullets").append(k);k.data("index",i);k.click(function(){n();l(d(this).data("index"))})}B()}})}})(jQuery); \ No newline at end of file diff --git a/src/wp-content/themes/broadside/js/jquery.validate.min.js b/src/wp-content/themes/broadside/js/jquery.validate.min.js new file mode 100644 index 0000000..6264866 --- /dev/null +++ b/src/wp-content/themes/broadside/js/jquery.validate.min.js @@ -0,0 +1,16 @@ +/* + * jQuery validation plug-in 1.7 + * + * http://bassistance.de/jquery-plugins/jquery-plugin-validation/ + * http://docs.jquery.com/Plugins/Validation + * + * Copyright (c) 2006 - 2008 Jörn Zaefferer + * + * $Id: jquery.validate.js 6403 2009-06-17 14:27:16Z joern.zaefferer $ + * + * Dual licensed under the MIT and GPL licenses: + * http://www.opensource.org/licenses/mit-license.php + * http://www.gnu.org/licenses/gpl.html + */ +(function($){$.extend($.fn,{validate:function(options){if(!this.length){options&&options.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing");return;}var validator=$.data(this[0],'validator');if(validator){return validator;}validator=new $.validator(options,this[0]);$.data(this[0],'validator',validator);if(validator.settings.onsubmit){this.find("input, button").filter(".cancel").click(function(){validator.cancelSubmit=true;});if(validator.settings.submitHandler){this.find("input, button").filter(":submit").click(function(){validator.submitButton=this;});}this.submit(function(event){if(validator.settings.debug)event.preventDefault();function handle(){if(validator.settings.submitHandler){if(validator.submitButton){var hidden=$("").attr("name",validator.submitButton.name).val(validator.submitButton.value).appendTo(validator.currentForm);}validator.settings.submitHandler.call(validator,validator.currentForm);if(validator.submitButton){hidden.remove();}return false;}return true;}if(validator.cancelSubmit){validator.cancelSubmit=false;return handle();}if(validator.form()){if(validator.pendingRequest){validator.formSubmitted=true;return false;}return handle();}else{validator.focusInvalid();return false;}});}return validator;},valid:function(){if($(this[0]).is('form')){return this.validate().form();}else{var valid=true;var validator=$(this[0].form).validate();this.each(function(){valid&=validator.element(this);});return valid;}},removeAttrs:function(attributes){var result={},$element=this;$.each(attributes.split(/\s/),function(index,value){result[value]=$element.attr(value);$element.removeAttr(value);});return result;},rules:function(command,argument){var element=this[0];if(command){var settings=$.data(element.form,'validator').settings;var staticRules=settings.rules;var existingRules=$.validator.staticRules(element);switch(command){case"add":$.extend(existingRules,$.validator.normalizeRule(argument));staticRules[element.name]=existingRules;if(argument.messages)settings.messages[element.name]=$.extend(settings.messages[element.name],argument.messages);break;case"remove":if(!argument){delete staticRules[element.name];return existingRules;}var filtered={};$.each(argument.split(/\s/),function(index,method){filtered[method]=existingRules[method];delete existingRules[method];});return filtered;}}var data=$.validator.normalizeRules($.extend({},$.validator.metadataRules(element),$.validator.classRules(element),$.validator.attributeRules(element),$.validator.staticRules(element)),element);if(data.required){var param=data.required;delete data.required;data=$.extend({required:param},data);}return data;}});$.extend($.expr[":"],{blank:function(a){return!$.trim(""+a.value);},filled:function(a){return!!$.trim(""+a.value);},unchecked:function(a){return!a.checked;}});$.validator=function(options,form){this.settings=$.extend(true,{},$.validator.defaults,options);this.currentForm=form;this.init();};$.validator.format=function(source,params){if(arguments.length==1)return function(){var args=$.makeArray(arguments);args.unshift(source);return $.validator.format.apply(this,args);};if(arguments.length>2&¶ms.constructor!=Array){params=$.makeArray(arguments).slice(1);}if(params.constructor!=Array){params=[params];}$.each(params,function(i,n){source=source.replace(new RegExp("\\{"+i+"\\}","g"),n);});return source;};$.extend($.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:true,errorContainer:$([]),errorLabelContainer:$([]),onsubmit:true,ignore:[],ignoreTitle:false,onfocusin:function(element){this.lastActive=element;if(this.settings.focusCleanup&&!this.blockFocusCleanup){this.settings.unhighlight&&this.settings.unhighlight.call(this,element,this.settings.errorClass,this.settings.validClass);this.errorsFor(element).hide();}},onfocusout:function(element){if(!this.checkable(element)&&(element.name in this.submitted||!this.optional(element))){this.element(element);}},onkeyup:function(element){if(element.name in this.submitted||element==this.lastElement){this.element(element);}},onclick:function(element){if(element.name in this.submitted)this.element(element);else if(element.parentNode.name in this.submitted)this.element(element.parentNode);},highlight:function(element,errorClass,validClass){$(element).addClass(errorClass).removeClass(validClass);},unhighlight:function(element,errorClass,validClass){$(element).removeClass(errorClass).addClass(validClass);}},setDefaults:function(settings){$.extend($.validator.defaults,settings);},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:$.validator.format("Please enter no more than {0} characters."),minlength:$.validator.format("Please enter at least {0} characters."),rangelength:$.validator.format("Please enter a value between {0} and {1} characters long."),range:$.validator.format("Please enter a value between {0} and {1}."),max:$.validator.format("Please enter a value less than or equal to {0}."),min:$.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:false,prototype:{init:function(){this.labelContainer=$(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||$(this.currentForm);this.containers=$(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var groups=(this.groups={});$.each(this.settings.groups,function(key,value){$.each(value.split(/\s/),function(index,name){groups[name]=key;});});var rules=this.settings.rules;$.each(rules,function(key,value){rules[key]=$.validator.normalizeRule(value);});function delegate(event){var validator=$.data(this[0].form,"validator"),eventType="on"+event.type.replace(/^validate/,"");validator.settings[eventType]&&validator.settings[eventType].call(validator,this[0]);}$(this.currentForm).validateDelegate(":text, :password, :file, select, textarea","focusin focusout keyup",delegate).validateDelegate(":radio, :checkbox, select, option","click",delegate);if(this.settings.invalidHandler)$(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler);},form:function(){this.checkForm();$.extend(this.submitted,this.errorMap);this.invalid=$.extend({},this.errorMap);if(!this.valid())$(this.currentForm).triggerHandler("invalid-form",[this]);this.showErrors();return this.valid();},checkForm:function(){this.prepareForm();for(var i=0,elements=(this.currentElements=this.elements());elements[i];i++){this.check(elements[i]);}return this.valid();},element:function(element){element=this.clean(element);this.lastElement=element;this.prepareElement(element);this.currentElements=$(element);var result=this.check(element);if(result){delete this.invalid[element.name];}else{this.invalid[element.name]=true;}if(!this.numberOfInvalids()){this.toHide=this.toHide.add(this.containers);}this.showErrors();return result;},showErrors:function(errors){if(errors){$.extend(this.errorMap,errors);this.errorList=[];for(var name in errors){this.errorList.push({message:errors[name],element:this.findByName(name)[0]});}this.successList=$.grep(this.successList,function(element){return!(element.name in errors);});}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors();},resetForm:function(){if($.fn.resetForm)$(this.currentForm).resetForm();this.submitted={};this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass);},numberOfInvalids:function(){return this.objectLength(this.invalid);},objectLength:function(obj){var count=0;for(var i in obj)count++;return count;},hideErrors:function(){this.addWrapper(this.toHide).hide();},valid:function(){return this.size()==0;},size:function(){return this.errorList.length;},focusInvalid:function(){if(this.settings.focusInvalid){try{$(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin");}catch(e){}}},findLastActive:function(){var lastActive=this.lastActive;return lastActive&&$.grep(this.errorList,function(n){return n.element.name==lastActive.name;}).length==1&&lastActive;},elements:function(){var validator=this,rulesCache={};return $([]).add(this.currentForm.elements).filter(":input").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){!this.name&&validator.settings.debug&&window.console&&console.error("%o has no name assigned",this);if(this.name in rulesCache||!validator.objectLength($(this).rules()))return false;rulesCache[this.name]=true;return true;});},clean:function(selector){return $(selector)[0];},errors:function(){return $(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext);},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=$([]);this.toHide=$([]);this.currentElements=$([]);},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers);},prepareElement:function(element){this.reset();this.toHide=this.errorsFor(element);},check:function(element){element=this.clean(element);if(this.checkable(element)){element=this.findByName(element.name)[0];}var rules=$(element).rules();var dependencyMismatch=false;for(method in rules){var rule={method:method,parameters:rules[method]};try{var result=$.validator.methods[method].call(this,element.value.replace(/\r/g,""),element,rule.parameters);if(result=="dependency-mismatch"){dependencyMismatch=true;continue;}dependencyMismatch=false;if(result=="pending"){this.toHide=this.toHide.not(this.errorsFor(element));return;}if(!result){this.formatAndAdd(element,rule);return false;}}catch(e){this.settings.debug&&window.console&&console.log("exception occured when checking element "+element.id ++", check the '"+rule.method+"' method",e);throw e;}}if(dependencyMismatch)return;if(this.objectLength(rules))this.successList.push(element);return true;},customMetaMessage:function(element,method){if(!$.metadata)return;var meta=this.settings.meta?$(element).metadata()[this.settings.meta]:$(element).metadata();return meta&&meta.messages&&meta.messages[method];},customMessage:function(name,method){var m=this.settings.messages[name];return m&&(m.constructor==String?m:m[method]);},findDefined:function(){for(var i=0;iWarning: No message defined for "+element.name+"");},formatAndAdd:function(element,rule){var message=this.defaultMessage(element,rule.method),theregex=/\$?\{(\d+)\}/g;if(typeof message=="function"){message=message.call(this,rule.parameters,element);}else if(theregex.test(message)){message=jQuery.format(message.replace(theregex,'{$1}'),rule.parameters);}this.errorList.push({message:message,element:element});this.errorMap[element.name]=message;this.submitted[element.name]=message;},addWrapper:function(toToggle){if(this.settings.wrapper)toToggle=toToggle.add(toToggle.parent(this.settings.wrapper));return toToggle;},defaultShowErrors:function(){for(var i=0;this.errorList[i];i++){var error=this.errorList[i];this.settings.highlight&&this.settings.highlight.call(this,error.element,this.settings.errorClass,this.settings.validClass);this.showLabel(error.element,error.message);}if(this.errorList.length){this.toShow=this.toShow.add(this.containers);}if(this.settings.success){for(var i=0;this.successList[i];i++){this.showLabel(this.successList[i]);}}if(this.settings.unhighlight){for(var i=0,elements=this.validElements();elements[i];i++){this.settings.unhighlight.call(this,elements[i],this.settings.errorClass,this.settings.validClass);}}this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show();},validElements:function(){return this.currentElements.not(this.invalidElements());},invalidElements:function(){return $(this.errorList).map(function(){return this.element;});},showLabel:function(element,message){var label=this.errorsFor(element);if(label.length){label.removeClass().addClass(this.settings.errorClass);label.attr("generated")&&label.html(message);}else{label=$("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(element),generated:true}).addClass(this.settings.errorClass).html(message||"");if(this.settings.wrapper){label=label.hide().show().wrap("<"+this.settings.wrapper+"/>").parent();}if(!this.labelContainer.append(label).length)this.settings.errorPlacement?this.settings.errorPlacement(label,$(element)):label.insertAfter(element);}if(!message&&this.settings.success){label.text("");typeof this.settings.success=="string"?label.addClass(this.settings.success):this.settings.success(label);}this.toShow=this.toShow.add(label);},errorsFor:function(element){var name=this.idOrName(element);return this.errors().filter(function(){return $(this).attr('for')==name;});},idOrName:function(element){return this.groups[element.name]||(this.checkable(element)?element.name:element.id||element.name);},checkable:function(element){return/radio|checkbox/i.test(element.type);},findByName:function(name){var form=this.currentForm;return $(document.getElementsByName(name)).map(function(index,element){return element.form==form&&element.name==name&&element||null;});},getLength:function(value,element){switch(element.nodeName.toLowerCase()){case'select':return $("option:selected",element).length;case'input':if(this.checkable(element))return this.findByName(element.name).filter(':checked').length;}return value.length;},depend:function(param,element){return this.dependTypes[typeof param]?this.dependTypes[typeof param](param,element):true;},dependTypes:{"boolean":function(param,element){return param;},"string":function(param,element){return!!$(param,element.form).length;},"function":function(param,element){return param(element);}},optional:function(element){return!$.validator.methods.required.call(this,$.trim(element.value),element)&&"dependency-mismatch";},startRequest:function(element){if(!this.pending[element.name]){this.pendingRequest++;this.pending[element.name]=true;}},stopRequest:function(element,valid){this.pendingRequest--;if(this.pendingRequest<0)this.pendingRequest=0;delete this.pending[element.name];if(valid&&this.pendingRequest==0&&this.formSubmitted&&this.form()){$(this.currentForm).submit();this.formSubmitted=false;}else if(!valid&&this.pendingRequest==0&&this.formSubmitted){$(this.currentForm).triggerHandler("invalid-form",[this]);this.formSubmitted=false;}},previousValue:function(element){return $.data(element,"previousValue")||$.data(element,"previousValue",{old:null,valid:true,message:this.defaultMessage(element,"remote")});}},classRuleSettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateISO:{dateISO:true},dateDE:{dateDE:true},number:{number:true},numberDE:{numberDE:true},digits:{digits:true},creditcard:{creditcard:true}},addClassRules:function(className,rules){className.constructor==String?this.classRuleSettings[className]=rules:$.extend(this.classRuleSettings,className);},classRules:function(element){var rules={};var classes=$(element).attr('class');classes&&$.each(classes.split(' '),function(){if(this in $.validator.classRuleSettings){$.extend(rules,$.validator.classRuleSettings[this]);}});return rules;},attributeRules:function(element){var rules={};var $element=$(element);for(method in $.validator.methods){var value=$element.attr(method);if(value){rules[method]=value;}}if(rules.maxlength&&/-1|2147483647|524288/.test(rules.maxlength)){delete rules.maxlength;}return rules;},metadataRules:function(element){if(!$.metadata)return{};var meta=$.data(element.form,'validator').settings.meta;return meta?$(element).metadata()[meta]:$(element).metadata();},staticRules:function(element){var rules={};var validator=$.data(element.form,'validator');if(validator.settings.rules){rules=$.validator.normalizeRule(validator.settings.rules[element.name])||{};}return rules;},normalizeRules:function(rules,element){$.each(rules,function(prop,val){if(val===false){delete rules[prop];return;}if(val.param||val.depends){var keepRule=true;switch(typeof val.depends){case"string":keepRule=!!$(val.depends,element.form).length;break;case"function":keepRule=val.depends.call(element,element);break;}if(keepRule){rules[prop]=val.param!==undefined?val.param:true;}else{delete rules[prop];}}});$.each(rules,function(rule,parameter){rules[rule]=$.isFunction(parameter)?parameter(element):parameter;});$.each(['minlength','maxlength','min','max'],function(){if(rules[this]){rules[this]=Number(rules[this]);}});$.each(['rangelength','range'],function(){if(rules[this]){rules[this]=[Number(rules[this][0]),Number(rules[this][1])];}});if($.validator.autoCreateRanges){if(rules.min&&rules.max){rules.range=[rules.min,rules.max];delete rules.min;delete rules.max;}if(rules.minlength&&rules.maxlength){rules.rangelength=[rules.minlength,rules.maxlength];delete rules.minlength;delete rules.maxlength;}}if(rules.messages){delete rules.messages;}return rules;},normalizeRule:function(data){if(typeof data=="string"){var transformed={};$.each(data.split(/\s/),function(){transformed[this]=true;});data=transformed;}return data;},addMethod:function(name,method,message){$.validator.methods[name]=method;$.validator.messages[name]=message!=undefined?message:$.validator.messages[name];if(method.length<3){$.validator.addClassRules(name,$.validator.normalizeRule(name));}},methods:{required:function(value,element,param){if(!this.depend(param,element))return"dependency-mismatch";switch(element.nodeName.toLowerCase()){case'select':var val=$(element).val();return val&&val.length>0;case'input':if(this.checkable(element))return this.getLength(value,element)>0;default:return $.trim(value).length>0;}},remote:function(value,element,param){if(this.optional(element))return"dependency-mismatch";var previous=this.previousValue(element);if(!this.settings.messages[element.name])this.settings.messages[element.name]={};previous.originalMessage=this.settings.messages[element.name].remote;this.settings.messages[element.name].remote=previous.message;param=typeof param=="string"&&{url:param}||param;if(previous.old!==value){previous.old=value;var validator=this;this.startRequest(element);var data={};data[element.name]=value;$.ajax($.extend(true,{url:param,mode:"abort",port:"validate"+element.name,dataType:"json",data:data,success:function(response){validator.settings.messages[element.name].remote=previous.originalMessage;var valid=response===true;if(valid){var submitted=validator.formSubmitted;validator.prepareElement(element);validator.formSubmitted=submitted;validator.successList.push(element);validator.showErrors();}else{var errors={};var message=(previous.message=response||validator.defaultMessage(element,"remote"));errors[element.name]=$.isFunction(message)?message(value):message;validator.showErrors(errors);}previous.valid=valid;validator.stopRequest(element,valid);}},param));return"pending";}else if(this.pending[element.name]){return"pending";}return previous.valid;},minlength:function(value,element,param){return this.optional(element)||this.getLength($.trim(value),element)>=param;},maxlength:function(value,element,param){return this.optional(element)||this.getLength($.trim(value),element)<=param;},rangelength:function(value,element,param){var length=this.getLength($.trim(value),element);return this.optional(element)||(length>=param[0]&&length<=param[1]);},min:function(value,element,param){return this.optional(element)||value>=param;},max:function(value,element,param){return this.optional(element)||value<=param;},range:function(value,element,param){return this.optional(element)||(value>=param[0]&&value<=param[1]);},email:function(value,element){return this.optional(element)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(value);},url:function(value,element){return this.optional(element)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(value);},date:function(value,element){return this.optional(element)||!/Invalid|NaN/.test(new Date(value));},dateISO:function(value,element){return this.optional(element)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(value);},number:function(value,element){return this.optional(element)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(value);},digits:function(value,element){return this.optional(element)||/^\d+$/.test(value);},creditcard:function(value,element){if(this.optional(element))return"dependency-mismatch";if(/[^0-9-]+/.test(value))return false;var nCheck=0,nDigit=0,bEven=false;value=value.replace(/\D/g,"");for(var n=value.length-1;n>=0;n--){var cDigit=value.charAt(n);var nDigit=parseInt(cDigit,10);if(bEven){if((nDigit*=2)>9)nDigit-=9;}nCheck+=nDigit;bEven=!bEven;}return(nCheck%10)==0;},accept:function(value,element,param){param=typeof param=="string"?param.replace(/,/g,'|'):"png|jpe?g|gif";return this.optional(element)||value.match(new RegExp(".("+param+")$","i"));},equalTo:function(value,element,param){var target=$(param).unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){$(element).valid();});return value==target.val();}}});$.format=$.validator.format;})(jQuery);;(function($){var ajax=$.ajax;var pendingRequests={};$.ajax=function(settings){settings=$.extend(settings,$.extend({},$.ajaxSettings,settings));var port=settings.port;if(settings.mode=="abort"){if(pendingRequests[port]){pendingRequests[port].abort();}return(pendingRequests[port]=ajax.apply(this,arguments));}return ajax.apply(this,arguments);};})(jQuery);;(function($){if(!jQuery.event.special.focusin&&!jQuery.event.special.focusout&&document.addEventListener){$.each({focus:'focusin',blur:'focusout'},function(original,fix){$.event.special[fix]={setup:function(){this.addEventListener(original,handler,true);},teardown:function(){this.removeEventListener(original,handler,true);},handler:function(e){arguments[0]=$.event.fix(e);arguments[0].type=fix;return $.event.handle.apply(this,arguments);}};function handler(e){e=$.event.fix(e);e.type=fix;return $.event.handle.call(this,e);}});};$.extend($.fn,{validateDelegate:function(delegate,type,handler){return this.bind(type,function(event){var target=$(event.target);if(target.is(delegate)){return handler.apply(target,arguments);}});}});})(jQuery); \ No newline at end of file diff --git a/src/wp-content/themes/broadside/js/superfish.js b/src/wp-content/themes/broadside/js/superfish.js new file mode 100644 index 0000000..c6a9c7d --- /dev/null +++ b/src/wp-content/themes/broadside/js/superfish.js @@ -0,0 +1,121 @@ + +/* + * Superfish v1.4.8 - jQuery menu widget + * Copyright (c) 2008 Joel Birch + * + * Dual licensed under the MIT and GPL licenses: + * http://www.opensource.org/licenses/mit-license.php + * http://www.gnu.org/licenses/gpl.html + * + * CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt + */ + +;(function($){ + $.fn.superfish = function(op){ + + var sf = $.fn.superfish, + c = sf.c, + $arrow = $([' »'].join('')), + over = function(){ + var $$ = $(this), menu = getMenu($$); + clearTimeout(menu.sfTimer); + $$.showSuperfishUl().siblings().hideSuperfishUl(); + }, + out = function(){ + var $$ = $(this), menu = getMenu($$), o = sf.op; + clearTimeout(menu.sfTimer); + menu.sfTimer=setTimeout(function(){ + o.retainPath=($.inArray($$[0],o.$path)>-1); + $$.hideSuperfishUl(); + if (o.$path.length && $$.parents(['li.',o.hoverClass].join('')).length<1){over.call(o.$path);} + },o.delay); + }, + getMenu = function($menu){ + var menu = $menu.parents(['ul.',c.menuClass,':first'].join(''))[0]; + sf.op = sf.o[menu.serial]; + return menu; + }, + addArrow = function($a){ $a.addClass(c.anchorClass).append($arrow.clone()); }; + + return this.each(function() { + var s = this.serial = sf.o.length; + var o = $.extend({},sf.defaults,op); + o.$path = $('li.'+o.pathClass,this).slice(0,o.pathLevels).each(function(){ + $(this).addClass([o.hoverClass,c.bcClass].join(' ')) + .filter('li:has(ul)').removeClass(o.pathClass); + }); + sf.o[s] = sf.op = o; + + $('li:has(ul)',this)[($.fn.hoverIntent && !o.disableHI) ? 'hoverIntent' : 'hover'](over,out).each(function() { + if (o.autoArrows) addArrow( $('>a:first-child',this) ); + }) + .not('.'+c.bcClass) + .hideSuperfishUl(); + + var $a = $('a',this); + $a.each(function(i){ + var $li = $a.eq(i).parents('li'); + $a.eq(i).focus(function(){over.call($li);}).blur(function(){out.call($li);}); + }); + o.onInit.call(this); + + }).each(function() { + var menuClasses = [c.menuClass]; + if (sf.op.dropShadows && !($.browser.msie && $.browser.version < 7)) menuClasses.push(c.shadowClass); + $(this).addClass(menuClasses.join(' ')); + }); + }; + + var sf = $.fn.superfish; + sf.o = []; + sf.op = {}; + sf.IE7fix = function(){ + var o = sf.op; + if ($.browser.msie && $.browser.version > 6 && o.dropShadows && o.animation.opacity!=undefined) + this.toggleClass(sf.c.shadowClass+'-off'); + }; + sf.c = { + bcClass : 'sf-breadcrumb', + menuClass : 'sf-js-enabled', + anchorClass : 'sf-with-ul', + arrowClass : 'sf-sub-indicator', + shadowClass : 'sf-shadow' + }; + sf.defaults = { + hoverClass : 'sfHover', + pathClass : 'overideThisToUse', + pathLevels : 1, + delay : 800, + animation : {opacity:'show'}, + speed : 'normal', + autoArrows : true, + dropShadows : true, + disableHI : false, // true disables hoverIntent detection + onInit : function(){}, // callback functions + onBeforeShow: function(){}, + onShow : function(){}, + onHide : function(){} + }; + $.fn.extend({ + hideSuperfishUl : function(){ + var o = sf.op, + not = (o.retainPath===true) ? o.$path : ''; + o.retainPath = false; + var $ul = $(['li.',o.hoverClass].join(''),this).add(this).not(not).removeClass(o.hoverClass) + .find('>ul').hide().css('visibility','hidden'); + o.onHide.call($ul); + return this; + }, + showSuperfishUl : function(){ + var o = sf.op, + sh = sf.c.shadowClass+'-off', + $ul = this.addClass(o.hoverClass) + .find('>ul:hidden').css('visibility','visible'); + sf.IE7fix.call($ul); + o.onBeforeShow.call($ul); + $ul.animate(o.animation,o.speed,function(){ sf.IE7fix.call($ul); o.onShow.call($ul); }); + return this; + } + }); + +})(jQuery); diff --git a/src/wp-content/themes/broadside/nbproject/private/private.properties b/src/wp-content/themes/broadside/nbproject/private/private.properties new file mode 100644 index 0000000..21999f0 --- /dev/null +++ b/src/wp-content/themes/broadside/nbproject/private/private.properties @@ -0,0 +1,5 @@ +copy.src.files=false +copy.src.target= +index.file=index.php +run.as=LOCAL +url=http://localhost/instaldeco/ diff --git a/src/wp-content/themes/broadside/nbproject/private/private.xml b/src/wp-content/themes/broadside/nbproject/private/private.xml new file mode 100644 index 0000000..cc2c0e5 --- /dev/null +++ b/src/wp-content/themes/broadside/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/src/wp-content/themes/broadside/nbproject/project.properties b/src/wp-content/themes/broadside/nbproject/project.properties new file mode 100644 index 0000000..e2559b2 --- /dev/null +++ b/src/wp-content/themes/broadside/nbproject/project.properties @@ -0,0 +1,7 @@ +include.path=${php.global.include.path} +php.version=PHP_5 +source.encoding=UTF-8 +src.dir=. +tags.asp=false +tags.short=true +web.root=. diff --git a/src/wp-content/themes/broadside/nbproject/project.xml b/src/wp-content/themes/broadside/nbproject/project.xml new file mode 100644 index 0000000..b1d8aa7 --- /dev/null +++ b/src/wp-content/themes/broadside/nbproject/project.xml @@ -0,0 +1,9 @@ + + + org.netbeans.modules.php.project + + + Instaldeco + + + diff --git a/src/wp-content/themes/broadside/options.php b/src/wp-content/themes/broadside/options.php new file mode 100644 index 0000000..5946578 --- /dev/null +++ b/src/wp-content/themes/broadside/options.php @@ -0,0 +1,276 @@ +cat_ID] = $category->cat_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; + } + + // If using image radio buttons, define a directory path + $imagepath = get_bloginfo('stylesheet_directory') . '/images/'; + + $options = array(); + + $options[] = array("name" => "Basic Settings", + "type" => "heading"); + + $options[] = array( "name" => "Email Address", + "desc" => "Enter the email address that you would like to use for the social-networking icons.", + "id" => "email_address", + "std" => "", + "type" => "text"); + + $options[] = array( "name" => "Footer Text", + "desc" => "Add your copyright phrase or any text to be displayed below the footer (e.g. Copyright 2012. Designed by ProgressionStudios)", + "id" => "footer_text", + "std" => "Copyright © 2011 – MQ –
      info@mqarquitects.com", + "type" => "textarea"); + + $options[] = array("name" => "Social Settings", + "type" => "heading"); + + $options[] = array( "name" => "Facebook Link", + "desc" => "Enter the Facebook Link that you would like to use for the social-networking icons. Note: Use http://", + "id" => "facebook_link", + "std" => "", + "type" => "text"); + + $options[] = array( "name" => "Twitter ID", + "desc" => "Enter the Twitter Link that you would like to use for the social-networking icons. Use http://", + "id" => "twitter_id", + "std" => "", + "type" => "text"); + + $options[] = array( "name" => "Flickr Link", + "desc" => "Enter the Flickr Link that you would like to use for the social-networking icons. Use http://", + "id" => "flickr_link", + "std" => "", + "type" => "text"); + + $options[] = array( "name" => "Vimeo Link", + "desc" => "Enter the Vimeo Link that you would like to use for the social-networking icons. Use http://", + "id" => "vimeo_link", + "std" => "", + "type" => "text"); + + $options[] = array( "name" => "Google Link", + "desc" => "Enter the Google Link that you would like to use for the social-networking icons. Use http://", + "id" => "google_link", + "std" => "", + "type" => "text"); + + $options[] = array( "name" => "StumbleUpon Link", + "desc" => "Enter the StumbleUpon Link that you would like to use for the social-networking icons. Use http://", + "id" => "Stumbleupon_link", + "std" => "", + "type" => "text"); + + $options[] = array( "name" => "Youtube Link", + "desc" => "Enter the Youtube Link that you would like to use for the social-networking icons. Use http://", + "id" => "youtube_link", + "std" => "", + "type" => "text"); + + $options[] = array("name" => "Appearence", + "type" => "heading"); + + $options[] = array( "name" => "Logo", + "desc" => "Use the upload button to upload your site's logo and then click 'Use this image'. The Maximum width is 270px. The navigation menu is 180px wide. Note: You will have to resize your own logo before uploading.", + "id" => "logo", + "std" => get_template_directory_uri() . "/images/logo.png", + "type" => "upload"); + + $options[] = array( "name" => "Logo Position", + "desc" => "This changes the Logo position to the top or bottom. Note: The Navigation position should be set to the opposite.", + "id" => "logo_position", + "std" => "top", + "type" => "select", + "class" => "mini", + "options" => array('top' => 'Top', 'bottom' => 'Bottom')); + + $options[] = array( "name" => "Navigation Position", + "desc" => "This changes the Navigation position to the top or bottom. Note: The Logo position should be set to the opposite.", + "id" => "nav_position", + "std" => "bottom", + "type" => "select", + "class" => "mini", + "options" => array('top' => 'Top', 'bottom' => 'Bottom')); + + $options[] = array( "name" => "Favicon", + "desc" => "Use the upload button to upload your favicon (bookmark icon) and then click 'Use this image'.", + "id" => "favicon", + "std" => "", + "type" => "upload"); + + $options[] = array( "name" => "Default Background (Required)", + "desc" => "This is used for the default background image of your website. It will automatically be resized to fit your browser window. Use the upload button to upload your own background and then click 'Use this image'. The default image(in case you delete it) should be located at: /wp-content/themes/Broadside/images/background.jpg", + "id" => "default_bg", + "std" => get_template_directory_uri() . "/images/background.jpg", + "type" => "upload"); + + $options[] = array( "name" => "Default Content Background (Required)", + "desc" => "This is a content background image of your website. It will automatically be resized to fit your content window. Use the upload button to upload your own background and then click 'Use this image'. The default image(in case you delete it) should be located at: /wp-content/themes/Broadside/images/backgrounds/blog-background.jpg", + "id" => "blog_bg", + "std" => get_template_directory_uri() . "/images/backgrounds/blog-background.jpg", + "type" => "upload"); + + $options[] = array( "name" => "Site Height", + "desc" => "Use this to adjust your site overall height. 'The Space' Live Preview is 600px tall, and 'The Architects' Live Preview is 500px tall. ", + "id" => "site_height", + "std" => "500", + "class" => "mini", + "type" => "text"); + + $options[] = array( "name" => "Scrollbar Height", + "desc" => "Use this to adjust at what height the scrollbar will be activated. This will depend on how tall you adjust your site height. ", + "id" => "scrollbar_height", + "std" => "330", + "class" => "mini", + "type" => "text"); + + $options[] = array( "name" => "Menu Background", + "desc" => "Use this to change the Menu background color. This includes the navigation and logo background. The default for 'The Space' is #b8174d and the default for 'The Architects' is #f20a0a.", + "id" => "menu_bg", + "std" => "#f20a0a", + "type" => "color"); + + $options[] = array( "name" => "Headings Color", + "desc" => "Use this to change the main headings color. The default for 'The Space' is #000000 and the default for 'The Architects' is #f20a0a.", + "id" => "headings_color", + "std" => "#f20a0a", + "type" => "color"); + + $options[] = array( "name" => "Static Menu", + "desc" => "Use this setting to remove the show/hide on the navigation menu. When marked yes, the navigation menu will be visible at all times.", + "id" => "static_menu", + "std" => "no", + "type" => "select", + "class" => "mini", + "options" => array('yes' => 'Yes', 'no' => 'No')); + + $options[] = array("name" => "Tools", + "type" => "heading"); + + $options[] = array( "name" => "Homepage Title", + "desc" => "Enter a title for the homepage, leave blank if you want to use an auto generated one.", + "id" => "home_title", + "std" => "", + "type" => "text"); + + $options[] = array( "name" => "Homepage Meta Description", + "desc" => "Enter a description for the homepage, about 140 characters.", + "id" => "home_meta", + "std" => "", + "type" => "text"); + + $options[] = array( "name" => "Tracking Code", + "desc" => "Paste your tracking code here e.g. Google Analytics etc... without script tags", + "id" => "tracking_code", + "std" => "", + "type" => "textarea"); + + $options[] = array( "name" => "404 Error Message Text", + "desc" => "Enter your custom 404 error message.", + "id" => "404_error", + "std" => "404 Page Not Found", + "type" => "textarea"); + + $options[] = array( "name" => "Custom CSS", + "desc" => "Past your custom css here... without script tags", + "id" => "custom_css", + "std" => "", + "type" => "textarea"); + + $options[] = array( "name" => "Custom Javascript", + "desc" => "Past your custom JavaScript code here... without script tags", + "id" => "custom_js", + "std" => "", + "type" => "textarea"); + + $options[] = array("name" => "Slider Settings", + "type" => "heading"); + + $options[] = array( "name" => "Animation", + "desc" => "Choose a transition effect between slides.", + "id" => "animation", + "std" => "fade", + "type" => "select", + "class" => "mini", + "options" => array('fade' => 'Fade', 'horizontal-slide' => 'Horizontal Slide', 'vertical-slide' => 'Vertical Slide', 'horizontal-push' => 'Horizontal Push')); + + $options[] = array( "name" => "Animation Speed", + "desc" => "Duration of animation between images (the time the images changes in).", + "id" => "speed", + "std" => "1200", + "class" => "mini", + "type" => "text"); + + $options[] = array( "name" => "Timer", + "desc" => "Show the timer countdown and autoplay. Note: If turned off, autoplay is off.", + "id" => "timer", + "std" => "true", + "type" => "select", + "class" => "mini", + "options" => array('true' => 'On', 'false' => 'Off')); + + $options[] = array( "name" => "Transition Speed", + "desc" => "How long each slide will show.", + "id" => "transition", + "std" => "4000", + "class" => "mini", + "type" => "text"); + + $options[] = array( "name" => "Arrows", + "desc" => "Show the next/previous navigation.", + "id" => "arrows", + "std" => "false", + "type" => "select", + "class" => "mini", + "options" => array('true' => 'On', 'false' => 'Off')); + + $options[] = array( "name" => "Bullets", + "desc" => "Show the bullet navigation.", + "id" => "bullets", + "std" => "false", + "type" => "select", + "class" => "mini", + "options" => array('true' => 'On', 'false' => 'Off')); + + return $options; +} \ No newline at end of file diff --git a/src/wp-content/themes/broadside/page.php b/src/wp-content/themes/broadside/page.php new file mode 100644 index 0000000..5f2dfc3 --- /dev/null +++ b/src/wp-content/themes/broadside/page.php @@ -0,0 +1,37 @@ + +
      +
      +

      post_title; ?>

      + ID, 'pyre_heading_sub', true)): ?> +

      ID, 'pyre_heading_sub', true); ?>

      + +
      + post_parent) { + $children = wp_list_pages('sort_column=menu_order&title_li=&child_of=' . $post->post_parent . '&depth=1&echo=0'); + } + else { + $children = wp_list_pages('sort_column=menu_order&title_li=&child_of=' . $post->ID . '&depth=1&echo=0'); + } + + if ($children) { ?> + + + + + +
      px;"> + + + +
      +
      + \ No newline at end of file diff --git a/src/wp-content/themes/broadside/portfolio-full.php b/src/wp-content/themes/broadside/portfolio-full.php new file mode 100644 index 0000000..6bd5a34 --- /dev/null +++ b/src/wp-content/themes/broadside/portfolio-full.php @@ -0,0 +1,12 @@ + +
      +
      +

      post_title; ?>

      + ID, 'pyre_heading_sub', true)): ?> +

      ID, 'pyre_heading_sub', true); ?>

      + +
      +
      + \ No newline at end of file diff --git a/src/wp-content/themes/broadside/portfolio-gallery.php b/src/wp-content/themes/broadside/portfolio-gallery.php new file mode 100644 index 0000000..052775c --- /dev/null +++ b/src/wp-content/themes/broadside/portfolio-gallery.php @@ -0,0 +1,89 @@ + +
      +
      +

      post_title; ?>

      + ID, 'pyre_heading_sub', true)): ?> +

      ID, 'pyre_heading_sub', true); ?>

      + +
      + +
      px;"> + + + + + + + + +
      +
      + \ No newline at end of file diff --git a/src/wp-content/themes/broadside/portfolio-scrolling.php b/src/wp-content/themes/broadside/portfolio-scrolling.php new file mode 100644 index 0000000..622d78a --- /dev/null +++ b/src/wp-content/themes/broadside/portfolio-scrolling.php @@ -0,0 +1,97 @@ + +
      +
      +

      post_title; ?>

      + ID, 'pyre_heading_sub', true)): ?> +

      ID, 'pyre_heading_sub', true); ?>

      + +
      + +
      px;"> + + + + + + + + +
      +
      + \ No newline at end of file diff --git a/src/wp-content/themes/broadside/portfolio-thumbnails.php b/src/wp-content/themes/broadside/portfolio-thumbnails.php new file mode 100644 index 0000000..b8d5471 --- /dev/null +++ b/src/wp-content/themes/broadside/portfolio-thumbnails.php @@ -0,0 +1,68 @@ + +
      +
      +

      post_title; ?>

      + ID, 'pyre_heading_sub', true)): ?> +

      ID, 'pyre_heading_sub', true); ?>

      + +
      + +
      px;"> + + +
      + + ID, 'pyre_portfolio_type', true); + $args = array( + 'showposts' => '-1', + 'post_type' => 'portfolio', + 'tax_query' => array( + array( + 'taxonomy' => 'type', + 'field' => 'id', + 'terms' => $portfolio_type + ) + ) + ); + $portfolio = new WP_Query($args); + $count = 1; + while($portfolio->have_posts()): $portfolio->the_post(); + if($count == 5) { + $count = 1; + } + ?> + +
      + ID), 'full'); ?> + ID, 'pyre_video_link', true)): ?> + + + + + + + + +
      + + +
      +
      + + + + + + + +
      + + + +
      + +
      + \ No newline at end of file diff --git a/src/wp-content/themes/broadside/screenshot.png b/src/wp-content/themes/broadside/screenshot.png new file mode 100644 index 0000000..48b2d76 Binary files /dev/null and b/src/wp-content/themes/broadside/screenshot.png differ diff --git a/src/wp-content/themes/broadside/services.php b/src/wp-content/themes/broadside/services.php new file mode 100644 index 0000000..03dc360 --- /dev/null +++ b/src/wp-content/themes/broadside/services.php @@ -0,0 +1,88 @@ + +
      +
      +

      post_title; ?>

      + ID, 'pyre_heading_sub', true)): ?> +

      ID, 'pyre_heading_sub', true); ?>

      + +
      + + +
      px;"> + + + + + + + +
      + + +
      + \ No newline at end of file diff --git a/src/wp-content/themes/broadside/shortcodes.php b/src/wp-content/themes/broadside/shortcodes.php new file mode 100644 index 0000000..78517e6 --- /dev/null +++ b/src/wp-content/themes/broadside/shortcodes.php @@ -0,0 +1,331 @@ +[' => '[', + ']

      ' => ']', + ']
      ' => ']' + ); + + $content = strtr($content, $array); + + return $content; + } + +////////////////////////////////////////////////////////////////// +// Youtube shortcode +////////////////////////////////////////////////////////////////// +add_shortcode('youtube', 'shortcode_youtube'); + function shortcode_youtube($atts) { + $atts = shortcode_atts( + array( + 'id' => '', + 'width' => 600, + 'height' => 360 + ), $atts); + + return '
      '; + } + +////////////////////////////////////////////////////////////////// +// Vimeo shortcode +////////////////////////////////////////////////////////////////// +add_shortcode('vimeo', 'shortcode_vimeo'); + function shortcode_vimeo($atts) { + $atts = shortcode_atts( + array( + 'id' => '', + 'width' => 600, + 'height' => 360 + ), $atts); + + return '
      '; + } + +////////////////////////////////////////////////////////////////// +// SoundCloud shortcode +////////////////////////////////////////////////////////////////// +add_shortcode('soundcloud', 'shortcode_soundcloud'); + function shortcode_soundcloud($atts) { + $atts = shortcode_atts( + array( + 'url' => '', + 'width' => '100%', + 'height' => 81, + 'comments' => 'true', + 'auto_play' => 'true', + 'color' => 'ff7700', + ), $atts); + + return ''; + } + +////////////////////////////////////////////////////////////////// +// Button shortcode +////////////////////////////////////////////////////////////////// +add_shortcode('button', 'shortcode_button'); + function shortcode_button($atts, $content = null) { + $atts = shortcode_atts( + array( + 'color' => 'light', + 'link' => '#', + 'target' => '', + ), $atts); + + if($atts['color'] == 'light') { + $class = 'button'; + } else { + $class = 'big-button'; + } + + return '' .do_shortcode($content). ''; + } + +////////////////////////////////////////////////////////////////// +// Dropcap shortcode +////////////////////////////////////////////////////////////////// +add_shortcode('dropcap', 'shortcode_dropcap'); + function shortcode_dropcap( $atts, $content = null ) { + + return '' .do_shortcode($content). ''; + +} + +////////////////////////////////////////////////////////////////// +// Highlight shortcode +////////////////////////////////////////////////////////////////// +add_shortcode('highlight', 'shortcode_highlight'); + function shortcode_highlight($atts, $content = null) { + $atts = shortcode_atts( + array( + 'color' => 'yellow', + ), $atts); + + if($atts['color'] == 'black') { + return '' .do_shortcode($content). ''; + } else { + return '' .do_shortcode($content). ''; + } + + } + +////////////////////////////////////////////////////////////////// +// Check list shortcode +////////////////////////////////////////////////////////////////// +add_shortcode('checklist', 'shortcode_checklist'); + function shortcode_checklist( $atts, $content = null ) { + + $content = str_replace('