Changeset 485194
- Timestamp:
- 01/05/2012 06:00:42 PM (14 years ago)
- Location:
- ultimate-cms/trunk
- Files:
-
- 8 added
- 5 edited
-
css.php (modified) (1 diff)
-
index.php (modified) (2 diffs)
-
mods (added)
-
mods/codemirror.css (added)
-
mods/codemirror.js (added)
-
mods/css.js (added)
-
mods/htmlmixed.js (added)
-
mods/javascript.js (added)
-
mods/xml.js (added)
-
post-type/class-xydac-post-type-manager.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
script.php (modified) (1 diff)
-
taxonomy/taxonomy.php (added)
Legend:
- Unmodified
- Added
- Removed
-
ultimate-cms/trunk/css.php
r481953 r485194 5 5 include 'style.css'; 6 6 $style=''; 7 if(isset($_GET['type'])&& ('admin'==$_GET['type'])) 7 if(isset($_GET['type'])&& ('admin'==$_GET['type'])){ 8 8 echo stripslashes_deep(apply_filters( 'xydac_cms_admin_style',$style)); 9 include '/mods/codemirror.css'; 10 } 9 11 else 10 12 echo stripslashes_deep(apply_filters( 'xydac_cms_site_style',$style)); -
ultimate-cms/trunk/index.php
r482481 r485194 6 6 Author: XYDAC 7 7 Author URI: http://xydac.com/ 8 Version: 0.1 beta8 Version: 0.11 beta 9 9 License: GPL2 10 10 */ … … 59 59 function xydac_cms_main1(){ 60 60 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 - XYDAC - 87 <span style=\"font-size:20px;text-shadow:1px 1px 1px #333\">Adding Music to poetry</span></h2>"; 68 88 } 69 89 function xydac_cms_build_active_field_types() -
ultimate-cms/trunk/post-type/class-xydac-post-type-manager.php
r481953 r485194 145 145 $datas[$k]['args']['exclude_from_search']= "false"; 146 146 $datas[$k]['args']['show_ui']= "true"; 147 $datas[$k]['args']['capability_type']= " true";147 $datas[$k]['args']['capability_type']= ""; 148 148 $datas[$k]['args']['hierarchical']= "false"; 149 149 $datas[$k]['args']['supports']= array(); -
ultimate-cms/trunk/readme.txt
r481961 r485194 66 66 == Changelog == 67 67 68 69 = 0.11 = 70 * Added CodeMirror for syntax highlighting of codes. 71 * fixed minor bugs 72 68 73 = 0.1 = 69 74 * New Plugin Released -
ultimate-cms/trunk/script.php
r481953 r485194 5 5 include 'script.js'; 6 6 $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'; 8 13 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++){ 34 xydac_codemirror[i].refresh()} 35 }); 36 37 }); 38 XYDAC; 39 echo $s; 40 } 9 41 else 10 42 echo stripslashes_deep(apply_filters( 'xydac_cms_site_script',$script));
Note: See TracChangeset
for help on using the changeset viewer.