Posts Tagged ‘php’

Share a little code

My friend asked me a question long before, how can use sliding doors CSS for list pages? I told him, use function wp_list_pages(). I later found that can’t do it.

I’ve written a litter function code to support it.

How to use?

  1. Download source code get_list_pages.zip;
  2. copy code content in your theme functions.php;
  3. Add anywhere:

<ul>
<?php get_list_pages(); ?>
</ul>

Advanced

  1. $index_title – index title
  2. $format – show display format
  3. $currentCSS – current class name

get_list_pages('Home', '<li{current}><a href="{link}"><span>{name}</span></a></li>', 'current_page_item');

DirectAdmin API

UDAUI(UTOM’s DirectAdmin User Interface) is a control panel designed for DirectAdmin, the purpose is supplying the best experiences and more convience for the DirectAdmin users.

Now, what you see just is a semi-finished articles with a part of functions, I will release an alpha stage product before I begin my new year scedule.

Believe it, it will be the best!

Image

Testing account:

http://directadmin-api.utombox.com/

Host: apitest.utombox.com
UserName: utom81
PassWord: dddddd

Language pack: http://directadmin-api.utombox.com/language/en-us/lang.phps

Thanks to Thestral for offering Meyu account for testing