Plugin Directory

Changeset 1593841


Ignore:
Timestamp:
02/11/2017 12:59:26 PM (9 years ago)
Author:
andywar65
Message:

commit version 2.1.1 for password protected posts

Location:
bim-ba/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • bim-ba/trunk/bim-ba.php

    r1593599 r1593841  
    33Plugin Name: BIM-ba
    44Plugin URI: http://www.andywar.net/wordpress-plugins/bim-ba/
    5 Description: A very basic Building Information Modeling
    6 Version: 2.1.0
     5Description: A very basic Information Modeling
     6Version: 2.1.1
    77Author: andywar65
    88Author URI: http://www.andywar.net/
     
    5454*/
    5555
    56 define('BIMBA_PLUGIN_VERSION', '2.1.0');
     56define('BIMBA_PLUGIN_VERSION', '2.1.1');
    5757define('BIMBA_PLUGIN_SLUG', 'bim-ba');
    5858
     
    247247            'menu_position' => 100,
    248248            'supports' => array( 'title', 'editor', 'content', 'thumbnail', 'page-attributes', 'comments', 'author' ),
    249             'menu_icon'   => 'dashicons-building'
     249            'menu_icon'   => 'dashicons-layout'
    250250    );
    251251
     
    281281            'supports' => array( 'title', 'editor', 'content', 'thumbnail', 'page-attributes', 'comments', 'author' ),
    282282            'taxonomies' => array( 'material_category' , ),
    283             //'menu_icon'   => 'dashicons-building'
     283            //'menu_icon'   => 'dashicons-layout'
    284284    );
    285285
  • bim-ba/trunk/lib/3d-ambient.php

    r1593599 r1593841  
    99function bimba_3d_ambient_render_in_the_content_filter( $content ){
    1010   
    11     if ( get_post_type() == 'bimba_3d_ambient'){//it works only for bimba_3d_ambient cpt
     11    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'
    1212        //starts rendering scene and assets
    1313        $content .= '<a-scene style="width: 100%; height: 500px" embedded>
     
    420420                        $wall_height = $height - $sk_height;
    421421                        $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,
    423423                                '0', $sk_height / 2, '0', '0', '0', '0', $room_skirting_render );
    424424                    }
     
    533533                            $wall_height = $height - $sk_height;
    534534                            $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,
    536536                                    - ( $wall_length - $op_offset ) / 2 , $sk_height / 2 , '0', '0', '0', '0', $room_skirting_render );
    537537                        }
     
    553553                            $wall_height = $height - $sk_height;
    554554                            $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,
    556556                                    ( $wall_length - $op_offset_right ) / 2 , $sk_height / 2 , '0', '0', '0', '0', $room_skirting_render );
    557557                        }
     
    595595                            $wall_height = $height - $sk_height;
    596596                            $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,
    598598                                    - $wall_length / 2 + $op_offset , $sk_height / 2 , - $wall_depth / 2, '0', '90', '0', $room_skirting_render );
    599599                        }
     
    613613                            $wall_height = $height - $sk_height;
    614614                            $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,
    616616                                    $wall_length / 2 - $op_offset_right , $sk_height / 2 , - $wall_depth / 2, '0', '-90', '0', $room_skirting_render );
    617617                        }
     
    650650                            $wall_height = $sill_height - $sk_sill_height;
    651651                            $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,
    653653                                    ( $op_offset + $op_width / 2 ) - $wall_length / 2 , $sk_sill_height / 2, - ( $wall_depth - $sill_depth ) , '0', '0', '0', $room_skirting_render );
    654654                        }
  • bim-ba/trunk/readme.txt

    r1593780 r1593841  
    55Requires at least: 4.1
    66Tested up to: 4.7.2
    7 Stable tag: 2.1.0
     7Stable tag: 2.1.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7474== Changelog ==
    7575
     76= 2.1.1 =
     77* 3D ambient not visible for password protected posts.
     78
    7679= 2.1.0 =
    7780* Colors are associated only to materials, not to single entities.
     
    98101== Upgrade Notice ==
    99102
     103= 2.1.1 =
     104* 3D ambient not visible for password protected posts.
     105
    100106= 2.1.0 =
    101107* Important changes in color handling
Note: See TracChangeset for help on using the changeset viewer.