Plugin Directory

Changeset 1392298


Ignore:
Timestamp:
04/11/2016 06:23:12 PM (10 years ago)
Author:
fduraibi
Message:

Fix for button styling due to WP inconsistent change of style, also fix assets folder and adding banner and icon images

Location:
wp-rtl
Files:
8 added
2 edited

Legend:

Unmodified
Added
Removed
  • wp-rtl/trunk/readme.txt

    r1167523 r1392298  
    22Contributors: fduraibi
    33Donate link:
    4 Tags: rtl, ltr, wysiwyg, formatting, tinymce, write, edit, post
     4Tags: rtl, ltr, wysiwyg, formatting, tinymce, write, edit, post, arabic, hebrew, persian, directionality, direction, multilingual, multilanguage
    55Requires at least: 2.6
    6 Tested up to: 4.2.2
    7 Stable tag: 0.3
     6Tested up to: 4.5
     7Stable tag: 1.0
    88
    99Adds two buttons to the TinyMCE editor to enable writing text in Left to Right (LTR) and Right to Left (RTL) directions.
     
    1111== Description ==
    1212
    13 This plugin enables the text directions functionality that exist already in the original TinyMCE editor which allow writing texts in Left-to-Right and Right-to-Left directions in the same post (or page) for languages like Arabic, Persian and Hebrew.
     13This plugin enables the text directions plugin that exist already in the original TinyMCE editor which allow writing texts in Left-to-Right and Right-to-Left directions in the same post (or page) for languages like Arabic, Persian and Hebrew.
    1414
    1515اضافة زرارين لشريط التحرير لتمكين تحويل النص للقرأة من اليمين لليسار مثل اللغة العربية والفارسية والعبرية
     
    3030== Changelog ==
    3131
     32* 1.0 Fix for button styling due to WP inconsistent change of style
    3233* 0.3 Fixed for WP 3.9
    3334* 0.2 Fixed compatibility issue with wordpress 2.8
  • wp-rtl/trunk/wp-rtl.php

    r896973 r1392298  
    11<?php
    22/*
    3 Plugin Name: WP-RTL
    4 Plugin URI: http://www.fadvisor.net/blog/2008/10/wp-rtl/
    5 Description: Adds two buttons to the TinyMCE editor to enable writing text in Left to Right (LTR) and Right to Left (RTL) directions.
    6 Version: 0.3
    7 Author: Fahad Alduraibi
    8 Author URI: http://www.fadvisor.net/blog/
    9 */
    10 /*
    11   Developed 2008  Fahad Alduraibi  (email : fduraibi (at) gmail.com)
     3* Plugin Name: WP-RTL
     4* Plugin URI:  http://www.fadvisor.net/blog/2008/10/wp-rtl/
     5* Description: Adds two buttons to the TinyMCE editor to enable writing text in Left to Right (LTR) and Right to Left (RTL) directions.
     6* Version:     1.0
     7* License:     GPLv3
     8* Author:      Fahad Alduraibi
     9* Author URI:  http://www.fadvisor.net/blog/
    1210
    13     This program is free software; you can redistribute it and/or modify
    14     it under the terms of the GNU General Public License as published by
    15     the Free Software Foundation; either version 2 of the License, or
    16     any later version.
    1711
    18     This program is distributed in the hope that it will be useful,
    19     but WITHOUT ANY WARRANTY; without even the implied warranty of
    20     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    21     GNU General Public License for more details.
     12Copyright (C) 2016 Fahad Alduraibi
    2213
    23     You should have received a copy of the GNU General Public License
    24     along with this program; if not, write to the Free Software
    25     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
     14This program is free software: you can redistribute it and/or modify
     15it under the terms of the GNU General Public License as published by
     16the Free Software Foundation, either version 3 of the License, or
     17any later version.
     18
     19This program is distributed in the hope that it will be useful,
     20but WITHOUT ANY WARRANTY; without even the implied warranty of
     21MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     22GNU General Public License for more details.
     23
     24You should have received a copy of the GNU General Public License
     25along with this program.  If not, see <http://www.gnu.org/licenses/>.
    2626*/
    2727
     
    3636        add_filter( "mce_buttons", "tinymce_bidi_buttons" );
    3737    }
     38   
     39    wp_register_style( 'wp-rtl-icon-fix',  plugin_dir_url( __FILE__ ) . 'wp-rtl.css' );
     40   
    3841}
    3942function tinymce_bidi_buttons($buttons) {
     43    wp_enqueue_style( 'wp-rtl-icon-fix' );
    4044    array_push($buttons, "separator", "ltr", "rtl");
    4145    return $buttons;
     
    5054    return $plugin_array;
    5155}
    52 
    5356?>
Note: See TracChangeset for help on using the changeset viewer.