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 Name: Stock Toolkit | |
*/ | |
//Progress Bar Shortcode | |
function stock_progress_shortcode($atts, $content = null){ | |
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
/*=====For Loop=====*/ | |
//for (variable; condition; incriment/decriment) { | |
// Your Document | |
} | |
var x; | |
for (x=56; x<=61; x++) { | |
document.write(x+'<br/>'); |
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
//Array with multiple line | |
var data=[]; | |
data[0]=10; | |
data[1]=20; | |
data[2]=30; | |
data['name']='blackdiamond'; |
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
// Javascript Funciton | |
function demo() { | |
var firstName = 'Humayun'; | |
var lastName = 'Ahmed'; | |
var fullName = firstName+' '+lastName; | |
document.write(fullName); | |
} | |
demo(); |
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
// Switch Statement | |
var x = 100; | |
switch (x) { | |
case 5: | |
document.write('Hello Bangladesh'); | |
break; | |
case 10: |
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
// Conditonal Statement | |
var x = 30; | |
var y = 20; | |
// If Statement |
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
// Arithmatical Operator | |
var x=130; | |
var y=90; | |
document.write(x+y); // Addition | |
document.write('<br/>'); | |
document.write(x-y); // Substaction | |
document.write('<br/>'); | |
document.write(x*y); // Multiplication |
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
Javascript Variable: | |
==================== | |
1. You can use (A-Z) Capital Letter. | |
2. You can use (a-z) Shorthand Letter. | |
3. You will use (0-9) Numeric Number. | |
4. But, You can not write any numeric number in the frist of variable. | |
** Stucture: variable variable_name = variable_data; | |
** E.g : x = "Hello Bangladesh" |
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
1. Get Header | |
============== | |
<?php get_header( $name ); ?> | |
=>Parameters | |
# $name (Calls for header-name.php) | |
=> Different header for different pages. | |
<?php | |
if ( is_home() ) : |
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
function crazyland_maps_shortcode($atts) { | |
$default = array( | |
'lat' => '22.9196383', | |
'lon' => '91.520781', | |
'zoom' => '16', | |
'width' => '600', | |
'height' => '400', | |
); |