Changeset 1593841
- Timestamp:
- 02/11/2017 12:59:26 PM (9 years ago)
- Location:
- bim-ba/trunk
- Files:
-
- 3 edited
-
bim-ba.php (modified) (4 diffs)
-
lib/3d-ambient.php (modified) (7 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bim-ba/trunk/bim-ba.php
r1593599 r1593841 3 3 Plugin Name: BIM-ba 4 4 Plugin URI: http://www.andywar.net/wordpress-plugins/bim-ba/ 5 Description: A very basic BuildingInformation Modeling6 Version: 2.1. 05 Description: A very basic Information Modeling 6 Version: 2.1.1 7 7 Author: andywar65 8 8 Author URI: http://www.andywar.net/ … … 54 54 */ 55 55 56 define('BIMBA_PLUGIN_VERSION', '2.1. 0');56 define('BIMBA_PLUGIN_VERSION', '2.1.1'); 57 57 define('BIMBA_PLUGIN_SLUG', 'bim-ba'); 58 58 … … 247 247 'menu_position' => 100, 248 248 'supports' => array( 'title', 'editor', 'content', 'thumbnail', 'page-attributes', 'comments', 'author' ), 249 'menu_icon' => 'dashicons- building'249 'menu_icon' => 'dashicons-layout' 250 250 ); 251 251 … … 281 281 'supports' => array( 'title', 'editor', 'content', 'thumbnail', 'page-attributes', 'comments', 'author' ), 282 282 'taxonomies' => array( 'material_category' , ), 283 //'menu_icon' => 'dashicons- building'283 //'menu_icon' => 'dashicons-layout' 284 284 ); 285 285 -
bim-ba/trunk/lib/3d-ambient.php
r1593599 r1593841 9 9 function bimba_3d_ambient_render_in_the_content_filter( $content ){ 10 10 11 if ( get_post_type() == 'bimba_3d_ambient' ){//it works only for bimba_3d_ambient cpt11 if ( get_post_type() == 'bimba_3d_ambient' AND ! post_password_required() ){//it works only for bimba_3d_ambient cpt TODO AND post_password_required() AND ! get_post_status() == 'private' 12 12 //starts rendering scene and assets 13 13 $content .= '<a-scene style="width: 100%; height: 500px" embedded> … … 420 420 $wall_height = $height - $sk_height; 421 421 $wall_y = ( $height - $sk_height ) / 2 + $sk_height; 422 $return .= bimba_plane_entity_render ( 'skirting', $room_name, $j, $wall_length, $sk_height,422 $return .= bimba_plane_entity_render_1_1( 'skirting', $room_name, $j, $wall_length, $sk_height, 423 423 '0', $sk_height / 2, '0', '0', '0', '0', $room_skirting_render ); 424 424 } … … 533 533 $wall_height = $height - $sk_height; 534 534 $wall_y = ( $height - $sk_height ) / 2 + $sk_height; 535 $return .= bimba_plane_entity_render ( 'skirting', $room_name, ( $j . '-ls' ) , $op_offset, $sk_height,535 $return .= bimba_plane_entity_render_1_1( 'skirting', $room_name, ( $j . '-ls' ) , $op_offset, $sk_height, 536 536 - ( $wall_length - $op_offset ) / 2 , $sk_height / 2 , '0', '0', '0', '0', $room_skirting_render ); 537 537 } … … 553 553 $wall_height = $height - $sk_height; 554 554 $wall_y = ( $height - $sk_height ) / 2 + $sk_height; 555 $return .= bimba_plane_entity_render ( 'skirting', $room_name, ( $j . '-rs' ) , $op_offset_right, $sk_height,555 $return .= bimba_plane_entity_render_1_1( 'skirting', $room_name, ( $j . '-rs' ) , $op_offset_right, $sk_height, 556 556 ( $wall_length - $op_offset_right ) / 2 , $sk_height / 2 , '0', '0', '0', '0', $room_skirting_render ); 557 557 } … … 595 595 $wall_height = $height - $sk_height; 596 596 $wall_y = ( $height - $sk_height ) / 2 + $sk_height; 597 $return .= bimba_plane_entity_render ( 'skirting', $room_name, ( $j . '-li' ) , $wall_depth, $sk_height,597 $return .= bimba_plane_entity_render_1_1( 'skirting', $room_name, ( $j . '-li' ) , $wall_depth, $sk_height, 598 598 - $wall_length / 2 + $op_offset , $sk_height / 2 , - $wall_depth / 2, '0', '90', '0', $room_skirting_render ); 599 599 } … … 613 613 $wall_height = $height - $sk_height; 614 614 $wall_y = ( $height - $sk_height ) / 2 + $sk_height; 615 $return .= bimba_plane_entity_render ( 'skirting', $room_name, ( $j . '-ri' ) , $wall_depth, $sk_height,615 $return .= bimba_plane_entity_render_1_1( 'skirting', $room_name, ( $j . '-ri' ) , $wall_depth, $sk_height, 616 616 $wall_length / 2 - $op_offset_right , $sk_height / 2 , - $wall_depth / 2, '0', '-90', '0', $room_skirting_render ); 617 617 } … … 650 650 $wall_height = $sill_height - $sk_sill_height; 651 651 $wall_y = ( $sill_height - $sk_sill_height ) / 2 + $sk_sill_height; 652 $return .= bimba_plane_entity_render ( 'skirting', $room_name, ( $j . '-sill' ) , $op_width , $sk_sill_height,652 $return .= bimba_plane_entity_render_1_1( 'skirting', $room_name, ( $j . '-sill' ) , $op_width , $sk_sill_height, 653 653 ( $op_offset + $op_width / 2 ) - $wall_length / 2 , $sk_sill_height / 2, - ( $wall_depth - $sill_depth ) , '0', '0', '0', $room_skirting_render ); 654 654 } -
bim-ba/trunk/readme.txt
r1593780 r1593841 5 5 Requires at least: 4.1 6 6 Tested up to: 4.7.2 7 Stable tag: 2.1. 07 Stable tag: 2.1.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 74 74 == Changelog == 75 75 76 = 2.1.1 = 77 * 3D ambient not visible for password protected posts. 78 76 79 = 2.1.0 = 77 80 * Colors are associated only to materials, not to single entities. … … 98 101 == Upgrade Notice == 99 102 103 = 2.1.1 = 104 * 3D ambient not visible for password protected posts. 105 100 106 = 2.1.0 = 101 107 * Important changes in color handling
Note: See TracChangeset
for help on using the changeset viewer.