Plugin Directory

Changeset 659366


Ignore:
Timestamp:
01/26/2013 06:08:44 PM (13 years ago)
Author:
mdjekic
Message:

Synchi 5.0

Location:
synchi
Files:
164 added
9 edited

Legend:

Unmodified
Added
Removed
  • synchi/trunk/js/jquery.synchi.js

    r622365 r659366  
    11// =============================================================================
    22// File: synchi.js
    3 // Version: 1.2
     3// Version: 1.3
    44//
    55// Synchi global
    66// =============================================================================
     7
     8// set the proper jQuery identifier
     9$ = jQuery;
    710
    811if(!synchi_settings) synchi_settings = {
     
    3538    }
    3639});
    37 
    3840
    3941// calls an ajax synchi action
  • synchi/trunk/js/synchi_editor.js

    r622373 r659366  
    6868 */
    6969function synchi_initArticleEditor() {
    70    
     70    // check if controls already rendered
    7171    if(synchi_controls) {
    7272        // handle controls
     
    150150        // perform default behaviour
    151151        switchEditors.switchto(element);
    152         return false;
    153152    },256);
     153   
     154    return false;
    154155}
    155156
  • synchi/trunk/lang/synchi-sr_RS.po

    r622360 r659366  
    11msgid ""
    22msgstr ""
    3 "Project-Id-Version: Synchi v4.6\n"
     3"Project-Id-Version: Synchi v5.0\n"
    44"Report-Msgid-Bugs-To: \n"
    55"POT-Creation-Date: \n"
    6 "PO-Revision-Date: 2012-10-31 23:58:58+0000\n"
     6"PO-Revision-Date: 2013-01-26 16:33:20+0000\n"
    77"Last-Translator: mdjekic <[email protected]>\n"
    88"Language-Team: \n"
     
    140140
    141141#: php/editor_controls.php:36
     142#: php/head/widget.php:45
    142143#: php/synchi_ide.php:106
    143144#@ synchi
     
    225226msgstr "Одабери датотеку/директоријум за преузимање"
    226227
     228#: php/head/editor.php:54
    227229#: php/head/ide.php:90
    228230#@ synchi
     
    230232msgstr "Непозната контрола"
    231233
     234#: php/head/editor.php:55
    232235#: php/head/ide.php:91
    233236#@ synchi
     
    240243msgstr "Изађи без чувања"
    241244
     245#: php/head/editor.php:56
    242246#: php/head/ide.php:93
     247#: php/head/widget.php:44
    243248#@ synchi
    244249msgid "Initializing Synchi IDE"
     
    374379msgstr "Уређивач чланака"
    375380
    376 #: php/settings.php:74
     381#: php/settings.php:84
    377382#@ synchi
    378383msgid "Editing Settings"
    379384msgstr "Радна подешавања"
    380385
    381 #: php/settings.php:78
     386#: php/settings.php:88
    382387#@ synchi
    383388msgid "Line Numbers"
    384389msgstr "Нумерисане линије"
    385390
    386 #: php/settings.php:88
     391#: php/settings.php:98
    387392#@ synchi
    388393msgid "Match Brackets"
    389394msgstr "Поклапање заграда"
    390395
    391 #: php/settings.php:98
     396#: php/settings.php:108
    392397#@ synchi
    393398msgid "Indent With Tabs"
    394399msgstr "Одвајање табулатором"
    395400
    396 #: php/settings.php:108
     401#: php/settings.php:118
    397402#@ synchi
    398403msgid "Tab Size"
    399404msgstr "Величина табулатора"
    400405
    401 #: php/settings.php:120
     406#: php/settings.php:130
    402407#@ synchi
    403408msgid "Font Size"
    404409msgstr "Величина текста"
    405410
    406 #: php/settings.php:131
     411#: php/settings.php:141
    407412#@ synchi
    408413msgid "Other Settings"
    409414msgstr "Остала подешавања"
    410415
    411 #: php/settings.php:135
     416#: php/settings.php:145
    412417#@ synchi
    413418msgid "Theme"
    414419msgstr "Тема"
    415420
    416 #: php/settings.php:151
     421#: php/settings.php:161
    417422#@ synchi
    418423msgid "theme preview"
    419424msgstr "изглед теме"
    420425
     426#: php/settings.php:73
     427#@ synchi
     428msgid "Text Widgets Editor"
     429msgstr "Уређивач текстуалних виџета"
     430
  • synchi/trunk/php/head/editor.php

    r622365 r659366  
    55// Version: 1.0
    66//
    7 // Indcludes head files for synchi editor
     7// Includes head files for synchi editor
    88// =============================================================================
    99
  • synchi/trunk/php/head/ide.php

    r615875 r659366  
    22   
    33// =============================================================================
    4 // File: head_ide.php
     4// File: ide.php
    55// Version: 2.6
    66//
  • synchi/trunk/php/settings.php

    r622360 r659366  
    6868                    </select>
    6969                    <input type="checkbox" <?php if($synchi_settings['flag_articles'] == 1) echo 'checked="true"'; ?>/>
     70                </td>
     71            </tr>
     72            <tr valign='top'>
     73                <th scope='row'><?php echo __('Text Widgets Editor','synchi'); ?></th>
     74                <td>
     75                    <select name="synchi_option_flag_widgets" style="display: none">
     76                        <option value="0" <?php if($synchi_settings['flag_widgets'] == 0) echo 'selected="selected"'; ?>>off</option>
     77                        <option value="1" <?php if($synchi_settings['flag_widgets'] == 1) echo 'selected="selected"'; ?>>on</option>
     78                    </select>
     79                    <input type="checkbox" <?php if($synchi_settings['flag_widgets'] == 1) echo 'checked="true"'; ?>/>
    7080                </td>
    7181            </tr>
  • synchi/trunk/readme.txt

    r622360 r659366  
    22
    33Contributors: mdjekic
     4Donate link: http://projects.djekic.net/synchi
    45Tags: code, editor, advanced, syntax, highlight, admin, ide, development, codemirror
    56License: GPLv2
     
    78Requires at least: 2.7
    89Tested up to: 3.4.2
    9 Stable tag: 4.6
    10 
    11 A full IDE inside your Wordpress! Syntax highlighting and powerfull IDE features 
     10Stable tag: 5
     11
     12A full IDE inside your Wordpress! Syntax highlighting and powerfull IDE features
    1213in WP plugin editor, themes editor and article HTML editor.
    1314
    1415== Description ==
    1516
    16 Synchi IDE empowers you with syntax highlighting and powerfull IDE features in 
    17 WP plugin editor, themes editor and article HTML editor. Plugin is based on 
     17Synchi IDE empowers you with syntax highlighting and powerfull IDE features in
     18WP plugin editor, themes editor and article HTML editor. Plugin is based on
    1819CodeMirror library.
    1920
     
    2324
    2425Synchi is a full IDE! You no longer need an external code editor, since you
    25 can enjoy code writting experience inside your Wordpress, from any location.
     26can enjoy code creation experience inside your WordPress, from any location.
    2627
    2728No need to leave the plugin/themes editor page for saving files, they are now
     
    2930delete and copy/cut existing files and folders!
    3031
    31 You can enjoy syntax highlight and basic IDE features (search/replace,code 
     32You can enjoy syntax highlight and basic IDE features (search/replace,code
    3233formatting, line highlight...) in HTML article editor without conflicts with
    33 TinyMCE. Full screen is enabled also. Enjoy!
     34TinyMCE. Full screen is enabled too for both articles and text/HTML widgets
     35editor. Enjoy!
    3436
    3537= Features =
    3638
    37 * [syntax highlight](http://en.wikipedia.org/wiki/Syntax_highlighting) for a number of programming languages
    38 * [code completion](http://en.wikipedia.org/wiki/Autocomplete) for JavaScript and PHP (WordPress functions included)
     39* [syntax highlight](http://en.wikipedia.org/wiki/Syntax_highlighting) for a
     40  number of programming languages in themes/plugins editor, articles editor
     41  and test/HTML widgets editor
     42* [code completion](http://en.wikipedia.org/wiki/Autocomplete) for JavaScript
     43  and PHP (WordPress functions included)
    3944* editor theming for comfortable coding experience
    4045* full screen editing
     
    8186
    8287Before you begin, please make sure jQuery is included (should be WP default). If
    83 you are by chance using Internet Explorer 6, please do not install this plugin,
    84 even better - stop using Internet.
     88you are by chance using Internet Explorer 6, please do not install this plugin or,
     89even better, stop using Internet.
    8590
    8691= Installation steps =
     
    89941. Activate the plugin through the 'Plugins' menu in WordPress
    90951. Go to Settings -> Synchi to open the settings
    91 1. Customize your code editing experience
     961. Customize your code editing experience and enable/disable Synchi
    92971. That's it. Enjoy a full IDE inside Wordpress!
    9398
    9499== Changelog ==
     100
     101= 5.0 =
     102* Added syntax highlight for text widgets in widget editor
    95103
    96104= 4.6 =
     
    166174== Upgrade Notice ==
    167175
    168 Upgrade to a enable plugin localization!
     176Upgrade to a enable syntax highlight in WP text/HTML widgets!
    169177
    170178== Screenshots ==
     
    182190libraries made by different authors.
    183191
    184 An umeasured thanks to authors of libraries and jQuery plugins:
     192An unmeasured thanks to authors of libraries and jQuery plugins:
    185193
    186194* Fantastic [CodeMirror library](http://codemirror.net/) by [Marijn Haverbeke](http://marijnhaverbeke.nl/)
     
    192200Special thanks to users providing valuable feedback and ideas:
    193201
    194 * [ebsalberto] (http://wordpress.org/support/profile/ebsalberto)
    195 * [eschwartz93] (http://wordpress.org/support/profile/eschwartz93)
    196 * [th.meestersx] (http://wordpress.org/support/profile/thmeesters)
    197 
    198 Synchi IDE plugin is brought to you by [Miloš Đekić](http://milos.djekic.net)
     202* [ebsalberto](http://wordpress.org/support/profile/ebsalberto)
     203* [eschwartz93](http://wordpress.org/support/profile/eschwartz93)
     204* [th.meestersx](http://wordpress.org/support/profile/thmeesters)
     205
     206Synchi IDE plugin is brought to you by [Miloš Đekić](http://milos.djekic.net). If you would like to donate for future
     207development, please visit the [project page](http://projects.djekic.net/synchi/).
  • synchi/trunk/synchi.php

    r622360 r659366  
    2626  Plugin URI: http://projects.djekic.net/synchi
    2727  Description: A full IDE inside your Wordpress! Syntax highlighting and powerfull IDE features in WP plugin editor, themes editor and article HTML editor.
    28   Version: 4.6
     28  Version: 5.0
    2929  Author: Miloš Đekić
    3030  Author URI: http://milos.djekic.net
     
    3838
    3939// synchi version
    40 define("SYNCHI",'4.6');
     40define("SYNCHI",'5.0');
    4141
    4242// define paths
     
    5353
    5454// define supported modes
    55 $synchi_modes = array('plugin-editor','theme-editor','post','post-new');
     55$synchi_modes = array('plugin-editor','theme-editor','post','post-new','widgets');
    5656
    5757// define supported extensions
     
    243243    $flag_articles = $_POST['synchi_option_flag_articles'];
    244244    if ($flag_articles == 0 || $flag_articles == 1) update_option('synchi_option_flag_articles', $flag_articles);
    245    
     245
     246    // handle flag:widgets
     247    if (!isset($_POST['synchi_option_flag_widgets'])) return;
     248    $flag_widgets = $_POST['synchi_option_flag_widgets'];
     249    if ($flag_widgets == 0 || $flag_widgets == 1) update_option('synchi_option_flag_widgets', $flag_widgets);
     250
    246251    /* Editing Settings */
    247252   
     
    425430                synchi_ajax_error("Folder name can not contain: " . implode(' ',$synchi_bad_chars));
    426431    }
    427     if(strlen($filename) > 32) synchi_ajax_error("Name must fit in 32 characters.");
     432    if(strlen($dirname) > 32) synchi_ajax_error("Name must fit in 32 characters.");
    428433   
    429434    // get parent
     
    560565        'flag_themes' => get_option('synchi_option_flag_themes') == 1,
    561566        'flag_articles' => get_option('synchi_option_flag_articles') == 1,
     567        'flag_widgets' => get_option('synchi_option_flag_widgets') == 1,
    562568        'theme' => $theme,
    563569        'lineWrapping' => true,
     
    591597    // determine mode
    592598    $synchi_mode = str_replace(".php", "", synchi_get_script());
    593    
     599
    594600    // do nothing for unsupported modes
    595601    if(!in_array($synchi_mode, $synchi_modes)) return;
     
    600606    // determine editor root
    601607    switch($synchi_mode) {
    602         case "plugin-editor": 
     608        case "plugin-editor":
    603609            if(!current_user_can('edit_plugins')) return;
    604610            if(!$synchi_settings['flag_plugins']) return;
     
    628634            include(WP_PLUGIN_DIR . '/synchi/php/head/ide.php');
    629635            break;
     636        case 'widgets':
     637            //if(!current_user_can('edit_widgets')) return;
     638            if(!$synchi_settings['flag_widgets']) return;
     639            sychi_clearRequest();
     640            // include head
     641            include(WP_PLUGIN_DIR . '/synchi/php/head/widget.php');
     642            break;
    630643        case 'post': case 'post-new':
    631644            if(!$synchi_settings['flag_articles']) return;
     
    678691add_option('synchi_option_flag_themes', 1);
    679692add_option('synchi_option_flag_articles', 1);
     693add_option('synchi_option_flag_widgets', 1);
    680694
    681695// register editing options
Note: See TracChangeset for help on using the changeset viewer.