Changeset 2315965
- Timestamp:
- 06/01/2020 03:57:20 PM (6 years ago)
- Location:
- match-me-for-buddypress/trunk
- Files:
-
- 2 edited
-
class-mp-bp-match.php (modified) (2 diffs)
-
mp-settings.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
match-me-for-buddypress/trunk/class-mp-bp-match.php
r2313776 r2315965 114 114 $intersect = array_intersect((array)$field1,(array)$field2); 115 115 if ( count($intersect) >= 1 ) { 116 $field_percentage_value = absint($field_percentage_value); 116 117 $percentage += $field_percentage_value; 117 118 } … … 119 120 120 121 }elseif (xprofile_get_field_data($fd_id,$user_logged_in) != '' && xprofile_get_field_data($fd_id,$user_logged_in) == xprofile_get_field_data($fd_id,$user_displayed) ){ 121 @$field_percentage_value = $percentage_class->get_option( "$key" ,'hmk_percentages' ); 122 $field_percentage_value = $percentage_class->get_option( "$key" ,'hmk_percentages' ); 123 $field_percentage_value = absint($field_percentage_value); 122 124 $percentage += $field_percentage_value; 123 125 } -
match-me-for-buddypress/trunk/mp-settings.php
r1945136 r2315965 117 117 118 118 function plugin_page() { 119 echo '<div class="wrap ">';119 echo '<div class="wrap mp-container">'; 120 120 121 echo "<div class='mp-settings-content'>"; 122 123 echo "<h1> Match me for BuddyPress by MeshPros </h1>"; 121 124 $this->settings_api->show_navigation(); 122 125 $this->settings_api->show_forms(); 126 127 echo "</div>"; 128 123 129 124 130 echo '</div>'; 131 132 echo " 133 134 <style> 135 136 .mp-settings-content{ 137 width: 70%; 138 display: inline-block; 139 } 140 141 .mp-settings-content h1{ 142 background: #23c388; 143 clear: both; 144 text-align: center; 145 color: #fff; 146 margin-right: 17px; 147 } 148 149 .mp-settings-sidebar { 150 width: 26%; 151 display: inline-block; 152 background: #eaeaeabd; 153 padding: 10px 20px; 154 } 155 156 .mp-container{ 157 background: #d2f7fd47; 158 padding: 10px 20px; 159 160 } 161 162 163 164 </style> 165 166 "; 125 167 } 126 168
Note: See TracChangeset
for help on using the changeset viewer.