Plugin Directory

Changeset 1216266


Ignore:
Timestamp:
08/09/2015 11:00:10 AM (11 years ago)
Author:
aghajoon
Message:

Fixed css update now Bp-cover.php

Location:
bp-cover/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • bp-cover/trunk/bp-cover.php

    r1214608 r1216266  
    44Plugin URI: http://webcaffe.ir
    55Description: Adds cover image in profile page and groups buddypress.
    6 Version: 2.1.3
     6Version: 2.1.3.1
    77Author: asghar hatampoor
    88Author URI: http://webcaffe.ir
     
    1313
    1414if ( !defined( 'BPCO_PLUGIN_VERSION' ) )
    15     define( 'BPCO_PLUGIN_VERSION', '2.1.3' );
     15    define( 'BPCO_PLUGIN_VERSION', '2.1.3.1' );
    1616
    1717if ( !defined( 'BPCO_PLUGIN_DIRNAME' ) )
     
    7777   $attachment_id = bp_activity_get_meta( $activity_id, 'bp_cover_activity', true );
    7878   $fileurl = wp_get_attachment_image_src( $attachment_id ,'full');
    79         update_user_meta($user_id,'bp_cover',$fileurl[0]);       
     79        update_user_meta($user_id,'bp_cover',$fileurl[0]);
     80        update_user_meta($user_id,'bp_cover_height',$fileurl[2]); 
    8081        delete_user_meta($user_id,'bp_cover_position');
    8182}
  • bp-cover/trunk/css/bp-cover.css

    r1214608 r1216266  
    106106
    107107}
     108
    108109.image-cover{
    109      width: 100%;
    110      position: relative;             
    111      background-repeat: no-repeat;
    112      background-position: center;
    113      background-size: cover;
    114      min-height: 300px; 
    115     background-image: url("../images/bg-profile.jpg");
     110     position: relative;   
     111     background-repeat: no-repeat; 
     112     background-size:cover;
     113     background-position: center center ;     
     114     background-image: url("../images/bg-profile.jpg");
     115     height:300px;
    116116}
    117117
  • bp-cover/trunk/readme.txt

    r1214608 r1216266  
    11=== BuddyPress Cover ===
    2 Contributors: aghajoon
     2Contributors: aghajoon ,mahdiar
    33Donate link: https://www.okpay.com/process.html?ok_receiver=OK618585115&ok_item_1_name=bp-cover&ok_currency=EUR&ok_item_1_type=donation
    44Tags: BuddyPress, activity, avatar, cover, members, default avatar ,group ,cover gorup ,upload
    55Requires at least: 4.2
    66Tested up to: 4.2
    7 Stable tag: 2.1.3
     7Stable tag: 2.1.3.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5151
    5252== Changelog ==
     53= 2.1.3.1 =
     54- fixed  css
    5355
    5456= 2.1.3 =
  • bp-cover/trunk/templates/default/css/style.css

    r1214608 r1216266  
    4040.panel .image-upload-container img{
    4141        min-height: 300px!important ;
    42         min-width:100%!important;       
     42        min-width:100%!important;
     43    vertical-align: middle;
    4344    }
    4445/* If the browser window is 800px */
     
    5455        position:absolute;
    5556   
     57    }
     58    .panel .image-upload-container img{
     59
     60    vertical-align: middle;
    5661    }
    5762    .image-upload-buttons #profilefileupload{
  • bp-cover/trunk/templates/default/theme.php

    r1214608 r1216266  
    2424     $author_id =  get_current_user_id();
    2525     $pos=get_user_meta($user_id, 'bp_cover_position', true);
     26     $height=get_user_meta($user_id, 'bp_cover_height', true);
    2627     $cover_profile = get_option( 'bp_cover_profile' );
    2728     $filter = '<input id="id"  name="id"  type="hidden" >
     
    3334             top:'.$pos.'px;
    3435             background-image: url("'.$image.'")!important;
    35              min-height: 800px!important;
     36             min-height:'.$height.'px!important;
     37               
     38           
    3639             }
    3740    </style>'; 
    38      $filter .= '<div class="image-upload-container">
    39                  <div class="image-cover img-profile-header-background"></div>         
     41     $filter .= '<div class="image-upload-container">   
     42                 <div class="image-cover img-profile-header-background"></div>             
    4043                 <div id="bpci-polaroid-upload-banner"></div><div id="profile-mass">'.__("Drag cover", "bp-cover").'</div> <div id="mass-drag">'.__("Position saved", "bp-cover").'</div></div> ';
    4144        }else{
     
    4851             }
    4952    </style>
    50                  <div class="image-cover img-profile-header-background"></div> ';
     53                 <div class="image-cover img-profile-header-background"></div></div> ';
    5154        }else{
    5255     $filter .= '<div class="image-upload-container">
    5356                 <div id="bpci-polaroid-upload-banner"> </div>
    54                  <div class="image-cover img-profile-header-background"></div>  '; 
     57                 <div class="image-cover img-profile-header-background"></div>  </div>';   
    5558            }
    5659        }
  • bp-cover/trunk/templates/mani/css/style.css

    r1214608 r1216266  
    5353        margin-left:-50px;
    5454    }
    55        
     55
    5656}
    5757/* If the browser window is 600px */
     
    7373        height: 120px!important ;
    7474    }
     75
    7576}
    7677/* If the browser window is 400px  */
     
    133134}
    134135.profile-user-photo-container {
    135     width:140px;
     136    width:150px;
    136137    top:25%;
    137138    border-radius: 100px;
  • bp-cover/trunk/templates/mani/theme.php

    r1214608 r1216266  
    2424     $author_id =  get_current_user_id();
    2525     $pos=get_user_meta($user_id, 'bp_cover_position', true);
     26     $height=get_user_meta($user_id, 'bp_cover_height', true);
    2627     $cover_profile = get_option( 'bp_cover_profile' );
    2728     $filter = '<input id="id"  name="id"  type="hidden" >
     
    3435             top:'.$pos.'px;
    3536             background-image: url("'.$image.'")!important;
    36              min-height: 800px!important;
     37             min-height:'.$height.'px!important;
    3738             }
    3839    </style>'; 
     
    4950             }
    5051    </style>
    51                  <div class="image-cover img-profile-header-background"></div> ';
     52                 <div class="image-cover img-profile-header-background"></div></div> ';
    5253        }else{
    5354     $filter .= '<div class="image-upload-container">
    5455                 <div id="bpci-polaroid-upload-banner"> </div>
    55                  <div class="image-cover img-profile-header-background"></div>  '; 
     56                 <div class="image-cover img-profile-header-background"></div></div>    '; 
    5657            }
    5758        }
     
    7879            $filter .= ' </div></div>';         
    7980            } 
    80             $filter .= '</div><div class="image-upload profile-user-photo-container ava" ><div id="bpci-polaroid-upload-avatar"> </div>';               
     81            $filter .= '<div class="image-upload profile-user-photo-container ava" ><div id="bpci-polaroid-upload-avatar"> </div>';             
    8182            $filter .= $avatar ;
    8283            if ($user_id == $author_id){
     
    9091                </div> ';               
    9192            }
    92             $filter .= '</div></div>';
     93            $filter .= '</div></div></div>';
    9394           
    9495         echo apply_filters( 'cover_image_scr',$filter);
Note: See TracChangeset for help on using the changeset viewer.