diff --git a/plugins/share/assets/fontello/LICENSE.txt b/plugins/share/assets/fontello/LICENSE.txt deleted file mode 100644 index 8fa3da3..0000000 --- a/plugins/share/assets/fontello/LICENSE.txt +++ /dev/null @@ -1,12 +0,0 @@ -Font license info - - -## Font Awesome - - Copyright (C) 2016 by Dave Gandy - - Author: Dave Gandy - License: SIL () - Homepage: http://fortawesome.github.com/Font-Awesome/ - - diff --git a/plugins/share/assets/fontello/README.txt b/plugins/share/assets/fontello/README.txt deleted file mode 100644 index beaab33..0000000 --- a/plugins/share/assets/fontello/README.txt +++ /dev/null @@ -1,75 +0,0 @@ -This webfont is generated by http://fontello.com open source project. - - -================================================================================ -Please, note, that you should obey original font licenses, used to make this -webfont pack. Details available in LICENSE.txt file. - -- Usually, it's enough to publish content of LICENSE.txt file somewhere on your - site in "About" section. - -- If your project is open-source, usually, it will be ok to make LICENSE.txt - file publicly available in your repository. - -- Fonts, used in Fontello, don't require a clickable link on your site. - But any kind of additional authors crediting is welcome. -================================================================================ - - -Comments on archive content ---------------------------- - -- /font/* - fonts in different formats - -- /css/* - different kinds of css, for all situations. Should be ok with - twitter bootstrap. Also, you can skip style and assign icon classes - directly to text elements, if you don't mind about IE7. - -- demo.html - demo file, to show your webfont content - -- LICENSE.txt - license info about source fonts, used to build your one. - -- config.json - keeps your settings. You can import it back into fontello - anytime, to continue your work - - -Why so many CSS files ? ------------------------ - -Because we like to fit all your needs :) - -- basic file, .css - is usually enough, it contains @font-face - and character code definitions - -- *-ie7.css - if you need IE7 support, but still don't wish to put char codes - directly into html - -- *-codes.css and *-ie7-codes.css - if you like to use your own @font-face - rules, but still wish to benefit from css generation. That can be very - convenient for automated asset build systems. When you need to update font - - no need to manually edit files, just override old version with archive - content. See fontello source code for examples. - -- *-embedded.css - basic css file, but with embedded WOFF font, to avoid - CORS issues in Firefox and IE9+, when fonts are hosted on the separate domain. - We strongly recommend to resolve this issue by `Access-Control-Allow-Origin` - server headers. But if you ok with dirty hack - this file is for you. Note, - that data url moved to separate @font-face to avoid problems with - - - - - - - -
-

fontello font demo

- -
-
-
-
icon-twitter0xf099
-
icon-facebook0xf09a
-
icon-xing0xf168
-
-
- - - \ No newline at end of file diff --git a/plugins/share/assets/fontello/font/fontello.eot b/plugins/share/assets/fontello/font/fontello.eot deleted file mode 100644 index cf8b3b2..0000000 Binary files a/plugins/share/assets/fontello/font/fontello.eot and /dev/null differ diff --git a/plugins/share/assets/fontello/font/fontello.svg b/plugins/share/assets/fontello/font/fontello.svg deleted file mode 100644 index 3176f43..0000000 --- a/plugins/share/assets/fontello/font/fontello.svg +++ /dev/null @@ -1,16 +0,0 @@ - - - -Copyright (C) 2018 by original authors @ fontello.com - - - - - - - - - - - - \ No newline at end of file diff --git a/plugins/share/assets/fontello/font/fontello.ttf b/plugins/share/assets/fontello/font/fontello.ttf deleted file mode 100644 index 1fb5537..0000000 Binary files a/plugins/share/assets/fontello/font/fontello.ttf and /dev/null differ diff --git a/plugins/share/assets/fontello/font/fontello.woff b/plugins/share/assets/fontello/font/fontello.woff deleted file mode 100644 index 65bc24b..0000000 Binary files a/plugins/share/assets/fontello/font/fontello.woff and /dev/null differ diff --git a/plugins/share/assets/fontello/font/fontello.woff2 b/plugins/share/assets/fontello/font/fontello.woff2 deleted file mode 100644 index 8b11148..0000000 Binary files a/plugins/share/assets/fontello/font/fontello.woff2 and /dev/null differ diff --git a/plugins/share/share.php b/plugins/share/share.php deleted file mode 100644 index b535f1f..0000000 --- a/plugins/share/share.php +++ /dev/null @@ -1,231 +0,0 @@ - 'onItemLoaded', - 'onPageReady' => 'onPageReady' - ); - } - - public function onItemLoaded($item) - { - $this->item = $item->getData(); - } - - public function onPageReady($pageData) - { - $data = $pageData->getData(); - - $this->addCSS('/share/assets/fontello/css/fontello.css'); - $this->addInlineCSS($this->getCSS()); - - if(isset($this->item->elementType) && $this->item->elementType == 'file') - { - $url = $this->item->urlAbs; - $tags = 'website,cms'; - $tags .= str_replace(array('/','-'),',', $this->item->urlRel); - $title = $data['title']; - $description = $data['description']; - $shortDescription = substr($data['description'], 0, strpos(wordwrap($data['description'], 100), "\n")) . '...'; - $image = $data['image']; - $image = isset($image['img_url']) ? $image['img_url'] : false; - - $shareCard = $this->getShareCard($title, $description, $image, $url, $tags, $shortDescription); - - $content = $data['content'] . $shareCard; - - $data['content'] = $content; - } - - $pageData->setData($data); - } - - protected function getCSS() - { - return '.share-card{ - width: 100%; - } - .share-content{ - width:100%; - display: inline-block; - vertical-align:top; - box-sizing:border-box; - border-right: 1px solid #fff; - } - .share-image{ - position:relative; - border-top-left-radius:5px; - border-top-right-radius:5px; - overflow: hidden; - background: #eee; - max-height: 250px; - text-align: center; - } - .share-image{ - width:100%; - } - .share-image p{ - line-height: 150px; - width: 100%; - color: #ccc; - position: absolute; - } - .share-text{ - box-sizing:border-box; - overflow: hidden; - border-left: 2px solid #eee; - border-right: 2px solid #eee; - font-size: 0.85em; - line-height: 1.2em; - padding: 0.5em; - } - .share-text h4{ - padding: 0px; - margin: 8px 0; - } - .share-text p{ - padding: 0px; - margin: 0px; - } - .share-box{ - width:100%; - display: inline-block; - vertical-align:top; - box-sizing:border-box; - background: #eee; - overflow:hidden; - border-bottom-left-radius: 5px; - border-bottom-right-radius:5px; - height: auto; - } - .share-button, .share-headline{ - width: 33.2%; - display:inline-block; - height: auto; - text-align: center; - } - .share-headline{ - display:none; - font-size:0.85em; - font-weight: 300; - color: #444; - padding: 10px 10px; - box-sizing:border-box; - } - .share-headline h4{ - padding:0px; - margin:0px; - font-size:1em; - } - .share-button a,.share-button a:link,.share-button a:visited{ - display: block; - width: 100%; - line-height: 60px; - background: transparent; - color: #fff; - font-size: 1.5em; - } - .share-button.twitter a{ - background:#C8E0EF; - } - .share-button.twitter a:hover{ - background:#1DA1F2; - } - .share-button.facebook a{ - background:#CDD3DE; - } - .share-button.facebook a:hover{ - background: #3B5998; - } - .share-button.xing a{ - background: #E8EBC3; - } - .share-button.xing a:hover{ - background: #cfdc00; - } - @media only screen and (min-width: 550px){ - .share-headline{ - display: inline-block; - } - .share-headline, .share-button{ - width: 25%; - } - } - @media only screen and (min-width: 1050px){ - .share-image{ - border-top-right-radius: 0px; - height:250px; - } - .share-text{ - height: 115px; - border-right: 0px; - border-bottom: 2px solid #eee; - border-bottom-left-radius: 5px; - } - .share-button, .share-headline{ - width: 100%; - } - .share-headline{ - padding: 40px 10px; - } - .share-content{ - width:70%; - } - .share-box{ - width:29%; - height: 365px; - border-bottom-left-radius: 0px; - border-top-right-radius: 5px; - } - .share-button, .share-headline{ - height: 91px; - border-bottom: 1px solid #fff; - } - .share-headline h4{ - font-size: 1.1em; - } - .share-button a,.share-button a:link,.share-button a:visited{ - line-height: 91px; - } - } - '; - } - - protected function getShareCard($title, $description, $image, $url, $tags, $shortDescription) - { - return ' - - '; - } -} \ No newline at end of file