6. RTL Tester
<?php
/*
Plugin Name: RTL Tester
Plugin URI: http://wordpress.org/extend/plugins/rtl-tester/
Description: This plugin can be used to test WordPress themes
and plugins with Right To Left (RTL) text direction. Simply
activate this plugin to enable RTL and deactivate to return to
normal operation. Yes, this is simplest plugin in the world.
Author: <a href="http://blog.yoavfarhi.com">Yoav Farhi</a>, <a
href="http://automattic.com">Automattic</a>
Version: 0.2
*/
$text_direction = 'rtl';
7. תשתית
class RTLTester {
function __construct() {
load_plugin_textdomain( 'rtl-tester' );
// Hooks and filters
}
}
new RTLTester;
8. תשתית
class RTLTester {
function __construct() {
load_plugin_textdomain( 'rtl-tester' );
// Hooks and filters
}
}
new RTLTester;
54. קריאה לפונקציה
class RTLTester {
function __construct() {
}
function admin_bar_rtl_switcher() { ...
function get_direction() { ...
}
new RTLTester;
55. קריאה לפונקציה
class RTLTester {
function __construct() {
add_action( 'admin_bar_menu', array( $this,
'admin_bar_rtl_switcher' ), 999 );
}
function admin_bar_rtl_switcher() { ...
function get_direction() { ...
}
new RTLTester;