Skip to content

Instantly share code, notes, and snippets.

View Heateor's full-sized avatar

Team Heateor Heateor

View GitHub Profile
<?php
/**
* Contains functions responsible for the functionality at the front-end
*
* @since 1.0
*
*/
/**
* This class defines all the code necessary for functionality at the front-end
@Heateor
Heateor / gist:e12e2e6a95ca6fdd7cfa41c67e31c3aa
Created February 21, 2024 04:54
sassy-social-share-public.css
#heateor_sss_error{color:red;margin:7px 0}#heateor_sss_sharing_more_providers .filter svg{position:absolute;left:16px;top:18px}div.heateor_sss_sharing_ul a:link,div.heateor_sss_sharing_ul a:focus{text-decoration:none;background:transparent!important}.heateor_sss_login_container{margin:2px 0}.heateor_sss_login_container img,.heateor_sss_sharing_container img{cursor:pointer;margin:2px;border:none}.heateor_sss_login_container img{display:none;float:left}#heateor_sss_loading_image{display:block!important;float:none}.heateor_sss_error{background-color:#ffffe0;border:1px solid #e6db55;padding:5px;margin:10px}#heateor_sss_sharing_more_providers{position:fixed;top:50%;left:47%;background:#fafafa;width:650px;margin:-180px 0 0 -300px;z-index:10000000;text-shadow:none!important;height:308px}#heateor_sss_mastodon_popup_bg,#heateor_sss_popup_bg{background:url(../../images/transparent_bg.png);bottom:0;display:block;left:0;position:fixed;right:0;top:0;z-index:10000}#heateor_sss_sharing_more_providers .title{font-size:14px!i
/**
* Show if this is a Social Login user
*/
function heateor_show_if_social_login() {
global $user_ID;
?>
<table class="form-table">
<tbody>
<tr>
<th><label>Social Login User</label></th>
@Heateor
Heateor / sassy-social-share-hover-svg-horizontal.css
Created August 26, 2020 08:00
sassy-social-share-hover-svg-horizontal.css
@charset "utf-8";.heateor_sss_standard_follow_icons_container .heateorSssYummlySvg:hover,.heateor_sss_horizontal_sharing .heateorSssYummlySvg:hover,#heateor_sss_rearrange .heateorSssYummlySvg:hover{background:url('data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22100%25%22%20height%3D%22100%25%22%20viewBox%3D%220%200%2030%2030%22%3E%3Cpath%20stroke%3D%22%22%20d%3D%22M%2010.5%2010%20q%204%20-2%202.5%201%20l%20-1%204%20q%200%202%205%200%20l%201%20-6.5%20m%20-1%206.5%20l%20-1%204%20c%20-3%206%20-6%20-1%200%20-1%20q%201%20-1%205%201%22%20stroke-width%3D%222%22%20fill%3D%22none%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E') no-repeat center center}.heateor_sss_standard_follow_icons_container .heateorSssBufferSvg:hover,.heateor_sss_horizontal_sharing .heateorSssBufferSvg:hover,#heateor_sss_rearrange .heateorSssBufferSvg:hover{background:url('data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22100%25%22%20height%3D%22100%25
<?php
defined('ABSPATH') or die("Cheating........Uh!!");
/**
* Social sharing networks
*/
function heateor_ss_fetch_sharing_networks($sharingType){
global $theChampSharingOptions, $theChampLoginOptions;
$fb_key = '595489497242932';
if(isset($theChampLoginOptions['fb_key']) && $theChampLoginOptions['fb_key']){
<?php
/**
* The file contains the class defining sharing networks and their sharer urls
*
* @since 1.0.0
*
*/
/**
<?php
/**
* The file contains the class defining sharing networks and their sharer urls
*
* @since 1.0.0
*
*/
/**
function theChampLoginPopup(e){if("undefined"!=typeof theChampSameTabLogin&&theChampSameTabLogin==1){location.href=e}else{window.open(e,"_blank","height=400,width=580,left=315,top=80,resizable,scrollbars,toolbar=0,personalbar=0,menubar=no,location=no,directories=no,status")}}function theChampLoadingIcon(){jQuery(".the_champ_login_container").html('<img id="the_champ_loading_image" src="'+theChampLoadingImgPath+'" />')}function theChampInitiateLogin(e){var t=jQuery(e).parents("div.the_champ_login_container").find(".heateor_ss_social_login_optin");if(0==t.length||jQuery(t).is(":checked")){var a=e.getAttribute("alt");"Login with Facebook"==a?theChampLoginPopup(theChampFacebookAuthUrl):"Login with Twitch"==a?theChampLoginPopup(theChampTwitchAuthUrl):"Login with LiveJournal"==a?heateorSsLJLoginPopup():"Login with Steam"==a?theChampLoginPopup(theChampSteamAuthUrl):"Login with Twitter"==a?theChampLoginPopup(theChampTwitterAuthUrl):"Login with Xing"==a?theChampLoginPopup(theChampXingAuthUrl):("Login with Linkedin"==a
theChampFBKey = typeof theChampFBKey != 'undefined' ? theChampFBKey : '', theChampFBLang = typeof theChampFBLang != 'undefined' ? theChampFBLang : theChampDefaultLang, theChampFbIosLogin = typeof theChampFbIosLogin != 'undefined' ? theChampFbIosLogin : 0;
// general.js
function theChampPopup(e){window.open(e,"_blank","height=400,width=580,left=315,top=80,resizable,scrollbars,toolbar=0,personalbar=0,menubar=no,location=no,directories=no,status")}function theChampStrReplace(e,t,n){for(var r=0;r<e.length;r++){n=n.replace(new RegExp(e[r],"g"),t[r])}return n}function theChampCallAjax(e){if(typeof jQuery!="undefined"){e()}else{theChampGetScript("https://code.jquery.com/jquery-latest.min.js",e)}}function theChampGetScript(e,t){var n=document.createElement("script");n.src=e;var r=document.getElementsByTagName("head")[0],i=false;n.onload=n.onreadystatechange=function(){if(!i&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){i=true;t();n.onload=n.onreadystatechange=null;r.removeChild(n)}};r.a
<?php
/**
* Display notification message when plugin options are saved
*/
function the_champ_settings_saved_notification(){
if(isset($_GET['settings-updated']) && sanitize_text_field($_GET['settings-updated']) == 'true'){
return '<div id="setting-error-settings_updated" class="updated settings-error notice is-dismissible below-h2">
<p><strong>' . __('Settings saved', 'super-socializer') . '</strong></p><button type="button" class="notice-dismiss"><span class="screen-reader-text">' . __('Dismiss this notice', 'super-socializer') . '</span></button></div>';
}
}