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
@mixin br-text ( $size: null, $line-h: null, $weight: null ,$c: null, $m: null, $p: null, $f-name: null, $m-b: null,$p-b : null ){ | |
@function str-remove-whitespace($str) { | |
@while (str-index($str, ' ') != null) { | |
$index: str-index($str, ' '); | |
$str: "#{str-slice($str, 0, $index - 1)}#{str-slice($str, $index + 1)}"; | |
} | |
@return $str; | |
} | |
@if($f-name) { font-family: $f-name; } | |
@if($size) { |
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
@mixin br-sudo-elemet( $width: null, $height:null, $t:null, $l:null, $b:null, $r:null, $z:null ){ | |
content: " "; | |
position: absolute; | |
@if($w) { width: $w ; } | |
@if($h) { height: $h ; } | |
@if($z) { z-index: $z ; } | |
@if($t) { top : $t ;} | |
@if($b) { bottom :$b ;} | |
@if($l) { left : $l ;} | |
@if($r) { right : $r ;} |
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
$primary: #563d7c; // Thats a sample how you could change a BootStrap variable. | |
$black: #333333; | |
$green: #44B672; | |
$balck: #333333; | |
$dark-gray: #757575; | |
$light-gray: #ABA7A7; | |
$gray: #E0E0E0; | |
$facebook: #3b5998; |
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
// Class toggle for all btn | |
$('button.btn').on('click', function(){ | |
var ele = ($(this).attr("data-ele-target").length) ? $(this).attr("data-ele-target") : null ; | |
var class_name = ($(this).attr("data-ele-toggle").length) ? $(this).attr("data-ele-toggle") : null ; | |
(ele && class_name) ? $(ele).toggleClass(class_name) : null; | |
}); |
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
function words_match ($bigStr,$smallStr ){ | |
var match_words = ''; | |
$bigStr = $bigStr.trim(); | |
$smallStr = $smallStr.trim(); | |
if( $smallStr.indexOf(',') > 0 ){ | |
// If string contain multiple item | |
var sm_array = $smallStr.split(","); | |
match_words = _.filter( sm_array , function(item) { |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>time</title> | |
</head> | |
<style> | |
h2{ |
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 = '/path/to/file.png'; | |
$filename = basename($file); | |
$upload_file = wp_upload_bits($filename, null, file_get_contents($file)); | |
if (!$upload_file['error']) { | |
$wp_filetype = wp_check_filetype($filename, null ); | |
$attachment = array( | |
'post_mime_type' => $wp_filetype['type'], | |
'post_parent' => $parent_post_id, |
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
wait_timeout=28800 | |
interactive_timeout = 28800 | |
post_max_size = 800M | |
upload_max_filesize = 800M | |
max_execution_time = 5000 | |
max_input_time = 5000 | |
memory_limit = 1000M | |
OlderNewer