Plugin Directory

Changeset 2952641


Ignore:
Timestamp:
08/12/2023 12:26:33 PM (2 years ago)
Author:
arafatjamil01
Message:

v-1.0.4 Vendor registration API, social vendor & customer registration API added, media upload API enhanced

Location:
acnoo-flutter-api/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • acnoo-flutter-api/trunk/acnoo-flutter-api.php

    r2942088 r2952641  
    44 * Plugin URI: https://wordpress.org/plugins/acnoo-flutter-api
    55 * Description: The Acnoo Flutter API Plugin which is used for REST API configurations of mobile apps created by Acnoo.
    6  * Version: 1.0.3
     6 * Version: 1.0.4
    77 * Author: Acnoo
    88 * Author URI: https://profiles.wordpress.org/acnoo/
     
    1414// Media Upload.
    1515require plugin_dir_path( __FILE__ ) . 'includes/api-handlers/media-upload.php';
     16require plugin_dir_path( __FILE__ ) . 'includes/api-handlers/acnoo-vendor-api.php';
    1617
    1718// Flutter API.
  • acnoo-flutter-api/trunk/includes/api-handlers/media-upload.php

    r2942088 r2952641  
    2222    }
    2323
    24     function media_permission_callback($request) {
    25         $cookie = $request->get_header( 'User-Cookie' );
    26         if ( isset( $cookie ) && $cookie != null ) {
    27             $user_id = validateCookieLogin( $cookie );
    28             if ( is_wp_error( $user_id ) ) {
    29                 return $user_id;
    30             }
    31             wp_set_current_user( $user_id );
    32         }
    33 
    34         return current_user_can( 'driver' ) || current_user_can( 'upload_files' );
     24    function media_permission_callback() {
     25        return current_user_can( 'upload_files' );
    3526    }
    3627
  • acnoo-flutter-api/trunk/includes/flutter-api/assets/css/afa-admin.css

    r2942088 r2952641  
    141141    display:none;
    142142}
     143
     144/* Verification, Purchase code */
     145.afa-verification p{
     146    font-size: 18px;
     147}
     148
     149.afa-verification ol li{
     150    font-size: 17px;
     151    margin-bottom: 12px;
     152}
     153
     154.afa-verification h3{
     155    font-size: 20px;
     156}
     157
     158.afa-verification .afa-card{
     159    background-color: #fff;
     160    padding: 15px;
     161    margin-bottom: 30px;
     162    margin-top: 30px;
     163    border-radius: 5px;
     164}
     165
     166.afa-verification p a{
     167    text-decoration: none;
     168    background: #df1bf5;
     169    color: #fff;
     170    padding: 5px 15px;
     171    border-radius: 4px;
     172}
     173
     174.afa-verification-form input[type='text']{
     175    width: 100%;
     176    height: 40px;
     177    margin-bottom: 20px;
     178    font-size: 18px;
     179}
     180
     181.afa-verification-form input[type='submit']{
     182    background-color: #df1bf5;
     183    color: #fff;
     184    padding: 10px 15px;
     185    border-radius: 4px;
     186    border: 0;
     187    cursor: pointer;
     188    font-size: 16px;
     189    font-weight: 600;
     190}
  • acnoo-flutter-api/trunk/includes/flutter-api/controllers/maan-flutter-user.php

    r2930677 r2952641  
    871871        $fields       = 'id,name,first_name,last_name,email';
    872872        $enable_ssl   = true;
    873         $access_token = $request['access_token'];
     873        $access_token = sanitize_text_field( $request['access_token'] );
    874874        if ( ! isset( $access_token ) ) {
    875875            return parent::sendError( 'invalid_login', "You must include a 'access_token' variable. Get the valid access_token for this app from Facebook API.", 400 );
     
    12001200        }
    12011201
    1202         // TODO: Make use of url here.
    12031202        if ( isset( $params->avatar ) ) {
    12041203            $count = 1;
  • acnoo-flutter-api/trunk/includes/flutter-api/templates/afa-admin-page.php

    r2930677 r2952641  
    99    <h1><?php echo esc_html( get_admin_page_title() ); ?></h1> <br/>
    1010    <?php
     11    // if ( get_option( 'acnoo_themeforet_activation' ) ) {
     12    //  echo load_template( dirname( __FILE__ ) . '/admin/afa-admin-navigation.php' );
     13    // } else {
     14    //  echo load_template( dirname( __FILE__ ) . '/admin/afa-admin-activation.php' );
     15    // }
     16
    1117    echo load_template( dirname( __FILE__ ) . '/admin/afa-admin-navigation.php' );
     18
    1219    ?>
    1320</div>
  • acnoo-flutter-api/trunk/readme.txt

    r2942088 r2952641  
    33Tags:              acnoo, rest, api, maanstore, maantheme, react-native, flutter, ios, android
    44Requires at least: 5.0
    5 Tested up to:      6.2.2
    6 Stable tag:        1.0.3
     5Tested up to:      6.3
     6Stable tag:        1.0.4
    77License:           GPL-2.0
    88License URI:       https://www.gnu.org/licenses/gpl-2.0.html
     
    4141- Sending push notifications using Firebase, using device token.
    4242- Automatic push notification sending when order status is changed, e.g - processing to out for delivery.
     43- Dokan vendor registration from mobile app.
     44- Vendor and Customer social login using Google, Facebook account.
    4345
    4446More of our features are coming soon. We are working actively on all our products, including flutter apps, WordPress plugins etc.
     
    5759
    5860== Changelog ==
     61= 1.0.4 (August 12, 2023) =
     62 * **new:** Dokan vendor registration
     63 * **new:** Dokan vendor and customer registration using facebook and google sign up
     64 * **enhancement:** Media upload API
    5965
    6066= 1.0.3 (July 23, 2023) =
Note: See TracChangeset for help on using the changeset viewer.