'Video Content', 'pages' => array('page'), 'context' => 'normal', 'priority' => 'high', 'only_on' => array( 'template' => array( 'video-page-template.php' ), ), 'fields' => array( array( 'name' => 'video column 1', 'id' => $prefix . 'videocol1', 'type' => 'wysiwyg', 'desc' => 'Enter the video content (embed code from youtube)' ), array( 'name' => 'video column 1 description', 'id' => $prefix . 'videocoldesc1', 'type' => 'wysiwyg', 'desc' => 'Enter the video content (embed code from youtube)' ), array( 'name' => 'video column 2', 'id' => $prefix . 'videocol1', 'type' => 'wysiwyg', 'desc' => 'Enter the video content (embed code from youtube)' ), array( 'name' => 'video column 2 description', 'id' => $prefix . 'videocoldesc1', 'type' => 'wysiwyg', 'desc' => 'Enter the video content (embed code from youtube)' ), array( 'name' => 'video column 3', 'id' => $prefix . 'videocol1', 'type' => 'wysiwyg', 'desc' => 'Enter the video content (embed code from youtube)' ), array( 'name' => 'video column 3 description', 'id' => $prefix . 'videocoldesc1', 'type' => 'wysiwyg', 'desc' => 'Enter the video content (embed code from youtube)' ), array( 'name' => 'video column 4', 'id' => $prefix . 'videocol1', 'type' => 'wysiwyg', 'desc' => 'Enter the video content (embed code from youtube)' ), array( 'name' => 'video column 4 description', 'id' => $prefix . 'videocoldesc1', 'type' => 'wysiwyg', 'desc' => 'Enter the video content (embed code from youtube)' ), ) ); //meta stuffs $meta_boxes[] = array( 'title' => 'Link URL', 'pages' => array('boxouts','page-furniture'), 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'name' => 'video column 1', 'id' => $prefix . 'videocol1', 'type' => 'wysiwyg', 'desc' => 'Enter the video content (embed code from youtube)' ), array( 'name' => 'video column 1 description', 'id' => $prefix . 'videocoldesc1', 'type' => 'wysiwyg', 'desc' => 'Enter the video content (embed code from youtube)' ), array( 'name' => 'video column 2', 'id' => $prefix . 'videocol1', 'type' => 'wysiwyg', 'desc' => 'Enter the video content (embed code from youtube)' ), array( 'name' => 'video column 2 description', 'id' => $prefix . 'videocoldesc1', 'type' => 'wysiwyg', 'desc' => 'Enter the video content (embed code from youtube)' ), array( 'name' => 'video column 3', 'id' => $prefix . 'videocol1', 'type' => 'wysiwyg', 'desc' => 'Enter the video content (embed code from youtube)' ), array( 'name' => 'video column 3 description', 'id' => $prefix . 'videocoldesc1', 'type' => 'wysiwyg', 'desc' => 'Enter the video content (embed code from youtube)' ), array( 'name' => 'video column 4', 'id' => $prefix . 'videocol1', 'type' => 'wysiwyg', 'desc' => 'Enter the video content (embed code from youtube)' ), array( 'name' => 'video column 4 description', 'id' => $prefix . 'videocoldesc1', 'type' => 'wysiwyg', 'desc' => 'Enter the video content (embed code from youtube)' ), ) ); //meta stuffs $meta_boxes[] = array( 'title' => 'Playlists', 'pages' => array('videochannels'), 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'name' => 'playlist code', 'id' => $prefix . 'playlist', 'type' => 'text', 'desc' => 'Enter the playlist code' ), ) ); //meta stuffs $meta_boxes[] = array( 'title' => 'Extra Content', 'pages' => array('page','apprentices','employers','aboutus','videochannels','learning-resources'), 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'name' => 'anchor1header', 'id' => $prefix . 'anchor1header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor1', 'id' => $prefix . 'anchor1', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor2header', 'id' => $prefix . 'anchor2header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor2', 'id' => $prefix . 'anchor2', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor3header', 'id' => $prefix . 'anchor3header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor3', 'id' => $prefix . 'anchor3', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor4header', 'id' => $prefix . 'anchor4header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor4', 'id' => $prefix . 'anchor4', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor5header', 'id' => $prefix . 'anchor5header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor5', 'id' => $prefix . 'anchor5', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor6header', 'id' => $prefix . 'anchor6header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor6', 'id' => $prefix . 'anchor6', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor7header', 'id' => $prefix . 'anchor7header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor7', 'id' => $prefix . 'anchor7', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor8header', 'id' => $prefix . 'anchor8header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor8', 'id' => $prefix . 'anchor8', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor9header', 'id' => $prefix . 'anchor9header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor9', 'id' => $prefix . 'anchor9', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor10header', 'id' => $prefix . 'anchor10header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor10', 'id' => $prefix . 'anchor10', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor11header', 'id' => $prefix . 'anchor11header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor11', 'id' => $prefix . 'anchor11', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor12header', 'id' => $prefix . 'anchor12header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor12', 'id' => $prefix . 'anchor12', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor13header', 'id' => $prefix . 'anchor13header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor13', 'id' => $prefix . 'anchor13', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor14header', 'id' => $prefix . 'anchor14header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor14', 'id' => $prefix . 'anchor14', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor15header', 'id' => $prefix . 'anchor15header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor15', 'id' => $prefix . 'anchor15', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor16header', 'id' => $prefix . 'anchor16header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor16', 'id' => $prefix . 'anchor16', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor17header', 'id' => $prefix . 'anchor17header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor17', 'id' => $prefix . 'anchor17', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor18header', 'id' => $prefix . 'anchor18header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor18', 'id' => $prefix . 'anchor18', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor19header', 'id' => $prefix . 'anchor19header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor19', 'id' => $prefix . 'anchor19', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), array( 'name' => 'anchor20header', 'id' => $prefix . 'anchor20header', 'type' => 'text', 'desc' => 'Enter the sub menu title' ), array( 'name' => 'anchor20', 'id' => $prefix . 'anchor20', 'type' => 'wysiwyg', 'desc' => 'Enter the content to be automatically scrolled to' ), ) ); // meta stuffs $meta_boxes[] = array( 'title' => 'Job Detail', 'pages' => array('jobs'), 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'name' => 'Job ID', 'id' => $prefix . 'jobid', 'type' => 'text', 'desc' => 'Job ID' ), array( 'name' => 'Job Name', 'id' => $prefix . 'jobname', 'type' => 'text', 'desc' => 'Job Name' ), array( 'name' => 'Company Name', 'id' => $prefix . 'companyname', 'type' => 'text', 'desc' => 'Company Name' ), array( 'name' => 'Location', 'id' => $prefix . 'location', 'type' => 'text', 'desc' => 'Location' ), array( 'name' => 'City', 'id' => $prefix . 'city', 'type' => 'text', 'desc' => 'City' ) ,array( 'name' => 'State', 'id' => $prefix . 'state', 'type' => 'text', 'desc' => 'State' ) ,array( 'name' => 'Short Description', 'id' => $prefix . 'shortdescription', 'type' => 'wysiwyg', 'desc' => 'Short Description' ) ,array( 'name' => 'Long Description', 'id' => $prefix . 'longtdescription', 'type' => 'wysiwyg', 'desc' => 'Long Description' ) ,array( 'name' => 'Requirements', 'id' => $prefix . 'requirements', 'type' => 'wysiwyg', 'desc' => 'Requirements' ) ,array( 'name' => 'Salary', 'id' => $prefix . 'salary', 'type' => 'text', 'desc' => 'Salary' ) ) ); // meta stuffs $meta_boxes[] = array( 'title' => 'Questions and Answers', 'pages' => array('faqs'), 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'name' => 'Question', 'id' => $prefix . 'question', 'type' => 'wysiwyg', 'desc' => 'Question' ), array( 'name' => 'Answer', 'id' => $prefix . 'answer', 'type' => 'wysiwyg', 'desc' => 'Answer' ) ) ); // meta stuffs $meta_boxes[] = array( 'title' => 'Address Info', 'pages' => array('locations'), 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'name' => 'Address', 'id' => $prefix . 'address', 'type' => 'wysiwyg', 'desc' => 'Address' ), array( 'name' => 'Telephone', 'id' => $prefix . 'telephone', 'type' => 'text', 'desc' => 'Telephone' ), array( 'name' => 'Fax', 'id' => $prefix . 'fax', 'type' => 'text', 'desc' => 'Fax' ) ,array( 'name' => 'Email', 'id' => $prefix . 'email', 'type' => 'email', 'desc' => 'Email' ) ) ); // meta stuffs $meta_boxes[] = array( 'title' => 'Video Info', 'pages' => array('videos'), 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'name' => 'Video ID', 'id' => $prefix . 'videoid', 'type' => 'text', 'desc' => 'You Tube Video ID ie. G7z74BvLWUg' ), array( 'name' => 'Thumbnail Image', 'id' => $prefix . 'thumbnailimage', 'type' => 'image', 'desc' => 'Video Screenshot image - should be 220 x 120 pixels' ), array( 'name' => 'Video Description', 'id' => $prefix . 'videodescription', 'type' => 'wysiwyg', 'desc' => 'Video Description Text' ), ) ); function rw_register_meta_boxes() { global $meta_boxes; // Make sure there's no errors when the plugin is deactivated or during upgrade if ( !class_exists( 'RW_Meta_Box' ) ) return; foreach ( $meta_boxes as $meta_box ) { if(isset($meta_box['only_on']) && !rw_maybe_include($meta_box['only_on'])) continue; new RW_Meta_Box( $meta_box ); } } add_action( 'admin_init', 'rw_register_meta_boxes' ); /** * Check if meta boxes is included * * @return bool */ function rw_maybe_include($conditions) { // Include in back-end only if ( !defined( 'WP_ADMIN' ) || !WP_ADMIN ) return false; // Always include for ajax if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) return true; if ( isset( $_GET['post'] ) ) $post_id = $_GET['post']; elseif ( isset( $_POST['post_ID'] ) ) $post_id = $_POST['post_ID']; else $post_id = false; $post_id = (int) $post_id; foreach($conditions as $cond => $v){ //catch non-arrays too if(!is_array($v)) $v = array($v); switch($cond){ case 'id': if ( in_array( $post_id, $v )) return true; break; case 'slug': $post = get_post($post_id); $post_slug = $post->post_name; if ( in_array( $post_slug, $v )) return true; break; case 'template': $template = get_post_meta( $post_id, '_wp_page_template', true ); if ( in_array( $template, $v ) ) return true; break; } } // If no condition matched return false; } _x('Quotations', 'post type general name'), 'singular_name' => _x('Quotation', 'post type singular name'), 'add_new' => _x('Add New', 'Quotation'), 'add_new_item' => __('Add New Quotation'), 'edit_item' => __('Edit Quotation'), 'new_item' => __('New Quotation'), 'view_item' => __('View Quotations'), 'search_items' => __('Search Quotations'), 'not_found' => __('No Quotations Found'), 'not_found_in_trash' => __('No Quotations found in Trash'), 'parent_item_colon' => '', 'menu_name' => 'Quotations', ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'query_var' => true, 'rewrite' => Array('slug'=>'quotations'), 'capability_type' => 'post', 'has_archive' => false, 'hierarchical' => true, 'menu_position' => 39, 'supports' => array('title','editor', 'excerpt','thumbnail', 'page-attributes', 'custom-fields','post-formats') ); register_post_type('quotations',$args); // Subjects $labels = array( 'name' => _x('Learning Resources', 'post type general name'), 'singular_name' => _x('Learning Resources', 'post type singular name'), 'add_new' => _x('Add New', 'Learning Resource'), 'add_new_item' => __('Add New Learning Resource'), 'edit_item' => __('Edit Learning Resource'), 'new_item' => __('New Learning Resource'), 'view_item' => __('View Learning Resources'), 'search_items' => __('Search Learning Resources'), 'not_found' => __('No Learning Resources Found'), 'not_found_in_trash' => __('No Learning Resources found in Trash'), 'parent_item_colon' => '', 'menu_name' => 'Learning Resources', ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'query_var' => true, 'rewrite' => Array('slug'=>'learning-resources'), 'capability_type' => 'post', 'has_archive' => false, 'hierarchical' => true, 'menu_position' => 40, 'supports' => array('title','editor', 'excerpt','thumbnail', 'page-attributes', 'custom-fields','post-formats') ); register_post_type('learningresources',$args); // Downloads $labels = array( 'name' => _x('Downloads', 'post type general name'), 'singular_name' => _x('Download', 'post type singular name'), 'add_new' => _x('Add New', 'Download'), 'add_new_item' => __('Add New Download'), 'edit_item' => __('Edit Download'), 'new_item' => __('New Download'), 'view_item' => __('View Downloads'), 'search_items' => __('Search Downloads'), 'not_found' => __('No Downloads Found'), 'not_found_in_trash' => __('No Downloads found in Trash'), 'parent_item_colon' => '', 'menu_name' => 'Downloads', ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'query_var' => true, 'rewrite' => Array('slug'=>'downloads'), 'capability_type' => 'post', 'has_archive' => false, 'hierarchical' => true, 'menu_position' => 41, 'supports' => array('title','editor', 'excerpt','thumbnail', 'page-attributes', 'custom-fields','post-formats') ); register_post_type('downloads',$args); // Video Channels $labels = array( 'name' => _x('Video Channels', 'post type general name'), 'singular_name' => _x('Video Channel', 'post type singular name'), 'add_new' => _x('Add New', 'Video Channel'), 'add_new_item' => __('Add New Video Channel'), 'edit_item' => __('Edit Video Channel'), 'new_item' => __('New Video Channel'), 'view_item' => __('View Video Channel'), 'search_items' => __('Search Video Channels'), 'not_found' => __('No Video Channels Found'), 'not_found_in_trash' => __('No Video Channels found in Trash'), 'parent_item_colon' => '', 'menu_name' => 'Video Channels', ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'query_var' => true, 'rewrite' => Array('slug'=>'video-channels'), 'capability_type' => 'post', 'has_archive' => false, 'hierarchical' => true, 'menu_position' => 42, 'supports' => array('title','editor', 'excerpt','thumbnail', 'page-attributes', 'custom-fields') ); register_post_type('videochannels',$args); // About Us $labels = array( 'name' => _x('About us', 'post type general name'), 'singular_name' => _x('About us', 'post type singular name'), 'add_new' => _x('Add New', 'About us Page'), 'add_new_item' => __('Add New About us Page'), 'edit_item' => __('Edit About us Page'), 'new_item' => __('New About us Page'), 'view_item' => __('View About us Page'), 'search_items' => __('Search About us Pages'), 'not_found' => __('No About us Pages found'), 'not_found_in_trash' => __('No About us Pages found in Trash'), 'parent_item_colon' => '', 'menu_name' => 'About us Pages', ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'query_var' => true, 'rewrite' => Array('slug'=>'about-us'), 'capability_type' => 'post', 'has_archive' => false, 'hierarchical' => true, 'menu_position' => 43, 'supports' => array('title','editor', 'excerpt','thumbnail', 'page-attributes', 'custom-fields') ); register_post_type('aboutus',$args); // Page Furniture Post Type $labels = array( 'name' => _x('Page furniture', 'post type general name'), 'singular_name' => _x('Page furnitures', 'post type singular name'), 'add_new' => _x('Add New', 'Page furniture'), 'add_new_item' => __('Add New Page furniture'), 'edit_item' => __('Edit Page furniture'), 'new_item' => __('New Page furniture'), 'view_item' => __('View Page furniture'), 'search_items' => __('Search Page furniture'), 'not_found' => __('No Page furniture found'), 'not_found_in_trash' => __('No Page furniture found in Trash'), 'parent_item_colon' => '', 'menu_name' => 'Page Furniture', ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => false, 'query_var' => true, 'rewrite' => Array('slug'=>'page-furniture'), 'capability_type' => 'post', 'has_archive' => true, 'hierarchical' => false, 'menu_position' => 44, 'supports' => array('title','editor', 'excerpt','thumbnail', 'page-attributes', 'custom-fields') ); register_post_type('page-furniture',$args); // Testimonial Post Type $labels = array( 'name' => _x('Testimonials', 'post type general name'), 'singular_name' => _x('Testimonial', 'post type singular name'), 'add_new' => _x('Add New', 'Testimonial'), 'add_new_item' => __('Add New Testimonial'), 'edit_item' => __('Edit Testimonial'), 'new_item' => __('New Testimonial'), 'view_item' => __('View Testimonial'), 'search_items' => __('Search Testimonials'), 'not_found' => __('No Testimonials found'), 'not_found_in_trash' => __('No Testimonials found in Trash'), 'parent_item_colon' => '', 'menu_name' => 'Testimonials' ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'query_var' => true, 'rewrite' => Array('slug'=>'testimonials'), 'capability_type' => 'post', 'has_archive' => true, 'hierarchical' => false, 'menu_position' => 45, 'supports' => array('title','editor','revisions', 'author','excerpt','thumbnail', 'page-attributes') ); register_post_type('testimonials',$args); // VIDEOS $labels = array( 'name' => _x('Videos', 'post type general name'), 'singular_name' => _x('Video', 'post type singular name'), 'add_new' => _x('Add New', 'Video'), 'add_new_item' => __('Add New Video'), 'edit_item' => __('Edit Video'), 'new_item' => __('New Video'), 'view_item' => __('View Videos'), 'search_items' => __('Search Videos'), 'not_found' => __('No Video'), 'not_found_in_trash' => __('No Video found in Trash'), 'parent_item_colon' => '', 'menu_name' => 'Videos', ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => false, 'query_var' => true, 'rewrite' => Array('slug'=>'videos'), 'capability_type' => 'post', 'has_archive' => true, 'hierarchical' => false, 'menu_position' => 46, 'supports' => array('title','revisions', 'author','excerpt','thumbnail', 'page-attributes') ); register_post_type('videos',$args); } true, 'show_ui' => true, 'public' => true, 'show_admin_column' => true, 'public' => true, 'label' => __('Learning Category'), 'show_in_nav_menus' => true, 'labels' => array( 'add_new_item' => 'Add New Learning Category' ), 'query_var' => true, ) ); register_taxonomy( 'video-category', array( 'videos' ), array( 'hierarchical' => true, 'show_ui' => true, 'public' => true, 'show_admin_column' => true, 'public' => true, 'label' => __('Video Category'), 'show_in_nav_menus' => true, 'labels' => array( 'add_new_item' => 'Add New Video Category' ), 'query_var' => true, ) ); register_taxonomy( 'testimonial-category', array( 'testimonials' ), array( 'hierarchical' => true, 'show_ui' => true, 'public' => true, 'show_admin_column' => true, 'public' => true, 'label' => __('Testimonial Category'), 'show_in_nav_menus' => false, 'labels' => array( 'add_new_item' => 'Add New Testimonial Category' ), 'query_var' => true, ) ); register_taxonomy( 'page-furniture-category', array( 'page-furniture' ), array( 'hierarchical' => true, 'show_ui' => true, 'public' => true, 'show_admin_column' => true, 'public' => true, 'label' => __('Page furniture Category'), 'show_in_nav_menus' => false, 'labels' => array( 'add_new_item' => 'Add New Page Furniture Category' ), 'query_var' => true, ) ); register_taxonomy( 'expertise-category', array( 'publications','industrysector','practicearea','people','expertise-area','experience-item','director' ), array( 'hierarchical' => true, 'show_ui' => true, 'public' => true, 'show_admin_column' => true, 'label' => __('Expertise Category'), 'show_in_nav_menus' => true, 'labels' => array( 'add_new_item' => 'Add New Expertise Category' ), 'query_var' => true, ) ); register_taxonomy( 'location', array( 'people','locations','director' ), array( 'hierarchical' => true, 'show_ui' => true, 'public' => true, 'show_admin_column' => true, 'label' => __('Location'), 'show_in_nav_menus' => true, 'labels' => array( 'add_new_item' => 'Add New Location' ), 'query_var' => true, ) ); register_taxonomy( 'teamrole', array( 'people','locations','director' ), array( 'hierarchical' => true, 'show_ui' => true, 'public' => true, 'show_admin_column' => true, 'label' => __('Team Role'), 'show_in_nav_menus' => true, 'labels' => array( 'add_new_item' => 'Add New Team Role' ), 'query_var' => true, ) ); register_taxonomy( 'state', array( 'people','locations','director' ), array( 'hierarchical' => true, 'show_ui' => true, 'public' => true, 'show_admin_column' => true, 'label' => __('State'), 'show_in_nav_menus' => true, 'labels' => array( 'add_new_item' => 'Add New State' ), 'query_var' => true, ) ); register_taxonomy( 'clientlogo-category', array( 'clientlogo' ), array( 'hierarchical' => true, 'show_ui' => true, 'public' => true, 'show_admin_column' => true, 'public' => true, 'label' => __('Client Logo Category'), 'show_in_nav_menus' => false, 'labels' => array( 'add_new_item' => 'Add New Client Logo Category' ), 'query_var' => true, ) );register_taxonomy( 'boxout-position', array( 'boxouts' ), array( 'hierarchical' => true, 'show_ui' => true, 'public' => true, 'show_admin_column' => true, 'public' => true, 'label' => __('Boxout Position'), 'show_in_nav_menus' => false, 'labels' => array( 'add_new_item' => 'Add New Boxout Position' ), 'query_var' => true, ) ); Folding and Knotting | Crystal Clear Mathematics
bannerabout
graemethin
bannerdive
graemethin2

Sign up to my Newsletter

EASIER THAN YOU THINK...
'; elseif(is_search('publications') ) : echo 'style="width:690px;margin-left:0px;">'; elseif (is_page(array('Testimonials','Quotations')) ) : echo 'style="margin:0px;">'; elseif(is_home()) : echo 'class="blogposts">'; else : echo'>'; endif; // ADD ENTRY TAG echo '
'; else : // EVERY OTHER PAGE echo'">'; endif; ?>

Folding and Knotting

A Raised Cube Array Folded from One Sheet of Paper Demonstrating Andrea Russo's Amazing Folding SkillsLittle do you realise, when you first fold a sheet of paper, just how far this skill can go!

I am not going to try to convert you to being a master at origami, or a talented paper artist, but I do want you to be inspired and to realise how interesting and creative the ‘simple’ art of paper folding can be.  There are many wonderful origami and artistic/architectural paper folding sites on the Internet, but let me encourage you to browse through images of Andrea Russo’s work. You might also like to visit his Flickr page and a selection of his work on Pinterest as well! He produces such brilliant work, much of which I would be more than happy to have on display in my home … and I hope you would, too.

The moment children start folding paper, they begin to learn and explore the notions of sides, of symmetry, of repeatability (iterations), of parity, and of reversibility (inverse operations) … and there are, no doubt, more things that I have not thought of.

Tying knots is a related skill, and skills such as knitting and macrame are, basically, ‘knot tying’ taken to a very high level indeed.  Every time you use knots for knitting, sewing, all forms of weaving, fishing, mountaineering, camping, etc. you are using mathematical skills.

 

Long Distance Flights

What child has not made a paper aeroplane?  I think, wherever there has been access to paper, such things have been made.  Perhaps, even in ancient Egypt, people who could afford papyrus experimented with making the sheets fly.

When I was at university, engineering students were (in)famous for using tiered lecture rooms to test out an incredible variety of paper aircraft and their flying properties!  I heard that some managed to make extraordinarily large gliders from double spreads of our largest newspapers, and that other were able to create aircraft that launched other aircraft during their gentle glide to the front of the lecture theatre.

Nowadays, making and flying paper planes has become a highly competitive skill.  You will find numerous websites and YouTube videos devoted to such things.  Some of them provide quite good templates or instructions as well.

On 26 February 2012, a new world distance record was set for level paper plane flight.  Former college football quarterback Joe Ayoob threw a paper plane 226 feet, 10 inches (about 63.35 metres)!  It flew almost the entire length of the hangar at McLellan Air Force Base near Sacramento, California (which is way over half the length of a football field!).

Watch the video of this world-record-breaking event!

The plane, however, was not folded or constructed by him. Joe Ayoob had the throwing skills, of course. The plane building skills, however, belonged to John Collins who has a YouTube channel devoted to sharing his very obvious talents and experience. He is known on YouTube as Paper Airplane Guy (what else?), so I encourage you to watch some of his videos and experiment with his designs. Make some planes and use different materials and see what you can do! Have a competition with friends.

Some people build gliders and throw them from high points to see how far they will fly. Especially in urban areas there are lots of opportunities for a plane to rise in thermals and updrafts next to buildings.  Some people on YouTube are claiming flight times of over nine minutes (which is entirely plausible in that environment) and I have seen continuously filmed flights of over three minutesIndoors, the world record is currently 29.2 seconds (held by Takuo Toda from Japan).

Now, before I sign off, I have three more things to share (and one of them involves a challenge!).

First, I want you to notice how careful John Collins and others are.  They strive to be neat and are careful about making very precise folds. This is because having your plane even a tiny bit lop-sided can make a big difference in how it flies!

Second, many years ago I learned to fly a wooden ruler by throwing it parallel to the ground (and to the line of flight), and spinning it backwards with my fingers as it left my hand.  It made a nice whirring sound (like a bull-roarer).  Years later, I saw someone fly a 'gliding wing' (which flies in much the same way) and I was entranced.  The video below is of John Collins making and flying one of my favourite paper aircraft.  Try to make your own and let me know if you can manage to fly it the length of your house.

If you listen carefully to John Collins' instructions (about how to make a gliding wing) you will find that he uses fractions quite a lot!

Finally, I wish to record a big thank you to Mr Hutley, my Fourth Grade teacher for making our lessons interesting.  I still remember that some lessons were set aside over a few days to cut out, assemble and glue paper aircraft.  When they were dry, we had more time set aside to have a flying competition in the classroom, to see whose plane could fly the furthest.  It was fun to see our own planes fly.  Such good lessons are not forgotten.  I also learned the value of neat and careful work!  Thank you, Mr Hutley.

Your videos are awesome! And I do like when you refer to “top students” to talk about their behavior because it’s very encouraging! Thank you for sharing the knowledge!
Guilherme S F (on a CCM YouTube video about Seven Aspects of a Balanced Lifestyle For Students

See all Testimonials

Sign up to my Newsletter

Copyright © Crystal Clear Mathematics | All Rights Reserved

Website Design: www.webdesignnsw.com.au | Photography: Katieriversphotography.com.au