This file contains hidden or 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 | |
$my_test = new phpab('my_test'); // set the name of the a/b test | |
$my_test->add_variation('my_variation', '<p>My alternative content</p>'); // add a variation |
This file contains hidden or 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
{phpab my_test}<p>My control content</p>{/phpab my_test} <!-- Content wrapped in {phpab} tags --> |
This file contains hidden or 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
p | |
{ | |
color: black; /* control styles */ | |
} | |
.phpab-my_variation p | |
{ | |
color: red; /* variation styles */ | |
} |
This file contains hidden or 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
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; |
This file contains hidden or 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 | |
/* | |
Author: Sai Varun KN | |
This is a redis caching system for wordpress. | |
some caching mechanics are summarized below: | |
- cached pages do not expire not unless explicitly deleted or reset |
This file contains hidden or 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
//* Customize the return to top of page text | |
add_filter( 'genesis_footer_backtotop_text', 'sv_footer_backtotop_text' ); | |
function sv_footer_backtotop_text($backtotop) { | |
$backtotop = '[footer_backtotop text="Return to Top"]'; | |
return $backtotop; | |
} |
This file contains hidden or 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
//* Modify the size of the Gravatar in the author box | |
add_filter( 'genesis_author_box_gravatar_size', 'author_box_gravatar_size' ); | |
function author_box_gravatar_size( $size ) { | |
return '80'; | |
} |
OlderNewer