Changeset 1216266
- Timestamp:
- 08/09/2015 11:00:10 AM (11 years ago)
- Location:
- bp-cover/trunk
- Files:
-
- 7 edited
-
bp-cover.php (modified) (3 diffs)
-
css/bp-cover.css (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
templates/default/css/style.css (modified) (2 diffs)
-
templates/default/theme.php (modified) (3 diffs)
-
templates/mani/css/style.css (modified) (3 diffs)
-
templates/mani/theme.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bp-cover/trunk/bp-cover.php
r1214608 r1216266 4 4 Plugin URI: http://webcaffe.ir 5 5 Description: Adds cover image in profile page and groups buddypress. 6 Version: 2.1.3 6 Version: 2.1.3.1 7 7 Author: asghar hatampoor 8 8 Author URI: http://webcaffe.ir … … 13 13 14 14 if ( !defined( 'BPCO_PLUGIN_VERSION' ) ) 15 define( 'BPCO_PLUGIN_VERSION', '2.1.3 ' );15 define( 'BPCO_PLUGIN_VERSION', '2.1.3.1' ); 16 16 17 17 if ( !defined( 'BPCO_PLUGIN_DIRNAME' ) ) … … 77 77 $attachment_id = bp_activity_get_meta( $activity_id, 'bp_cover_activity', true ); 78 78 $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]); 80 81 delete_user_meta($user_id,'bp_cover_position'); 81 82 } -
bp-cover/trunk/css/bp-cover.css
r1214608 r1216266 106 106 107 107 } 108 108 109 .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; 116 116 } 117 117 -
bp-cover/trunk/readme.txt
r1214608 r1216266 1 1 === BuddyPress Cover === 2 Contributors: aghajoon 2 Contributors: aghajoon ,mahdiar 3 3 Donate link: https://www.okpay.com/process.html?ok_receiver=OK618585115&ok_item_1_name=bp-cover&ok_currency=EUR&ok_item_1_type=donation 4 4 Tags: BuddyPress, activity, avatar, cover, members, default avatar ,group ,cover gorup ,upload 5 5 Requires at least: 4.2 6 6 Tested up to: 4.2 7 Stable tag: 2.1.3 7 Stable tag: 2.1.3.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 51 51 52 52 == Changelog == 53 = 2.1.3.1 = 54 - fixed css 53 55 54 56 = 2.1.3 = -
bp-cover/trunk/templates/default/css/style.css
r1214608 r1216266 40 40 .panel .image-upload-container img{ 41 41 min-height: 300px!important ; 42 min-width:100%!important; 42 min-width:100%!important; 43 vertical-align: middle; 43 44 } 44 45 /* If the browser window is 800px */ … … 54 55 position:absolute; 55 56 57 } 58 .panel .image-upload-container img{ 59 60 vertical-align: middle; 56 61 } 57 62 .image-upload-buttons #profilefileupload{ -
bp-cover/trunk/templates/default/theme.php
r1214608 r1216266 24 24 $author_id = get_current_user_id(); 25 25 $pos=get_user_meta($user_id, 'bp_cover_position', true); 26 $height=get_user_meta($user_id, 'bp_cover_height', true); 26 27 $cover_profile = get_option( 'bp_cover_profile' ); 27 28 $filter = '<input id="id" name="id" type="hidden" > … … 33 34 top:'.$pos.'px; 34 35 background-image: url("'.$image.'")!important; 35 min-height: 800px!important; 36 min-height:'.$height.'px!important; 37 38 36 39 } 37 40 </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> 40 43 <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> '; 41 44 }else{ … … 48 51 } 49 52 </style> 50 <div class="image-cover img-profile-header-background"></div> ';53 <div class="image-cover img-profile-header-background"></div></div> '; 51 54 }else{ 52 55 $filter .= '<div class="image-upload-container"> 53 56 <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>'; 55 58 } 56 59 } -
bp-cover/trunk/templates/mani/css/style.css
r1214608 r1216266 53 53 margin-left:-50px; 54 54 } 55 55 56 56 } 57 57 /* If the browser window is 600px */ … … 73 73 height: 120px!important ; 74 74 } 75 75 76 } 76 77 /* If the browser window is 400px */ … … 133 134 } 134 135 .profile-user-photo-container { 135 width:1 40px;136 width:150px; 136 137 top:25%; 137 138 border-radius: 100px; -
bp-cover/trunk/templates/mani/theme.php
r1214608 r1216266 24 24 $author_id = get_current_user_id(); 25 25 $pos=get_user_meta($user_id, 'bp_cover_position', true); 26 $height=get_user_meta($user_id, 'bp_cover_height', true); 26 27 $cover_profile = get_option( 'bp_cover_profile' ); 27 28 $filter = '<input id="id" name="id" type="hidden" > … … 34 35 top:'.$pos.'px; 35 36 background-image: url("'.$image.'")!important; 36 min-height: 800px!important;37 min-height:'.$height.'px!important; 37 38 } 38 39 </style>'; … … 49 50 } 50 51 </style> 51 <div class="image-cover img-profile-header-background"></div> ';52 <div class="image-cover img-profile-header-background"></div></div> '; 52 53 }else{ 53 54 $filter .= '<div class="image-upload-container"> 54 55 <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> '; 56 57 } 57 58 } … … 78 79 $filter .= ' </div></div>'; 79 80 } 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>'; 81 82 $filter .= $avatar ; 82 83 if ($user_id == $author_id){ … … 90 91 </div> '; 91 92 } 92 $filter .= '</div></div> ';93 $filter .= '</div></div></div>'; 93 94 94 95 echo apply_filters( 'cover_image_scr',$filter);
Note: See TracChangeset
for help on using the changeset viewer.