Archive for 03/11/14

wordpress Year Shortcode

by in , 11 Mar 2014 0

For the functions.php file:

function year_shortcode() {
  $year = date('Y');
  return $year;
}
add_shortcode('year', 'year_shortcode');

Usage

Use [year] in your posts.

wordpress Using Custom Fields

by in , 11 Mar 2014 0

Dump out all custom fields as a list

<?php the_meta(); ?>

Display value of one specific custom field

<?php echo get_post_meta($post->ID, 'mood', true); ?>

"mood" would be ID value of custom field

Display multiple values of same custom field ID

<?php $songs = get_post_meta($post->ID, 'songs', false); ?>
<h3>This post inspired by:</h3>
<ul>
	<?php foreach($songs as $song) {
		echo '<li>'.$song.'</li>';
	} ?>
</ul>

Display custom field only if exists (logic)

<?php 
    $url = get_post_meta($post->ID, 'snippet-reference-URL', true); 

	if ($url) {
	    echo "<p><a href='$url'>Reference URL</a></p>";
	}
?>

Reference URL

wordpress Turn on WordPress Error Reporting

by in , 11 Mar 2014 0

Comment out the top line there, and add the rest to your wp-config.php file to get more detailed error reporting from your WordPress site. Definitely don't do this live, do it for local development and testing.

// define('WP_DEBUG', false);

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors', 0);

wordpress Turn On More Buttons in the WordPress Visual Editor

by in , 11 Mar 2014 0

These buttons (like one for adding an <hr> tag) aren't there by default in the WordPress visual editor, but you can turn them on pretty easily. This is code for your active theme's functions.php file, or make a functionality plugin.

function add_more_buttons($buttons) {
 $buttons[] = 'hr';
 $buttons[] = 'del';
 $buttons[] = 'sub';
 $buttons[] = 'sup';
 $buttons[] = 'fontselect';
 $buttons[] = 'fontsizeselect';
 $buttons[] = 'cleanup';
 $buttons[] = 'styleselect';
 return $buttons;
}
add_filter("mce_buttons_3", "add_more_buttons");

Reference URL

wordpress Spam Comments with Very Long URL’s

by in , 11 Mar 2014 0

Super long URL's are a sure fire sign the comment is spammy. This will mark comments with URL's (as the author URL, not just in the text) longer than 50 characters as spam, otherwise leave their state the way it is.

<?php

  function rkv_url_spamcheck( $approved , $commentdata ) {
    return ( strlen( $commentdata['comment_author_url'] ) > 50 ) ? 'spam' : $approved;
  }

  add_filter( 'pre_comment_approved', 'rkv_url_spamcheck', 99, 2 );

?>

Reference URL

wordpress Shrink the Admin Bar / Expand on Hover

by in , 11 Mar 2014 0

A mini plugin:

<?php
/*
 * Plugin Name: Mini Admin Bar
 * Plugin URI: http://www.netyou.co.il/
 * Description: Makes the admin bar a small button on the left and expands on hover.
 * Version: 1.0
 * Author: NetYou
 * Author URI: http://www.netyou.co.il/
 * License: MIT
 * Copyright: NetYou
*/
 
add_action('get_header', 'my_filter_head');
function my_filter_head() { remove_action('wp_head', '_admin_bar_bump_cb'); }
 
function my_admin_css() {
        if ( is_user_logged_in() ) {
        ?>
        <style type="text/css">
            #wpadminbar {
                width: 47px;
                min-width: auto;
                overflow: hidden;
                -webkit-transition: .4s width;
                -webkit-transition-delay: 1s;
                -moz-transition: .4s width;
                -moz-transition-delay: 1s;
                -o-transition: .4s width;
                -o-transition-delay: 1s;
                -ms-transition: .4s width;
                -ms-transition-delay: 1s;
                transition: .4s width;
                transition-delay: 1s;
            }
            
            #wpadminbar:hover {
                width: 100%;
                overflow: visible;
                -webkit-transition-delay: 0;
                -moz-transition-delay: 0;
                -o-transition-delay: 0;
                -ms-transition-delay: 0;
                transition-delay: 0;
            }
        </style>
        <?php }
}
add_action('wp_head', 'my_admin_css');

?>

Reference URL

wordpress Show Your Favorite Tweets with WordPress

by in , 11 Mar 2014 0

Just replace the URL in the fetch_rss line below with the RSS feed to your Twitter favorites. In fact this will work with any RSS feed.

<?php
    include_once(ABSPATH . WPINC . '/feed.php');
    $rss = fetch_feed('http://twitter.com/favorites/793830.rss');
    $maxitems = $rss->get_item_quantity(3); 
    $rss_items = $rss->get_items(0, $maxitems);
?>

<ul>
    <?php if ($maxitems == 0) echo '<li>No items.</li>';
    else
    // Loop through each feed item and display each item as a hyperlink.
    foreach ( $rss_items as $item ) : ?>
    <li>
        <a href='<?php echo $item->get_permalink(); ?>'>
            <?php echo $item->get_title(); ?>
        </a>
    </li>
    <?php endforeach; ?>
</ul>

wordpress Shortcode in a Template

by in , 11 Mar 2014 0

Shortcodes in WordPress are bits of text you can use in the content area to invoke some kind of function to accomplish certain tasks. For example, video embedding in WP 2.9+ uses the shortcode. You can write your own shortcodes, and plugins often offer their functionality via shortcodes as well.

But what if you want to use a shortcode from within a template instead of with the content of a Post/Page? You can invoke it with a special function:

<?php echo do_shortcode("[shortcode]"); ?>

wordpress Shortcode for Action Button

by in , 11 Mar 2014 0

For functions.php

 /* Shortcode to display an action button. */
add_shortcode( 'action-button', 'action_button_shortcode' );
function action_button_shortcode( $atts ) {
       extract( shortcode_atts(
               array(
                       'color' => 'blue',
                       'title' => 'Title',
                       'subtitle' => 'Subtitle',
                       'url' => ''
               ),
               $atts
       ));
       return '<span class="action-button ' . $color . '-button"><a href="' . $url . '">' . $title . '<span class="subtitle">' . $subtitle . '</span>' . '</a></span>';
}

Usage in Post Editor

[action-button color="blue" title="Download Now" subtitle="Version 1.0.1 – Mac OSX" url="#"]

CSS for style.css file

Only includes "blue" styling, add others as you might.

.action-button a:link, .action-button a:visited {
       border-radius: 5px;
       display: inline-block;
       font: 700 16px Arial, Sans-Serif;
       margin: 0 10px 20px 0;
       -moz-border-radius: 5px;
       padding: 14px 18px;
       text-align: center;
       text-decoration: none;
       text-shadow: 0 1px 1px rgba(0,0,0,0.3);
       text-transform: uppercase;
       -webkit-border-radius: 5px;
}

.action-button .subtitle {
       display: block;
       font: 400 11px Arial, Sans-Serif;
       margin: 5px 0 0;
}

.blue-button a:link, .blue-button a:visited {
       background-color: #5E9CB9;
       background-image: -moz-linear-gradient(top, #5E9CB9, #4E7E95);
       background-image: -webkit-gradient(linear, left top, left bottom, from(#5E9CB9), to(#4E7E95));
       color: #FFF;
       filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#5E9CB9', EndColorStr='#4E7E95');
       -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#5E9CB9', EndColorStr='#4E7E95')";
}

.blue-button a:hover {
       background-color: #68A9C8;
       background-image: -moz-linear-gradient(top, #68A9C8, #598EA8);
       background-image: -webkit-gradient(linear, left top, left bottom, from(#68A9C8), to(#598EA8));
       color: #FFF;
       filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#68A9C8', EndColorStr='#598EA8');
       -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#68A9C8', EndColorStr='#598EA8')";
}

Sent in by Matt Adams.

wordpress Run Loop on Posts of Specific Category

by in , 11 Mar 2014 0

<?php query_posts('cat=5'); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
   <?php the_content(); ?>
<?php endwhile; endif; ?>

If you were to use this, for example, in a left sidebar which ran before the main loop on your page, remember to reset the query or it will upset that main loop.

<?php wp_reset_query(); ?>

wordpress Run a Loop Outside of WordPress

by in , 11 Mar 2014 0

Include Basic WordPress Functions

<?php
  // Include WordPress
  define('WP_USE_THEMES', false);
  require('/server/path/to/your/wordpress/site/htdocs/blog/wp-blog-header.php');
  query_posts('showposts=1');
?>

Run Loop

<?php while (have_posts()): the_post(); ?>
   <h2><?php the_title(); ?></h2>
   <?php the_excerpt(); ?>
   <p><a href="<?php the_permalink(); ?>" class="red">Read more...</a></p>
<?php endwhile; ?>

This can be used on any PHP file even OUTSIDE your WordPress installation.

wordpress Reset Admin Password Through Database

by in , 11 Mar 2014 0

You'll need to be able to run SQL on that database, like for example, through phpMyAdmin.

UPDATE `wp_users` SET `user_pass` = MD5( 'new_password_here' ) WHERE `wp_users`.`user_login` = "admin_username";

wordpress Reset Admin Password in Database

by in , 11 Mar 2014 0

Forget your admin password and don't have access to the email account it's under? If you can get access to phpMyAdmin (or anything you can run mySQL commands), you can update it there.

UPDATE `wp_users` SET `user_pass` = MD5( 'new_password_here' ) WHERE `wp_users`.`user_login` = "admin_username";

Just replace new_password_here with the new password and admin_username with the real admin accounts usename.

wordpress Replace Excerpt Ellipsis with Permalink

by in , 11 Mar 2014 0

This is useful if you would like to replace the ellipsis [...] from the excerpt with a permalink to the post.

functions.php addition:

function replace_excerpt($content) {
       return str_replace('[...]',
               '<div class="more-link"><a href="'. get_permalink() .'">Continue Reading</a></div>',
               $content
       );
}
add_filter('the_excerpt', 'replace_excerpt');

wordpress Remove WP Generator Meta Tag

by in , 11 Mar 2014 0

It can be considered a security risk to make your wordpress version visible and public you should hide it.

Put in functions.php file in your theme:

remove_action('wp_head', 'wp_generator');

wordpress Remove Whitespace from Function Output

by in , 11 Mar 2014 0

In WordPress, there are many functions which output things for you. For example, wp_list_pages() outputs a list of all your published pages. The HTML markup it spits out is pretty nicely formatted (meaning: has line breaks and indenting).

There are some circumstances where all that "whitespace" in the formatting is undesirable. Like 1) it's all the more characters to deliver and 2) closing "the gap" in older versions of IE.

If the function supports a way to return a string (rather than immediately echo it), you can use a regex to remove the space:

<?php
   echo preg_replace('/>\s+</m', '><', wp_list_pages('echo=0'));
?>

wordpress Remove the 28px Push Down from the Admin Bar

by in , 11 Mar 2014 0

For your functions.php file:

  add_action('get_header', 'my_filter_head');

  function my_filter_head() {
    remove_action('wp_head', '_admin_bar_bump_cb');
  }

By default, if you are seeing the admin bar as a logged in WordPress user, CSS like this will be output in your head (output in the wp_head() function):

<style type="text/css" media="screen">
	html { margin-top: 28px !important; }
	* html body { margin-top: 28px !important; }
</style>

This is normally a good thing, as it doesn't cover parts of your site then with its fixed-position-ness. But it can also be weird if you use absolute positioning for things. As they will be different depending on if the bar is there or not. Using the code above to remove the bump CSS will make the bar cover the top bit of your site, but at least the positioning will be consistent.

Reference URL

wordpress Remove Specific Categories From The Loop

by in , 11 Mar 2014 0

<?php query_posts('cat=-3'); ?>

<?php if (have_posts()) : ?>

<?php while (have_posts()) : the_post(); ?>

		<h3>














Email This




BlogThis!




Share to X




Share to Facebook









wordpress Remove Private/Protected from Post Titles by Unknown in Tutorial , wordpress var timestamp = "Tuesday, March 11, 2014"; if (timestamp != '') { var timesplit = timestamp.split(","); var date_yyyy = timesplit[2]; var timesplit = timesplit[1].split(" "); var date_dd = timesplit[2]; var date_mmm = timesplit[1].substring(0, 3); } document.write(date_dd);11 document.write(date_mmm);Mar document.write(date_yyyy); 2014 0 For the functions.php file in your theme: function the_title_trim($title) { $title = attribute_escape($title); $findthese = array( '#Protected:#', '#Private:#' ); $replacewith = array( '', // What to replace "Protected:" with '' // What to replace "Private:" with ); $title = preg_replace($findthese, $replacewith, $title); return $title; } add_filter('the_title', 'the_title_trim'); Email This BlogThis! Share to X Share to Facebook wordpress Remove Paragraph Tags From Around Images by Unknown in Tutorial , wordpress var timestamp = "Tuesday, March 11, 2014"; if (timestamp != '') { var timesplit = timestamp.split(","); var date_yyyy = timesplit[2]; var timesplit = timesplit[1].split(" "); var date_dd = timesplit[2]; var date_mmm = timesplit[1].substring(0, 3); } document.write(date_dd);11 document.write(date_mmm);Mar document.write(date_yyyy); 2014 0 In case you want to have <img> in your content but not have them get "Auto P'd" like WordPress likes to do. example of problem: blah blah blah <img src="monkey.jpg"> blah blah blah turns into: <p>blah blah blah</p> <p><img src="monkey.jpg"></p> <p>blah blah blah</p> We can fix it with this: function filter_ptags_on_images($content){ return preg_replace('/<p>\s*(<a .*>)?\s*(<img .* \/>)\s*(<\/a>)?\s*<\/p>/iU', '\1\2\3', $content); } add_filter('the_content', 'filter_ptags_on_images'); For your functions.php file, or, see Reference URL for a plugin. With this in place, we get: <p>blah blah blah</p> <img src="monkey.jpg"> <p>blah blah blah</p> ... meaning things like floating the images will be much easier. Reference URL Email This BlogThis! Share to X Share to Facebook wordpress Remove Link to the WLW Manifest File by Unknown in Tutorial , wordpress var timestamp = "Tuesday, March 11, 2014"; if (timestamp != '') { var timesplit = timestamp.split(","); var date_yyyy = timesplit[2]; var timesplit = timesplit[1].split(" "); var date_dd = timesplit[2]; var date_mmm = timesplit[1].substring(0, 3); } document.write(date_dd);11 document.write(date_mmm);Mar document.write(date_yyyy); 2014 0 Kind of pointless to include this unless you actually use Windows Live Writer to write your posts. Put this in the theme's functions.php file: remove_action( 'wp_head', 'wlwmanifest_link'); Email This BlogThis! Share to X Share to Facebook wordpress Remove LI Elements From Output of wp_nav_menu by Unknown in Tutorial , wordpress var timestamp = "Tuesday, March 11, 2014"; if (timestamp != '') { var timesplit = timestamp.split(","); var date_yyyy = timesplit[2]; var timesplit = timesplit[1].split(" "); var date_dd = timesplit[2]; var date_mmm = timesplit[1].substring(0, 3); } document.write(date_dd);11 document.write(date_mmm);Mar document.write(date_yyyy); 2014 0 You can remove or change the <ul> container that you get by default with wp_nav_menu (codex) through parameters, but you can't remove the <li> elements that wrap each menu item. This is how you can actually remove them: $menuParameters = array( 'container' => false, 'echo' => false, 'items_wrap' => '%3$s', 'depth' => 0, ); echo strip_tags(wp_nav_menu( $menuParameters ), '<a>' ); Email This BlogThis! Share to X Share to Facebook wordpress Remove Gallery Inline Styling by Unknown in Tutorial , wordpress var timestamp = "Tuesday, March 11, 2014"; if (timestamp != '') { var timesplit = timestamp.split(","); var date_yyyy = timesplit[2]; var timesplit = timesplit[1].split(" "); var date_dd = timesplit[2]; var date_mmm = timesplit[1].substring(0, 3); } document.write(date_dd);11 document.write(date_mmm);Mar document.write(date_yyyy); 2014 0 add_filter( 'use_default_gallery_style', '__return_false' ); Reference URL Email This BlogThis! Share to X Share to Facebook wordpress Remove Admin Bar For Subscribers by Unknown in Tutorial , wordpress var timestamp = "Tuesday, March 11, 2014"; if (timestamp != '') { var timesplit = timestamp.split(","); var date_yyyy = timesplit[2]; var timesplit = timesplit[1].split(" "); var date_dd = timesplit[2]; var date_mmm = timesplit[1].substring(0, 3); } document.write(date_dd);11 document.write(date_mmm);Mar document.write(date_yyyy); 2014 0 You might want open registration on your WordPress site so that (for one small example) people can log in and leave comments on things without needing to type their name/url/email every time. But these users probably don't need to see the whole top admin bar as there likely isn't much use in it for them. Although do be sure to provide a link to edit their profile and log out. This would be for your functions.php file or functionality plugin: add_action('set_current_user', 'cc_hide_admin_bar'); function cc_hide_admin_bar() { if (!current_user_can('edit_posts')) { show_admin_bar(false); } } Email This BlogThis! Share to X Share to Facebook wordpress Recent Posts Function by Unknown in Tutorial , wordpress var timestamp = "Tuesday, March 11, 2014"; if (timestamp != '') { var timesplit = timestamp.split(","); var date_yyyy = timesplit[2]; var timesplit = timesplit[1].split(" "); var date_dd = timesplit[2]; var date_mmm = timesplit[1].substring(0, 3); } document.write(date_dd);11 document.write(date_mmm);Mar document.write(date_yyyy); 2014 0 Technique #1 This function is useful when you need to display content, excerpt, custom fields, or anything related to the post beyond it's link and title. If you just need a list of linked titles, see the next technique. Put the following function in functions.php function recent_posts($no_posts = 10, $excerpts = true) { global $wpdb; $request = "SELECT ID, post_title, post_excerpt FROM $wpdb->posts WHERE post_status = 'publish' AND post_type='post' ORDER BY post_date DESC LIMIT $no_posts"; $posts = $wpdb->get_results($request); if($posts) { foreach ($posts as $posts) { $post_title = stripslashes($posts->post_title); $permalink = get_permalink($posts->ID); $output .= '<li><h2><a href="' . $permalink . '" rel="bookmark" title="Permanent Link: ' . htmlspecialchars($post_title, ENT_COMPAT) . '">' . htmlspecialchars($post_title) . '</a></h2>'; if($excerpts) { $output.= '<br />' . stripslashes($posts->post_excerpt); } $output .= '</li>'; } } else { $output .= '<li>No posts found</li>'; } echo $output; } Usage After you've made the function. Put the following in the sidebar or wherever you like the recent posts to list.. <?php recent_posts(); ?> You can give it 2 arguments, the first is the number of posts and the second is whether or not you want to display the excerpts. so recent_posts(2, false) will display the 2 most recent post titles. Technique #2 <?php wp_get_archives( array( 'type' => 'postbypost', // or daily, weekly, monthly, yearly 'limit' => 10, // maximum number shown 'format' => 'html', // or select (dropdown), link, or custom (then need to also pass before and after params for custom tags 'show_post_count' => false, // show number of posts per link 'echo' => 1 // display results or return array ) ); ?> Technique #3 More succinct version of #1, which also includes a more standardized query string. <?php $recentposts = get_posts('numberposts=12&category=4'); foreach ($recentposts as $post) : setup_postdata($post); ?> <li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li> <?php endforeach; ?> Reference URL Email This BlogThis! Share to X Share to Facebook wordpress Prevent Search Bots from Indexing Search Results by Unknown in Tutorial , wordpress var timestamp = "Tuesday, March 11, 2014"; if (timestamp != '') { var timesplit = timestamp.split(","); var date_yyyy = timesplit[2]; var timesplit = timesplit[1].split(" "); var date_dd = timesplit[2]; var date_mmm = timesplit[1].substring(0, 3); } document.write(date_dd);11 document.write(date_mmm);Mar document.write(date_yyyy); 2014 0 In the <head> section of your header.php file: <?php if(is_search()) { ?> <meta name="robots" content="noindex, nofollow" /> <?php }?> Email This BlogThis! Share to X Share to Facebook wordpress Prevent CSS Caching by Unknown in Tutorial , wordpress var timestamp = "Tuesday, March 11, 2014"; if (timestamp != '') { var timesplit = timestamp.split(","); var date_yyyy = timesplit[2]; var timesplit = timesplit[1].split(" "); var date_dd = timesplit[2]; var date_mmm = timesplit[1].substring(0, 3); } document.write(date_dd);11 document.write(date_mmm);Mar document.write(date_yyyy); 2014 0 WordPress: <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); echo '?' . filemtime( get_stylesheet_directory() . '/style.css'); ?>" type="text/css" media="screen" /> bbPress: <link rel="stylesheet" href="<?php bb_stylesheet_uri(); echo '?' . filemtime( bb_get_active_theme_directory() . '/style.css'); ?>" type="text/css" media="screen" /> Adds stylesheet with time of last update. If the number changes the browser updates the CSS instead of using cached version. Easily amended to be none WP specific. Email This BlogThis! Share to X Share to Facebook wordpress Paginate Custom Post Types by Unknown in Tutorial , wordpress var timestamp = "Tuesday, March 11, 2014"; if (timestamp != '') { var timesplit = timestamp.split(","); var date_yyyy = timesplit[2]; var timesplit = timesplit[1].split(" "); var date_dd = timesplit[2]; var date_mmm = timesplit[1].substring(0, 3); } document.write(date_dd);11 document.write(date_mmm);Mar document.write(date_yyyy); 2014 0 <?php $temp = $wp_query; $wp_query = null; $wp_query = new WP_Query(); $wp_query->query('showposts=6&post_type=news'.'&paged='.$paged); while ($wp_query->have_posts()) : $wp_query->the_post(); ?> <!-- LOOP: Usual Post Template Stuff Here--> <?php endwhile; ?> <nav> <?php previous_posts_link('&laquo; Newer') ?> <?php next_posts_link('Older &raquo;') ?> </nav> <?php $wp_query = null; $wp_query = $temp; // Reset ?> Email This BlogThis! Share to X Share to Facebook wordpress Output Excerpt Manually by Unknown in Tutorial , wordpress var timestamp = "Tuesday, March 11, 2014"; if (timestamp != '') { var timesplit = timestamp.split(","); var date_yyyy = timesplit[2]; var timesplit = timesplit[1].split(" "); var date_dd = timesplit[2]; var date_mmm = timesplit[1].substring(0, 3); } document.write(date_dd);11 document.write(date_mmm);Mar document.write(date_yyyy); 2014 0 There is always the_excerpt(), but that does some pretty specific stuff (e.g. adding paragraph tags, adding [...], not respect the more comment, use the saved excerpt...). Advanced Excerpt is pretty good at customizing that. If you want to get real simple though: <?php $content = get_the_content(); echo substr(strip_tags($content), 0, 130) . '...'; ?> Email This BlogThis! Share to X Share to Facebook wordpress Natural Sort Using Post meta_key by Unknown in Tutorial , wordpress var timestamp = "Tuesday, March 11, 2014"; if (timestamp != '') { var timesplit = timestamp.split(","); var date_yyyy = timesplit[2]; var timesplit = timesplit[1].split(" "); var date_dd = timesplit[2]; var date_mmm = timesplit[1].substring(0, 3); } document.write(date_dd);11 document.write(date_mmm);Mar document.write(date_yyyy); 2014 0 @@ -2033,6 +2033,7 @@ if ( !empty($q['meta_key']) ) { $allowed_keys[] = $q['meta_key']; $allowed_keys[] = 'meta_value'; + $allowed_keys[] = 'meta_value_num'; } $q['orderby'] = urldecode($q['orderby']); $q['orderby'] = addslashes_gpc($q['orderby']); @@ -2056,6 +2057,9 @@ case 'meta_value': $orderby = "$wpdb->postmeta.meta_value"; break; + case 'meta_value_num': + $orderby = "$wpdb->postmeta.meta_value+0"; + break; default: $orderby = "$wpdb->posts.post_" . $orderby; } This is a direct edit to a core file: /wp-includes/query.php Note the plus signs in the above code indicate new lines to add. Author Notes: A client wanted me to setup a custom field called "Guide Rank" which allowed them to assign #1 - 20 for a list of Bars they were posting about. After running the posts query I found that the meta_value was being treated as a string and as such the sort order was jumbled: eg. 1, 10, 2, 3css-tricks.comC 7 , 8 , 9 To get WordPress/MySQL to use "Natural Sort Order" you just need to apply +0 to the field name and it'll be treated as a number (eg. meta_value+0). So that existing behavior is not interrupted I've just added the new type 'meta_value_num'. My query line now looks like: $guide_posts = new WP_Query("cat=12&meta_key=guide_rank&orderby=meta_value_num&order=ASC&showposts=10"); Which returns: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 This is up for inclusion in the WordPress trunk - so hopefully once it gets applied there should be no need for manually editing the file. Email This BlogThis! Share to X Share to Facebook wordpress Move WordPress Admin Bar to the Bottom by Unknown in Tutorial , wordpress var timestamp = "Tuesday, March 11, 2014"; if (timestamp != '') { var timesplit = timestamp.split(","); var date_yyyy = timesplit[2]; var timesplit = timesplit[1].split(" "); var date_dd = timesplit[2]; var date_mmm = timesplit[1].substring(0, 3); } document.write(date_dd);11 document.write(date_mmm);Mar document.write(date_yyyy); 2014 0 Pre WordPress 3.3 only. Either add this CSS to your CSS file, add all the code to your functions.php file, or make a quick little plugin. function fb_move_admin_bar() { echo ' <style type="text/css"> body { margin-top: -28px; padding-bottom: 28px; } body.admin-bar #wphead { padding-top: 0; } body.admin-bar #footer { padding-bottom: 28px; } #wpadminbar { top: auto !important; bottom: 0; } #wpadminbar .quicklinks .menupop ul { bottom: 28px; } </style>'; } // on backend area add_action( 'admin_head', 'fb_move_admin_bar' ); // on frontend area add_action( 'wp_head', 'fb_move_admin_bar' ); Reference URL Email This BlogThis! Share to X Share to Facebook wordpress Make Archives.php Include Custom Post Types by Unknown in Tutorial , wordpress var timestamp = "Tuesday, March 11, 2014"; if (timestamp != '') { var timesplit = timestamp.split(","); var date_yyyy = timesplit[2]; var timesplit = timesplit[1].split(" "); var date_dd = timesplit[2]; var date_mmm = timesplit[1].substring(0, 3); } document.write(date_dd);11 document.write(date_mmm);Mar document.write(date_yyyy); 2014 0 Archives.php only shows content of type 'post', but you can alter it to include custom post types. Add this filter to your functions.php file: function namespace_add_custom_types( $query ) { if( is_category() || is_tag() && empty( $query->query_vars['suppress_filters'] ) ) { $query->set( 'post_type', array( 'post', 'your-custom-post-type-here' )); return $query; } } add_filter( 'pre_get_posts', 'namespace_add_custom_types' ); Email This BlogThis! Share to X Share to Facebook wordpress Login/Logout and User Welcome by Unknown in Tutorial , wordpress var timestamp = "Tuesday, March 11, 2014"; if (timestamp != '') { var timesplit = timestamp.split(","); var date_yyyy = timesplit[2]; var timesplit = timesplit[1].split(" "); var date_dd = timesplit[2]; var date_mmm = timesplit[1].substring(0, 3); } document.write(date_dd);11 document.write(date_mmm);Mar document.write(date_yyyy); 2014 0 <div id="user-details"> <?php if (is_user_logged_in()) { $user = wp_get_current_user(); echo ‘Welcome back <strong>’.$user->display_name.‘</strong> !’; } else { ?> Please <strong><?php wp_loginout(); ?></strong> or <a href="<?php echo get_option(’home’); ?>/wp-login.php?action=register"> <strong>Register</strong></a> <?php } ?> </div> Uses WordPress functions and queries to pull user information, and to display the login/logout/register links. Email This BlogThis! Share to X Share to Facebook wordpress List Posts, Highlight Current by Unknown in Tutorial , wordpress var timestamp = "Tuesday, March 11, 2014"; if (timestamp != '') { var timesplit = timestamp.split(","); var date_yyyy = timesplit[2]; var timesplit = timesplit[1].split(" "); var date_dd = timesplit[2]; var date_mmm = timesplit[1].substring(0, 3); } document.write(date_dd);11 document.write(date_mmm);Mar document.write(date_yyyy); 2014 0 WordPress lacks a wp_list_posts() function that might seem logical go with the robust and useful wp_list_pages() function. You can simulate it though, by using the get_posts() function and running your own loop through the results. The parameters for get_posts() below are just examples, replace with your needs. <ul> <?php $lastposts = get_posts('numberposts=5&orderby=rand&cat=-52'); foreach($lastposts as $post) : setup_postdata($post); ?> <li<?php if ( $post->ID == $wp_query->post->ID ) { echo ' class="current"'; } else {} ?>> <a href="<?php the_permalink() ?>"><?php the_title(); ?></a> </li> <?php endforeach; ?> </ul> wp_list_pages() also has the feature of adding a class name of "current_page_item" to the list element when that page is the active one. Notice the opening list tag above, which replicates that functionality by seeing if the ID from the current query matches the ID from the current iteration of the loop. Email This BlogThis! Share to X Share to Facebook wordpress Insert Images within Figure Element from Media Uploader by Unknown in Tutorial , wordpress var timestamp = "Tuesday, March 11, 2014"; if (timestamp != '') { var timesplit = timestamp.split(","); var date_yyyy = timesplit[2]; var timesplit = timesplit[1].split(" "); var date_dd = timesplit[2]; var date_mmm = timesplit[1].substring(0, 3); } document.write(date_dd);11 document.write(date_mmm);Mar document.write(date_yyyy); 2014 0 For your functions.php file or a functionality plugin: function html5_insert_image($html, $id, $caption, $title, $align, $url) { $html5 = "<figure id='post-$id media-$id' class='align-$align'>"; $html5 .= "<img src='$url' alt='$title' />"; if ($caption) { $html5 .= "<figcaption>$caption</figcaption>"; } $html5 .= "</figure>"; return $html5; } add_filter( 'image_send_to_editor', 'html5_insert_image', 10, 9 ); It also takes what you enter as a caption and inserts it within the <figure> tag as a <figcaption>. Example inserted code: <figure id='post-18838 media-18838' class='align-none'> <img src='http://youresite.com/wp-content/uploads/2012/10/image.png' alt='Title of image'> <figcaption>Caption for image</figcaption> </figure> Email This BlogThis! Share to X Share to Facebook wordpress Insert Images with Figure/Figcaption by Unknown in Tutorial , wordpress var timestamp = "Tuesday, March 11, 2014"; if (timestamp != '') { var timesplit = timestamp.split(","); var date_yyyy = timesplit[2]; var timesplit = timesplit[1].split(" "); var date_dd = timesplit[2]; var date_mmm = timesplit[1].substring(0, 3); } document.write(date_dd);11 document.write(date_mmm);Mar document.write(date_yyyy); 2014 0 For a simple plugin or functions.php file: function html5_insert_image($html, $id, $caption, $title, $align, $url) { $html5 = "<figure id='post-$id media-$id' class='align-$align'>"; $html5 .= "<img src='$url' alt='$title' />"; if ($caption) { $html5 .= "<figcaption>$caption</figcaption>"; } $html5 .= "</figure>"; return $html5; } add_filter( 'image_send_to_editor', 'html5_insert_image', 10, 9 ); Reference URL Email This BlogThis! Share to X Share to Facebook wordpress Include jQuery in WordPress Theme by Unknown in Tutorial , wordpress var timestamp = "Tuesday, March 11, 2014"; if (timestamp != '') { var timesplit = timestamp.split(","); var date_yyyy = timesplit[2]; var timesplit = timesplit[1].split(" "); var date_dd = timesplit[2]; var date_mmm = timesplit[1].substring(0, 3); } document.write(date_dd);11 document.write(date_mmm);Mar document.write(date_yyyy); 2014 0 The following is the best way to go about it. Add the following to the theme's functions.php file: if (!is_admin()) add_action("wp_enqueue_scripts", "my_jquery_enqueue", 11); function my_jquery_enqueue() { wp_deregister_script('jquery'); wp_register_script('jquery', "http" . ($_SERVER['SERVER_PORT'] == 443 ? "s" : "") . "://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js", false, null); wp_enqueue_script('jquery'); } Replace the URL with the location of what version of jQuery you want to use. Reference URL Email This BlogThis! Share to X Share to Facebook wordpress Include Any File From Your Theme by Unknown in Tutorial , wordpress var timestamp = "Tuesday, March 11, 2014"; if (timestamp != '') { var timesplit = timestamp.split(","); var date_yyyy = timesplit[2]; var timesplit = timesplit[1].split(" "); var date_dd = timesplit[2]; var date_mmm = timesplit[1].substring(0, 3); } document.write(date_dd);11 document.write(date_mmm);Mar document.write(date_yyyy); 2014 0 <?php include (TEMPLATEPATH . '/your-file.php'); ?> Email This BlogThis! Share to X Share to Facebook wordpress If Page Is Parent or Child by Unknown in Tutorial , wordpress var timestamp = "Tuesday, March 11, 2014"; if (timestamp != '') { var timesplit = timestamp.split(","); var date_yyyy = timesplit[2]; var timesplit = timesplit[1].split(" "); var date_dd = timesplit[2]; var date_mmm = timesplit[1].substring(0, 3); } document.write(date_dd);11 document.write(date_mmm);Mar document.write(date_yyyy); 2014 0 There are built in conditional WordPress functions for testing for a page: if ( is_page(2) ) { // stuff } Or for testing if a page is a child of a certain page: if ( $post->post_parent == '2' ) { // stuff } But there is no built in function that combines these two things, which is a fairly common need. For example, loading a special CSS page for a whole "branch" of content. Like a "videos" page and all its children individual videos pages. This function (add to functions.php file) creates new logical function to be used in this way: function is_tree($pid) { // $pid = The ID of the page we're looking for pages underneath global $post; // load details about this page if(is_page()&&($post->post_parent==$pid||is_page($pid))) return true; // we're at the page or at a sub page else return false; // we're elsewhere }; Usage if (is_tree(2)) { // stuff } Email This BlogThis! Share to X Share to Facebook wordpress ID the Body Based on URL by Unknown in Tutorial , wordpress var timestamp = "Tuesday, March 11, 2014"; if (timestamp != '') { var timesplit = timestamp.split(","); var date_yyyy = timesplit[2]; var timesplit = timesplit[1].split(" "); var date_dd = timesplit[2]; var date_mmm = timesplit[1].substring(0, 3); } document.write(date_dd);11 document.write(date_mmm);Mar document.write(date_yyyy); 2014 0 <?php $url = explode('/',$_SERVER['REQUEST_URI']); $dir = $url[1] ? $url[1] : 'home'; ?> <body id="<?php echo $dir ?>"> This would turn http://domain.tld/blog/home into "blog" (the second level of the URL structure). If at the root, it will return "home". Here is an alternate method: <?php $page = $_SERVER['REQUEST_URI']; $page = str_replace("/","",$page); $page = str_replace(".php","",$page); $page = str_replace("?s=","",$page); $page = $page ? $page : 'index' ?> This would turn http://domain.tld/blog/home into "domaintldbloghome", which is far more specific. It also will remove ".php" file extensions and the default WordPress search parameter. More Secure Method function curr_virtdir($echo=true){ $url = explode('/',$_SERVER['REQUEST_URI']); $dir = $url[1] ? $url[1] : 'home'; // defaults to this if in the root $dir = htmlentities(trim(strip_tags($dir))); // prevent injection into the DOM through this function if ($echo) echo $dir; return echo $dir; // ie. curr_virtdir(false) } function get_curr_virtdir(){ curr_virtdir(false); } Returns the "middle" directory value: On http://css-tricks.com it would return "home" On http://css-tricks.com/snippets it would return "snippets" On http://css-tricks.com/forums/viewforum.php?f=6 it would return "forums" The strip_tags() and htmlentities() functions prevent malicious code from being insterted into the URL and ran, e.g. <body id="foo"><script>alert("Booo");</script> Usage for IDing the body: <body id="<?php curr_virtdir(); ?>"> Other usage: <?php if ( get_curr_virtdir() == "store" ){ echo "Welcome to our awesome store !"; } elseif ( get_curr_virtdir() == "home" ){ echo "Welcome home :-)"; } else { echo "Welcome on some other page"; } ?> Email This BlogThis! Share to X Share to Facebook
« Previous Page • Next Page »
Random Tutorials #random-posts img{float:left;margin-right:10px; width:65px;height:50px;background-color: #F5F5F5;padding: 3px;} ul#random-posts {list-style-type: none;} var rdp_numposts=5; var rdp_snippet_length=150; var rdp_info='yes'; var rdp_comment='Comments'; var rdp_disable='Comments Disabled'; var rdp_current=[];var rdp_total_posts=0;var rdp_current=new Array(rdp_numposts);function totalposts(json){rdp_total_posts=json.feed.openSearch$totalResults.$t}document.write('<script type=\"text/javascript\" src=\"/feeds/posts/default?alt=json-in-script&max-results=0&callback=totalposts\"><\/script>');function getvalue(){for(var i=0;i<rdp_numposts;i++){var found=false;var rndValue=get_random();for(var j=0;j<rdp_current.length;j++){if(rdp_current[j]==rndValue){found=true;break}};if(found){i--}else{rdp_current[i]=rndValue}}};function get_random(){var ranNum=1+Math.round(Math.random()*(rdp_total_posts-1));return ranNum}; function random_posts(json){for(var i=0;i<rdp_numposts;i++){var entry=json.feed.entry[i];var rdp_posttitle=entry.title.$t;if('content'in entry){var rdp_get_snippet=entry.content.$t}else{if('summary'in entry){var rdp_get_snippet=entry.summary.$t}else{var rdp_get_snippet="";}};rdp_get_snippet=rdp_get_snippet.replace(/<[^>]*>/g,"");if(rdp_get_snippet.length<rdp_snippet_length){var rdp_snippet=rdp_get_snippet}else{rdp_get_snippet=rdp_get_snippet.substring(0,rdp_snippet_length);var space=rdp_get_snippet.lastIndexOf(" ");rdp_snippet=rdp_get_snippet.substring(0,space)+"&#133;";};for(var j=0;j<entry.link.length;j++){if('thr$total'in entry){var rdp_commentsNum=entry.thr$total.$t+' '+rdp_comment}else{rdp_commentsNum=rdp_disable};if(entry.link[j].rel=='alternate'){var rdp_posturl=entry.link[j].href;var rdp_postdate=entry.published.$t;if('media$thumbnail'in entry){var rdp_thumb=entry.media$thumbnail.url}else{rdp_thumb="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgge7xZAnALLMBKhE78BkvvzrHspqDSv3v9aYfKjXDljdu9LMiJlulyiZ1FQQ9rzh6B8wIvLQBYMg5X4MTF7S095ylOk8AZ9hyIz3zPtqgarvTZzxV61GcsoEURVxvJhDD15EKMUW4NwRA/s1600/no_thumb.png"}}};document.write('<li>');document.write('<img alt="'+rdp_posttitle+'" src="'+rdp_thumb+'"/>');document.write('<div><a href="'+rdp_posturl+'" rel="nofollow" title="'+rdp_snippet+'">'+rdp_posttitle+'</a></div>');if(rdp_info=='yes'){document.write('<span>'+rdp_postdate.substring(8,10)+'/'+rdp_postdate.substring(5,7)+'/'+rdp_postdate.substring(0,4)+' - '+rdp_commentsNum)+'</span>'}document.write('<div style="clear:both"></div></li>')}};getvalue();for(var i=0;i<rdp_numposts;i++){document.write('<script type=\"text/javascript\" src=\"/feeds/posts/default?alt=json-in-script&start-index='+rdp_current[i]+'&max-results=1&callback=random_posts\"><\/script>')}; Tutorial Add Category Name to body_class09/03/2014 - 0 CommentsTutorial Basic Database Connection, Random Query, Display Result03/03/2014 - 0 CommentsTutorial Smiley Slider02/03/2014 - 0 CommentsTutorial Page Curl Shadows02/03/2014 - 0 CommentsTutorial Convert Comma Separated String into Array04/03/2014 - 0 Comments Categories 3D Inset SEO Tutorial css css3 htaccess html jquery php (adsbygoogle = window.adsbygoogle || []).push({}); Useful links VietnamAnswer PHP Programmers Businessman Forum Driver Firmware Download Mobile Discuss Popular Posts adf.ly, lienscash.com, adfoc.us, bc.vc bypasser extension for Chrome function detect Unicode UTF-8 string PHP 50 Beautifull Css3 Buttons HTML5 Jquery tooltip 30 Best HTML5 3D Effect examples Tutorial iPad Orientation CSS Tutorial Keyframe Animation Syntax Create a phpFox module Preg Match All Links on a Page PHP Tooltips In only CSS3 And HTML5, Without JavaScript Tags 3d border 3D Inset Ajax animated button beautifull css blogspot Brighten Up button css css3 Desktop hide HP htaccess html html5 javascript jquery mysql php phpfox script SEO Shopping Cart template Tutorial vps wordpress (adsbygoogle = window.adsbygoogle || []).push({}); Archives ► 2015 ( 5 ) ► June ( 1 ) Jun 20 ( 1 ) ► March ( 1 ) Mar 28 ( 1 ) ► February ( 1 ) Feb 03 ( 1 ) ► January ( 2 ) Jan 14 ( 1 ) Jan 08 ( 1 ) ▼ 2014 ( 620 ) ► December ( 1 ) Dec 08 ( 1 ) ► November ( 2 ) Nov 26 ( 1 ) Nov 18 ( 1 ) ► August ( 12 ) Aug 17 ( 1 ) Aug 16 ( 4 ) Aug 15 ( 1 ) Aug 11 ( 3 ) Aug 10 ( 2 ) Aug 01 ( 1 ) ► July ( 3 ) Jul 31 ( 1 ) Jul 21 ( 2 ) ► June ( 1 ) Jun 01 ( 1 ) ► May ( 3 ) May 19 ( 1 ) May 05 ( 2 ) ► April ( 15 ) Apr 14 ( 3 ) Apr 10 ( 1 ) Apr 09 ( 1 ) Apr 06 ( 4 ) Apr 04 ( 4 ) Apr 02 ( 2 ) ▼ March ( 523 ) Mar 29 ( 1 ) Mar 25 ( 2 ) Mar 22 ( 3 ) Mar 16 ( 10 ) Mar 15 ( 15 ) Mar 11 ( 40 ) Mar 10 ( 20 ) Mar 09 ( 52 ) Mar 08 ( 46 ) Mar 07 ( 47 ) Mar 06 ( 48 ) Mar 05 ( 45 ) Mar 04 ( 47 ) Mar 03 ( 50 ) Mar 02 ( 49 ) Mar 01 ( 48 ) ► February ( 60 ) Feb 28 ( 48 ) Feb 27 ( 11 ) Feb 26 ( 1 ) Driver Firmware Collection Driver360 provide links to download driver and firmware. - All driver and firmware you may find here you can download and install absolutely for free. - All driver files, firmware updates and manuals are the property of their respectful owners.If there is any question or get any trouble, drop us your comments.DRIVER 360
© HOT CSS • Entries (RSS) • Comments (RSS) E-commerce Expert addthis.layers({ 'theme' : 'transparent', 'share' : { 'position' : 'left', 'numPreferredServices' : 5, "services":"facebook,twitter,ketnooi,more" }, 'whatsnext' : {}, 'recommended' : {} }); function detectmob() { if(window.innerWidth <= 800 && window.innerHeight <= 600) { return true; } else { return false; } } $(document).ready(function(){ if( detectmob() ) { if(window.location.href.indexOf("?")>0) window.location=window.location+"&m=1"; else window.location=window.location+"?m=1" } }) (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-49625410-3', 'hotcss.blogspot.com'); ga('send', 'pageview'); window['__wavt'] = 'AOuZoY4JDEfBfZexhRGTereskcVfJyleLA:1743396682340';_WidgetManager._Init('//www.blogger.com/rearrange?blogID\x3d4771519697269718024','//hotcss.blogspot.com/2014_03_11_archive.html','4771519697269718024'); _WidgetManager._SetDataContext([{'name': 'blog', 'data': {'blogId': '4771519697269718024', 'title': 'HOT CSS', 'url': 'https://hotcss.blogspot.com/2014_03_11_archive.html', 'canonicalUrl': 'http://hotcss.blogspot.com/2014_03_11_archive.html', 'homepageUrl': 'https://hotcss.blogspot.com/', 'searchUrl': 'https://hotcss.blogspot.com/search', 'canonicalHomepageUrl': 'http://hotcss.blogspot.com/', 'blogspotFaviconUrl': 'https://hotcss.blogspot.com/favicon.ico', 'bloggerUrl': 'https://www.blogger.com', 'hasCustomDomain': false, 'httpsEnabled': true, 'enabledCommentProfileImages': true, 'gPlusViewType': 'FILTERED_POSTMOD', 'adultContent': false, 'analyticsAccountNumber': 'UA-49625410-3', 'encoding': 'UTF-8', 'locale': 'en', 'localeUnderscoreDelimited': 'en', 'languageDirection': 'ltr', 'isPrivate': false, 'isMobile': false, 'isMobileRequest': false, 'mobileClass': '', 'isPrivateBlog': false, 'isDynamicViewsAvailable': true, 'feedLinks': '\x3clink rel\x3d\x22alternate\x22 type\x3d\x22application/atom+xml\x22 title\x3d\x22HOT CSS - Atom\x22 href\x3d\x22https://hotcss.blogspot.com/feeds/posts/default\x22 /\x3e\n\x3clink rel\x3d\x22alternate\x22 type\x3d\x22application/rss+xml\x22 title\x3d\x22HOT CSS - RSS\x22 href\x3d\x22https://hotcss.blogspot.com/feeds/posts/default?alt\x3drss\x22 /\x3e\n\x3clink rel\x3d\x22service.post\x22 type\x3d\x22application/atom+xml\x22 title\x3d\x22HOT CSS - Atom\x22 href\x3d\x22https://www.blogger.com/feeds/4771519697269718024/posts/default\x22 /\x3e\n', 'meTag': '', 'adsenseClientId': 'ca-pub-1075771178000414', 'adsenseHostId': 'ca-host-pub-1556223355139109', 'adsenseHasAds': false, 'adsenseAutoAds': false, 'boqCommentIframeForm': true, 'loginRedirectParam': '', 'view': '', 'dynamicViewsCommentsSrc': '//www.blogblog.com/dynamicviews/4224c15c4e7c9321/js/comments.js', 'dynamicViewsScriptSrc': '//www.blogblog.com/dynamicviews/6c9901d4a96a9be5', 'plusOneApiSrc': 'https://apis.google.com/js/platform.js', 'disableGComments': true, 'interstitialAccepted': false, 'sharing': {'platforms': [{'name': 'Get link', 'key': 'link', 'shareMessage': 'Get link', 'target': ''}, {'name': 'Facebook', 'key': 'facebook', 'shareMessage': 'Share to Facebook', 'target': 'facebook'}, {'name': 'BlogThis!', 'key': 'blogThis', 'shareMessage': 'BlogThis!', 'target': 'blog'}, {'name': 'X', 'key': 'twitter', 'shareMessage': 'Share to X', 'target': 'twitter'}, {'name': 'Pinterest', 'key': 'pinterest', 'shareMessage': 'Share to Pinterest', 'target': 'pinterest'}, {'name': 'Email', 'key': 'email', 'shareMessage': 'Email', 'target': 'email'}], 'disableGooglePlus': true, 'googlePlusShareButtonWidth': 0, 'googlePlusBootstrap': '\x3cscript type\x3d\x22text/javascript\x22\x3ewindow.___gcfg \x3d {\x27lang\x27: \x27en\x27};\x3c/script\x3e'}, 'hasCustomJumpLinkMessage': false, 'jumpLinkMessage': 'Read more', 'pageType': 'archive', 'pageName': '03/11/14', 'pageTitle': 'HOT CSS: 03/11/14'}}, {'name': 'features', 'data': {}}, {'name': 'messages', 'data': {'edit': 'Edit', 'linkCopiedToClipboard': 'Link copied to clipboard!', 'ok': 'Ok', 'postLink': 'Post Link'}}, {'name': 'template', 'data': {'name': 'custom', 'localizedName': 'Custom', 'isResponsive': false, 'isAlternateRendering': false, 'isCustom': true}}, {'name': 'view', 'data': {'classic': {'name': 'classic', 'url': '?view\x3dclassic'}, 'flipcard': {'name': 'flipcard', 'url': '?view\x3dflipcard'}, 'magazine': {'name': 'magazine', 'url': '?view\x3dmagazine'}, 'mosaic': {'name': 'mosaic', 'url': '?view\x3dmosaic'}, 'sidebar': {'name': 'sidebar', 'url': '?view\x3dsidebar'}, 'snapshot': {'name': 'snapshot', 'url': '?view\x3dsnapshot'}, 'timeslide': {'name': 'timeslide', 'url': '?view\x3dtimeslide'}, 'isMobile': false, 'title': 'HOT CSS', 'description': 'Free Beautiful Css templates, Web designer tricks from expert', 'url': 'https://hotcss.blogspot.com/2014_03_11_archive.html', 'type': 'feed', 'isSingleItem': false, 'isMultipleItems': true, 'isError': false, 'isPage': false, 'isPost': false, 'isHomepage': false, 'isArchive': true, 'isLabelSearch': false, 'archive': {'year': 2014, 'month': 3, 'day': 11, 'rangeMessage': 'Showing posts from March 11, 2014'}}}]); _WidgetManager._RegisterWidget('_HeaderView', new _WidgetInfo('Header1', 'header', document.getElementById('Header1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_PageListView', new _WidgetInfo('PageList1', 'pages', document.getElementById('PageList1'), {'title': 'Pages', 'links': [{'isCurrentPage': false, 'href': 'https://hotcss.blogspot.com/', 'title': 'Home'}, {'isCurrentPage': false, 'href': 'http://hotcss.blogspot.com/search/label/Tutorial', 'title': 'Tutorial'}, {'isCurrentPage': false, 'href': 'http://hotcss.blogspot.com/search/label/css', 'title': 'Css'}, {'isCurrentPage': false, 'href': 'http://hotcss.blogspot.com/search/label/jquery', 'title': 'jQuery'}, {'isCurrentPage': false, 'href': 'http://hotcss.blogspot.com/search/label/seo', 'title': 'SEO'}, {'isCurrentPage': false, 'href': 'http://www.expertcustomize.com/services/128-opencart-custom-development-service', 'title': 'Opencart Expert'}, {'isCurrentPage': false, 'href': 'http://www.expertcustomize.com/services/woocommerce-custom-development', 'title': 'Woocommerce Expert'}, {'isCurrentPage': false, 'href': 'http://www.expertcustomize.com/services/wordpress-custom-development', 'title': 'Wordpress Expert'}, {'isCurrentPage': false, 'href': 'http://www.expertcustomize.com/services/joomla-custom-development', 'title': 'Joomla Expert'}], 'mobile': false, 'showPlaceholder': true, 'hasCurrentPage': false}, 'displayModeFull')); _WidgetManager._RegisterWidget('_BlogView', new _WidgetInfo('Blog1', 'main', document.getElementById('Blog1'), {'cmtInteractionsEnabled': false, 'lightboxEnabled': true, 'lightboxModuleUrl': 'https://www.blogger.com/static/v1/jsbin/4200661376-lbx.js', 'lightboxCssUrl': 'https://www.blogger.com/static/v1/v-css/1964470060-lightbox_bundle.css'}, 'displayModeFull')); _WidgetManager._RegisterWidget('_HTMLView', new _WidgetInfo('HTML4', 'sidebar1', document.getElementById('HTML4'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_LabelView', new _WidgetInfo('Label4', 'sidebar1', document.getElementById('Label4'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_HTMLView', new _WidgetInfo('HTML1', 'sidebar1', document.getElementById('HTML1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_LinkListView', new _WidgetInfo('LinkList1', 'sidebar1', document.getElementById('LinkList1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_PopularPostsView', new _WidgetInfo('PopularPosts1', 'sidebar1', document.getElementById('PopularPosts1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_LabelView', new _WidgetInfo('Label1', 'sidebar1', document.getElementById('Label1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_HTMLView', new _WidgetInfo('HTML3', 'sidebar2', document.getElementById('HTML3'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_BlogArchiveView', new _WidgetInfo('BlogArchive1', 'sidebar2', document.getElementById('BlogArchive1'), {'languageDirection': 'ltr', 'loadingMessage': 'Loading\x26hellip;'}, 'displayModeFull')); _WidgetManager._RegisterWidget('_HTMLView', new _WidgetInfo('HTML2', 'sidebar2', document.getElementById('HTML2'), {}, 'displayModeFull'));