Permalink
Browse files

first commit

  • Loading branch information...
0 parents commit cfd80fc75784f1fe2fd53220f3a9b9507e696567 Jared Atchison committed Mar 25, 2011
Showing with 1,688 additions and 0 deletions.
  1. +30 −0 README.txt
  2. +127 −0 example-functions.php
  3. +89 −0 images/.svn/all-wcprops
  4. +504 −0 images/.svn/entries
  5. +5 −0 images/.svn/prop-base/ico-delete.png.svn-base
  6. +5 −0 images/.svn/prop-base/ui-bg_flat_0_aaaaaa_40x100.png.svn-base
  7. +5 −0 images/.svn/prop-base/ui-bg_flat_75_ffffff_40x100.png.svn-base
  8. +5 −0 images/.svn/prop-base/ui-bg_glass_55_fbf9ee_1x400.png.svn-base
  9. +5 −0 images/.svn/prop-base/ui-bg_glass_65_ffffff_1x400.png.svn-base
  10. +5 −0 images/.svn/prop-base/ui-bg_glass_75_dadada_1x400.png.svn-base
  11. +5 −0 images/.svn/prop-base/ui-bg_glass_75_e6e6e6_1x400.png.svn-base
  12. +5 −0 images/.svn/prop-base/ui-bg_glass_95_fef1ec_1x400.png.svn-base
  13. +5 −0 images/.svn/prop-base/ui-bg_highlight-soft_75_cccccc_1x100.png.svn-base
  14. +5 −0 images/.svn/prop-base/ui-icons_222222_256x240.png.svn-base
  15. +5 −0 images/.svn/prop-base/ui-icons_2e83ff_256x240.png.svn-base
  16. +5 −0 images/.svn/prop-base/ui-icons_454545_256x240.png.svn-base
  17. +5 −0 images/.svn/prop-base/ui-icons_888888_256x240.png.svn-base
  18. +5 −0 images/.svn/prop-base/ui-icons_cd0a0a_256x240.png.svn-base
  19. BIN images/.svn/text-base/ico-delete.png.svn-base
  20. BIN images/.svn/text-base/ui-bg_flat_0_aaaaaa_40x100.png.svn-base
  21. BIN images/.svn/text-base/ui-bg_flat_75_ffffff_40x100.png.svn-base
  22. BIN images/.svn/text-base/ui-bg_glass_55_fbf9ee_1x400.png.svn-base
  23. BIN images/.svn/text-base/ui-bg_glass_65_ffffff_1x400.png.svn-base
  24. BIN images/.svn/text-base/ui-bg_glass_75_dadada_1x400.png.svn-base
  25. BIN images/.svn/text-base/ui-bg_glass_75_e6e6e6_1x400.png.svn-base
  26. BIN images/.svn/text-base/ui-bg_glass_95_fef1ec_1x400.png.svn-base
  27. BIN images/.svn/text-base/ui-bg_highlight-soft_75_cccccc_1x100.png.svn-base
  28. BIN images/.svn/text-base/ui-icons_222222_256x240.png.svn-base
  29. BIN images/.svn/text-base/ui-icons_2e83ff_256x240.png.svn-base
  30. BIN images/.svn/text-base/ui-icons_454545_256x240.png.svn-base
  31. BIN images/.svn/text-base/ui-icons_888888_256x240.png.svn-base
  32. BIN images/.svn/text-base/ui-icons_cd0a0a_256x240.png.svn-base
  33. BIN images/ico-delete.png
  34. BIN images/ui-bg_flat_0_aaaaaa_40x100.png
  35. BIN images/ui-bg_flat_75_ffffff_40x100.png
  36. BIN images/ui-bg_glass_55_fbf9ee_1x400.png
  37. BIN images/ui-bg_glass_65_ffffff_1x400.png
  38. BIN images/ui-bg_glass_75_dadada_1x400.png
  39. BIN images/ui-bg_glass_75_e6e6e6_1x400.png
  40. BIN images/ui-bg_glass_95_fef1ec_1x400.png
  41. BIN images/ui-bg_highlight-soft_75_cccccc_1x100.png
  42. BIN images/ui-icons_222222_256x240.png
  43. BIN images/ui-icons_2e83ff_256x240.png
  44. BIN images/ui-icons_454545_256x240.png
  45. BIN images/ui-icons_888888_256x240.png
  46. BIN images/ui-icons_cd0a0a_256x240.png
  47. +407 −0 init.php
  48. +94 −0 jquery.cmbScripts.js
  49. +367 −0 style.css
@@ -0,0 +1,30 @@
+=== Custom Metaboxes and Fields ===
+Contributors: Andrew Norcross (@norcross / andrewnorcross.com)
+ Jared Atchison (@jaredatch / jaredatchison.com)
+ Bill Erickson (@billerickson / billerickson.net)
+Version: 0.4
+Requires at least: 3.0
+Tested up to: 3.1
+
+== Description ==
+
+This will create metaboxes with custom fields that will blow your mind.
+
+== Installation ==
+
+This script is easy to install. If you can't figure it out you probably shouldn't be using it.
+
+1. Place `metabox` directory inside a 'lib' directory of your (activated) theme. E.g. inside /themes/twentyten/lib/.
+2. Edit theme's function.php to include /lib/metabox/init.php.
+3. See example-functions.php for further guidance.
+
+== Frequently Asked Questions ==
+
+None yet.
+
+== Changelog ==
+
+= 0.4 =
+* Think we have a release that is mostly working. We'll say the initial release :)
+
+
@@ -0,0 +1,127 @@
+<?php
+
+// Include & setup custom metabox and fields
+$prefix = 'cmb_';
+$meta_boxes = array();
+
+$meta_boxes[] = array(
+ 'id' => 'test_metabox',
+ 'title' => 'Test Metabox',
+ 'pages' => array('page'), // post type
+ 'context' => 'normal',
+ 'priority' => 'high',
+ 'show_names' => true, // Show field names on the left
+ 'fields' => array(
+ array(
+ 'name' => 'Test Text',
+ 'desc' => 'field description (optional)',
+ 'id' => $prefix . 'test_text',
+ 'type' => 'text'
+ ),
+ array(
+ 'name' => 'Test Text Small',
+ 'desc' => 'field description (optional)',
+ 'id' => $prefix . 'test_textsmall',
+ 'type' => 'text_small'
+ ),
+ array(
+ 'name' => 'Test Text Medium',
+ 'desc' => 'field description (optional)',
+ 'id' => $prefix . 'test_textmedium',
+ 'type' => 'text_medium'
+ ),
+ array(
+ 'name' => 'Test Date Picker',
+ 'desc' => 'field description (optional)',
+ 'id' => $prefix . 'test_textdate',
+ 'type' => 'text_date'
+ ),
+ array(
+ 'name' => 'Test Money',
+ 'desc' => 'field description (optional)',
+ 'id' => $prefix . 'test_textmoney',
+ 'type' => 'text_money'
+ ),
+ array(
+ 'name' => 'Test Text Area',
+ 'desc' => 'field description (optional)',
+ 'id' => $prefix . 'test_textarea',
+ 'type' => 'textarea'
+ ),
+ array(
+ 'name' => 'Test Text Area Small',
+ 'desc' => 'field description (optional)',
+ 'id' => $prefix . 'test_textareasmall',
+ 'type' => 'textarea_small'
+ ),
+ array(
+ 'name' => 'Test Title Weeeee',
+ 'desc' => 'This is a title description',
+ 'type' => 'title'
+ ),
+ array(
+ 'name' => 'Test Select',
+ 'desc' => 'field description (optional)',
+ 'id' => $prefix . 'test_select',
+ 'type' => 'select',
+ 'options' => array(
+ array('name' => 'Option One', 'value' => 'standard'),
+ array('name' => 'Option Two', 'value' => 'custom'),
+ array('name' => 'Option Three', 'value' => 'none')
+ )
+ ),
+ array(
+ 'name' => 'Test Radio inline',
+ 'desc' => 'field description (optional)',
+ 'id' => $prefix . 'test_radio',
+ 'type' => 'radio_inline',
+ 'options' => array(
+ array('name' => 'Option One', 'value' => 'standard'),
+ array('name' => 'Option Two', 'value' => 'custom'),
+ array('name' => 'Option Three', 'value' => 'none')
+ )
+ ),
+ array(
+ 'name' => 'Test Radio',
+ 'desc' => 'field description (optional)',
+ 'id' => $prefix . 'test_radio',
+ 'type' => 'radio',
+ 'options' => array(
+ array('name' => 'Option One', 'value' => 'standard'),
+ array('name' => 'Option Two', 'value' => 'custom'),
+ array('name' => 'Option Three', 'value' => 'none')
+ )
+ ),
+ array(
+ 'name' => 'Test Checkbox',
+ 'desc' => 'field description (optional)',
+ 'id' => $prefix . 'test_checkbox',
+ 'type' => 'checkbox'
+ ),
+ array(
+ 'name' => 'Test Multi Checkbox',
+ 'desc' => 'field description (optional)',
+ 'id' => $prefix . 'test_multicheckbox',
+ 'type' => 'multicheck',
+ 'options' => array(
+ 'check1' => 'Check One',
+ 'check2' => 'Check Two',
+ 'check3' => 'Check Three',
+ )
+ ),
+ array(
+ 'name' => 'Test wysiwyg',
+ 'desc' => 'field description (optional)',
+ 'id' => $prefix . 'test_wysiwyg',
+ 'type' => 'wysiwyg'
+ ),
+ array(
+ 'name' => 'Test Image',
+ 'desc' => 'Upload an image or enter an URL.',
+ 'id' => $prefix . 'test_image',
+ 'type' => 'file'
+ ),
+ )
+);
+
+require_once('metabox/init.php');
@@ -0,0 +1,89 @@
+K 25
+svn:wc:ra_dav:version-url
+V 71
+/jaredatch/WordPressCRM/svn/!svn/ver/3/twentyten-crm/lib/metabox/images
+END
+ui-icons_2e83ff_256x240.png
+K 25
+svn:wc:ra_dav:version-url
+V 99
+/jaredatch/WordPressCRM/svn/!svn/ver/3/twentyten-crm/lib/metabox/images/ui-icons_2e83ff_256x240.png
+END
+ui-bg_glass_95_fef1ec_1x400.png
+K 25
+svn:wc:ra_dav:version-url
+V 103
+/jaredatch/WordPressCRM/svn/!svn/ver/3/twentyten-crm/lib/metabox/images/ui-bg_glass_95_fef1ec_1x400.png
+END
+ui-icons_888888_256x240.png
+K 25
+svn:wc:ra_dav:version-url
+V 99
+/jaredatch/WordPressCRM/svn/!svn/ver/3/twentyten-crm/lib/metabox/images/ui-icons_888888_256x240.png
+END
+ui-bg_glass_55_fbf9ee_1x400.png
+K 25
+svn:wc:ra_dav:version-url
+V 103
+/jaredatch/WordPressCRM/svn/!svn/ver/3/twentyten-crm/lib/metabox/images/ui-bg_glass_55_fbf9ee_1x400.png
+END
+ui-bg_glass_75_dadada_1x400.png
+K 25
+svn:wc:ra_dav:version-url
+V 103
+/jaredatch/WordPressCRM/svn/!svn/ver/3/twentyten-crm/lib/metabox/images/ui-bg_glass_75_dadada_1x400.png
+END
+ui-bg_flat_75_ffffff_40x100.png
+K 25
+svn:wc:ra_dav:version-url
+V 103
+/jaredatch/WordPressCRM/svn/!svn/ver/3/twentyten-crm/lib/metabox/images/ui-bg_flat_75_ffffff_40x100.png
+END
+ui-bg_glass_75_e6e6e6_1x400.png
+K 25
+svn:wc:ra_dav:version-url
+V 103
+/jaredatch/WordPressCRM/svn/!svn/ver/3/twentyten-crm/lib/metabox/images/ui-bg_glass_75_e6e6e6_1x400.png
+END
+ui-bg_glass_65_ffffff_1x400.png
+K 25
+svn:wc:ra_dav:version-url
+V 103
+/jaredatch/WordPressCRM/svn/!svn/ver/3/twentyten-crm/lib/metabox/images/ui-bg_glass_65_ffffff_1x400.png
+END
+ui-bg_highlight-soft_75_cccccc_1x100.png
+K 25
+svn:wc:ra_dav:version-url
+V 112
+/jaredatch/WordPressCRM/svn/!svn/ver/3/twentyten-crm/lib/metabox/images/ui-bg_highlight-soft_75_cccccc_1x100.png
+END
+ui-icons_cd0a0a_256x240.png
+K 25
+svn:wc:ra_dav:version-url
+V 99
+/jaredatch/WordPressCRM/svn/!svn/ver/3/twentyten-crm/lib/metabox/images/ui-icons_cd0a0a_256x240.png
+END
+ui-bg_flat_0_aaaaaa_40x100.png
+K 25
+svn:wc:ra_dav:version-url
+V 102
+/jaredatch/WordPressCRM/svn/!svn/ver/3/twentyten-crm/lib/metabox/images/ui-bg_flat_0_aaaaaa_40x100.png
+END
+ico-delete.png
+K 25
+svn:wc:ra_dav:version-url
+V 86
+/jaredatch/WordPressCRM/svn/!svn/ver/3/twentyten-crm/lib/metabox/images/ico-delete.png
+END
+ui-icons_454545_256x240.png
+K 25
+svn:wc:ra_dav:version-url
+V 99
+/jaredatch/WordPressCRM/svn/!svn/ver/3/twentyten-crm/lib/metabox/images/ui-icons_454545_256x240.png
+END
+ui-icons_222222_256x240.png
+K 25
+svn:wc:ra_dav:version-url
+V 99
+/jaredatch/WordPressCRM/svn/!svn/ver/3/twentyten-crm/lib/metabox/images/ui-icons_222222_256x240.png
+END
Oops, something went wrong.

0 comments on commit cfd80fc

Please sign in to comment.