Changeset 923804
- Timestamp:
- 05/30/2014 03:17:26 PM (12 years ago)
- Location:
- parsi-font
- Files:
-
- 10 added
- 1 deleted
- 5 edited
-
tags/3.0 (added)
-
tags/3.0/css.php (added)
-
tags/3.0/languages (added)
-
tags/3.0/languages/parsifont-fa_IR.mo (added)
-
tags/3.0/languages/parsifont-fa_IR.po (added)
-
tags/3.0/parsi-font.php (added)
-
tags/3.0/readme.txt (added)
-
tags/3.0/screenshot-1.jpg (added)
-
tags/3.0/screenshot-2.jpg (added)
-
trunk/languages/parsifont-fa_IR.mo (modified) (previous)
-
trunk/languages/parsifont-fa_IR.po (modified) (1 diff)
-
trunk/languages/parsifont.pot (added)
-
trunk/parsi-font.php (modified) (17 diffs)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/screenshot-1.jpg (modified) (previous)
-
trunk/screenshot-2.jpg (deleted)
Legend:
- Unmodified
- Added
- Removed
-
parsi-font/trunk/languages/parsifont-fa_IR.po
r849872 r923804 1 1 msgid "" 2 2 msgstr "" 3 "Project-Id-Version: Parsi Font 1.0\n"4 "POT-Creation-Date: 2014-0 2-02 15:50+0330\n"5 "PO-Revision-Date: 2014-0 2-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" 6 6 "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" 8 8 "Language: fa_IR\n" 9 9 "MIME-Version: 1.0\n" 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "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" 16 14 "Plural-Forms: nplurals=1; plural=0;\n" 17 15 "X-Poedit-SourceCharset: UTF-8\n" 18 "X-Poedit-SearchPath-0: F:\\xampp\\htdocs\\wordpress\\wp-content\\plugins"19 "\\parsi-font\n"20 16 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 23 18 msgid "Parsi Font" 24 19 msgstr "پارسی فونت" 25 20 26 #: F:\xampp\htdocs\wordpress\wp-content\plugins\parsi-font/parsi-font.php:85821 #: parsi-font.php:495 27 22 msgid "Settings saved." 28 23 msgstr "تنظیمات ذخیره شدند." 29 24 30 #: F:\xampp\htdocs\wordpress\wp-content\plugins\parsi-font/parsi-font.php:86825 #: parsi-font.php:505 31 26 msgid "Font Size (px)" 32 27 msgstr "اندازه فونت (پیکسل)" 33 28 34 #: F:\xampp\htdocs\wordpress\wp-content\plugins\parsi-font/parsi-font.php:87235 msgid "Select "36 msgstr "- - - ان تخاب کنید - - -"29 #: parsi-font.php:509 30 msgid "Select Font Size" 31 msgstr "- - - اندازه فونت را انتخاب کنید - - -" 37 32 38 #: F:\xampp\htdocs\wordpress\wp-content\plugins\parsi-font/parsi-font.php:89433 #: parsi-font.php:531 39 34 msgid "Font Family" 40 35 msgstr "فونت ها" 41 36 42 #: F:\xampp\htdocs\wordpress\wp-content\plugins\parsi-font/parsi-font.php:89937 #: parsi-font.php:536 43 38 msgid "Select font from list or type a font name below" 44 39 msgstr "فونت خود را از لیست زیر انتخاب نمایید" 45 40 46 #: F:\xampp\htdocs\wordpress\wp-content\plugins\parsi-font/parsi-font.php:92141 #: parsi-font.php:558 47 42 msgid "You can also type a font name here" 48 43 msgstr "نام فونت مورد نظر خود را اینجا وارد نمایید." 49 44 50 #: F:\xampp\htdocs\wordpress\wp-content\plugins\parsi-font/parsi-font.php:92945 #: parsi-font.php:566 51 46 msgid "Preview" 52 47 msgstr "پیش نمایش" 53 48 54 #: F:\xampp\htdocs\wordpress\wp-content\plugins\parsi-font/parsi-font.php:942 49 #: parsi-font.php:570 50 msgid "This text is just to test." 51 msgstr ".این متن فقط برای آزمایش است" 52 53 #: parsi-font.php:579 55 54 msgid "Save Changes" 56 55 msgstr "ذخیره تغییرات" 56 57 #: parsi-font.php:586 58 msgid "Plugin Features" 59 msgstr "ویژگی های افزونه" 60 61 #: parsi-font.php:589 62 msgid "Beautiful dashboard by changing the font" 63 msgstr "زیبا کردن پیشخوان وردپرس با تغییر فونت" 64 65 #: parsi-font.php:590 66 msgid "Change font Wordpress dashboard" 67 msgstr "تغییر فونت پیشخوان وردپرس" 68 69 #: parsi-font.php:591 70 msgid "Select a font from the list of available fonts" 71 msgstr "انتخاب فونت از لیست فونت های موجود" 72 73 #: parsi-font.php:592 74 msgid "The user can write the name of the own favorite font." 75 msgstr "کاربر می تواند نام فونت دلخواه خود را بنویسد." 76 77 #: parsi-font.php:593 78 msgid "This plugin is developed by Ghaem Omidi." 79 msgstr "این افزونه توسط قائم امیدی توسعه داده می شود." 80 81 #: parsi-font.php:595 82 msgid "Dedicated to the all users of WP-Parsi and Mandegarweb." 83 msgstr "تقدیم به تمامی کاربران وردپرس پارسی و ماندگار وب" 84 85 #: parsi-font.php:603 86 msgid "Your message was successfully sent. Thanks" 87 msgstr "پیام شما با موفقیت ارسال شد. باتشکر" 88 89 #: parsi-font.php:619 90 msgid "Please fill all fields." 91 msgstr "لطفا همه زمینه ها را پر کنید." 92 93 #: parsi-font.php:626 94 msgid "" 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:" 97 msgstr "" 98 "اگر می خواهید فونت مورد علاقه تان در افزونه قرار گیرد یا پیشنهاد و انتقادی " 99 "دارید از طریق این فرم به ما اطلاع دهید:" 100 101 #: parsi-font.php:632 102 msgid "Name" 103 msgstr "نام" 104 105 #: parsi-font.php:636 106 msgid "Email" 107 msgstr "پست الکترونیکی" 108 109 #: parsi-font.php:640 110 msgid "Subject" 111 msgstr "موضوع" 112 113 #: parsi-font.php:644 114 msgid "Your Message" 115 msgstr "پیام شما" 116 117 #: parsi-font.php:648 118 msgid "Send" 119 msgstr "ارسال" -
parsi-font/trunk/parsi-font.php
r904209 r923804 2 2 /* 3 3 Plugin Name: WP-Parsi Admin Font Editor 4 Plugin URI: http:// www.forum.wp-parsi.com/5 Description: Change fonts of wordpress.4 Plugin URI: http://forum.wp-parsi.com/ 5 Description: Change Font Of Wordpress Dashboard 6 6 Author: Ghaem 7 Version: 3. 08 Tags: admin, admin font, html editor, visual editor, fonts, font, wordpress font, change font, parsi font, fonts, oersian, persian fonts, persian font9 Author URI: http:// www.forum.wp-parsi.com/10 Copyright: Ghaem Omidi (WP-Parsi)7 Version: 3.9.1 8 Tags: 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 9 Author URI: http://barfaksite.ir/ 10 Copyright: Ghaem Omidi - 2014 11 11 License: GPL 12 12 … … 15 15 /* 16 16 Special 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 20 18 */ 21 19 … … 81 79 .wp-admin input[type="file"], 82 80 #adminmenu a:focus, 81 #myhead, 83 82 #adminmenu a:active, 84 83 .screen-reader-text:focus, … … 172 171 .wp-dialog, 173 172 .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,175 173 .fade-trigger, 176 174 .wp-switch-editor switch-html, … … 184 182 .media-router a, 185 183 .attachment-details, 184 .acf-content-title h2, 186 185 .media-frame input[type="text"], 187 186 .media-frame input[type="password"], … … 200 199 text, 201 200 input[type="text"], 201 .wp_themeSkin .mceListBox a.mceText, 202 202 code, 203 203 kbd,code, 204 204 .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, 205 210 #TB_ajaxWindowTitle, 206 211 #sidemenu, … … 210 215 #docs-list, 211 216 #sidemenu a.current, 212 textarea.code, 217 textarea.code, 213 218 html, 219 *, 214 220 .html, 215 221 #html, 216 222 .wp_themeSkin table td, 223 #wp-content-editor-container, 224 .wp_themeSkin *, 225 .wp_themeSkin tr, 217 226 #wp-link .toggle-arrow, 218 227 .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, … … 226 235 font-size: <?php echo $parsifont_font_size; ?>px; 227 236 <?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 } 229 452 </style> 230 453 … … 250 473 251 474 <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/> 254 478 <?php 255 479 if( $_POST['parsifont-font-family'] || $_POST['parsifont-font-size'] ) { … … 269 493 270 494 <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> 272 496 273 497 <?php … … 279 503 280 504 <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> 282 506 <td> 283 507 284 508 <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> 286 510 287 511 <?php … … 305 529 306 530 <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> 308 532 <td> 309 533 310 534 311 535 <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> 313 537 314 538 <?php … … 332 556 333 557 <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;"> 335 559 336 560 … … 340 564 341 565 <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> 343 567 <td> 344 568 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> 347 571 348 572 </td> … … 353 577 354 578 <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') ?>" /> 356 580 </p> 357 581 … … 359 583 </form> 360 584 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> 370 594 </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 598 session_start(); 599 if(isset($_POST['submit'])) { 600 if(!empty($_POST['name']) && !empty($_POST['email']) && !empty($_POST['message']) && !empty($_POST['subject'])) { 601 if($_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"; 616 mail($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> 372 650 </div> 373 651 </p> 374 652 </div> 375 376 377 653 <div class="clear"></div> 654 </div> 655 </div> 656 </div> 657 </div> 378 658 <script type="text/javascript"> 379 659 … … 410 690 411 691 function 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 692 add_menu_page(__("Parsi Font", 'parsifont'), __("Parsi Font", 'parsifont'), 1, "parsifont-settings", "parsifont_settings_page"); 415 693 } 416 694 417 695 add_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 438 696 439 697 // for transalations -
parsi-font/trunk/readme.txt
r866939 r923804 1 1 === WP-Parsi Admin Font Editor === 2 2 Contributors: Ghaem 3 Tags: font, wordpress font, change font, parsi font, fonts, oersian, persian fonts, persian font3 Tags: 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 4 4 Requires at least: 3.7 5 Stable tag: 3. 06 Tested up to: 3. 8.15 Stable tag: 3.9.1 6 Tested up to: 3.9.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 32 32 == Installation == 33 33 34 1. Upload ' wp-parsi-admin-font-editor' to the '/wp-content/plugins/' directory34 1. Upload 'parsi-font' to the '/wp-content/plugins/' directory 35 35 2. Activate the plugin through the 'Plugins' menu in WordPress 36 36 3. 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 Enter37 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 38 38 5. Install plugin, activate it and enjoy of plugin 39 39 … … 45 45 == Screenshots == 46 46 47 1. Setting Page 48 2. WP Admin with ((B Koodak)) & ((Comic Sans MS)) 47 1. Settings Page with Parsi fonts. 49 48 == Changelog == 50 49 … … 55 54 = 3.0 = 56 55 * 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.