I like cupcakes....and sliders
A Pen by Jamie Coulter on CodePen.
function paragraph_formater($content,$limit) | |
{ | |
$content = array_filter(preg_split('/(?<!\.)\.\s*(?!\.)/', $content)); | |
$out = []; | |
$temp = ''; | |
for ($i = 0; $i < count($content); $i++) { | |
$len = mb_strlen($content[$i]); | |
if ($temp == '') { | |
if ($len > $limit) { | |
$out[] = '<p>' . $content[$i] . '.</p>'; |
.brand | |
%a{:href => 'http://www.jamiecoulter.co.uk',:target => '_blank'} | |
%img{:src => 'https://s3-us-west-2.amazonaws.com/s.cdpn.io/217233/logo.png'} | |
.login | |
.login_title | |
%span Login to your account | |
.login_fields | |
.login_fields__user | |
.icon | |
%img{:src => 'https://s3-us-west-2.amazonaws.com/s.cdpn.io/217233/user_icon_copy.png'} |
I like cupcakes....and sliders
A Pen by Jamie Coulter on CodePen.
function pana_widgets_init() { | |
register_sidebar( array( | |
'name' => 'سایدبار پست', | |
'id' => 'post_sidebar', | |
'description' => 'در این سایدبار می توایند به تعداد دلخواه ابزارک قرار دهید', | |
'before_widget' => '<section id="%1$s" class="widget %2$s">', | |
'after_widget' => '</div></section>', | |
'before_title' => '<h2 class="widget-title">', | |
'after_title' => '</h2><div class="widget-content">', | |
) ); |
function add_iranian_tax_rate( $settings ) { | |
$updated_settings = array(); | |
foreach ( $settings as $section ) { | |
if ( isset( $section['id'] ) && 'tax_options' == $section['id'] && | |
isset( $section['type'] ) && 'sectionend' == $section['type'] ) { | |
$updated_settings[] = array( | |
'name' => 'میزان نرخ مالیات', | |
'desc_tip' => 'در این بخش می توانید نرخ مالیات را وارد نمایید', | |
'id' => 'woocommerce_iranian_tax_rate', |
function get_term_child($tax,$slug) | |
{ | |
$term=get_term_by('slug', $slug, $tax); | |
return get_term_link($term); | |
/* $terms = get_terms($tax); | |
foreach ($terms as $term) { | |
if($term->slug==$slug) | |
return get_term_link($term); | |
} |
public function index() | |
{ | |
$this->load->library('excel'); | |
$objReader = PHPExcel_IOFactory::createReader('Excel2007'); | |
$objReader->setReadDataOnly(true); | |
$objPHPExcel = $objReader->load("uploads/foghetakhasos.xlsx"); | |
$objWorksheet = $objPHPExcel->getActiveSheet(); | |
$highestRow = $objWorksheet->getHighestRow(); | |
$highestColumn = $objWorksheet->getHighestColumn(); | |
$this->load->database(); |
.pixelart-to-css { | |
box-shadow: 10px 10px 0 #000000, 20px 10px 0 #000000, 30px 10px 0 #000000, 40px 10px 0 #000000, 50px 10px 0 #000000, 60px 10px 0 #000000, 70px 10px 0 #000000, 80px 10px 0 #000000, 90px 10px 0 #000000, 100px 10px 0 #000000, 110px 10px 0 #000000, 120px 10px 0 #000000, 130px 10px 0 #000000, 140px 10px 0 #000000, 150px 10px 0 #000000, 160px 10px 0 #000000, 170px 10px 0 #000000, 180px 10px 0 #000000, 190px 10px 0 #000000, 200px 10px 0 #000000, 10px 20px 0 #000000, 20px 20px 0 #ffffff, 30px 20px 0 #ffffff, 40px 20px 0 #ffffff, 50px 20px 0 #ffffff, 60px 20px 0 #ffffff, 70px 20px 0 #ffffff, 80px 20px 0 #ffffff, 90px 20px 0 #ffffff, 100px 20px 0 #ffffff, 110px 20px 0 #ffffff, 120px 20px 0 #ffffff, 130px 20px 0 #ffffff, 140px 20px 0 #ffffff, 150px 20px 0 #ffffff, 160px 20px 0 #ffffff, 170px 20px 0 #ffffff, 180px 20px 0 #ffffff, 190px 20px 0 #ffffff, 200px 20px 0 #000000, 10px 30px 0 #000000, 20px 30px 0 #ffffff, 30px 30px 0 #000000, 40px 30px 0 #000000, 50px 30px 0 #000000, 60px 30px 0 #000000, 70 |
class plugin_utility | |
{ | |
private $CI; | |
private $name; | |
public function __construct($name) { | |
$this->CI =& get_instance(); | |
$this->name=$name; | |
if($this->checklang()) | |
{ | |
$this->CI->lang->plg_load($name,$name); |