Plugin Directory

Changeset 485194


Ignore:
Timestamp:
01/05/2012 06:00:42 PM (14 years ago)
Author:
deepak.seth
Message:

Version 0.11b Release

Location:
ultimate-cms/trunk
Files:
8 added
5 edited

Legend:

Unmodified
Added
Removed
  • ultimate-cms/trunk/css.php

    r481953 r485194  
    55    include 'style.css';
    66    $style='';
    7     if(isset($_GET['type'])&& ('admin'==$_GET['type']))
     7    if(isset($_GET['type'])&& ('admin'==$_GET['type'])){
    88        echo stripslashes_deep(apply_filters( 'xydac_cms_admin_style',$style));
     9        include '/mods/codemirror.css';
     10    }
    911    else
    1012        echo stripslashes_deep(apply_filters( 'xydac_cms_site_style',$style));
  • ultimate-cms/trunk/index.php

    r482481 r485194  
    66Author: XYDAC
    77Author URI: http://xydac.com/
    8 Version: 0.1 beta
     8Version: 0.11 beta
    99License: GPL2
    1010*/
     
    5959    function xydac_cms_main1(){
    6060        echo "<h2>This Page is not Availaible in this version</h2>";
    61         echo "<p>Hi Everyone,<br>
    62         Well i haven't got time these days so was not able to work on this plugin. Am still working on it as you can see...<br/>
    63         This is a small preview for everyone out there...<br>
    64         You can help me focus on this project by sending me some donations if you can...:P
    65         </p>";
    66         xydac_show_donate_link();
    67         echo "<br/><h4><em>Addin Music to poetry</em></h4>";
     61        echo "
     62        <script type='text/javascript'>
     63  WebFontConfig = {
     64    google: { families: [ 'Trade+Winds::latin' ] }
     65  };
     66  (function() {
     67    var wf = document.createElement('script');
     68    wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
     69      '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
     70    wf.type = 'text/javascript';
     71    wf.async = 'true';
     72    var s = document.getElementsByTagName('script')[0];
     73    s.parentNode.insertBefore(wf, s);
     74  })(); </script>
     75        <h3>Important Links</h3>
     76        <ul>
     77        <li>Plugin Home Page : <a href='http://www.xydac.com/'>http://www.xydac.com/</a></li>
     78        <li>Post Types on WordPress: <a href='http://codex.wordpress.org/Function_Reference/register_post_type'>WordPress Codex refrence for Post Types</a></li>
     79        <li>Plugin Page on WordPress : <a href='http://wordpress.org/extend/plugins/ultimate-cms/'>http://wordpress.org/extend/plugins/ultimate-cms/</a></li>
     80       
     81        </ul><br/><br/><br/>
     82        ";
     83        xydac_show_donate_link(false);
     84        echo "<br/><h2 style=\"font-family: 'Trade Winds', cursive;font-size:40px;text-align:center;text-shadow: -1px 1px 4px #333;\">
     85        <span style=\"font-size:20px;text-shadow:1px 1px 1px #333\">Code is Poetry</span>
     86        &nbsp;&nbsp;-&nbsp;XYDAC&nbsp;-&nbsp;&nbsp;
     87        <span style=\"font-size:20px;text-shadow:1px 1px 1px #333\">Adding Music to poetry</span></h2>";
    6888    }
    6989    function xydac_cms_build_active_field_types()
  • ultimate-cms/trunk/post-type/class-xydac-post-type-manager.php

    r481953 r485194  
    145145        $datas[$k]['args']['exclude_from_search']= "false";
    146146        $datas[$k]['args']['show_ui']= "true";
    147         $datas[$k]['args']['capability_type']= "true";
     147        $datas[$k]['args']['capability_type']= "";
    148148        $datas[$k]['args']['hierarchical']= "false";
    149149        $datas[$k]['args']['supports']= array();
  • ultimate-cms/trunk/readme.txt

    r481961 r485194  
    6666== Changelog ==
    6767
     68
     69= 0.11 =
     70* Added CodeMirror for syntax highlighting of codes.
     71* fixed minor bugs
     72
    6873= 0.1 =
    6974* New Plugin Released
  • ultimate-cms/trunk/script.php

    r481953 r485194  
    55    include 'script.js';
    66    $script='';
    7     if(isset($_GET['type'])&& ('admin'==$_GET['type']))
     7    if(isset($_GET['type'])&& ('admin'==$_GET['type'])){
     8        include '/mods/codemirror.js';
     9        include '/mods/css.js';
     10        include '/mods/javascript.js';
     11        include '/mods/xml.js';
     12        include '/mods/htmlmixed.js';
    813        echo apply_filters( 'xydac_cms_admin_script',$script);
     14        $s = <<<XYDAC
     15        var xydac_codemirror = new Array();
     16        jQuery(document).ready(function($) {
     17        var j=0;
     18       
     19                    jQuery('textarea[name*="css"],textarea[name*="script"],textarea[name*="js"],textarea[name*="html"],textarea[name*="loop"]').each(function(){
     20                    if(this.name.search(/js/i)!=-1 || this.name.search(/script/i)!=-1){
     21                        xydac_codemirror[j] = CodeMirror.fromTextArea(document.getElementById(this.name),{lineNumbers :true,matchBrackets: true,mode :'text/javascript',gutter:true,onFocus:CodeMirror_focus,onBlur:CodeMirror_blur});
     22                        j++;}
     23                    else if(this.name.search(/css/i)!=-1){
     24                        xydac_codemirror[j] = CodeMirror.fromTextArea(document.getElementById(this.name),{lineNumbers :true,matchBrackets: true,mode :'text/css',gutter:true,onFocus:CodeMirror_focus,onBlur:CodeMirror_blur});
     25                        j++;}
     26                    else{
     27                        xydac_codemirror[j] = CodeMirror.fromTextArea(document.getElementById(this.name),{lineNumbers :true,matchBrackets: true,mode :'htmlmixed',gutter:true,onFocus:CodeMirror_focus,onBlur:CodeMirror_blur});
     28                        j++;}
     29                    });
     30    function CodeMirror_focus(){jQuery('div#col-left').css('overflow','visible');}
     31    function CodeMirror_blur(){jQuery('div#col-left').css('overflow','hidden');}
     32    jQuery( "#accordion h3" ).click(function() {
     33            for(i=0;i<xydac_codemirror.length;i++){
     34xydac_codemirror[i].refresh()}
     35        });
     36       
     37        });
     38XYDAC;
     39echo $s;
     40    }
    941    else
    1042        echo stripslashes_deep(apply_filters( 'xydac_cms_site_script',$script));
Note: See TracChangeset for help on using the changeset viewer.