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
| <ul id="multicol-menu" class="nav pull-right"> | |
| <li class="dropdown"> | |
| <a href="#" class="dropdown-toggle" data-toggle="dropdown">MultiCol Menu <b class="caret"></b></a> | |
| <ul class="dropdown-menu"> | |
| <li> | |
| <div class="row-fluid" style="width: 400px;"> | |
| <ul class="unstyled span4"> | |
| <li><a href="#">test1-1</a></li> | |
| <li><a href="#">test1-2</a></li> | |
| <li><a href="#">test1-3</a></li> |
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
| Number.prototype.between = function (a, b) { | |
| var min = Math.min.apply(Math, [a,b]), | |
| max = Math.max.apply(Math, [a,b]); | |
| return this > min && this < max; | |
| }; | |
| var windowSize = 550; | |
| console.log(windowSize.between(500, 600)); |
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
| <style type="text/css"> | |
| #emerico { | |
| position: fixed | |
| } | |
| </style> | |
| <div id="emerico">emerico</div> |
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 | |
| /* | |
| I believe you already install lumen, Now we need ‘illuminate\mail’ for sending | |
| mail through lumen so here is how i configure smtp mail with lumen. | |
| 1:- Install illuminate\mail to your lumen setup by entering following command | |
| */ | |
| composer require illuminate\mail | |
| /* | |
| 2:- Edited the bootstrap/app.php uncommenting the following lines |
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 | |
| /* | |
| I hope you all know how expression engine works. This article shows you | |
| how to develop an accessory module for expression engine to run custom | |
| javascript in expression engine admin. | |
| Here are steps to go:- | |
| Stop direct access to your module by writing | |
| */ |
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 | |
| /* Write this code on order.php */ | |
| $customer_whole_obj = $db->Execute('select `customers_whole` from `'.TABLE_CUSTOMERS.'` where `customers_id` ='.$_SESSION['customer_id']); | |
| $customer_whole = $customer_whole_obj->fields['customers_whole']; | |
| if($customer_whole == 4){ | |
| if($_SESSION['payment'] == 'paypal' || $_SESSION['payment'] =='authorizenet'){ | |
| $this->info['charges'] = 2.5; | |
| $this->info['total_without_charges'] = $this->info['total']; | |
| $this->info['charges_amt'] = ($this->info['total'] * $this->info['charges'])/100; | |
| $this->info['total'] = $this->info['total'] + $this->info['charges_amt']; |
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
| .host-description{ | |
| overflow:hidden; | |
| } | |
| .read-more{ | |
| color:red; | |
| } |
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 | |
| /* Plugin for expression engine 2 */ | |
| if (!defined('BASEPATH')) exit('No direct script access allowed'); | |
| /* | |
| ======================================================== | |
| Plugin Eme Utills | |
| -------------------------------------------------------- | |
| Copyright: Udit Rawat | |
| License: Freeware | |
| -------------------------------------------------------- |
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
| var token = '<access_token>', | |
| hashtag='<tag>', // hashtag without # symbol | |
| num_photos = 4; | |
| $.ajax({ | |
| url: 'https://api.instagram.com/v1/tags/' + hashtag + '/media/recent', | |
| dataType: 'jsonp', | |
| type: 'GET', | |
| data: {access_token: token, count: num_photos}, | |
| success: function(data){ |
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
| $.colorbox({ | |
| open: true, | |
| height: 500, | |
| width: 500, | |
| onComplete: function() { | |
| $("#colorbox").wrap("<div id='colorbox_wrapper' />") | |
| }, | |
| onCleanup: function() { | |
| $("#colorbox").unwrap("<div id='colorbox_wrapper' />") | |
| } |