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 | |
| //Limiting the output of PHP's echo to 200 characters | |
| echo substr($row['style_info'], 0, 200) .((strlen($row['style_info']) > 200) ? '...' : ''); ?> |
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
| SOURCE: http://siven76.wordpress.com/2012/05/17/magento-enable-pickup-shipping-module/ |
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 | |
| /* ####################################################################### */ | |
| // BOF: REMOVE BEFORE SUBMIT | |
| if (isset($_GET['font'])) { | |
| if ($_GET['font']=='roboto') { ?> | |
| <link href='http://fonts.googleapis.com/css?family=Roboto:400,100,300,700,900,500' rel='stylesheet' type='text/css'> | |
| <style> | |
| .tp-caption.ploygon_exo_thin_100px_center, |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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
| background: url("http://trendwp.modeltheme.com/grid.png") repeat-y scroll 15px 0 / calc(100% - 30px) auto rgba(0, 0, 0, 0); |
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 | |
| // NOTE: verify-purchase has been deprecated and it's best to use the new /author/sale endpoint as documented on http://build.envato.com/ | |
| // created by Envato user wpdreams https://forums.envato.com/t/verify-purchase-class/3526 | |
| // usage example: | |
| $o = EnvatoApi2::verifyPurchase( $purchase_code ); |
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 | |
| /** | |
| * Exception handling class. | |
| */ | |
| class EnvatoException extends Exception { | |
| } | |
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 | |
| /** | |
| * @file | |
| * Integration layer to communicate with the Envato API. | |
| * | |
| * @see https://build.envato.com/api | |
| * | |
| * @outher Abdullah Sowailem. | |
| */ |
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
| $.getJSON('http://173.255.193.46/api/edge/popular:themeforest.json?callback=?', function(files) { | |
| var imgs; | |
| files = files.popular; | |
| console.log(files); // see what's available to play with | |
| imgs = $.map(files.items_last_week, function(file, i) { | |
| return '<a href="' + file.url + '"><img src=' + file.thumbnail + '></a>'; | |
| }); |