Skip to content

Instantly share code, notes, and snippets.

View FawadNL's full-sized avatar
🎯
Focusing

Fawad Tiemoerie FawadNL

🎯
Focusing
View GitHub Profile
@FawadNL
FawadNL / AppShare to App Stores
Last active April 21, 2018 23:50
Adding this code to AppShare will let your users be redirected to the App Store or Play Store when they click on a shared Post/Page from your App.
/*AppShare Custom Code - Replace the SocialSharing.JS in the AppShare plugin with the below JavaScript code and Voila:)
Now when a page or post is shared via your app, the visitor will be redirected to the App Store or Play Store based on the device.
PS: Don't forget to replace the Play Store and App Store URL's with your own App URL's!
*/
function SocialSharing() {
}
// Override this method (after deviceready) to set the location where you want the iPad popup arrow to appear.
// If not overridden with different values, the popup is not used. Example:
@FawadNL
FawadNL / index.js
Last active October 4, 2017 11:13
Custom Page "Opening Hours" for Apppresser
(function () {
var weekday = [];
weekday[0] = "Sunday";
weekday[1] = "Monday";
weekday[2] = "Tuesday";
weekday[3] = "Wednesday";
weekday[4] = "Thursday";
weekday[5] = "Friday";
weekday[6] = "Saturday";
@FawadNL
FawadNL / gettin-clippy.markdown
Created January 22, 2018 21:29
Gettin' Clippy
@FawadNL
FawadNL / variable-subscription.php
Created November 6, 2018 19:47
Variable subscription template to work with WC Variations Radio Buttons plugin
<?php
/**
* Variable subscription product add to cart
*
* @author Prospress
* @package WooCommerce-Subscriptions/Templates
* @version 2.2.20
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;