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 | |
/* 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 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 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 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 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 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 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 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 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
<html> | |
<head> | |
<style type="text/css"> | |
body { | |
font-family: arial; | |
} | |
table { | |
border: 1px solid #ccc; |
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 | |
/** | |
* | |
* @wordpress-plugin | |
* Plugin Name: Custom Post Filter | |
* Plugin URI: http://uditrawat.com | |
* Description: Custom Post Filter For Posts | |
* Version: 1.3 | |
* Author: Udit Rawat | |
* Author URI: http://uditrawat.com |