Plugin Directory

Changeset 923804


Ignore:
Timestamp:
05/30/2014 03:17:26 PM (12 years ago)
Author:
Ghaem
Message:

Update Plugon To 3.9.1

Location:
parsi-font
Files:
10 added
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • parsi-font/trunk/languages/parsifont-fa_IR.po

    r849872 r923804  
    11msgid ""
    22msgstr ""
    3 "Project-Id-Version: Parsi Font 1.0\n"
    4 "POT-Creation-Date: 2014-02-02 15:50+0330\n"
    5 "PO-Revision-Date: 2014-02-02 15:50+0330\n"
     3"Project-Id-Version: Parsi Font 3.8\n"
     4"POT-Creation-Date: 2014-04-28 20:45+0330\n"
     5"PO-Revision-Date: 2014-04-28 21:32+0330\n"
    66"Last-Translator: Ghaem Omidi <ghaemomidi@yahoo.com>\n"
    7 "Language-Team: WP-Parsi <ghaemomidi@yahoo.com>\n"
     7"Language-Team: Ghaem Omidi (WP-Parsi) <ghaemomidi@yahoo.com>\n"
    88"Language: fa_IR\n"
    99"MIME-Version: 1.0\n"
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "X-Generator: Poedit 1.5.7\n"
    13 "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e;_e();__()\n"
    14 "X-Poedit-Basepath: F:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\parsi-"
    15 "font\n"
     12"X-Generator: Poedit 1.5.4\n"
     13"X-Poedit-KeywordsList: __;_e\n"
    1614"Plural-Forms: nplurals=1; plural=0;\n"
    1715"X-Poedit-SourceCharset: UTF-8\n"
    18 "X-Poedit-SearchPath-0: F:\\xampp\\htdocs\\wordpress\\wp-content\\plugins"
    19 "\\parsi-font\n"
    2016
    21 #: F:\xampp\htdocs\wordpress\wp-content\plugins\parsi-font/parsi-font.php:839
    22 #: F:\xampp\htdocs\wordpress\wp-content\plugins\parsi-font/parsi-font.php:1000
     17#: parsi-font.php:475 parsi-font.php:692
    2318msgid "Parsi Font"
    2419msgstr "پارسی فونت"
    2520
    26 #: F:\xampp\htdocs\wordpress\wp-content\plugins\parsi-font/parsi-font.php:858
     21#: parsi-font.php:495
    2722msgid "Settings saved."
    2823msgstr "تنظیمات ذخیره شدند."
    2924
    30 #: F:\xampp\htdocs\wordpress\wp-content\plugins\parsi-font/parsi-font.php:868
     25#: parsi-font.php:505
    3126msgid "Font Size (px)"
    3227msgstr "اندازه فونت (پیکسل)"
    3328
    34 #: F:\xampp\htdocs\wordpress\wp-content\plugins\parsi-font/parsi-font.php:872
    35 msgid "Select"
    36 msgstr "- - - انتخاب کنید - - -"
     29#: parsi-font.php:509
     30msgid "Select Font Size"
     31msgstr "- - - اندازه فونت را انتخاب کنید - - -"
    3732
    38 #: F:\xampp\htdocs\wordpress\wp-content\plugins\parsi-font/parsi-font.php:894
     33#: parsi-font.php:531
    3934msgid "Font Family"
    4035msgstr "فونت ها"
    4136
    42 #: F:\xampp\htdocs\wordpress\wp-content\plugins\parsi-font/parsi-font.php:899
     37#: parsi-font.php:536
    4338msgid "Select font from list or type a font name below"
    4439msgstr "فونت خود را از لیست زیر انتخاب نمایید"
    4540
    46 #: F:\xampp\htdocs\wordpress\wp-content\plugins\parsi-font/parsi-font.php:921
     41#: parsi-font.php:558
    4742msgid "You can also type a font name here"
    4843msgstr "نام فونت مورد نظر خود را اینجا وارد نمایید."
    4944
    50 #: F:\xampp\htdocs\wordpress\wp-content\plugins\parsi-font/parsi-font.php:929
     45#: parsi-font.php:566
    5146msgid "Preview"
    5247msgstr "پیش نمایش"
    5348
    54 #: F:\xampp\htdocs\wordpress\wp-content\plugins\parsi-font/parsi-font.php:942
     49#: parsi-font.php:570
     50msgid "This text is just to test."
     51msgstr ".این متن فقط برای آزمایش است"
     52
     53#: parsi-font.php:579
    5554msgid "Save Changes"
    5655msgstr "ذخیره تغییرات"
     56
     57#: parsi-font.php:586
     58msgid "Plugin Features"
     59msgstr "ویژگی های افزونه"
     60
     61#: parsi-font.php:589
     62msgid "Beautiful dashboard by changing the font"
     63msgstr "زیبا کردن پیشخوان وردپرس با تغییر فونت"
     64
     65#: parsi-font.php:590
     66msgid "Change font Wordpress dashboard"
     67msgstr "تغییر فونت پیشخوان وردپرس"
     68
     69#: parsi-font.php:591
     70msgid "Select a font from the list of available fonts"
     71msgstr "انتخاب فونت از لیست فونت های موجود"
     72
     73#: parsi-font.php:592
     74msgid "The user can write the name of the own favorite font."
     75msgstr "کاربر می تواند نام فونت دلخواه خود را بنویسد."
     76
     77#: parsi-font.php:593
     78msgid "This plugin is developed by Ghaem Omidi."
     79msgstr "این افزونه توسط قائم امیدی توسعه داده می شود."
     80
     81#: parsi-font.php:595
     82msgid "Dedicated to the all users of WP-Parsi and Mandegarweb."
     83msgstr "تقدیم به تمامی کاربران وردپرس پارسی و ماندگار وب"
     84
     85#: parsi-font.php:603
     86msgid "Your message was successfully sent. Thanks"
     87msgstr "پیام شما با موفقیت ارسال شد. باتشکر"
     88
     89#: parsi-font.php:619
     90msgid "Please fill all fields."
     91msgstr "لطفا همه زمینه ها را پر کنید."
     92
     93#: parsi-font.php:626
     94msgid ""
     95"If you want your favorite font to be used in plugin or you have comments or "
     96"suggestions please let us know via this form:"
     97msgstr ""
     98"اگر می خواهید فونت مورد علاقه تان در افزونه قرار گیرد یا پیشنهاد و انتقادی "
     99"دارید از طریق این فرم به ما اطلاع دهید:"
     100
     101#: parsi-font.php:632
     102msgid "Name"
     103msgstr "نام"
     104
     105#: parsi-font.php:636
     106msgid "Email"
     107msgstr "پست الکترونیکی"
     108
     109#: parsi-font.php:640
     110msgid "Subject"
     111msgstr "موضوع"
     112
     113#: parsi-font.php:644
     114msgid "Your Message"
     115msgstr "پیام شما"
     116
     117#: parsi-font.php:648
     118msgid "Send"
     119msgstr "ارسال"
  • parsi-font/trunk/parsi-font.php

    r904209 r923804  
    22/*
    33Plugin Name: WP-Parsi Admin Font Editor
    4 Plugin URI: http://www.forum.wp-parsi.com/
    5 Description: Change fonts of wordpress.
     4Plugin URI: http://forum.wp-parsi.com/
     5Description: Change Font Of Wordpress Dashboard
    66Author: Ghaem
    7 Version: 3.0
    8 Tags: admin, admin font, html editor, visual editor, fonts, font, wordpress font, change font, parsi font, fonts, oersian, persian fonts, persian font
    9 Author URI: http://www.forum.wp-parsi.com/
    10 Copyright: Ghaem Omidi(WP-Parsi)
     7Version: 3.9.1
     8Tags: admin, admin font, html editor, visual editor, fonts, font, wordpress font, change font, parsi font, fonts, persian, persian fonts, persian font, admin font editor, wp-parsi admin font editor
     9Author URI: http://barfaksite.ir/
     10Copyright: Ghaem Omidi - 2014
    1111License: GPL
    1212
     
    1515/*
    1616Special thanks to :
    17     Ariaieboy
    18     Wordpress Parsi admins and moderators (Parsa Kafi, Mohsen Ghiasi, Saeed Fard, Abdolmajed Shahbakhsh, Morteza Rocky and Mostafa Soufi)
    19     Wordpress Parsi forum members for great support(forum.wp-parsi.com)
     17    Wordpress Parsi
    2018*/
    2119
     
    8179    .wp-admin input[type="file"],
    8280    #adminmenu a:focus,
     81    #myhead,
    8382    #adminmenu a:active,
    8483    .screen-reader-text:focus,
     
    172171    .wp-dialog,
    173172    .wp-dialog .ui-dialog-title,
    174     .rtl .wp_themeSkin .mceColorSplitMenu a.mceMoreColors,.rtl .wp_themeSkin .mceMenu .mceText,.rtl .wp-switch-editor,.rtl .quicktags-toolbar input,.rtl .clearlooks2 .mceTop span,.rtl .wp_themeSkin .mceColorSplitMenu a.mceMoreColors,
    175173    .fade-trigger,
    176174    .wp-switch-editor switch-html,
     
    184182    .media-router a,
    185183    .attachment-details,
     184    .acf-content-title h2,
    186185    .media-frame input[type="text"],
    187186    .media-frame input[type="password"],
     
    200199    text,
    201200    input[type="text"],
     201    .wp_themeSkin .mceListBox a.mceText,
    202202    code,
    203203    kbd,code,
    204204    .titlewrap input,
     205    .rtl .media-frame input[type="text"],
     206    .rtl .media-frame .search,
     207    .rtl .media-frame input[type="search"],
     208    .rtl .media-frame select,
     209    .media-modal .media-sidebar .setting textarea,
    205210    #TB_ajaxWindowTitle,
    206211    #sidemenu,
     
    210215    #docs-list,
    211216    #sidemenu a.current,
    212     textarea.code, 
     217    textarea.code,
    213218    html,
     219    *,
    214220    .html,
    215221    #html,
    216222    .wp_themeSkin table td,
     223    #wp-content-editor-container,
     224    .wp_themeSkin *,
     225    .wp_themeSkin tr,
    217226    #wp-link .toggle-arrow,
    218227    .rtl .wp_themeSkin .mceColorSplitMenu a.mceMoreColors,.rtl .wp_themeSkin .mceMenu,.rtl .wp-switch-editor,.rtl .quicktags-toolbar input,.rtl .clearlooks2 .mceTop span,.rtl .wp_themeSkin .mceColorSplitMenu a.mceMoreColors,
     
    226235    font-size: <?php echo $parsifont_font_size; ?>px;
    227236    <?php } ?>
    228     }       
     237    }
     238    .rtl .wp_themeSkin .mceColorSplitMenu a.mceMoreColors,.rtl .wp-switch-editor,.rtl .quicktags-toolbar input,.rtl .clearlooks2 .mceTop span,.rtl .wp_themeSkin .mceColorSplitMenu a.mceMoreColors {
     239    <?php
     240    if ($parsifont_font_family) { ?>   
     241    font-family: <?php echo $parsifont_font_family; ?> !important;
     242    <?php }
     243    if ($parsifont_font_size) { ?> 
     244    font-size: <?php echo $parsifont_font_size; ?>px;
     245    <?php } ?>
     246    }
     247    .bodyparsi {
     248    <?php
     249    if ($parsifont_font_family) { ?>   
     250    font-family: <?php echo $parsifont_font_family; ?>;
     251    <?php } ?>
     252    font-size:10pt;
     253    color:#787878;
     254    direction:rtl;
     255    text-align:right;
     256    margin:0 auto;
     257    width:560px;
     258    padding:0px;
     259    background-color:#fff;
     260    border-top-right-radius: 30px;
     261    border-bottom-left-radius: 30px;
     262    }
     263    .errorwppafe{
     264    width:400px;
     265    border:1px #d3400d solid;
     266    -webkit-border-radius: 5px;
     267    -moz-border-radius: 5px;
     268    padding:10px 10px 10px 10px;
     269    <?php
     270    if ($parsifont_font_family) { ?>   
     271    font-family: <?php echo $parsifont_font_family; ?>;
     272    <?php } ?>
     273    text-align: center !important;
     274    display:block !important;
     275    float:none !important;
     276    margin-right:auto !important;
     277    margin-left:auto !important;
     278    background:yellow  !important;
     279    }
     280    .okwppafe{
     281    width:500px;
     282    border:1px #a1cb45 solid;
     283    -webkit-border-radius: 5px;
     284    -moz-border-radius: 5px;
     285    margin:5px 10px 10px 10px;
     286    padding:10px 10px 10px 10px;
     287    background:#eaf8cc;
     288    display:block;
     289    <?php
     290    if ($parsifont_font_family) { ?>   
     291    font-family: <?php echo $parsifont_font_family; ?>;
     292    <?php } ?>
     293    text-align: center;
     294    margin-left: auto;
     295    margin-right: auto;
     296    float: none;
     297    }
     298    #mainparsi{
     299    background-color:#ffffff;
     300    <?php
     301    if ($parsifont_font_family) { ?>   
     302    font-family: <?php echo $parsifont_font_family; ?>;
     303    <?php } ?>
     304    border: 4px dashed #F00;
     305    border-top-right-radius: 30px;
     306    border-bottom-left-radius: 30px;
     307    }
     308    .clear{clear:both}
     309    form {
     310    margin:0px;
     311    padding:0px;
     312    <?php
     313    if ($parsifont_font_family) { ?>   
     314    font-family: <?php echo $parsifont_font_family; ?>;
     315    <?php } ?>
     316    }
     317    input, select {
     318    <?php
     319    if ($parsifont_font_family) { ?>   
     320    font-family: <?php echo $parsifont_font_family; ?>;
     321    <?php } ?>
     322    padding:5px;
     323    font-size:10pt;
     324    border: 1px solid #cacaca;
     325    -webkit-border-radius: 5px;
     326    -moz-border-radius: 5px;
     327    }
     328    input[type="submit"]{
     329    <?php
     330    if ($parsifont_font_family) { ?>   
     331    font-family: <?php echo $parsifont_font_family; ?>;
     332    <?php } ?>
     333    padding:5px;
     334    font-size:11pt;
     335    border: 1px solid #cacaca;
     336    -webkit-border-radius: 5px;
     337    -moz-border-radius: 5px;
     338    }
     339    .contentparsi {
     340    -webkit-border-radius: 20px;
     341    -moz-border-radius: 20px;
     342    margin:50px 0 0 0;
     343    padding:10px;
     344    text-align: center;
     345    <?php
     346    if ($parsifont_font_family) { ?>   
     347    font-family: <?php echo $parsifont_font_family; ?>;
     348    <?php } ?>
     349    }
     350    .formsparsi {
     351    direction: rtl;
     352    padding-right:20px;
     353    text-align: right;
     354    <?php
     355    if ($parsifont_font_family) { ?>   
     356    font-family: <?php echo $parsifont_font_family; ?>;
     357    <?php } ?>
     358    }
     359    .formsparsi h2 {
     360    padding: 8px 2px;
     361    border-bottom: 1px solid #CCC;
     362    <?php
     363    if ($parsifont_font_family) { ?>   
     364    font-family: <?php echo $parsifont_font_family; ?>;
     365    <?php } ?>
     366    }
     367    .formsparsi label {
     368    width: 100px;
     369    text-align: center;
     370    <?php
     371    if ($parsifont_font_family) { ?>   
     372    font-family: <?php echo $parsifont_font_family; ?>;
     373    <?php } ?>
     374    display:block;
     375    float:none;
     376    margin-right:auto;
     377    margin-left:auto;
     378    }
     379    .formsparsi .formparsi, .formsparsi .form-ltr {
     380    width: 300px;
     381    float: right;
     382    padding: 2px;
     383    <?php
     384    if ($parsifont_font_family) { ?>   
     385    font-family: <?php echo $parsifont_font_family; ?>;
     386    <?php } ?>
     387    margin: 5px 0;
     388    }
     389    .formsparsi .form-ltr {
     390    direction: ltr;
     391    text-align: left;
     392    <?php
     393    if ($parsifont_font_family) { ?>   
     394    font-family: <?php echo $parsifont_font_family; ?>;
     395    <?php } ?>
     396    }
     397    .formsparsi.text {
     398    width: 250px;
     399    height: 100px;
     400    overflow: auto;
     401    <?php
     402    if ($parsifont_font_family) { ?>   
     403    font-family: <?php echo $parsifont_font_family; ?>;
     404    <?php } ?>
     405    }
     406    .submitbot:hover {
     407    <?php
     408    if ($parsifont_font_family) { ?>   
     409    font-family: <?php echo $parsifont_font_family; ?>;
     410    <?php } ?>
     411    padding:5px;
     412    font-size:11pt;
     413    border: 1px solid #7613ae;
     414    background:#7613ae;
     415    color:#fff;
     416    -webkit-border-radius: 5px;
     417    -moz-border-radius: 5px;
     418    }
     419    .textare2:hover {
     420    border: 1px solid #6295f3;
     421    -webkit-border-radius: 5px;
     422    -moz-border-radius: 5px;
     423    <?php
     424    if ($parsifont_font_family) { ?>   
     425    font-family: <?php echo $parsifont_font_family; ?>;
     426    <?php } ?>
     427    }
     428    .textare2 {
     429    width:500px;
     430    }
     431    .textare1:hover {
     432    border: 1px solid #6295f3;
     433    -webkit-border-radius: 5px;
     434    -moz-border-radius: 5px;
     435    <?php
     436    if ($parsifont_font_family) { ?>   
     437    font-family: <?php echo $parsifont_font_family; ?>;
     438    <?php } ?>
     439    }
     440    .textare1 {
     441    width:500px;
     442    <?php
     443    if ($parsifont_font_family) { ?>   
     444    font-family: <?php echo $parsifont_font_family; ?>;
     445    <?php } ?>
     446    padding:5px;
     447    font-size:10pt;
     448    border: 1px solid #cacaca;
     449    -webkit-border-radius: 5px;
     450    -moz-border-radius: 5px;
     451    }
    229452    </style>
    230453   
     
    250473
    251474<div id="icon-options-general" class="icon32"><br></div>
    252 <?php echo '<h2>' . __('Parsi Font', 'parsifont', 'G:\\\\Web\\\\Wordpress\\\\Plugins\\\\parsi-font') . '</h2>'; ?>
    253 
     475<div style="margin-top:40px;font-size:50px;text-align:center;"><?php _e('Parsi Font', 'parsifont'); ?></div>
     476<br/>
     477<br/>
    254478<?php
    255479            if( $_POST['parsifont-font-family'] || $_POST['parsifont-font-size'] )  {
     
    269493                       
    270494            <div id="setting-error-settings_updated" class="updated settings-error">
    271             <p><strong><?php _e('Settings saved.', 'parsifont', 'G:\\\\Web\\\\Wordpress\\\\Plugins\\\\parsi-font'); ?></strong></p></div>
     495            <p><strong><?php _e('Settings saved.', 'parsifont'); ?></strong></p></div>
    272496           
    273497            <?php
     
    279503       
    280504     <tr valign="top">
    281         <th scope="row"><?php _e('Font Size (px)', 'parsifont', 'G:\\\\Web\\\\Wordpress\\\\Plugins\\\\parsi-font'); ?></th>
     505        <th scope="row"><?php _e('Font Size (px)', 'parsifont'); ?></th>
    282506        <td>
    283507     
    284508        <select name="parsifont-font-size" id="parsifont-font-size" style="width:290px;">
    285             <option value=""><?php _e('Select', 'parsifont', 'G:\\\\Web\\\\Wordpress\\\\Plugins\\\\parsi-font'); ?></option>
     509            <option value=""><?php _e('Select Font Size', 'parsifont'); ?></option>
    286510           
    287511            <?php
     
    305529     
    306530      <tr valign="top">
    307         <th scope="row"><?php _e('Font Family', 'parsifont', 'G:\\\\Web\\\\Wordpress\\\\Plugins\\\\parsi-font'); ?></th>
     531        <th scope="row"><?php _e('Font Family', 'parsifont'); ?></th>
    308532        <td>
    309533     
    310534   
    311535        <select name="parsifont-font-family" id="parsifont-font-family" style="width:290px;">
    312             <option value=""><?php _e('Select font from list or type a font name below', 'parsifont', 'G:\\\\Web\\\\Wordpress\\\\Plugins\\\\parsi-font'); ?></option>
     536            <option value=""><?php _e('Select font from list or type a font name below', 'parsifont'); ?></option>
    313537           
    314538            <?php
     
    332556     
    333557        <br/>
    334         <input type="text" placeholder="<?php _e('You can also type a font name here', 'parsifont', 'G:\\\\Web\\\\Wordpress\\\\Plugins\\\\parsi-font'); ?>" value="<?php if(!$using_preset) { echo $parsifont_font_family_user;} ?>" name="parsifont-font-family-user" id="parsifont-font-family-user" style="width:290px;">
     558        <input type="text" placeholder="<?php _e('You can also type a font name here', 'parsifont'); ?>" value="<?php if(!$using_preset) { echo $parsifont_font_family_user;} ?>" name="parsifont-font-family-user" id="parsifont-font-family-user" style="width:290px;">
    335559     
    336560   
     
    340564   
    341565          <tr valign="top">
    342         <th scope="row"><?php _e('Preview', 'parsifont', 'G:\\\\Web\\\\Wordpress\\\\Plugins\\\\parsi-font'); ?></th>
     566        <th scope="row" ><?php _e('Preview', 'parsifont'); ?></th>
    343567        <td>
    344568     
    345     <textarea name="parsifont-preview" style="text-align:center;font-size:<?php echo $parsifont_font_size; ?>px; font-family:<?php echo $parsifont_font_family; ?>; width: 305px; height: 79px;color:#000;" id="parsifont-preview" class="large-text code" disabled="disabled" spellcheck="false">.این متن فقط برای آزمایش است
    346 This text is just to test.</textarea>
     569    <textarea name="parsifont-preview" style="text-align:center;font-size:<?php echo $parsifont_font_size; ?>px; font-family:<?php echo $parsifont_font_family; ?>; width:400px;height:90px;color:#000;" id="parsifont-preview" class="large-text code" disabled="disabled" spellcheck="false">This text is just to test.
     570    <?php _e('This text is just to test.', 'parsifont') ?></textarea>
    347571   
    348572        </td>
     
    353577   
    354578    <p class="submit">
    355     <input type="submit" class="button-primary" value="<?php _e('Save Changes', 'parsifont', 'G:\\\\Web\\\\Wordpress\\\\Plugins\\\\parsi-font') ?>" />
     579    <input type="submit" class="button-primary" value="<?php _e('Save Changes', 'parsifont') ?>" />
    356580    </p>
    357581
     
    359583</form>
    360584
    361 <div style="border-top: 1px solid #ccc; padding-top: 8px; color: #666;">
    362 <b><h3>ویژگی های افزونه</h3><b>
    363 <ul style="list-style:inside">
    364     <li><strong>زیبا کردن پنل مدیریت با تغییر فونت</strong></li>
    365     <li><strong>تغییر فونت ویرایشگر وردپرس</strong></li>
    366     <li><strong>تغییر فونت پنل مدیریت وردپرس</strong></li>
    367     <li><strong>انتخاب فونت از لیست موجود فونت ها</strong></li>
    368     <li><strong>نوشتن نام فونت مورد نظر کاربر</strong></li>
    369     <li><strong>این افزونه توسط قائم امیدی ساخته شده است.</strong></li>
     585<div style="padding-top:8px;color:#666;text-align:center;background: none repeat scroll 0% 0% #F5F5DC;padding-bottom:50px;border-bottom-right-radius:44px;border-top-left-radius:44px;border:5px dashed;">
     586<h3><b><?php _e('Plugin Features', 'parsifont') ?></b></h3>
     587<ul>
     588
     589    <li><strong><?php _e('Beautiful dashboard by changing the font', 'parsifont') ?></strong></li>
     590    <li><strong><?php _e('Change font Wordpress dashboard', 'parsifont') ?></strong></li>
     591    <li><strong><?php _e('Select a font from the list of available fonts', 'parsifont') ?></strong></li>   
     592    <li><strong><?php _e('The user can write the name of the own favorite font.', 'parsifont') ?></strong></li>
     593    <li><strong><?php _e('This plugin is developed by Ghaem Omidi.', 'parsifont') ?></strong></li>
    370594</ul>
    371 <div style="text-align:center;"><b><h3>تقدیم به تمامی کاربران وردپرس پارسی و ماندگار وب</h3><b></div>
     595<div style="text-align:center;"><b><h3><?php _e('Dedicated to the all users of WP-Parsi and Mandegarweb.', 'parsifont') ?></h3></b></div>
     596
     597<?php
     598session_start();
     599if(isset($_POST['submit'])) {
     600if(!empty($_POST['name']) && !empty($_POST['email']) && !empty($_POST['message'])  && !empty($_POST['subject'])) {
     601if($_POST['code'] == $_SESSION['rand_code']) {
     602// send email
     603$accept = __('Your message was successfully sent. Thanks', 'parsifont');
     604$to = "ghaemomidi@yahoo.com";
     605$subject = $_POST['subject'];
     606$name= $_POST['name'];
     607$from = $_POST['email'];
     608$user_message = $_POST['message'];
     609$body = "\n".
     610"Name: $name\n".
     611"Email: $from \n".
     612"Message: \n ".
     613"$user_message\n".
     614$headers = "From: $from \r\n";
     615$headers .= "Reply-To: $from \r\n";
     616mail($to, $subject, $body, $headers);
     617}
     618} else {
     619$error = __('Please fill all fields.', 'parsifont');
     620}
     621}
     622?>
     623<div class="bodyparsi">
     624<div id="mainparsi">
     625<div class="contentparsi">
     626<h2><?php _e('If you want your favorite font to be used in plugin or you have comments or suggestions please let us know via this form:', 'parsifont') ?></h2>
     627<?php if(!empty($error)) echo '<div class="errorwppafe">'.$error.'</div>'; ?>
     628<?php if(!empty($accept)) echo '<div class="okwppafe">'.$accept.'</div>'; ?>
     629<p>
     630<div class="formsparsi">     
     631<form action="" method="post">
     632<label for="username"><?php _e('Name', 'parsifont') ?></label>
     633<br/>
     634<input class="textare2" type="text" class="formparsi" value="" name="name">
     635<br/><br/>
     636<label for="email"><?php _e('Email', 'parsifont') ?></label>
     637<br/>
     638<input class="textare2" type="text" id="email" value="" class="form-ltr" name="email">
     639<br/><br/>
     640<label for="sub"><?php _e('Subject', 'parsifont') ?></label>
     641<br/>
     642<input class="textare2" type="text" id="sub" value="" class="formparsi" name="subject">
     643<br/><br/>
     644<label for="mess"><?php _e('Your Message', 'parsifont') ?></label>
     645<br/>
     646<textarea class="textare1" id="mess" rows="7" name="message"></textarea>
     647<br/><br/>
     648<input style="float:none !important;margin-right:auto;margin-left:auto;display:block;" class="submitbot" type="submit" name="submit" value="<?php _e('Send', 'parsifont') ?>">
     649</form>
    372650</div>
    373 
     651</p>
    374652</div>
    375 
    376 
    377 
     653<div class="clear"></div>
     654</div>
     655</div>
     656</div>
     657</div>
    378658<script type="text/javascript">
    379659
     
    410690
    411691function parsifont_create_menu() {
    412 
    413 add_menu_page(__("Parsi Font", 'parsifont', 'G:\\\\Web\\\\Wordpress\\\\Plugins\\\\parsi-font'), __("Parsi Font", 'parsifont', 'G:\\\\Web\\\\Wordpress\\\\Plugins\\\\parsi-font'), 1, "parsifont-settings", "parsifont_settings_page"); 
    414 
     692add_menu_page(__("Parsi Font", 'parsifont'), __("Parsi Font", 'parsifont'), 1, "parsifont-settings", "parsifont_settings_page"); 
    415693}
    416694
    417695add_action('admin_menu', 'parsifont_create_menu');
    418 
    419 function plugin_mce_css( $mce_css ) {
    420  
    421     global $current_user;
    422     get_currentuserinfo();
    423 
    424     $parsifont_font_size = get_user_meta($current_user->ID, 'parsifont-font-size', true);
    425     $parsifont_font_family = get_user_meta($current_user->ID, 'parsifont-font-family', true);
    426  
    427     if ( ! empty( $mce_css ) )
    428         $mce_css .= ',';
    429 
    430     $mce_css .= plugins_url( 'css.php?size='.$parsifont_font_size.'&font='.$parsifont_font_family, __FILE__ );
    431    
    432     return $mce_css;
    433 }
    434 
    435 add_filter( 'mce_css', 'plugin_mce_css' );
    436 
    437 
    438696
    439697// for transalations
  • parsi-font/trunk/readme.txt

    r866939 r923804  
    11=== WP-Parsi Admin Font Editor ===
    22Contributors: Ghaem
    3 Tags: font, wordpress font, change font, parsi font, fonts, oersian, persian fonts, persian font
     3Tags: admin, admin font, html editor, visual editor, fonts, font, wordpress font, change font, parsi font, fonts, persian, persian fonts, persian font, admin font editor, wp-parsi admin font editor
    44Requires at least: 3.7
    5 Stable tag: 3.0
    6 Tested up to: 3.8.1
     5Stable tag: 3.9.1
     6Tested up to: 3.9.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3232== Installation ==
    3333
    34 1. Upload 'wp-parsi-admin-font-editor' to the '/wp-content/plugins/' directory
     341. Upload 'parsi-font' to the '/wp-content/plugins/' directory
    35352. Activate the plugin through the 'Plugins' menu in WordPress
    36363. Click on the new menu item "Parsi Font" and see settings of this plugin.
    37 4. Or you can install the plugin in: "Plugins ==> Add ==> enter the name of plugin (wp-parsi admin font editor) in search box and press Enter
     374. Or you can install the plugin in: "Plugins ==> Add ==> enter the name of plugin (WP-Parsi Admin Font Editor) in search box and press Enter
    38385. Install plugin, activate it and enjoy of plugin
    3939
     
    4545== Screenshots ==
    4646
    47 1. Setting Page
    48 2. WP Admin with ((B Koodak)) & ((Comic Sans MS))
     471. Settings Page with Parsi fonts.
    4948== Changelog ==
    5049
     
    5554= 3.0 =
    5655* Solve a problem
     56= 3.9.1 =
     57* Change style of settings page
     58* Add Feedback form
Note: See TracChangeset for help on using the changeset viewer.