Skip to content

Instantly share code, notes, and snippets.

View nevilpaul's full-sized avatar

nevil paul nevilpaul

View GitHub Profile
@nevilpaul
nevilpaul / intercom.php
Last active September 11, 2018 00:36
intercom - get basic data when your wordpress users are logged in and also when they are not logged simple code is added
/*
*@author nevilpaul..
*@mail: [email protected]
*@date published:03/07/2018
*/
<?php
global $wp;
function intercom_script_footer(){
$ipaddress = '';
if ($_SERVER['HTTP_CLIENT_IP'])
@nevilpaul
nevilpaul / functions.php
Last active August 17, 2020 19:53
This function assists you in intergrating intercom to your wordpress page.
/*
*@author nevilpaul..
*@mail: [email protected]
*@date published:12/07/2018
*/
<?php
// copy the code from here in the function.php file and disable the intercom plugin replace 'APP-ID' with the actual id of your app
global $wp;
function intercom_script_footer(){
if ( is_user_logged_in() ) {
@nevilpaul
nevilpaul / _mixins.scss
Last active August 9, 2018 22:06
SCSS/SASS _mixins cross browser (animation,transition,border-radius and box shadow)
@mixin animation($loader, $ts, $iterrationcount, $timeFunction) {
-webkit-animation: $loader $ts $iterrationcount $timeFunction;
-moz-animation: $loader $ts $iterrationcount $timeFunction;
-ms-animation: $loader $ts $iterrationcount $timeFunction;
-o-animation: $loader $ts $iterrationcount $timeFunction;
animation: $loader $ts $iterrationcount $timeFunction;
}
@mixin scrollbar($width) {
::-webkit-scrollbar {
@nevilpaul
nevilpaul / functions.php
Last active August 5, 2020 17:32
PHP WITH INTERCOM SHOW INTERCOM AND FETCH USERDATA IN SPECIFIC WORDPRESS PAGES
/*
*@author nevilpaul..
*@mail: [email protected]
*@date published:03/07/2018
*/
<?php
global $wp;
function intercom_script_footer(){
if ( is_user_logged_in() ) {
$current_user = wp_get_current_user(); ?>