Skip to content

Commit

Permalink
updated social component
Browse files Browse the repository at this point in the history
  • Loading branch information
cnotv committed Oct 27, 2017
1 parent 019cdd1 commit b41062c
Show file tree
Hide file tree
Showing 14 changed files with 268 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .cache-loader/09313997b75a4b034f27f71bb2cf2f50.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"remainingRequest":"/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/node_modules/buble-loader/index.js??ref--2-1!/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/node_modules/eslint-loader/index.js!/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/node_modules/import-glob/index.js!/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/resources/assets/scripts/main.js","dependencies":[{"path":"/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/resources/assets/scripts/main.js","mtime":1507565403000},{"path":"/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/node_modules/cache-loader/dist/cjs.js","mtime":1493198456000},{"path":"/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/node_modules/buble-loader/index.js","mtime":1487914911000},{"path":"/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/node_modules/eslint-loader/index.js","mtime":1499322156000},{"path":"/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/node_modules/import-glob/index.js","mtime":1475481585000}],"contextDependencies":[],"result":["// import external dependencies\nimport 'jquery';\n\n// import local dependencies\nimport Router from './util/Router';\nimport common from './routes/common';\nimport home from './routes/home';\nimport aboutUs from './routes/about';\nimport contact from './routes/contact';\n\n/** Populate Router instance with DOM routes */\nvar routes = new Router({\n // All pages\n common: common,\n // Home page\n home: home,\n // About Us page, note the change from about-us to aboutUs.\n aboutUs: aboutUs,\n contact: contact,\n});\n\n// Load Events\njQuery(document).ready(function () { return routes.loadEvents(); });\n",{"version":3,"file":"/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/resources/assets/scripts/main.js","sources":["resources/assets/scripts/main.js"],"sourcesContent":["// import external dependencies\nimport 'jquery';\n\n// import local dependencies\nimport Router from './util/Router';\nimport common from './routes/common';\nimport home from './routes/home';\nimport aboutUs from './routes/about';\nimport contact from './routes/contact';\n\n/** Populate Router instance with DOM routes */\nconst routes = new Router({\n // All pages\n common,\n // Home page\n home,\n // About Us page, note the change from about-us to aboutUs.\n aboutUs,\n contact,\n});\n\n// Load Events\njQuery(document).ready(() => routes.loadEvents());\n"],"names":["const"],"mappings":"AAAA;AACA,OAAO,QAAQ,CAAC;;;AAGhB,OAAO,MAAM,MAAM,eAAe,CAAC;AACnC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,OAAO,MAAM,gBAAgB,CAAC;AACrC,OAAO,OAAO,MAAM,kBAAkB,CAAC;;;AAGvCA,GAAK,CAAC,MAAM,GAAG,IAAI,MAAM,CAAC;;EAExB,QAAA,MAAM;;EAEN,MAAA,IAAI;;EAEJ,SAAA,OAAO;EACP,SAAA,OAAO;CACR,CAAC,CAAC;;;AAGH,MAAM,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,SAAA,GAAG,AAAG,SAAA,MAAM,CAAC,UAAU,EAAE,GAAA,CAAC,CAAC;","sourceRoot":"/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp"}]}
{"remainingRequest":"/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/node_modules/buble-loader/index.js??ref--2-1!/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/node_modules/eslint-loader/index.js!/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/node_modules/import-glob/index.js!/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/resources/assets/scripts/main.js","dependencies":[{"path":"/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/resources/assets/scripts/main.js","mtime":1509100337000},{"path":"/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/node_modules/cache-loader/dist/cjs.js","mtime":1493198456000},{"path":"/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/node_modules/buble-loader/index.js","mtime":1487914911000},{"path":"/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/node_modules/eslint-loader/index.js","mtime":1499322156000},{"path":"/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/node_modules/import-glob/index.js","mtime":1475481585000}],"contextDependencies":[],"result":["// import external dependencies\nimport 'jquery';\n\n// import local dependencies\nimport Router from './util/Router';\nimport common from './routes/common';\nimport home from './routes/home';\nimport aboutUs from './routes/about';\nimport contact from './routes/contact';\nimport single from './routes/single';\n\n/** Populate Router instance with DOM routes */\nvar routes = new Router({\n // All pages\n common: common,\n // Home page\n home: home,\n // About Us page, note the change from about-us to aboutUs.\n aboutUs: aboutUs,\n contact: contact,\n single: single,\n});\n\n// Load Events\njQuery(document).ready(function () { return routes.loadEvents(); });\n",{"version":3,"file":"/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/resources/assets/scripts/main.js","sources":["resources/assets/scripts/main.js"],"sourcesContent":["// import external dependencies\nimport 'jquery';\n\n// import local dependencies\nimport Router from './util/Router';\nimport common from './routes/common';\nimport home from './routes/home';\nimport aboutUs from './routes/about';\nimport contact from './routes/contact';\nimport single from './routes/single';\n\n/** Populate Router instance with DOM routes */\nconst routes = new Router({\n // All pages\n common,\n // Home page\n home,\n // About Us page, note the change from about-us to aboutUs.\n aboutUs,\n contact,\n single,\n});\n\n// Load Events\njQuery(document).ready(() => routes.loadEvents());\n"],"names":["const"],"mappings":"AAAA;AACA,OAAO,QAAQ,CAAC;;;AAGhB,OAAO,MAAM,MAAM,eAAe,CAAC;AACnC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,OAAO,MAAM,gBAAgB,CAAC;AACrC,OAAO,OAAO,MAAM,kBAAkB,CAAC;AACvC,OAAO,MAAM,MAAM,iBAAiB,CAAC;;;AAGrCA,GAAK,CAAC,MAAM,GAAG,IAAI,MAAM,CAAC;;EAExB,QAAA,MAAM;;EAEN,MAAA,IAAI;;EAEJ,SAAA,OAAO;EACP,SAAA,OAAO;EACP,QAAA,MAAM;CACP,CAAC,CAAC;;;AAGH,MAAM,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,SAAA,GAAG,AAAG,SAAA,MAAM,CAAC,UAAU,EAAE,GAAA,CAAC,CAAC;","sourceRoot":"/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp"}]}
2 changes: 1 addition & 1 deletion .cache-loader/a5f6c2f240e1cc4f74876e972dc24545.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"remainingRequest":"/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/node_modules/buble-loader/index.js??ref--2-1!/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/node_modules/eslint-loader/index.js!/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/node_modules/import-glob/index.js!/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/resources/assets/scripts/routes/common.js","dependencies":[{"path":"/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/resources/assets/scripts/routes/common.js","mtime":1507648831000},{"path":"/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/node_modules/cache-loader/dist/cjs.js","mtime":1493198456000},{"path":"/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/node_modules/buble-loader/index.js","mtime":1487914911000},{"path":"/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/node_modules/eslint-loader/index.js","mtime":1499322156000},{"path":"/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/node_modules/import-glob/index.js","mtime":1475481585000}],"contextDependencies":[],"result":["import lozad from 'lozad'\n\nimport Vue from 'vue'\nimport Search from '../vue/search.vue'\n\nexport default {\n init: function init() {\n // JavaScript to be fired on all pages\n\n // navbar elements\n $('.js-search').on('click', function () {\n $('body').toggleClass('has-search-open').removeClass('has-menu-open')\n $('.js-search-field').focus()\n $('.js-search-field').focus()\n })\n $('.js-burger').on('click', function () {\n $('body').toggleClass('has-menu-open').removeClass('has-search-open')\n })\n $('.o-nav-h ul a').on('click', function () {\n $('.js-burger').toggleClass('isLoading')\n })\n },\n finalize: function finalize() {\n // JavaScript to be fired on all pages, after page specific JS is fired\n\n // navbar search\n new Vue({\n el: 'search',\n components: {\n Search: Search,\n },\n })\n\n // lazy loads script\n var observer = lozad('.isLoading', {\n rootMargin: '10px 0px', // syntax similar to that of CSS Margin\n threshold: 0.1,\n load: function(el) {\n var image = el.getElementsByTagName('img')[0]\n el.classList.add('fadeIn')\n el.classList.remove('isLoading')\n image.src = image.dataset.src\n },\n })\n observer.observe()\n },\n}\n",{"version":3,"file":"/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/resources/assets/scripts/routes/common.js","sources":["resources/assets/scripts/routes/common.js"],"sourcesContent":["import lozad from 'lozad'\n\nimport Vue from 'vue'\nimport Search from '../vue/search.vue'\n\nexport default {\n init() {\n // JavaScript to be fired on all pages\n\n // navbar elements\n $('.js-search').on('click', () => {\n $('body').toggleClass('has-search-open').removeClass('has-menu-open')\n $('.js-search-field').focus()\n $('.js-search-field').focus()\n })\n $('.js-burger').on('click', () => {\n $('body').toggleClass('has-menu-open').removeClass('has-search-open')\n })\n $('.o-nav-h ul a').on('click', () => {\n $('.js-burger').toggleClass('isLoading')\n })\n },\n finalize() {\n // JavaScript to be fired on all pages, after page specific JS is fired\n\n // navbar search\n new Vue({\n el: 'search',\n components: {\n Search,\n },\n })\n\n // lazy loads script\n const observer = lozad('.isLoading', {\n rootMargin: '10px 0px', // syntax similar to that of CSS Margin\n threshold: 0.1,\n load: function(el) {\n let image = el.getElementsByTagName('img')[0]\n el.classList.add('fadeIn')\n el.classList.remove('isLoading')\n image.src = image.dataset.src\n },\n })\n observer.observe()\n },\n}\n"],"names":["const","let"],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO;;AAEzB,OAAO,GAAG,MAAM,KAAK;AACrB,OAAO,MAAM,MAAM,mBAAmB;;AAEtC,eAAe;EACb,IAAI,eAAA,GAAG;;;;IAIL,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE,SAAA,GAAG,AAAG;MAChC,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC,WAAW,CAAC,eAAe,CAAC;MACrE,CAAC,CAAC,kBAAkB,CAAC,CAAC,KAAK,EAAE;MAC7B,CAAC,CAAC,kBAAkB,CAAC,CAAC,KAAK,EAAE;KAC9B,CAAC;IACF,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE,SAAA,GAAG,AAAG;MAChC,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC;KACtE,CAAC;IACF,CAAC,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE,SAAA,GAAG,AAAG;MACnC,CAAC,CAAC,YAAY,CAAC,CAAC,WAAW,CAAC,WAAW,CAAC;KACzC,CAAC;GACH;EACD,QAAQ,mBAAA,GAAG;;;;IAIT,IAAI,GAAG,CAAC;MACN,EAAE,EAAE,QAAQ;MACZ,UAAU,EAAE;QACV,QAAA,MAAM;OACP;KACF,CAAC;;;IAGFA,GAAK,CAAC,QAAQ,GAAG,KAAK,CAAC,YAAY,EAAE;MACnC,UAAU,EAAE,UAAU;MACtB,SAAS,EAAE,GAAG;MACd,IAAI,EAAE,SAAS,EAAE,EAAE;QACjBC,GAAG,CAAC,KAAK,GAAG,EAAE,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC7C,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC;QAC1B,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,WAAW,CAAC;QAChC,KAAK,CAAC,GAAG,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG;OAC9B;KACF,CAAC;IACF,QAAQ,CAAC,OAAO,EAAE;GACnB;CACF;","sourceRoot":"/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp"}]}
{"remainingRequest":"/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/node_modules/buble-loader/index.js??ref--2-1!/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/node_modules/eslint-loader/index.js!/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/node_modules/import-glob/index.js!/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/resources/assets/scripts/routes/common.js","dependencies":[{"path":"/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/resources/assets/scripts/routes/common.js","mtime":1509101940000},{"path":"/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/node_modules/cache-loader/dist/cjs.js","mtime":1493198456000},{"path":"/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/node_modules/buble-loader/index.js","mtime":1487914911000},{"path":"/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/node_modules/eslint-loader/index.js","mtime":1499322156000},{"path":"/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/node_modules/import-glob/index.js","mtime":1475481585000}],"contextDependencies":[],"result":["import lozad from 'lozad'\n\nimport Vue from 'vue'\nimport Search from '../vue/Search.vue'\n\nexport default {\n init: function init() {\n // JavaScript to be fired on all pages\n\n // navbar elements\n $('.js-search').on('click', function () {\n $('body').toggleClass('has-search-open').removeClass('has-menu-open')\n $('.js-search-field').focus()\n $('.js-search-field').focus()\n })\n $('.js-burger').on('click', function () {\n $('body').toggleClass('has-menu-open').removeClass('has-search-open')\n })\n $('.o-nav-h ul a').on('click', function () {\n $('.js-burger').toggleClass('isLoading')\n })\n },\n finalize: function finalize() {\n // JavaScript to be fired on all pages, after page specific JS is fired\n\n // navbar search\n new Vue({\n el: 'search',\n components: {\n Search: Search,\n },\n })\n\n // lazy loads script\n var observer = lozad('.isLoading', {\n rootMargin: '10px 0px', // syntax similar to that of CSS Margin\n threshold: 0.1,\n load: function(el) {\n var image = el.getElementsByTagName('img')[0]\n el.classList.add('fadeIn')\n el.classList.remove('isLoading')\n image.src = image.dataset.src\n },\n })\n observer.observe()\n },\n}\n",{"version":3,"file":"/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp/resources/assets/scripts/routes/common.js","sources":["resources/assets/scripts/routes/common.js"],"sourcesContent":["import lozad from 'lozad'\n\nimport Vue from 'vue'\nimport Search from '../vue/Search.vue'\n\nexport default {\n init() {\n // JavaScript to be fired on all pages\n\n // navbar elements\n $('.js-search').on('click', () => {\n $('body').toggleClass('has-search-open').removeClass('has-menu-open')\n $('.js-search-field').focus()\n $('.js-search-field').focus()\n })\n $('.js-burger').on('click', () => {\n $('body').toggleClass('has-menu-open').removeClass('has-search-open')\n })\n $('.o-nav-h ul a').on('click', () => {\n $('.js-burger').toggleClass('isLoading')\n })\n },\n finalize() {\n // JavaScript to be fired on all pages, after page specific JS is fired\n\n // navbar search\n new Vue({\n el: 'search',\n components: {\n Search,\n },\n })\n\n // lazy loads script\n const observer = lozad('.isLoading', {\n rootMargin: '10px 0px', // syntax similar to that of CSS Margin\n threshold: 0.1,\n load: function(el) {\n let image = el.getElementsByTagName('img')[0]\n el.classList.add('fadeIn')\n el.classList.remove('isLoading')\n image.src = image.dataset.src\n },\n })\n observer.observe()\n },\n}\n"],"names":["const","let"],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO;;AAEzB,OAAO,GAAG,MAAM,KAAK;AACrB,OAAO,MAAM,MAAM,mBAAmB;;AAEtC,eAAe;EACb,IAAI,eAAA,GAAG;;;;IAIL,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE,SAAA,GAAG,AAAG;MAChC,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC,WAAW,CAAC,eAAe,CAAC;MACrE,CAAC,CAAC,kBAAkB,CAAC,CAAC,KAAK,EAAE;MAC7B,CAAC,CAAC,kBAAkB,CAAC,CAAC,KAAK,EAAE;KAC9B,CAAC;IACF,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE,SAAA,GAAG,AAAG;MAChC,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC;KACtE,CAAC;IACF,CAAC,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE,SAAA,GAAG,AAAG;MACnC,CAAC,CAAC,YAAY,CAAC,CAAC,WAAW,CAAC,WAAW,CAAC;KACzC,CAAC;GACH;EACD,QAAQ,mBAAA,GAAG;;;;IAIT,IAAI,GAAG,CAAC;MACN,EAAE,EAAE,QAAQ;MACZ,UAAU,EAAE;QACV,QAAA,MAAM;OACP;KACF,CAAC;;;IAGFA,GAAK,CAAC,QAAQ,GAAG,KAAK,CAAC,YAAY,EAAE;MACnC,UAAU,EAAE,UAAU;MACtB,SAAS,EAAE,GAAG;MACd,IAAI,EAAE,SAAS,EAAE,EAAE;QACjBC,GAAG,CAAC,KAAK,GAAG,EAAE,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC7C,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC;QAC1B,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,WAAW,CAAC;QAChC,KAAK,CAAC,GAAG,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG;OAC9B;KACF,CAAC;IACF,QAAQ,CAAC,OAAO,EAAE;GACnB;CACF;","sourceRoot":"/Applications/XAMPP/xamppfiles/htdocs/wp_mvc/wp-content/themes/cnotv-wp"}]}
23 changes: 3 additions & 20 deletions app/custom/theme_options.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,27 +78,10 @@ function taxonomy_cloud($taxonomy, $heading = null) {
}



function cnotv_shortlink( $permalink ) {
$shortlink = $permalink;
// $url = 'https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyD_0jRX9K0uRByIfzarC2rXCZ_j6gtIGA8';

// // TOFIX - slower page loading
// $http = new WP_Http();
// $headers = array('Content-Type' => 'application/json');
// $result = $http->request($url, array( 'method' => 'POST', 'body' => '{"longUrl": "' . $permalink . '"}', 'headers' => $headers));
// $result = json_decode($result['body']);
// $shortlink = $result->id;

return $shortlink;
}
add_shortcode( 'get_shortlink', 'cnotv_shortlink' );


// Share buttons generator
function share_button(){
$link = get_the_permalink();
$cnotv_shortlink = cnotv_shortlink($link);
// $link = get_the_permalink();
$link = home_url().'?p='.get_the_ID();
$title = get_the_title();

if(has_excerpt())
Expand All @@ -113,7 +96,7 @@ function share_button(){

$social = [
'facebook' => 'https://www.facebook.com/sharer/sharer.php?u='. $link,
'twitter' => 'https://twitter.com/intent/tweet?text='. $text .' - '. $cnotv_shortlink,
'twitter' => 'https://twitter.com/intent/tweet?text='. $text .' - '. $link,
'linkedin' => 'https://www.linkedin.com/shareArticle?mini=true&url='. $link .'&title='. $title .'&summary='. $excerpt . '&source=https://firma.de',
'envelope' => 'mailto:?subject='. $title .'&body='. $excerpt .' - '. $link
];
Expand Down
2 changes: 2 additions & 0 deletions resources/assets/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import common from './routes/common';
import home from './routes/home';
import aboutUs from './routes/about';
import contact from './routes/contact';
import single from './routes/single';

/** Populate Router instance with DOM routes */
const routes = new Router({
Expand All @@ -17,6 +18,7 @@ const routes = new Router({
// About Us page, note the change from about-us to aboutUs.
aboutUs,
contact,
single,
});

// Load Events
Expand Down
2 changes: 1 addition & 1 deletion resources/assets/scripts/routes/common.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import lozad from 'lozad'

import Vue from 'vue'
import Search from '../vue/search.vue'
import Search from '../vue/Search.vue'

export default {
init() {
Expand Down
2 changes: 1 addition & 1 deletion resources/assets/scripts/routes/contact.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Vue from 'vue'
import Contact from '../vue/contact.vue'
import Contact from '../vue/Contact.vue'

export default {
init() {
Expand Down
17 changes: 17 additions & 0 deletions resources/assets/scripts/routes/single.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import Vue from 'vue'
import Social from '../vue/Social.vue'

export default {
init() {
// JavaScript to be fired on all pages
},
finalize() {
// JavaScript to be fired on all pages, after page specific JS is fired
new Vue({
el: 'social',
components: {
Social,
},
})
},
}
Loading

0 comments on commit b41062c

Please sign in to comment.