Skip to content

Instantly share code, notes, and snippets.

View graemebryson's full-sized avatar

Graeme Bryson graemebryson

View GitHub Profile
@graemebryson
graemebryson / widget-social-sharing.php
Created March 7, 2022 20:13
Widget — Social Sharing [Facebook, Twitter]
<?php
// ====================================================================================================
// Partials / Components / Widget — Social Sharing
// Output social sharing links
// ====================================================================================================
// Assign item data to vars
$item_link = get_the_permalink();
$share_link_facebook = 'https://www.facebook.com/sharer/sharer.php?u=' . $item_link;
$share_link_twitter = 'https://twitter.com/intent/tweet?url=' . $item_link . '&text=';
@graemebryson
graemebryson / services.html
Created February 22, 2021 19:08
Asset URLs for Kenect services
// Kenect 'Text Us' Widget
<script async src='https://storage.googleapis.com/widget.kenect.com/widget.min.js' id='kenect-token' type='text/javascript' token='t3R0TFuQYszxqO9FfG3y'></script>
// Kenect Live Chat Widget
<script async src='https://bit.ly/2LpvMoq' type='text/javascript'></script>
@graemebryson
graemebryson / output-page-group-array-usage.php
Last active February 17, 2020 09:49
Wordpress — Generate parent/child page group arrays
$id = get_the_id();
$array = output_page_group_array($id);
// Output page group array
var_dump($array);