Plugin Directory

Changeset 1913083


Ignore:
Timestamp:
07/22/2018 05:29:15 PM (8 years ago)
Author:
rahburma
Message:

commit version 1.3.10

Location:
code-editor-and-compiler/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • code-editor-and-compiler/trunk/admin/compilebin-admin.php

    r1912961 r1913083  
    77   public function __construct() {
    88      $this->plugin_name = "code-editor-and-compiler";
    9       $this->plugin_version = "1.3.9";
     9      $this->plugin_version = "1.3.10";
    1010      add_action('admin_notices', array($this, 'plugin_activation'));
    1111      add_action('deactivated_plugin', array($this, 'plugin_deactivation'));   
     
    4949           deactivate_plugins('wp-syntaxhighlighter/wp-syntaxhighlighter.php');
    5050           echo $html;   
     51       }
     52       if (is_plugin_active('syntaxhighlighter/syntaxhighlighter.php')) {
     53           $html = '<div class="updated notice is-dismissible">
     54                       <p>Existing code snippets which are using <i>Syntax Highlighter Evolved</i> plugin will now be syntax highlighted using <i>Compilebin</i>. Please do <b>NOT</b> deactivate <i>Syntax Highlighter Evolved</i> plugin.</p>
     55                    </div>';
     56           //echo $html;   
    5157       }
    5258   }
  • code-editor-and-compiler/trunk/compilebin.php

    r1912961 r1913083  
    1010 * Plugin URI:        https://www.compilebin.com
    1111 * Description:       Syntax highlighter and code compiler.
    12  * Version:           1.3.9
     12 * Version:           1.3.10
    1313 * Author:            Compilebin
    1414 * Author URI:        https://www.compilebin.com
  • code-editor-and-compiler/trunk/public/compilebin-public.php

    r1912961 r1913083  
    77   public function __construct() {
    88      $this->plugin_name = "code-editor-and-compiler";
    9       $this->plugin_version = "1.3.9";
     9      $this->plugin_version = "1.3.10";
    1010      add_action('wp_enqueue_scripts', array(&$this, 'enqueueScripts'));
    1111      add_action('wp_enqueue_scripts', array(&$this, 'enqueueStyles'));
  • code-editor-and-compiler/trunk/public/js/editor-handler-public.js

    r1912961 r1913083  
    2222           }
    2323           return false;
     24        };
     25       
     26        var cdbx_isCompilebinPresent = function (elem) {   
     27           if (elem.className == 'prettyprint' || elem.className == 'cdbxweb prettyprint') {
     28               return true;
     29           }
     30           return false;   
    2431        };
    2532       
     
    5562            for (var i = 0; i < cdbx_preElems.length; i++) {
    5663                cdbx_lineHighlight(cdbx_preElems[i]);
    57                 if (cdbx_isCrayonHighlighterPresent(cdbx_preElems[i]) || cdbx_isWPSyntaxHighlighterPresent(cdbx_preElems[i])) {
    58                     cdbx_preElems[i].classList.add('prettyprint');
     64                //if (cdbx_isCrayonHighlighterPresent(cdbx_preElems[i]) || cdbx_isWPSyntaxHighlighterPresent(cdbx_preElems[i])) {
     65                if (!cdbx_isCompilebinPresent(cdbx_preElems[i])) {
     66                    //cdbx_preElems[i].classList.add('prettyprint');
     67                    cdbx_preElems[i].className = 'prettyprint';
    5968                    cdbx_preElems[i].setAttribute("style", "padding: 10px; border: 1px solid rgba(231, 231, 230, 1); border-radius: 10px; background-color: #ffffff; font-family: courier, sans-serif; font-size: 13px;");
    6069                }
  • code-editor-and-compiler/trunk/readme.txt

    r1912961 r1913083  
    11=== Compilebin ===
    22Contributors: rahburma
    3 Tags: online compiler, code editor, syntax highlighter, compiler plugin, embed code snippets, code, highlight, syntax, compiler, snippet
     3Tags: online compiler, code editor, syntax highlighter, syntax highlight, compiler plugin, embed code snippets, code, highlight, syntax, compiler, snippet
    44Plugin URI: https://www.compilebin.com
    55Requires at least: 3.1
    66Tested up to: 4.9.4
    7 Stable tag: 1.3.9
     7Stable tag: 1.3.10
    88Requires PHP: 5.2.4
    99License: GPLv2 or later
     
    3535
    3636== Changelog ==
    37 1.3.9
     371.3.10
    3838Support for highlighting selected portion of web design code in public view.
    3939UI improvement
Note: See TracChangeset for help on using the changeset viewer.