lightweight pdf viewer – zathura.

2013-01-28 1 min read Fedora

Zathura is a lightweight viewer for pdf which works on plugins. Here is shor description :

Zathura is a highly configurable and functional PDF viewer based on the Poppler
rendering library and the GTK+ toolkit. The idea behind zathura is an
application that provides a minimalist and space saving interface as well as
an easy usage that mainly focuses on keyboard interaction.

But the viewer will not work unless you install the plugins to display the correct plugin. So, if you want to use it for any real purposes then you will have to install the appropriate plugin as well, so here is what you need to do:

Continue reading

Adding a sub-menu in the wordpress admin menu :)

2010-07-29 2 min read Wordpress

For the impatient ones, first the code:
(in wp-admin folder, open the file menu.php) and locate the code:

$submenu[’edit.php’][10]  = array( _x(’Add New’, ’post’), ’edit_posts’, ’post-new.php’ );

and add the below:

$submenu[’edit.php’][7]  = array( _x(’Pending’, ’post’), ’edit_posts’, ’edit.php?post_status=pending&post_type=post’ );

And now the explanation and why do you need this 🙂

Problem:

There is no direct mechanism to access the pending posts in WP admin. I generally post through email and mark them as pending. So, whenever I go to my admin POSTs page, I will look through the list of pending items and post them as and when required. For this, when I am done with changes in one item, I need to either modify the address bar or need to go to posts link and then click the Pending items.

Continue reading