Plugin Directory

Changeset 2315965


Ignore:
Timestamp:
06/01/2020 03:57:20 PM (6 years ago)
Author:
XpertOne
Message:

Gwangi theme compatibility.

Location:
match-me-for-buddypress/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • match-me-for-buddypress/trunk/class-mp-bp-match.php

    r2313776 r2315965  
    114114                        $intersect = array_intersect((array)$field1,(array)$field2);
    115115                        if ( count($intersect) >= 1 ) {
     116                            $field_percentage_value = absint($field_percentage_value);
    116117                            $percentage += $field_percentage_value;
    117118                        }
     
    119120
    120121            }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);
    122124                $percentage += $field_percentage_value;
    123125            }
  • match-me-for-buddypress/trunk/mp-settings.php

    r1945136 r2315965  
    117117
    118118    function plugin_page() {
    119         echo '<div class="wrap">';
     119        echo '<div class="wrap mp-container">';
    120120
     121        echo "<div class='mp-settings-content'>";
     122
     123        echo "<h1> Match me for BuddyPress by MeshPros </h1>";
    121124        $this->settings_api->show_navigation();
    122125        $this->settings_api->show_forms();
     126       
     127        echo "</div>";
     128       
    123129
    124130        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        ";
    125167    }
    126168
Note: See TracChangeset for help on using the changeset viewer.