View readme.txt
=== Wordpress Social Invitations === | |
Author: Damian Logghe | |
Website: http://www.timersys.com | |
Contributors: Timersys | |
Tags: Social Invitations, twitter, facebook, linkedin, hotmail, yahoo | |
License: http://codecanyon.net/licenses/regular | |
Stable Tag: 2.4.2 | |
Tested on: 4.0.1 | |
== Description == |
View wsi.css
//These are the default CSS rules that you can change with yours | |
[class^="wsiicon-"], [class*=" wsiicon-"] { | |
font-family: 'wsi-social'; //Use your own font | |
speak: none; | |
font-style: normal; | |
font-weight: normal; | |
font-variant: normal; | |
text-transform: none; | |
line-height: 1; | |
background: none !important; |
View server
location ~* \.(eot|otf|ttf|woff)$ { | |
add_header Access-Control-Allow-Origin *; | |
} |
View cubepoints.php
<?php | |
//full file located in functions/cubepoints.php | |
/* Hook WSI Invitations sent */ | |
add_action( 'wsi_invitation_sent', 'wsi_points', 10 ); | |
function wsi_points( $user_id ) { | |
//this is not a registered user | |
if( empty($user_id)) return; | |
View functions.php
<?php | |
// disable load of javascript for Facebook, Twitter and Goggle in Popups plugin http://wordpress.org/plugins/popups/ | |
define( 'SPU_UNLOAD_FB_JS', true ); | |
define( 'SPU_UNLOAD_TW_JS', true ); | |
define( 'SPU_UNLOAD_GO_JS', true ); |
View functions.php
<?php | |
// show uncompressed javascript in popups plugin http://wordpress.org/plugins/popups/ | |
define( 'SPU_DEBUG_MODE', true ); |
View functions.php
add_filter( 'wsi_cred_type', 'mycreed_points_types', 10, 2); | |
function mycreed_points_types( $cred_type, $wsi_obj_id ){ | |
// default mycreed type | |
$cred_type = 'mycred_default'; | |
// invitations sent on page with id 2 | |
if( '2' == $wsi_obj_id ) { | |
$cred_type = 'my_points_type'; | |
} |
View class.Wsi_Mycreed.php
<?php | |
/** | |
* MyCred Hook | |
* @since v2 | |
* @version 1.1 | |
*/ | |
class Wsi_MyCreed extends myCRED_Hook { | |
/** | |
* Construct |
OlderNewer