View readme.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== 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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location ~* \.(eot|otf|ttf|woff)$ { | |
add_header Access-Control-Allow-Origin *; | |
} |
View cubepoints.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// show uncompressed javascript in popups plugin http://wordpress.org/plugins/popups/ | |
define( 'SPU_DEBUG_MODE', true ); |
View class.Wsi_Mycreed.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* MyCred Hook | |
* @since v2 | |
* @version 1.1 | |
*/ | |
class Wsi_MyCreed extends myCRED_Hook { | |
/** | |
* Construct |
View functions.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; | |
} |
OlderNewer