commit 70576571239a285295342f7bde6f670afd6f8ee9 Author: LeineServer Date: Mon Jun 1 22:13:24 2020 +0200 Erster Commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e43b0f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/README.md b/README.md new file mode 100644 index 0000000..564b96e --- /dev/null +++ b/README.md @@ -0,0 +1,25 @@ +# Mediumish theme for Bludit +Mediumish is a Bludit theme like Medium. Similar look and feel, Mediumish is the perfect blog theme. + +## Features +- Bootstrap 4.0 +- Responsive +- Cross Browser Compatible +- Masonry +- Font Awesome + +## Base on +- Mediumish - Free Bootstrap 4.0 HTML Template Medium Styled +- https://www.wowthemes.net/mediumish-free-bootstrap-4-0-html-template-medium-styled/ + +## Compatible +- Bludit v3.x + +## Author +- Diego + +## License +- Freebies License. https://www.wowthemes.net/freebies-license/ + +## Screenshot +![screenshot-clean-blog](https://raw.githubusercontent.com/bludit-themes/mediumish/master/screenshot.png) diff --git a/css/mediumish.css b/css/mediumish.css new file mode 100755 index 0000000..f89b211 --- /dev/null +++ b/css/mediumish.css @@ -0,0 +1,444 @@ +/* +Template Name:Mediumish +Copyright:WowThemes.net,https://www.wowthemes.net +Version:1.0.1 +License: https://www.wowthemes.net/freebies-license/ +*/ +body { + padding-top:5rem; +} +.mainheading { + padding:1rem 0rem; +} +a { + color:#00ab6b; +} +a,a:hover { + transition:all 0.2s; +} +.mediumnavigation { + background:rgba(255,255,255,.97); + box-shadow:0 2px 2px -2px rgba(0,0,0,.15); +} +section { + margin-bottom:20px; +} +.section-title h2 { + border-bottom:1px solid rgba(0,0,0,.15); + margin-bottom:25px; + font-weight:700; + font-size:1.4rem; + margin-bottom:27px; +} +.section-title span { + border-bottom:1px solid rgba(0,0,0,.44); + display:inline-block; + padding-bottom:20px; + margin-bottom:-1px; +} +@media (min-width:576px) { + .card-columns.listfeaturedtag { + -webkit-column-count:2; + -moz-column-count:2; + column-count:2; + } +} +@media (min-width:992px) { + .navbar-toggleable-md .navbar-nav .nav-link { + padding-right:.7rem; + padding-left:.7rem; + } +} +.card-columns .card { + margin-bottom:20px; +} +.listfeaturedtag .wrapthumbnail { + height:258px; + flex:0 0 auto; +} +.listfeaturedtag .card { + border:1px solid rgba(0,0,0,.1); + border-radius:2px; + height:260px; + padding-left:0; + margin-bottom:15px; +} +.listfeaturedtag .thumbnail { + background-size:cover; + height:100%; + display:block; + background-position:38% 22% !important; + background-origin:border-box!important; + border-top-left-radius:2px; +} +.listfeaturedtag .card-block { + padding: 1.25rem; + padding-left:0; +} +.listfeaturedtag h2.card-title,.listrecent h2.card-title { + font-size:1.3rem; + font-weight:700; + line-height: 1.25; +} +.listfeaturedtag h2.card-title a,.listrecent h2.card-title a { + color:rgba(0,0,0,.8); +} +.listfeaturedtag h2.card-title a:hover,.listrecent h2.card-title a:hover { + color:rgba(0,0,0,.6); + text-decoration:none; +} +.listfeaturedtag h4.card-text,.listrecent h4.card-text { + color:rgba(0,0,0,.44); + font-size:0.95rem; + line-height:1.4; + font-weight:400; +} +.listfeaturedtag .wrapfooter { + position:absolute; + bottom:20px; + font-size:12px; + display:block; + width:85%; +} +.listrecent .wrapfooter { + font-size:12px; + margin-top:30px; +} +.author-thumb { + width:40px; + height:40px; + float:left; + margin-right:13px; + border-radius:100%; +} +.post-top-meta { + margin-bottom:2rem; +} +.post-top-meta .author-thumb { + width:72px; + height:72px; +} +.post-top-meta.authorpage .author-thumb { + margin-top:40px; +} +.post-top-meta span { + font-size:0.9rem; + color:rgba(0,0,0,.44); + display:inline-block; +} +.post-top-meta .author-description { + margin-bottom:5px; + margin-top:5px; + font-size:0.95rem; +} +.author-meta { + flex:1 1 auto; + white-space:nowrap!important; + text-overflow:ellipsis!important; + overflow:hidden!important; +} +span.post-name,span.post-date,span.author-meta { + display:inline-block; +} +span.post-date,span.post-read { + color:rgba(0,0,0,.44); +} +span.post-read-more { + align-items:center; + display:inline-block; + float:right; + margin-top:8px; +} +span.post-read-more a { + color:rgba(0,0,0,.44); +} +span.post-name a,span.post-read-more a:hover { + color:rgba(0,0,0,.8); +} +.dot:after { + content:"·"; + margin-left:3px; + margin-right:3px; +} +.mediumnavigation .form-control { + font-size:0.8rem; + border-radius:30px; + overflow:hidden; + border:1px solid rgba(0,0,0,0.04); +} +.mediumnavigation .form-inline { + margin-left:15px; +} +.mediumnavigation .form-inline .btn { + margin-left:-50px; + border:0; + border-radius:30px; + cursor:pointer; +} +.mediumnavigation .form-inline .btn:hover,.mediumnavigation .form-inline .btn:active { + background:transparent; + color:green; +} +.mediumnavigation .navbar-brand { + font-weight:500; +} +.mediumnavigation .dropdown-menu { + border:1px solid rgba(0,0,0,0.08); + margin:.5rem 0 0; +} +.mediumnavigation .nav-item,.dropdown-menu { + font-size:0.9rem; +} +.mediumnavigation .search-icon { + margin-left:-40px; + display:inline-block; + margin-top:3px; + cursor:pointer; +} +.mediumnavigation .navbar-brand img { + max-height:30px; + margin-right:5px; +} +.mainheading h1.sitetitle { + font-family:Righteous; +} +.mainheading h1.posttitle { + font-weight:700; + margin-bottom:1rem; +} +.footer { + border-top:1px solid rgba(0,0,0,.05)!important; + padding-top:15px; + padding-bottom:12px; + font-size:0.8rem; + color:rgba(0,0,0,.44); + margin-top:50px; +} +.link-dark { + color:rgba(0,0,0,.8); +} +.article-post { + font-family:Merriweather; + font-size:1.2rem; + line-height:1.8; + color:rgba(0,0,0,.8); +} +blockquote { + border-left:4px solid #00ab6b; + padding:0 20px; + font-style:italic; + color:rgba(0,0,0,.5); +} +.article-post p,.article-post blockquote { + margin:0 0 1.5rem 0; +} +.featured-image { + display:block; + margin:0px auto; + margin-bottom:1.5rem; +} +.share { + text-align:center; + margin-top:20px; +} +.share p { + margin-bottom:10px; + font-size:0.95rem; +} +.share { + display:none; +} +.share ul li { + display:inline-block; + margin-bottom:5px; +} +.share ul { + padding-left:0; + margin-left:0; +} +.svgIcon { + vertical-align:middle; +} +@media (min-width:1024px) { + .share { + position:fixed; + display:block; + } + .share ul li { + display:block; + } +} +@media (max-width:999px) { + .listfeaturedtag .wrapthumbnail, .listfeaturedtag .col-md-7 { + width:100%; + max-width:100%; + -webkit-box-flex: 0; + -webkit-flex: 100%; + -ms-flex: 100%; + flex: 100%; + } + .listfeaturedtag .wrapthumbnail { + height:250px; + } + .listfeaturedtag .card { + height:auto; + } + .listfeaturedtag .wrapfooter { + position:relative; + margin-top:30px; + } + .listfeaturedtag .card-block { + padding:20px; + } +} +@media (max-width:1024px) { + .post-top-meta .col-md-10 { + text-align:center; + } +} +@media (max-width:767px) { + .post-top-meta.authorpage { + text-align:center; + } +} +.share,.share a { + color:rgba(0,0,0,.44); + fill:rgba(0,0,0,.44); +} +.graybg { + background-color:#fafafa; + padding:40px 0 46px; + position:relative; +} +.listrelated .card { + box-shadow:0 1px 7px rgba(0,0,0,.05); + border:0; +} +.card { + border-radius:4px; +} +.card .img-thumb { + border-top-right-radius:4px; + border-top-left-radius:4px; +} +ul.tags { + list-style:none; + padding-left:0; + margin:0 0 3rem 0; +} +ul.tags li { + display:inline-block; + font-size:0.9rem; +} +ul.tags li a { + background:rgba(0,0,0,.05); + color:rgba(0,0,0,.6); + border-radius:3px; + padding:5px 10px; +} +ul.tags li a:hover { + background:rgba(0,0,0,.07); + text-decoration:none; +} +.margtop3rem { + margin-top: 3rem; +} +.sep { + height:1px; + width:20px; + background:#999; + margin:0px auto; + margin-bottom:1.2rem; +} +.btn.follow { + border-color:#02B875; + color:#1C9963; + padding:3px 10px; + text-align:center; + border-radius:999em; + font-size:0.85rem; + display:inline-block; +} +.btn.subscribe { + background-color:#1C9963; + border-color:#1C9963; + color:rgba(255,255,255,1); + fill:rgba(255,255,255,1); + border-radius:30px; + font-size:0.85rem; + margin-left:10px; + font-weight:600; + text-transform:uppercase; +} +.post-top-meta .btn.follow { + margin-left:5px; + margin-top:-4px; +} +.alertbar { + box-shadow:0 -3px 10px 0 rgba(0,0,0,.0785); + position:fixed; + bottom:0; + left:0; + background-color:#fff; + width:100%; + padding:14px 0; + z-index:1; +} +.form-control::-webkit-input-placeholder { + color: rgba(0,0,0,.5); +} +.form-control:-moz-placeholder { + color: rgba(0,0,0,.5); +} +.form-control::-moz-placeholder { + color: rgba(0,0,0,.5); +} +.form-control:-ms-input-placeholder { + color: rgba(0,0,0,.5); +} +.form-control::-ms-input-placeholder { + color: rgba(0,0,0,.5); +} +.authorpage h1 { + font-weight:700; + font-size:30px; +} +.post-top-meta.authorpage .author-thumb { + float:none; +} +.authorpage .author-description { + font-size:1rem; + color:rgba(0,0,0,.6); +} +.post-top-meta.authorpage .btn.follow { + padding:7px 20px; + margin-top:10px; + margin-left:0; + font-size:0.9rem; +} +.graybg.authorpage { + border-top:1px solid #f0f0f0; +} +.authorpostbox { + width:760px; + margin:0px auto; + margin-bottom:1.5rem; + max-width:100%; +} +.authorpostbox .img-thumb { + width:100%; +} +.sociallinks { + margin:1rem 0; +} +.sociallinks a { + background:#666; + color:#fff; + width:22px; + height:22px; + display:inline-block; + text-align:center; + line-height:22px; + border-radius:50%; + font-size:12px; +} diff --git a/img/favicon.png b/img/favicon.png new file mode 100644 index 0000000..60349a2 Binary files /dev/null and b/img/favicon.png differ diff --git a/img/logo.png b/img/logo.png new file mode 100644 index 0000000..6dcb5db Binary files /dev/null and b/img/logo.png differ diff --git a/img/noimage.png b/img/noimage.png new file mode 100644 index 0000000..625b5ed Binary files /dev/null and b/img/noimage.png differ diff --git a/index.php b/index.php new file mode 100755 index 0000000..6e1ba82 --- /dev/null +++ b/index.php @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/js/ie10-viewport-bug-workaround.js b/js/ie10-viewport-bug-workaround.js new file mode 100755 index 0000000..b335ef9 --- /dev/null +++ b/js/ie10-viewport-bug-workaround.js @@ -0,0 +1,24 @@ +/*! + * IE10 viewport hack for Surface/desktop Windows 8 bug + * Copyright 2014-2017 The Bootstrap Authors + * Copyright 2014-2017 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + */ + +// See the Getting Started docs for more information: +// https://getbootstrap.com/getting-started/#support-ie10-width + +(function () { + 'use strict' + + if (navigator.userAgent.match(/IEMobile\/10\.0/)) { + var msViewportStyle = document.createElement('style') + msViewportStyle.appendChild( + document.createTextNode( + '@-ms-viewport{width:auto!important}' + ) + ) + document.head.appendChild(msViewportStyle) + } + +}()) diff --git a/js/mediumish.js b/js/mediumish.js new file mode 100755 index 0000000..07f475c --- /dev/null +++ b/js/mediumish.js @@ -0,0 +1,11 @@ +$(function(){ + var topOfOthDiv = $(".hideshare").offset().top; + $(window).scroll(function() { + if($(window).scrollTop() > topOfOthDiv) { //scrolled past the other div? + $(".share").hide(); //reached the desired point -- show div + } + else{ + $(".share").show(); + } + }); +}); diff --git a/js/tether.min.js b/js/tether.min.js new file mode 100644 index 0000000..d16b9b1 --- /dev/null +++ b/js/tether.min.js @@ -0,0 +1 @@ +!function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e(require,exports,module):t.Tether=e()}(this,function(t,e,o){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t){var e=t.getBoundingClientRect(),o={};for(var i in e)o[i]=e[i];if(t.ownerDocument!==document){var r=t.ownerDocument.defaultView.frameElement;if(r){var s=n(r);o.top+=s.top,o.bottom+=s.top,o.left+=s.left,o.right+=s.left}}return o}function r(t){var e=getComputedStyle(t)||{},o=e.position,i=[];if("fixed"===o)return[t];for(var n=t;(n=n.parentNode)&&n&&1===n.nodeType;){var r=void 0;try{r=getComputedStyle(n)}catch(s){}if("undefined"==typeof r||null===r)return i.push(n),i;var a=r,f=a.overflow,l=a.overflowX,h=a.overflowY;/(auto|scroll)/.test(f+h+l)&&("absolute"!==o||["relative","absolute","fixed"].indexOf(r.position)>=0)&&i.push(n)}return i.push(t.ownerDocument.body),t.ownerDocument!==document&&i.push(t.ownerDocument.defaultView),i}function s(){A&&document.body.removeChild(A),A=null}function a(t){var e=void 0;t===document?(e=document,t=document.documentElement):e=t.ownerDocument;var o=e.documentElement,i=n(t),r=P();return i.top-=r.top,i.left-=r.left,"undefined"==typeof i.width&&(i.width=document.body.scrollWidth-i.left-i.right),"undefined"==typeof i.height&&(i.height=document.body.scrollHeight-i.top-i.bottom),i.top=i.top-o.clientTop,i.left=i.left-o.clientLeft,i.right=e.body.clientWidth-i.width-i.left,i.bottom=e.body.clientHeight-i.height-i.top,i}function f(t){return t.offsetParent||document.documentElement}function l(){if(M)return M;var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");h(e.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);var o=t.offsetWidth;e.style.overflow="scroll";var i=t.offsetWidth;o===i&&(i=e.clientWidth),document.body.removeChild(e);var n=o-i;return M={width:n,height:n}}function h(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=[];return Array.prototype.push.apply(e,arguments),e.slice(1).forEach(function(e){if(e)for(var o in e)({}).hasOwnProperty.call(e,o)&&(t[o]=e[o])}),t}function d(t,e){if("undefined"!=typeof t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.remove(e)});else{var o=new RegExp("(^| )"+e.split(" ").join("|")+"( |$)","gi"),i=c(t).replace(o," ");g(t,i)}}function p(t,e){if("undefined"!=typeof t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.add(e)});else{d(t,e);var o=c(t)+(" "+e);g(t,o)}}function u(t,e){if("undefined"!=typeof t.classList)return t.classList.contains(e);var o=c(t);return new RegExp("(^| )"+e+"( |$)","gi").test(o)}function c(t){return t.className instanceof t.ownerDocument.defaultView.SVGAnimatedString?t.className.baseVal:t.className}function g(t,e){t.setAttribute("class",e)}function m(t,e,o){o.forEach(function(o){e.indexOf(o)===-1&&u(t,o)&&d(t,o)}),e.forEach(function(e){u(t,e)||p(t,e)})}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function y(t,e){var o=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return t+o>=e&&e>=t-o}function b(){return"undefined"!=typeof performance&&"undefined"!=typeof performance.now?performance.now():+new Date}function w(){for(var t={top:0,left:0},e=arguments.length,o=Array(e),i=0;i1?o-1:0),n=1;n16?(e=Math.min(e-16,250),void(o=setTimeout(n,250))):void("undefined"!=typeof t&&b()-t<10||(null!=o&&(clearTimeout(o),o=null),t=b(),X(),e=b()-t))};"undefined"!=typeof window&&"undefined"!=typeof window.addEventListener&&["resize","scroll","touchmove"].forEach(function(t){window.addEventListener(t,i)})}();var F={center:"center",left:"right",right:"left"},H={middle:"middle",top:"bottom",bottom:"top"},N={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},U=function(t,e){var o=t.left,i=t.top;return"auto"===o&&(o=F[e.left]),"auto"===i&&(i=H[e.top]),{left:o,top:i}},V=function(t){var e=t.left,o=t.top;return"undefined"!=typeof N[t.left]&&(e=N[t.left]),"undefined"!=typeof N[t.top]&&(o=N[t.top]),{left:e,top:o}},R=function(t){var e=t.split(" "),o=z(e,2),i=o[0],n=o[1];return{top:i,left:n}},q=R,I=function(t){function e(t){var o=this;i(this,e),j(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.position=this.position.bind(this),D.push(this),this.history=[],this.setOptions(t,!1),x.modules.forEach(function(t){"undefined"!=typeof t.initialize&&t.initialize.call(o)}),this.position()}return v(e,t),E(e,[{key:"getClass",value:function(){var t=arguments.length<=0||void 0===arguments[0]?"":arguments[0],e=this.options.classes;return"undefined"!=typeof e&&e[t]?this.options.classes[t]:this.options.classPrefix?this.options.classPrefix+"-"+t:t}},{key:"setOptions",value:function(t){var e=this,o=arguments.length<=1||void 0===arguments[1]||arguments[1],i={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"};this.options=h(i,t);var n=this.options,s=n.element,a=n.target,f=n.targetModifier;if(this.element=s,this.target=a,this.targetModifier=f,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach(function(t){if("undefined"==typeof e[t])throw new Error("Tether Error: Both element and target must be defined");"undefined"!=typeof e[t].jquery?e[t]=e[t][0]:"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))}),p(this.element,this.getClass("element")),this.options.addTargetClasses!==!1&&p(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=q(this.options.targetAttachment),this.attachment=q(this.options.attachment),this.offset=R(this.options.offset),this.targetOffset=R(this.options.targetOffset),"undefined"!=typeof this.scrollParents&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=r(this.target),this.options.enabled!==!1&&this.enable(o)}},{key:"getTargetBounds",value:function(){if("undefined"==typeof this.targetModifier)return a(this.target);if("visible"===this.targetModifier){if(this.target===document.body)return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth};var t=a(this.target),e={height:t.height,width:t.width,top:t.top,left:t.left};return e.height=Math.min(e.height,t.height-(pageYOffset-t.top)),e.height=Math.min(e.height,t.height-(t.top+t.height-(pageYOffset+innerHeight))),e.height=Math.min(innerHeight,e.height),e.height-=2,e.width=Math.min(e.width,t.width-(pageXOffset-t.left)),e.width=Math.min(e.width,t.width-(t.left+t.width-(pageXOffset+innerWidth))),e.width=Math.min(innerWidth,e.width),e.width-=2,e.topo.clientWidth||[i.overflow,i.overflowX].indexOf("scroll")>=0||this.target!==document.body,r=0;n&&(r=15);var s=t.height-parseFloat(i.borderTopWidth)-parseFloat(i.borderBottomWidth)-r,e={width:15,height:.975*s*(s/o.scrollHeight),left:t.left+t.width-parseFloat(i.borderLeftWidth)-15},f=0;s<408&&this.target===document.body&&(f=-11e-5*Math.pow(s,2)-.00727*s+22.58),this.target!==document.body&&(e.height=Math.max(e.height,24));var l=this.target.scrollTop/(o.scrollHeight-s);return e.top=l*(s-e.height-f)+t.top+parseFloat(i.borderTopWidth),this.target===document.body&&(e.height=Math.max(e.height,24)),e}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(t,e){return"undefined"==typeof this._cache&&(this._cache={}),"undefined"==typeof this._cache[t]&&(this._cache[t]=e.call(this)),this._cache[t]}},{key:"enable",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]||arguments[0];this.options.addTargetClasses!==!1&&p(this.target,this.getClass("enabled")),p(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach(function(e){e!==t.target.ownerDocument&&e.addEventListener("scroll",t.position)}),e&&this.position()}},{key:"disable",value:function(){var t=this;d(this.target,this.getClass("enabled")),d(this.element,this.getClass("enabled")),this.enabled=!1,"undefined"!=typeof this.scrollParents&&this.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.position)})}},{key:"destroy",value:function(){var t=this;this.disable(),D.forEach(function(e,o){e===t&&D.splice(o,1)}),0===D.length&&s()}},{key:"updateAttachClasses",value:function(t,e){var o=this;t=t||this.attachment,e=e||this.targetAttachment;var i=["left","top","bottom","right","middle","center"];"undefined"!=typeof this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),"undefined"==typeof this._addAttachClasses&&(this._addAttachClasses=[]);var n=this._addAttachClasses;t.top&&n.push(this.getClass("element-attached")+"-"+t.top),t.left&&n.push(this.getClass("element-attached")+"-"+t.left),e.top&&n.push(this.getClass("target-attached")+"-"+e.top),e.left&&n.push(this.getClass("target-attached")+"-"+e.left);var r=[];i.forEach(function(t){r.push(o.getClass("element-attached")+"-"+t),r.push(o.getClass("target-attached")+"-"+t)}),k(function(){"undefined"!=typeof o._addAttachClasses&&(m(o.element,o._addAttachClasses,r),o.options.addTargetClasses!==!1&&m(o.target,o._addAttachClasses,r),delete o._addAttachClasses)})}},{key:"position",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();var o=U(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,o);var i=this.cache("element-bounds",function(){return a(t.element)}),n=i.width,r=i.height;if(0===n&&0===r&&"undefined"!=typeof this.lastSize){var s=this.lastSize;n=s.width,r=s.height}else this.lastSize={width:n,height:r};var h=this.cache("target-bounds",function(){return t.getTargetBounds()}),d=h,p=C(V(this.attachment),{width:n,height:r}),u=C(V(o),d),c=C(this.offset,{width:n,height:r}),g=C(this.targetOffset,d);p=w(p,c),u=w(u,g);for(var m=h.left+u.left-p.left,v=h.top+u.top-p.top,y=0;yA.documentElement.clientHeight&&(S=this.cache("scrollbar-size",l),E.viewport.bottom-=S.height),T.innerWidth>A.documentElement.clientWidth&&(S=this.cache("scrollbar-size",l),E.viewport.right-=S.width),["","static"].indexOf(A.body.style.position)!==-1&&["","static"].indexOf(A.body.parentElement.style.position)!==-1||(E.page.bottom=A.body.scrollHeight-v-r,E.page.right=A.body.scrollWidth-m-n),"undefined"!=typeof this.options.optimizations&&this.options.optimizations.moveElement!==!1&&"undefined"==typeof this.targetModifier&&!function(){var e=t.cache("target-offsetparent",function(){return f(t.target)}),o=t.cache("target-offsetparent-bounds",function(){return a(e)}),i=getComputedStyle(e),n=o,r={};if(["Top","Left","Bottom","Right"].forEach(function(t){r[t.toLowerCase()]=parseFloat(i["border"+t+"Width"])}),o.right=A.body.scrollWidth-o.left-n.width+r.right,o.bottom=A.body.scrollHeight-o.top-n.height+r.bottom,E.page.top>=o.top+r.top&&E.page.bottom>=o.bottom&&E.page.left>=o.left+r.left&&E.page.right>=o.right){var s=e.scrollTop,l=e.scrollLeft;E.offset={top:E.page.top-o.top+s-r.top,left:E.page.left-o.left+l-r.left}}}(),this.move(E),this.history.unshift(E),this.history.length>3&&this.history.pop(),e&&_(),!0}}},{key:"move",value:function(t){var e=this;if("undefined"!=typeof this.element.parentNode){var o={};for(var i in t){o[i]={};for(var n in t[i]){for(var r=!1,s=0;s=0){var c=a.split(" "),m=z(c,2);d=m[0],h=m[1]}else h=d=a;var b=O(e,r);"target"!==d&&"both"!==d||(ob[3]&&"bottom"===v.top&&(o-=p,v.top="top")),"together"===d&&("top"===v.top&&("bottom"===y.top&&ob[3]&&o-(s-p)>=b[1]&&(o-=s-p,v.top="bottom",y.top="bottom")),"bottom"===v.top&&("top"===y.top&&o+s>b[3]?(o-=p,v.top="top",o-=s,y.top="bottom"):"bottom"===y.top&&ob[3]&&"top"===y.top?(o-=s,y.top="bottom"):ob[2]&&"right"===v.left&&(i-=u,v.left="left")),"together"===h&&(ib[2]&&"right"===v.left?"left"===y.left?(i-=u,v.left="left",i-=f,y.left="right"):"right"===y.left&&(i-=u,v.left="left",i+=f,y.left="left"):"center"===v.left&&(i+f>b[2]&&"left"===y.left?(i-=f,y.left="right"):ib[3]&&"top"===y.top&&(o-=s,y.top="bottom")),"element"!==h&&"both"!==h||(ib[2]&&("left"===y.left?(i-=f,y.left="right"):"center"===y.left&&(i-=f/2,y.left="right"))),"string"==typeof l?l=l.split(",").map(function(t){return t.trim()}):l===!0&&(l=["top","left","right","bottom"]),l=l||[];var w=[],C=[];o=0?(o=b[1],w.push("top")):C.push("top")),o+s>b[3]&&(l.indexOf("bottom")>=0?(o=b[3]-s,w.push("bottom")):C.push("bottom")),i=0?(i=b[0],w.push("left")):C.push("left")),i+f>b[2]&&(l.indexOf("right")>=0?(i=b[2]-f,w.push("right")):C.push("right")),w.length&&!function(){var t=void 0;t="undefined"!=typeof e.options.pinnedClass?e.options.pinnedClass:e.getClass("pinned"),g.push(t),w.forEach(function(e){g.push(t+"-"+e)})}(),C.length&&!function(){var t=void 0;t="undefined"!=typeof e.options.outOfBoundsClass?e.options.outOfBoundsClass:e.getClass("out-of-bounds"),g.push(t),C.forEach(function(e){g.push(t+"-"+e)})}(),(w.indexOf("left")>=0||w.indexOf("right")>=0)&&(y.left=v.left=!1),(w.indexOf("top")>=0||w.indexOf("bottom")>=0)&&(y.top=v.top=!1),v.top===n.top&&v.left===n.left&&y.top===e.attachment.top&&y.left===e.attachment.left||(e.updateAttachClasses(y,v),e.trigger("update",{attachment:y,targetAttachment:v}))}),k(function(){e.options.addTargetClasses!==!1&&m(e.target,g,c),m(e.element,g,c)}),{top:o,left:i}}});var Y=x.Utils,a=Y.getBounds,m=Y.updateClasses,k=Y.defer;x.modules.push({position:function(t){var e=this,o=t.top,i=t.left,n=this.cache("element-bounds",function(){return a(e.element)}),r=n.height,s=n.width,f=this.getTargetBounds(),l=o+r,h=i+s,d=[];o<=f.bottom&&l>=f.top&&["left","right"].forEach(function(t){var e=f[t];e!==i&&e!==h||d.push(t)}),i<=f.right&&h>=f.left&&["top","bottom"].forEach(function(t){var e=f[t];e!==o&&e!==l||d.push(t)});var p=[],u=[],c=["left","top","right","bottom"];return p.push(this.getClass("abutted")),c.forEach(function(t){p.push(e.getClass("abutted")+"-"+t)}),d.length&&u.push(this.getClass("abutted")),d.forEach(function(t){u.push(e.getClass("abutted")+"-"+t)}),k(function(){e.options.addTargetClasses!==!1&&m(e.target,u,p),m(e.element,u,p)}),!0}});var z=function(){function t(t,e){var o=[],i=!0,n=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(o.push(s.value),!e||o.length!==e);i=!0);}catch(f){n=!0,r=f}finally{try{!i&&a["return"]&&a["return"]()}finally{if(n)throw r}}return o}return function(e,o){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();return x.modules.push({position:function(t){var e=t.top,o=t.left;if(this.options.shift){var i=this.options.shift;"function"==typeof this.options.shift&&(i=this.options.shift.call(this,{top:e,left:o}));var n=void 0,r=void 0;if("string"==typeof i){i=i.split(" "),i[1]=i[1]||i[0];var s=i,a=z(s,2);n=a[0],r=a[1],n=parseFloat(n,10),r=parseFloat(r,10)}else n=i.top,r=i.left;return e+=n,o+=r,{top:e,left:o}}}}),$}); \ No newline at end of file diff --git a/languages/en.json b/languages/en.json new file mode 100644 index 0000000..8a9dd62 --- /dev/null +++ b/languages/en.json @@ -0,0 +1,11 @@ +{ + "theme-data": + { + "name": "Mediumish", + "description": "Theme like Medium. Similar look and feel, Mediumish is the perfect for blogs." + }, + "all-stories": "All Stories", + "no-pages-found": "No pages found", + "complete-the-description-of-the-article": "Complete the description of the article." + +} \ No newline at end of file diff --git a/languages/es.json b/languages/es.json new file mode 100644 index 0000000..133cbf6 --- /dev/null +++ b/languages/es.json @@ -0,0 +1,11 @@ +{ + "theme-data": + { + "name": "Mediumish", + "description": "Mediumish es un tema similar al aspecto de Medium. Es ideal para blogs." + }, + "all-stories": "Todas las historias", + "no-pages-found": "No se han encontrado páginas", + "complete-the-description-of-the-article": "Complete la descripción del artículo." + +} \ No newline at end of file diff --git a/license.txt b/license.txt new file mode 100755 index 0000000..68da9df --- /dev/null +++ b/license.txt @@ -0,0 +1,8 @@ +Bludit ported the theme Mediumish by WowThemes.net + +Template Name: Mediumish +Copyright: WowThemes.net, https://www.wowthemes.net, WOW DEVELOPMENT, Bucharest +Version: 1.0.0 +https://www.wowthemes.net/mediumish-free-bootstrap-4-0-html-template-medium-styled/ + +License https://www.wowthemes.net/freebies-license/ \ No newline at end of file diff --git a/metadata.json b/metadata.json new file mode 100644 index 0000000..8cf5c1f --- /dev/null +++ b/metadata.json @@ -0,0 +1,10 @@ +{ + "author": "Wowthemes", + "email": "", + "website": "https://github.com/bludit-themes/mediumish", + "version": "1.3", + "releaseDate": "2018-11-29", + "license": "Freebies", + "compatible": "3.5", + "notes": "" +} \ No newline at end of file diff --git a/php/head.php b/php/head.php new file mode 100644 index 0000000..14a9d6a --- /dev/null +++ b/php/head.php @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/php/home.php b/php/home.php new file mode 100644 index 0000000..1c154c9 --- /dev/null +++ b/php/home.php @@ -0,0 +1,134 @@ + + +
+
+

title(); ?>

+

description(); ?>

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

p('Search'):$language->p('All stories')) ?>

+
+
+ p('No pages found'); } ?> + + +
+ +
+
+
+

title(); ?>

+

description())?$language->p('Complete the description of the article'):$page->description()) ?>

+
+
+ + <?php echo $page->user('nickname') ?> + + + user('nickname'); ?>
+ readingTime(); ?> +
+ +
+
+
+
+ + + +
+
+ + + 1): ?> + + + + + + + +
+ diff --git a/php/page.php b/php/page.php new file mode 100644 index 0000000..1f0a49a --- /dev/null +++ b/php/page.php @@ -0,0 +1,91 @@ + +
+
+ + +
+ +
+ + + +
+ + + + +
+

title(); ?>

+
+ + by user('nickname'); ?>
+ readingTime(); ?> +
+
+
+ + + coverImage()): ?> + <?php echo $page->title(); ?> + + + + +
+ content(); ?> +
+ + + + tags(true))): ?> + + + + + + + +
+ + +
+ + + + +
+ diff --git a/php/topbar.php b/php/topbar.php new file mode 100644 index 0000000..9c818ee --- /dev/null +++ b/php/topbar.php @@ -0,0 +1,51 @@ + + + + diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000..69e23d6 Binary files /dev/null and b/screenshot.png differ