Wentworth – an Australian Television Series

Wentworth is an Australian television drama series. It was first broadcast on SoHo on 1 May 2013. Reimagining from Prisoner, which ran on Network Ten from 1979 to 1986.

The series is set in the modern day and centres on Bea Smith’s (Danielle Cormack) early days in prison. Wentworth is filmed on a purpose built set in the suburb of Clayton. It has received a mostly positive reception from critics and the first episode became the most watched Australian drama series premiere in Foxtel history.

Additional Resources

My Pinterest Board – Wentworth – Australian TV Series

Wikipedia.org – Wentworth – Australian TV Series

Wentworth on Soho TV

Who was your favorite character from the hit TV show Wentworth? Let me know below…

Mimicking Pinterest’s Layout

If you have seen pinterest, they has a multi-column interface to display the pins and those pins arrange nicely even if they are not of the same height. They do it by using javascript to calculate the height of each pin and then positioning them absolutely. Achieving the same with CSS can be done in two ways:

Using Floats: Floats can be used but only if all the pins have same height otherwise there will be gaps left all over.
Using CSS3 Columns: This is what I used here. It is explained in detail below.
Javascript is still the way to go as this technique has some problems like, lesser cross browser support, seemed to produce weird bugs while testing that were fixed with weird solutions (although simple), hard to maintain the ordering of the items . If there is any ordering, like you want to show recent items where the first item is most recent, and the second most recent item is on the right, it doesn’t maintains that. Also, the ordering changes on resizing so it’s not a better option.

This technique is originally created by pixleight and I modified it a little to make it look and function much better. Here’s a quote from the original creation on how it’s done.

Now on to the styling: #columns { -moz-column-count: 3; -moz-column-gap: 10px; -moz-column-fill: auto; -webkit-column-count: 3; -webkit-column-gap: 10px; -webkit-column-fill: auto; column-count: 3; column-gap: 15px; column-fill: auto; }

.pin { -moz-column-break-inside: avoid; -webkit-column-break-inside: avoid; column-break-inside: avoid; display: inline-block; margin: 0 2px 15px; padding: 15px; border: 2px solid #FAFAFA; box-shadow: 0 1px 2px rgba(34, 25, 25, 0.4); background: #FEFEFE; background-image: linear-gradient(45deg, #FFF, #F9F9F9); }

As you can see, I used column-count, column-gap on #columns to achieve the column behavior. Then I added column-break-inside: avoid; to the “pins” to prevent them from flowing from one column to the next — force them to be contained in a single column. Make sure to include -moz- and -webkit- browser prefixes. Then I just styled the boxes however I wanted.

For good measure, I added some media queries to adjust the number of columns depending on browser width:

@media all and (min-width: 960px) {
    #columns {
        column-count: 4;
    }
}

@media all and (min-width: 1170px) { #columns { column-count: 5; } }

This won’t work in Internet Explorer 9 and below as it don’t support multi column. However, you can use it if you don’t care about it ;)
Make sure to take a look at the source code to understand more about it’s working.

Completley Hide WordPress Plugins from Plugins List and Admin Menu

Plugins can extend WordPress to do almost anything you can imagine. In the directory you can find, download, rate, and comment on all the best plugins the WordPress community has to offer.

/* Hide from Plugins List */
function hide_plugin_srhtrick() {
  global $wp_list_table;
  $hidearr = array('new-royalslider/newroyalslider.php');
  $myplugins = $wp_list_table->items;
  foreach ($myplugins as $key => $val) {
    if (in_array($key,$hidearr)) {
      unset($wp_list_table->items[$key]);
    }
  }
}
add_action('pre_current_active_plugins', 'hide_plugin_srhtrick');

Remove Default WordPress Metaboxes and Dashboard Widgets

If you would like to remove the default metaboxes from the WordPress Dashboard or remove metaboxes from particular posts or pages the WordPress functions below will do just that for you. Modify the code as needed and leave a comment if you’re needing to remove a metabox that isn’t listed.

//Remove pre-defined dashboard widgets
if (is_admin()) :
	function remove_dashboard_widgets(){
	remove_meta_box('dashboard_right_now', 'dashboard', 'normal'); // Right Now
	remove_meta_box('dashboard_recent_comments', 'dashboard', 'normal'); // Recent Comments
	remove_meta_box('dashboard_incoming_links', 'dashboard', 'normal'); // Incoming Links
	remove_meta_box('dashboard_plugins', 'dashboard', 'normal'); // Plugins
	remove_meta_box('dashboard_quick_press', 'dashboard', 'side'); // Quick Press
	remove_meta_box('dashboard_recent_drafts', 'dashboard', 'side'); // Recent Drafts
	remove_meta_box('dashboard_primary', 'dashboard', 'side'); // WordPress blog
	remove_meta_box('dashboard_secondary', 'dashboard', 'side'); // Other WordPress News
	remove_meta_box('pb_backupbuddy_stats', 'dashboard', 'normal'); // Other WordPress News
	remove_meta_box('dashboard_stream_activity', 'dashboard', 'normal'); // Other WordPress News
	remove_meta_box('dashboard_stream_activity', '', 'normal'); // Other WordPress News
	remove_meta_box('woocommerce_dashboard_status', '', 'normal'); // Other WordPress News
	remove_meta_box('woocommerce_dashboard_recent_reviews', '', 'normal'); // Other WordPress News
	// use 'dashboard-network' as the second parameter to remove widgets from a network dashboard.
}
add_action('wp_dashboard_setup', 'remove_dashboard_widgets');
endif;

//Remove pre-defined metaboxes from pages and post
if (is_admin()) :
	function srh_remove_meta_boxes() {
		if( !current_user_can('manage_options') ) {
		//remove_meta_box('linktargetdiv', 'link', 'normal');
		//remove_meta_box('linkxfndiv', 'link', 'normal');
		//remove_meta_box('linkadvanceddiv', 'link', 'normal');
		remove_meta_box('postexcerpt', 'post', 'normal');
		remove_meta_box('trackbacksdiv', 'post', 'normal');
		remove_meta_box('postcustom', 'post', 'normal');
		remove_meta_box('commentstatusdiv', 'post', 'normal');
		remove_meta_box('commentsdiv', 'post', 'normal');
		remove_meta_box('revisionsdiv', 'post', 'normal');
		remove_meta_box('authordiv', 'post', 'normal');
		remove_meta_box('authordiv', 'page', 'normal');
		remove_meta_box('sqpt-meta-tags', 'post', 'normal');
		remove_meta_box('woothemes-settings', 'testimonial', 'normal');
		remove_meta_box('woothemes-settings', 'projects', 'normal');
		remove_meta_box('woothemes-settings', 'slides', 'normal');
	}
}
add_action( 'admin_menu', 'srh_remove_meta_boxes' );
endif;