From 7a6d13de2626f398037b097470f1af5acfff8322 Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Sun, 16 Jun 2019 22:31:09 +0200 Subject: [PATCH] Social network theme, still working on it --- bl-themes/social-network/css/style.css | 155 ++++++++++++++++++ bl-themes/social-network/img/codepen.svg | 5 + bl-themes/social-network/img/facebook.svg | 5 + bl-themes/social-network/img/favicon.png | Bin 0 -> 1025 bytes bl-themes/social-network/img/github.svg | 5 + bl-themes/social-network/img/gitlab.svg | 1 + bl-themes/social-network/img/googleplus.svg | 5 + bl-themes/social-network/img/instagram.svg | 1 + bl-themes/social-network/img/linkedin.svg | 5 + bl-themes/social-network/img/mastodon.svg | 1 + bl-themes/social-network/img/rss.svg | 1 + bl-themes/social-network/img/twitter.svg | 5 + bl-themes/social-network/index.php | 53 ++++++ bl-themes/social-network/init.php | 19 +++ bl-themes/social-network/install.php | 7 + bl-themes/social-network/languages/de_CH.json | 7 + bl-themes/social-network/languages/de_DE.json | 7 + bl-themes/social-network/languages/en.json | 7 + bl-themes/social-network/languages/es.json | 7 + bl-themes/social-network/languages/fa_IR.json | 7 + bl-themes/social-network/languages/it.json | 7 + bl-themes/social-network/languages/nl_NL.json | 7 + bl-themes/social-network/languages/ru_RU.json | 7 + bl-themes/social-network/languages/tr_TR.json | 7 + bl-themes/social-network/metadata.json | 10 ++ bl-themes/social-network/php/footer.php | 5 + bl-themes/social-network/php/head.php | 24 +++ bl-themes/social-network/php/home.php | 132 +++++++++++++++ bl-themes/social-network/php/navbar.php | 22 +++ bl-themes/social-network/php/page.php | 31 ++++ bl-themes/social-network/php/sidebar.php | 1 + 31 files changed, 556 insertions(+) create mode 100755 bl-themes/social-network/css/style.css create mode 100644 bl-themes/social-network/img/codepen.svg create mode 100644 bl-themes/social-network/img/facebook.svg create mode 100644 bl-themes/social-network/img/favicon.png create mode 100644 bl-themes/social-network/img/github.svg create mode 100644 bl-themes/social-network/img/gitlab.svg create mode 100644 bl-themes/social-network/img/googleplus.svg create mode 100644 bl-themes/social-network/img/instagram.svg create mode 100644 bl-themes/social-network/img/linkedin.svg create mode 100644 bl-themes/social-network/img/mastodon.svg create mode 100644 bl-themes/social-network/img/rss.svg create mode 100644 bl-themes/social-network/img/twitter.svg create mode 100755 bl-themes/social-network/index.php create mode 100644 bl-themes/social-network/init.php create mode 100644 bl-themes/social-network/install.php create mode 100644 bl-themes/social-network/languages/de_CH.json create mode 100644 bl-themes/social-network/languages/de_DE.json create mode 100644 bl-themes/social-network/languages/en.json create mode 100644 bl-themes/social-network/languages/es.json create mode 100644 bl-themes/social-network/languages/fa_IR.json create mode 100644 bl-themes/social-network/languages/it.json create mode 100644 bl-themes/social-network/languages/nl_NL.json create mode 100644 bl-themes/social-network/languages/ru_RU.json create mode 100644 bl-themes/social-network/languages/tr_TR.json create mode 100644 bl-themes/social-network/metadata.json create mode 100644 bl-themes/social-network/php/footer.php create mode 100644 bl-themes/social-network/php/head.php create mode 100644 bl-themes/social-network/php/home.php create mode 100644 bl-themes/social-network/php/navbar.php create mode 100644 bl-themes/social-network/php/page.php create mode 100644 bl-themes/social-network/php/sidebar.php diff --git a/bl-themes/social-network/css/style.css b/bl-themes/social-network/css/style.css new file mode 100755 index 00000000..cf313e69 --- /dev/null +++ b/bl-themes/social-network/css/style.css @@ -0,0 +1,155 @@ +html { + position: relative; + min-height: 100%; +} + +body { + /* Padding top for navbar */ + padding-top: 56px; + /* Margin bottom for footer height */ + margin-bottom: 60px; + + font-size: 0.9em; + background-color: #E6ECEF; +} + +section { + padding: 150px 0; +} + +img { + max-width: 100%; +} + + +pre, code { + background: #f8f8f8; + color: #333; +} + +pre { + border-left: 2px solid #ccc; + padding: 10px; +} + +code { + display: inline-block; + padding: 0 0.5em; + line-height: 1.4em; + border-radius: 3px; +} + +table { + empty-cells: show; + border: 1px solid #cbcbcb; + width: 100%; + font-size: 0.9em; + margin-bottom: 1rem; +} + +thead { + background-color: #e0e0e0; + color: #000; + text-align: left; + vertical-align: bottom; +} + +tr { + display: table-row; + vertical-align: inherit; + border-color: inherit; +} + +th, td { + padding: 0.5em 1em; +} + +h1.title, +h2.title { + font-size: 2.3rem; +} + +blockquote { + padding: 10px 20px; + margin: 0 0 20px 20px; + border-left: 5px solid #eee; + font-style: italic; +} + +.bg-light-blue { + background: #EAF4FB; +} + +/* Navbar */ +img.nav-svg-icon { + width: 1rem; + height: 1rem; + padding-bottom: 2px; +} + +.nav-link { + font-size: 0.8em; +} + +/* Footer */ +footer { + position: absolute; + bottom: 0; + width: 100%; + height: 60px; + line-height: 60px; + font-size: 0.8em; +} + +.mini-logo { + height: 22px; + padding-bottom: 5px; +} + +/* Plugins */ +.plugin { + padding: 1rem!important; + margin-top: .5rem!important; + margin-bottom: .5rem!important; + position: relative; + display: -ms-flexbox; + display: flex; + -ms-flex-direction: column; + flex-direction: column; + min-width: 0; + word-wrap: break-word; + background-color: #fff; + background-clip: border-box; + border: 1px solid rgba(0,0,0,.125); + border-radius: .25rem; +} + +.plugin-label { + font-size: 1em; + text-transform: uppercase; +} + +.plugin ul { + list-style: none; + padding: 0 0 0 10px; +} + +.share { + font-size: 1.4em; +} + +.share a { + text-decoration: none; + margin: 0 2px; +} +.share .twitter { + color: #1BA1F2; +} + +.share .facebook { + color: #3B5A97; +} + +.share .reddit { + color: #FF4500; +} \ No newline at end of file diff --git a/bl-themes/social-network/img/codepen.svg b/bl-themes/social-network/img/codepen.svg new file mode 100644 index 00000000..a2e9dd0f --- /dev/null +++ b/bl-themes/social-network/img/codepen.svg @@ -0,0 +1,5 @@ + + + CodePen icon + + \ No newline at end of file diff --git a/bl-themes/social-network/img/facebook.svg b/bl-themes/social-network/img/facebook.svg new file mode 100644 index 00000000..aec3d78f --- /dev/null +++ b/bl-themes/social-network/img/facebook.svg @@ -0,0 +1,5 @@ + + + Facebook icon + + \ No newline at end of file diff --git a/bl-themes/social-network/img/favicon.png b/bl-themes/social-network/img/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..60349a2b41b19b00ec222b8e0e1994cb8ebd7d3f GIT binary patch literal 1025 zcmV+c1pfPpP)2CR?pZ05dPVI7AJ_cwKcwze@ZqB zldgHa-j=TG-vN-u0)V91Gj;&@z~RNk1)|X?8jS`P78dx9Jpe3X6{ScdqUpNct=H>5 zLy~Fd>;O=58S<~f!yaX38`QKm!ow|C*+Si^U?2j*if5HWhWIof`#!;|yw= zCX@+U2kPtqqygkAl?s-Zm*r)of-4IKgQ!-k@^Y>)91hDp{*tP6IxTq&{%&p2M9pW% z4gjlG)DSu@+aiJTJw87E+3j{enkm6ihM`dC^WEK@cT@m@K%m!ZwZ4v`0@f57Zf|d; zy=-TpP!I}IsnmcPD{!P~Wo3o8zW_LLD?{ds6gdavnm#}!@S2*MLakO4V3vA(89)xf z-=TODP81a9=H_A#4-dY@#YNoQ+(5~aAY!o?&d<*+0TA@;Eafjw$Zom=;Pd&~J3Bkm z)N|hhkjv#{)&0pH0OIs-Y-~t@>+9=5A*$o@^769p74854=qVLUOiZBD>EQ8Ec4xIR zD5vCnY;SK%j#0XlAyshHV)&I8SBlp*9p#hICz_|wzVNLI{l z&Ck#4tyb&Xs8%da$W>4cZ-Y~Rc6KJVyt&DP&r7hlrfJ<;t;R!%P@O98L82!VmmBM# v+ARRpaRQ-4d2XZ~vKW1y%m2r2?F{S>=?JMX!0RGF00000NkvXXu0mjfYZ>#^ literal 0 HcmV?d00001 diff --git a/bl-themes/social-network/img/github.svg b/bl-themes/social-network/img/github.svg new file mode 100644 index 00000000..e5c51731 --- /dev/null +++ b/bl-themes/social-network/img/github.svg @@ -0,0 +1,5 @@ + + + GitHub icon + + \ No newline at end of file diff --git a/bl-themes/social-network/img/gitlab.svg b/bl-themes/social-network/img/gitlab.svg new file mode 100644 index 00000000..befb8db2 --- /dev/null +++ b/bl-themes/social-network/img/gitlab.svg @@ -0,0 +1 @@ +GitLab icon \ No newline at end of file diff --git a/bl-themes/social-network/img/googleplus.svg b/bl-themes/social-network/img/googleplus.svg new file mode 100644 index 00000000..3b221b4c --- /dev/null +++ b/bl-themes/social-network/img/googleplus.svg @@ -0,0 +1,5 @@ + + + Google+ icon + + \ No newline at end of file diff --git a/bl-themes/social-network/img/instagram.svg b/bl-themes/social-network/img/instagram.svg new file mode 100644 index 00000000..10b83fe9 --- /dev/null +++ b/bl-themes/social-network/img/instagram.svg @@ -0,0 +1 @@ +Instagram icon diff --git a/bl-themes/social-network/img/linkedin.svg b/bl-themes/social-network/img/linkedin.svg new file mode 100644 index 00000000..144f8a8a --- /dev/null +++ b/bl-themes/social-network/img/linkedin.svg @@ -0,0 +1,5 @@ + + + LinkedIn icon + + \ No newline at end of file diff --git a/bl-themes/social-network/img/mastodon.svg b/bl-themes/social-network/img/mastodon.svg new file mode 100644 index 00000000..c3d117ae --- /dev/null +++ b/bl-themes/social-network/img/mastodon.svg @@ -0,0 +1 @@ +Mastodon icon \ No newline at end of file diff --git a/bl-themes/social-network/img/rss.svg b/bl-themes/social-network/img/rss.svg new file mode 100644 index 00000000..c47a1157 --- /dev/null +++ b/bl-themes/social-network/img/rss.svg @@ -0,0 +1 @@ +RSS icon \ No newline at end of file diff --git a/bl-themes/social-network/img/twitter.svg b/bl-themes/social-network/img/twitter.svg new file mode 100644 index 00000000..e0476a28 --- /dev/null +++ b/bl-themes/social-network/img/twitter.svg @@ -0,0 +1,5 @@ + + + Twitter icon + + \ No newline at end of file diff --git a/bl-themes/social-network/index.php b/bl-themes/social-network/index.php new file mode 100755 index 00000000..519fb2fc --- /dev/null +++ b/bl-themes/social-network/index.php @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + +
+
+ + +
+ +
+ + +
+ +
+ +
+
+ + + + + + + + + + + + \ No newline at end of file diff --git a/bl-themes/social-network/init.php b/bl-themes/social-network/init.php new file mode 100644 index 00000000..ac9fed10 --- /dev/null +++ b/bl-themes/social-network/init.php @@ -0,0 +1,19 @@ +isLogged()) { + try { + $user = new User($login->username()); + } catch (Exception $e) { + $user = false; + } + } +} + +$api = getPlugin('pluginAPI'); +$apiToken = $api->getToken(); + +?> \ No newline at end of file diff --git a/bl-themes/social-network/install.php b/bl-themes/social-network/install.php new file mode 100644 index 00000000..70419400 --- /dev/null +++ b/bl-themes/social-network/install.php @@ -0,0 +1,7 @@ + \ No newline at end of file diff --git a/bl-themes/social-network/languages/de_CH.json b/bl-themes/social-network/languages/de_CH.json new file mode 100644 index 00000000..44c515a2 --- /dev/null +++ b/bl-themes/social-network/languages/de_CH.json @@ -0,0 +1,7 @@ +{ + "theme-data": + { + "name": "Blog X", + "description": "Theme für Blogs mit Navigatiationsleiste mit statischen Seiten und Social Media Icons, rechter Seitenleiste und Angabe der Lesezeit." + } +} diff --git a/bl-themes/social-network/languages/de_DE.json b/bl-themes/social-network/languages/de_DE.json new file mode 100644 index 00000000..44c515a2 --- /dev/null +++ b/bl-themes/social-network/languages/de_DE.json @@ -0,0 +1,7 @@ +{ + "theme-data": + { + "name": "Blog X", + "description": "Theme für Blogs mit Navigatiationsleiste mit statischen Seiten und Social Media Icons, rechter Seitenleiste und Angabe der Lesezeit." + } +} diff --git a/bl-themes/social-network/languages/en.json b/bl-themes/social-network/languages/en.json new file mode 100644 index 00000000..675b6ed6 --- /dev/null +++ b/bl-themes/social-network/languages/en.json @@ -0,0 +1,7 @@ +{ + "theme-data": + { + "name": "Social Network", + "description": "" + } +} \ No newline at end of file diff --git a/bl-themes/social-network/languages/es.json b/bl-themes/social-network/languages/es.json new file mode 100644 index 00000000..e71bd43a --- /dev/null +++ b/bl-themes/social-network/languages/es.json @@ -0,0 +1,7 @@ +{ + "theme-data": + { + "name": "Blog X", + "description": "Tema para bloggers, soporte para tiempo de lectura y barra de navegación con iconos sociales y páginas estáticas." + } +} \ No newline at end of file diff --git a/bl-themes/social-network/languages/fa_IR.json b/bl-themes/social-network/languages/fa_IR.json new file mode 100644 index 00000000..1ae3df3f --- /dev/null +++ b/bl-themes/social-network/languages/fa_IR.json @@ -0,0 +1,7 @@ +{ + "theme-data": + { + "name": "Blog X", + "description": "قالبی برای وبلاگ نویس ها، به همراه نوار کناری، زمان مطالعه و نوار ناوبری به همراه آیکن های شبکه مجازی و صفحات استاتیک." + } +} diff --git a/bl-themes/social-network/languages/it.json b/bl-themes/social-network/languages/it.json new file mode 100644 index 00000000..4215130c --- /dev/null +++ b/bl-themes/social-network/languages/it.json @@ -0,0 +1,7 @@ +{ + "theme-data": + { + "name": "Blog X", + "description": "Tema per blogger, con barra laterale a destra, tempo di lettura e barra di navigazione con icone social e pagine statiche." + } +} diff --git a/bl-themes/social-network/languages/nl_NL.json b/bl-themes/social-network/languages/nl_NL.json new file mode 100644 index 00000000..1b5fb278 --- /dev/null +++ b/bl-themes/social-network/languages/nl_NL.json @@ -0,0 +1,7 @@ +{ + "theme-data": + { + "name": "Blog X", + "description": "Thema voor bloggers, met zijbalk rechts, leestijdindicatie en navigatiebalk met social media en statische pagina's." + } +} \ No newline at end of file diff --git a/bl-themes/social-network/languages/ru_RU.json b/bl-themes/social-network/languages/ru_RU.json new file mode 100644 index 00000000..8995c0a2 --- /dev/null +++ b/bl-themes/social-network/languages/ru_RU.json @@ -0,0 +1,7 @@ +{ + "theme-data": + { + "name": "Blog X", + "description": "Тема для блоггеров, с боковой панелью справа, примерным временем чтения материала и блоком навигации со значками социальных сетей и статическими страницами." + } +} \ No newline at end of file diff --git a/bl-themes/social-network/languages/tr_TR.json b/bl-themes/social-network/languages/tr_TR.json new file mode 100644 index 00000000..860e3a8d --- /dev/null +++ b/bl-themes/social-network/languages/tr_TR.json @@ -0,0 +1,7 @@ +{ + "theme-data": + { + "name": "Blog X", + "description": "Blog yazarları için tema, sağ kenar çubuğu ile birlikte. Okuma süresi, kenar çubuğunda sosyal simgeler ve sabit sayfalar." + } +} diff --git a/bl-themes/social-network/metadata.json b/bl-themes/social-network/metadata.json new file mode 100644 index 00000000..fb9d8f1b --- /dev/null +++ b/bl-themes/social-network/metadata.json @@ -0,0 +1,10 @@ +{ + "author": "Bludit", + "email": "", + "website": "https://themes.bludit.com", + "version": "3.9.1", + "releaseDate": "2019-05-30", + "license": "MIT", + "compatible": "3.9.1", + "notes": "" +} \ No newline at end of file diff --git a/bl-themes/social-network/php/footer.php b/bl-themes/social-network/php/footer.php new file mode 100644 index 00000000..e6d9bcc8 --- /dev/null +++ b/bl-themes/social-network/php/footer.php @@ -0,0 +1,5 @@ +
+
+

footer(); ?>Powered byBludit

+
+
\ No newline at end of file diff --git a/bl-themes/social-network/php/head.php b/bl-themes/social-network/php/head.php new file mode 100644 index 00000000..ed1a19f0 --- /dev/null +++ b/bl-themes/social-network/php/head.php @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bl-themes/social-network/php/home.php b/bl-themes/social-network/php/home.php new file mode 100644 index 00000000..9444af59 --- /dev/null +++ b/bl-themes/social-network/php/home.php @@ -0,0 +1,132 @@ + +
+ p('No pages found') ?> +
+ + + +
+
+
+ +
+
+ +
+
+
+ + + +
+ + +
+ + + + +
+ + + +
+ +

+ @user('nickname') ?> - + date() ?> +

+ + + contentBreak() ?> + + +
+
+ + + + +
+ +
diff --git a/bl-themes/social-network/php/navbar.php b/bl-themes/social-network/php/navbar.php new file mode 100644 index 00000000..f3605284 --- /dev/null +++ b/bl-themes/social-network/php/navbar.php @@ -0,0 +1,22 @@ + diff --git a/bl-themes/social-network/php/page.php b/bl-themes/social-network/php/page.php new file mode 100644 index 00000000..7b60f3d1 --- /dev/null +++ b/bl-themes/social-network/php/page.php @@ -0,0 +1,31 @@ + +
+ + + + + + coverImage()): ?> + Cover Image + + +
+ + +

title(); ?>

+
+ + isStatic() && !$url->notFound()): ?> + +
date(); ?> - get('Reading time') . ': ' . $page->readingTime() ?>
+ + + + content(); ?> + +
+ + + + +
diff --git a/bl-themes/social-network/php/sidebar.php b/bl-themes/social-network/php/sidebar.php new file mode 100644 index 00000000..3407d6f0 --- /dev/null +++ b/bl-themes/social-network/php/sidebar.php @@ -0,0 +1 @@ + \ No newline at end of file