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
if (ronymail($u_email)){ | |
echo '<p>valide.</p>'; | |
} | |
else{ | |
echo '<p>not valid</p>'; | |
} | |
function ronymail($adresse) { | |
$Syntaxe = '#^[\w.-]+@[\w.-]+\.[a-zA-Z]{2,6}$#'; |
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
go to bin > apachi > search php.ini and then open it and then search upload_max_filesize and chenge 2 mb............ | |
php.ini >>>>>>>>>>>>>> upload_max_filesize, post_max_size. | |
Why am I still seeing 2MB? chenge as your wish........ |
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
// SmoothScroll for websites v1.2.1 | |
// Licensed under the terms of the MIT license. | |
// People involved | |
// - Balazs Galambosi (maintainer) | |
// - Michael Herf (Pulse Algorithm) | |
(function(){ | |
// Scroll Variables (tweakable) |
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
// If you want to use image link | |
$image_variable = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'large' ); echo $image_variable[0]; | |
// If you want to use your custom size | |
$image_variable = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-image' ); echo $image_variable[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
step 1. get files backup | |
step 2. get dateabase backup | |
step 3. change URL in database | |
step 4. Upload files in new location | |
step 5. extract files | |
step 6. create a database & database username & assagin it. | |
step 7. inport database in newly created database. | |
step 8. add database information to wp-config.php file | |
after this step you can enjoy you own site |
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 my_custom_shortcode($atts, $content=null){ | |
extract(shortcode_atts(array(),$atts) ); | |
return''; | |
} | |
add_shortcode('price_box','my_custom_shortcode'); |
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
//basic concept to create shortcode | |
function my_shortcode(){ | |
extract(shortcode_atts(array( | |
'type' => '', //hear "type" is a variable and hear you can put the default value which is work before the daynamic value come | |
'icon' => '', //hear "icon" is a variable and hear you can put the default value which is work before the daynamic value come | |
'text' => '', //hear "type" is a variable and hear you can put the default value which is work before the daynamic value come | |
), $atts)); | |
return'<a href="'.$link.'" class="btn btn-'.$type.'" ><i class="fa fa-'.$icon.'"> </i> '.$text.'</a>'; //this is the return value where you must define the variable | |
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
/*medium screen*/ | |
@media only screen and (min-width:992px) and (max-width:1199px){ | |
/*all medium screen code is going hear*/ | |
body{ | |
background-color:red; | |
} | |
} | |
/*Tablet layout*/ | |
@media only screen and (min-width:768px) and (max-width:991px){ |
NewerOlder