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. ইন্টেক্স পেজে আগে সব কাজ করে নিতে হবে মেনু, উইগেট, থিম অপশন সব, | |
2. তারপর ভাঙতে হবে header.php, footer.php, sidebar.php | |
3. তারপর index.php থেকে single.php, page.php, archive.php তৈরি করতে হবে ( প্রথমে ভার্সন কম করতে হবে, যেমনঃ সাইডবারে একটা ভার্সন রাখলেই হবে পরে চাইলে করা যাবে ) | |
WP Theme Development (Create PHP Files) | |
header.php | |
================================== | |
<?php bloginfo('name'); ?> | |
<?php bloginfo('description'); ?> | |
<?php bloginfo('home'); ?> // Home Page link | |
<?php echo get_template_directory_uri(); ?>/ |
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
# Run For the first time | |
git config --global user.name "subrotoice" | |
git config --global user.email "subroto.iu@gmail.com" | |
# Upload a new project | |
git init // Basically 3 steps, 1. add, 2. Commit, 3. Push; https://prnt.sc/9_BUPJ6VX53L | |
git add . // added to staged area, and ready for commmit; git add -A // same, all files; git add index.html // only index.html file | |
git commit -m "first commit" // Save as a snapshot what remain in staged area | |
git remote add origin https://github.com/subrotoice/ccn.git // ("origin Userdifine", origin=url.git, variable e value assign korar moto) | |
git push -u origin master // push, origin user define name like variable contain url. (master default brunch name, you can create brunch like, https://prnt.sc/26pq9x2 |
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
CDN Collection (www.edeves.com) | |
====================================================== | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> | |
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> | |
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet"> |
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 | |
// Second call this | |
function example_callback( $string ) { | |
$new_value = $string . " NEW!"; | |
return $new_value; | |
} | |
add_filter( 'example_filtersubroto', 'example_callback', 11 ); | |
// First call this | |
function example_callback2( $string2 ) { |
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 | |
/** | |
* Proper way to enqueue scripts and styles | |
*/ | |
function wpdocs_theme_name_scripts() { | |
wp_enqueue_style( 'style-name', get_stylesheet_uri() ); // style.css | |
wp_enqueue_style( 'slider', get_template_directory_uri() . '/css/slider.css',false,'1.1','all'); | |
wp_enqueue_script( 'script-name', 'https://cdnjs.cloudflare.com/ajax/libs/fuelux/3.15.10/js/fuelux.min.js', array(), '1.0.0', false ); // If you used true then it load in_footer, Default: False | |
wp_enqueue_script('oxfam_js_cookie', 'https://cdnjs.cloudflare.com/ajax/libs/js-cookie/2.1.0/js.cookie.min.js', array(), null, true); // Remove version variable by using 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
<?php | |
//Example array. | |
$array = array('Ireland', 'England', 'Wales', 'Northern Ireland', 'Scotland'); | |
//Encode the array into a JSON string. | |
$encodedString = json_encode($array); | |
//Save the JSON string to a text file. | |
file_put_contents('myfile.txt', $encodedString); |
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
# MySqli - OOP version Connection and PHP Scrip--------(mysqli)------------ | |
$host = "localhost"; | |
$username = "root"; | |
$password = ""; | |
$database = ""; | |
$conn = new mysqli($host, $username, $password, $database); | |
$sql = 'SELECT * FROM employee'; | |
$result = $conn->query($sql); | |
if ($result->num_rows > 0) { | |
while($row = $result->fetch_assoc()) { |
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
//Download File form server to server | |
<?php | |
set_time_limit(0); //Unlimited max execution time | |
$path = 'latest.zip'; //can keep this name same | |
$url = 'https://wordpress.org/latest.zip'; | |
$newfname = $path; | |
echo 'Starting Download!<br>'; | |
$file = fopen ($url, "rb"); | |
if($file) { |
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
S Name: Subroto Kumar Biswas | |
B Name: সুব্রত কুমার বিশ্বাস | |
F Name: সুদর্শন কুমার বিশ্বাস - Sudorson Kumar Biswas - 5016343774395 | |
M Name: অর্পনা রানী বিশ্বাস - Arpona Rani Biswas - 5016343774296 (Orpana Rani Biswas) | |
N Id : 19908210795000274 | |
Paspot: BM0886599 -- Updated(*New) | |
Birth Reg: 19905016300006034 -----Birsth REG | |
Mobile: 01722272790 | |
Job ICT Ministry------------------ |
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
#Extension | |
Prettier - Code formatter (Javascript, HTML, CSS) | |
Material Icon Theme(Philipp Kief) | |
Highlight Matching Tag: Highlights matching closing and opening tags | |
lucy Theme: vscodethemes.com/e/juliettepretot.lucy-vscode/lucy?language=javascript | |
Live Server: Do not need to refresh browser for any change | |
Gitlens: Git file change aro kacher theke dekha jay (Empowr Git) | |
Quokka.js: Live JS variable output dey | |
Code Snippet: snippet-creator (vincentkos) | |
Auto Rename Tag: Rename tag Atuo |
OlderNewer