Plugin Directory

Changeset 2604033


Ignore:
Timestamp:
09/24/2021 02:06:25 AM (5 years ago)
Author:
androidappbuilder
Message:

update WPRNE_Admin

Location:
mobile-app-editor
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • mobile-app-editor/tags/1.0.8/admin/class-wprne-admin.php

    r2604032 r2604033  
    1010 */
    1111// If this file is called directly, abort.
    12 if (!defined('ABSPATH')) {
     12if ( !defined( 'ABSPATH' ) ) {
    1313    exit;
    1414}
     
    3131     * @var      string    $WPRNE    The ID of this plugin.
    3232     */
    33     private  $WPRNE;
     33    private  $WPRNE ;
    3434    /**
    3535     * The version of this plugin.
     
    3939     * @var      string    $version    The current version of this plugin.
    4040     */
    41     private  $version;
     41    private  $version ;
    4242    /**
    4343     * Initialize the class and set its properties.
     
    4747     * @param      string    $version    The version of this plugin.
    4848     */
    49     public function __construct($WPRNE, $version)
     49    public function __construct( $WPRNE, $version )
    5050    {
    5151        $this->WPRNE = $WPRNE;
    5252        $this->version = $version;
    5353    }
    54 
     54   
    5555    /**
    5656     * Register the stylesheets for the admin area.
     
    6060    public function enqueue_styles()
    6161    {
    62         $page = (isset($_GET['page']) ? sanitize_text_field($_GET['page']) : "");
    63         if (empty($page) || $page !== 'app-editor') {
     62        $page = ( isset( $_GET['page'] ) ? sanitize_text_field( $_GET['page'] ) : "" );
     63        if ( empty($page) || $page !== 'app-editor' ) {
    6464            return;
    6565        }
     
    7979        );
    8080    }
    81 
     81   
    8282    /**
    8383     * Register the JavaScript for the admin area.
     
    8787    public function enqueue_scripts()
    8888    {
    89         global  $wprne_fs;
    90         if ($wprne_fs->is_activation_mode()) {
     89        global  $wprne_fs ;
     90        if ( $wprne_fs->is_activation_mode() ) {
    9191            return;
    9292        }
    93         $page = (isset($_GET['page']) ? sanitize_text_field($_GET['page']) : "");
    94         if (empty($page) || $page !== 'app-editor') {
     93        $page = ( isset( $_GET['page'] ) ? sanitize_text_field( $_GET['page'] ) : "" );
     94        if ( empty($page) || $page !== 'app-editor' ) {
    9595            return;
    9696        }
     
    119119            'editor-display-script',
    120120            WPRNE_PLUGIN_URL . '/assets/js/editor-display.js',
    121             array("jquery"),
     121            array( "jquery" ),
    122122            $this->version,
    123123            true
    124124        );
    125         $settings = get_option('wprne_settings', array());
    126         $woock = (!empty($settings['woock']) ? $settings['woock'] : '');
    127         $woocs = (!empty($settings['woocs']) ? $settings['woocs'] : '');
     125        $settings = get_option( 'wprne_settings', array() );
     126        $woock = ( !empty($settings['woock']) ? $settings['woock'] : '' );
     127        $woocs = ( !empty($settings['woocs']) ? $settings['woocs'] : '' );
    128128        $localize_data = array(
    129             'baseUrl'    => home_url('/'),
     129            'baseUrl'    => home_url( '/' ),
    130130            'pluginUrl'  => WPRNE_PLUGIN_URL,
    131131            'translate'  => self::get_translate(),
    132132            'ck'         => $woock,
    133133            'cs'         => $woocs,
    134             'nonce'      => wp_create_nonce('wp_rest'),
     134            'nonce'      => wp_create_nonce( 'wp_rest' ),
    135135            'upgradeUrl' => wprne_fs()->get_upgrade_url(),
    136136        );
    137 
    138         if (wprne_fs()->is__premium_only()) {
    139             $localize_data = array_merge($localize_data, array('pro' =>  wprne_fs()->can_use_premium_code()));
    140         }
    141 
    142         wp_localize_script('editor-script', 'wprneLocalize', $localize_data);
    143     }
    144 
     137        wp_localize_script( 'editor-script', 'wprneLocalize', $localize_data );
     138    }
     139   
    145140    /**
    146141     * Admin menu
     
    152147        add_menu_page(
    153148            'app-editor',
    154             __('Mobile App Editor', 'wprne'),
     149            __( 'Mobile App Editor', 'wprne' ),
    155150            'edit_others_posts',
    156151            'app-editor',
    157             array($this, 'wprne_menu_page'),
     152            array( $this, 'wprne_menu_page' ),
    158153            'dashicons-smartphone',
    159154            50
    160155        );
    161156    }
    162 
     157   
    163158    /**
    164159     * Publish post
     
    166161     * @since    1.0.0
    167162     */
    168     public function publish_post($ID, $post)
     163    public function publish_post( $ID, $post )
    169164    {
    170165        $post_id = $post->ID;
    171         $push_notif_sent = get_post_meta($post_id, 'wprne_push_notif_sent', true);
    172         $is_send_push = get_option("wprne_send_post_pushnotif");
    173         if ($is_send_push && empty($push_notif_sent) && !wp_is_post_revision($post_id)) {
    174             $tokens = get_option('wprne_push_notif_token', array());
    175             $title = get_the_title($post_id);
    176             $urlparts = parse_url(get_site_url());
    177             $domain = $urlparts["host"];
    178             $body = [];
    179             foreach ($tokens as $token => $value) {             
    180                 if($value){
    181                     $body[] = [
    182                         'to'  => $token,
    183                         'sound' => 'default',
    184                         'title' => $domain,
    185                         'body' => $title,
    186                         'priority' => 'high',
    187                     ];
    188                 }
     166        $push_notif_sent = get_post_meta( $post_id, 'wprne_push_notif_sent', true );
     167        $is_send_push = get_option( "wprne_send_post_pushnotif" );
     168       
     169        if ( $is_send_push && empty($push_notif_sent) && !wp_is_post_revision( $post_id ) ) {
     170            $tokens = get_option( 'wprne_push_notif_token', array() );
     171            $title = get_the_title( $post_id );
     172            $urlparts = parse_url( get_site_url() );
     173            $domain = $urlparts["host"];
     174            $body = [];
     175            foreach ( $tokens as $token => $value ) {
     176                if ( $value ) {
     177                    $body[] = [
     178                        'to'       => $token,
     179                        'sound'    => 'default',
     180                        'title'    => $domain,
     181                        'body'     => $title,
     182                        'priority' => 'high',
     183                    ];
     184                }
    189185            }
    190             $endpoint = 'https://exp.host/--/api/v2/push/send';
    191 
    192             $body = wp_json_encode($body);
    193 
    194             $options = [
    195                 'body'        => $body,
    196                 'headers'     => [
    197                     'Content-Type' => 'application/json',
    198                 ],
    199                 'timeout'     => 60,
    200                 'redirection' => 5,
    201                 'blocking'    => true,
    202                 'httpversion' => '1.0',
    203                 'sslverify'   => false,
    204                 'data_format' => 'body',
    205             ];
    206 
    207             $response = wp_remote_post($endpoint, $options);
    208 
    209             update_post_meta($post_id, 'wprne_push_notif_sent', true);
     186            $endpoint = 'https://exp.host/--/api/v2/push/send';
     187            $body = wp_json_encode( $body );
     188            $options = [
     189                'body'        => $body,
     190                'headers'     => [
     191                'Content-Type' => 'application/json',
     192            ],
     193                'timeout'     => 60,
     194                'redirection' => 5,
     195                'blocking'    => true,
     196                'httpversion' => '1.0',
     197                'sslverify'   => false,
     198                'data_format' => 'body',
     199            ];
     200            $response = wp_remote_post( $endpoint, $options );
     201            update_post_meta( $post_id, 'wprne_push_notif_sent', true );
    210202        }
    211     }
    212 
     203   
     204    }
     205   
    213206    /**
    214207     * Admin menu callback
     
    218211    public function wprne_menu_page()
    219212    {
    220 ?>
     213        ?>
    221214        <style>
    222215            #wpbody-content {
     
    229222                @font-face {
    230223                    font-family: 'MaterialIcons';
    231                     src: url(<?php
    232                                 echo  esc_url(WPRNE_PLUGIN_URL . '/assets/media/MaterialIcons.ttf');
    233                                 ?>) format('truetype');
     224                    src: url(<?php 
     225        echo  esc_url( WPRNE_PLUGIN_URL . '/assets/media/MaterialIcons.ttf' ) ;
     226        ?>) format('truetype');
    234227                }
    235228
    236229                @font-face {
    237230                    font-family: 'FontAwesome';
    238                     src: url(<?php
    239                                 echo  esc_url(WPRNE_PLUGIN_URL . '/assets/media/FontAwesome.ttf');
    240                                 ?>) format('truetype');
     231                    src: url(<?php 
     232        echo  esc_url( WPRNE_PLUGIN_URL . '/assets/media/FontAwesome.ttf' ) ;
     233        ?>) format('truetype');
    241234                }
    242235            </style>
    243236        </div>
    244 <?php
     237<?php
     238    }
     239   
     240    /**
     241     * Get all translatable word for script localize data.
     242     *
     243     * @since    1.0.0
     244     */
     245    public static function get_translate()
     246    {
     247        return array(
     248            'pluginTitle'          => __( 'Mobile App Editor', 'wprne' ),
     249            'apps'                 => __( 'Apps', 'wprne' ),
     250            'newApp'               => __( 'New App', 'wprne' ),
     251            'editApp'              => __( 'Edit app', 'wprne' ),
     252            'deleteApp'            => __( 'Delete app', 'wprne' ),
     253            'newAppTemplate'       => __( 'Create new app using this template', 'wprne' ),
     254            'createNewApp'         => __( 'Create New App', 'wprne' ),
     255            'appName'              => __( 'App name', 'wprne' ),
     256            'deleteAppConfirm'     => __( 'Are you sure to delete', 'wprne' ),
     257            'errorNewApp'          => __( 'Something went wrong trying to create new app"', 'wprne' ),
     258            'title'                => __( 'Title', 'wprne' ),
     259            'buttonType'           => __( 'Button Type', 'wprne' ),
     260            'font'                 => __( 'Font', 'wprne' ),
     261            'icon'                 => __( 'Icon', 'wprne' ),
     262            'fontSize'             => __( 'Font Size', 'wprne' ),
     263            'fontColor'            => __( 'Font Color', 'wprne' ),
     264            'iconSize'             => __( 'Icon Size', 'wprne' ),
     265            'iconColor'            => __( 'Icon Color', 'wprne' ),
     266            'onPressAction'        => __( 'On Press Action', 'wprne' ),
     267            'autoplay'             => __( 'Autoplay', 'wprne' ),
     268            'autoplayHint'         => __( 'Autoplay always disabled in builder mode', 'wprne' ),
     269            'dot'                  => __( 'Dot', 'wprne' ),
     270            'dotHint'              => __( 'Dot always enabled in builder mode', 'wprne' ),
     271            'enable'               => __( 'Enable', 'wprne' ),
     272            'delay'                => __( 'Delay (second)', 'wprne' ),
     273            'activeColor'          => __( 'Active Color', 'wprne' ),
     274            'productPreview'       => __( 'Product Preview', 'wprne' ),
     275            'addToCart'            => __( 'Add to Cart', 'wprne' ),
     276            'direction'            => __( 'Direction', 'wprne' ),
     277            'justify'              => __( 'Justify Content', 'wprne' ),
     278            'justifyHint'          => __( 'Align items along the main axis of their container', 'wprne' ),
     279            'alignItems'           => __( 'Align Items', 'wprne' ),
     280            'alignItemsHint'       => __( 'Align items along the cross axis of their container', 'wprne' ),
     281            'scrollable'           => __( 'Scrollable', 'wprne' ),
     282            'itemDirection'        => __( 'Item Direction', 'wprne' ),
     283            'showScroll'           => __( 'Show Scroll', 'wprne' ),
     284            'numColumns'           => __( 'Number of Column', 'wprne' ),
     285            'postType'             => __( 'Post Type', 'wprne' ),
     286            'postsCount'           => __( 'Posts Count', 'wprne' ),
     287            'category'             => __( 'Category', 'wprne' ),
     288            'order'                => __( 'Order', 'wprne' ),
     289            'orderby'              => __( 'Order By', 'wprne' ),
     290            'keyword'              => __( 'Keyword', 'wprne' ),
     291            'postQuery'            => __( 'Post Query', 'wprne' ),
     292            'changePostQuery'      => __( 'Change Post Query', 'wprne' ),
     293            'bestSeller    '       => __( 'Best Seller', 'wprne' ),
     294            'featured'             => __( 'Featured', 'wprne' ),
     295            'onSale'               => __( 'On Sale', 'wprne' ),
     296            'changeProductQuery'   => __( 'Change Product Query', 'wprne' ),
     297            'source'               => __( 'Source', 'wprne' ),
     298            'postContent'          => __( 'Post Content', 'wprne' ),
     299            'resizeMode'           => __( 'Resize Mode', 'wprne' ),
     300            'carouselSize'         => __( 'Carousel Size', 'wprne' ),
     301            'carouselSizeHint'     => __( 'Use fixed number or % (ex: 32, 50%)', 'wprne' ),
     302            'width'                => __( 'Width', 'wprne' ),
     303            'height'               => __( 'Height', 'wprne' ),
     304            'postPreview'          => __( 'Post Preview', 'wprne' ),
     305            'contentType'          => __( 'Content Type', 'wprne' ),
     306            'staticContent'        => __( 'Static Content', 'wprne' ),
     307            'htmlContent'          => __( 'Html Content', 'wprne' ),
     308            'asWebView'            => __( 'As Web View', 'wprne' ),
     309            'charLength'           => __( 'Character Length', 'wprne' ),
     310            'fontStyle'            => __( 'Font Style', 'wprne' ),
     311            'fontWeight'           => __( 'Font Weight', 'wprne' ),
     312            'textAlign'            => __( 'Text Align', 'wprne' ),
     313            'textTransform'        => __( 'Text Transform', 'wprne' ),
     314            'lineHeight'           => __( 'Line Height', 'wprne' ),
     315            'videoId'              => __( 'Video ID', 'wprne' ),
     316            'insertComponent'      => __( 'Insert selected component', 'wprne' ),
     317            'container'            => __( 'Container', 'wprne' ),
     318            'button'               => __( 'Button', 'wprne' ),
     319            'text'                 => __( 'Text', 'wprne' ),
     320            'image'                => __( 'Image', 'wprne' ),
     321            'carousel'             => __( 'Carousel', 'wprne' ),
     322            'gridPost'             => __( 'Grid Post', 'wprne' ),
     323            'allComponents'        => __( 'All Components', 'wprne' ),
     324            'moveUp"'              => __( 'move up', 'wprne' ),
     325            'moveDown'             => __( 'move down', 'wprne' ),
     326            'duplicate'            => __( 'duplicate', 'wprne' ),
     327            'delete'               => __( 'delete', 'wprne' ),
     328            'cut'                  => __( 'cut', 'wprne' ),
     329            'copy'                 => __( 'copy', 'wprne' ),
     330            'paste'                => __( 'paste', 'wprne' ),
     331            'saveToTemplate'       => __( 'save template', 'wprne' ),
     332            'saveTemplate'         => __( 'Save Template', 'wprne' ),
     333            'movedUpWarning'       => __( 'This component can\'t be moved up', 'wprne' ),
     334            'movedDownWarning'     => __( 'This component can\'t be moved down', 'wprne' ),
     335            'deletedWarning'       => __( 'This component can\'t be deleted', 'wprne' ),
     336            'duplicatedwarning'    => __( 'This component can\'t be duplicated', 'wprne' ),
     337            'savedWarning'         => __( 'This component can\'t be saved', 'wprne' ),
     338            'cutWarning'           => __( 'This component can\'t be cut', 'wprne' ),
     339            'copiedWarning'        => __( 'This component can\'t be copied', 'wprne' ),
     340            'pastedWarning'        => __( 'Component can only be inserted to a container', 'wprne' ),
     341            'alertSettingsTitle'   => __( 'Click on a component in builder mode to edit it\'s properties', 'wprne' ),
     342            'alertSettingsText'    => __( 'You could also select component from layers panel', 'wprne' ),
     343            'flex'                 => __( 'Flex', 'wprne' ),
     344            'flexHint'             => __( 'Flex will define how your items are going to “fill” over the available space along your main axis. Space will be divided according to each element\'s flex property.', 'wprne' ),
     345            'size'                 => __( 'Size', 'wprne' ),
     346            'sizeHint'             => __( 'Use auto, fixed number or % (ex: 32, 50%)', 'wprne' ),
     347            'backgroundColor'      => __( 'Background Color', 'wprne' ),
     348            'colorHint'            => __( 'Use color name, hex format or rgba format (ex: black, red, #FFF, rgba(0,0,0,1))', 'wprne' ),
     349            'dynamicColor'         => __( 'Dynamic Background Color', 'wprne' ),
     350            'margin'               => __( 'Margin', 'wprne' ),
     351            'marginHint'           => __( 'Use auto, fixed number or % (ex: 16, 10%)', 'wprne' ),
     352            'padding'              => __( 'Padding', 'wprne' ),
     353            'position'             => __( 'Position', 'wprne' ),
     354            'borderRadius'         => __( 'Border Radius', 'wprne' ),
     355            'border'               => __( 'Border', 'wprne' ),
     356            'buildApk'             => __( 'Build APK', 'wprne' ),
     357            'build'                => __( 'Build', 'wprne' ),
     358            'close'                => __( 'Close', 'wprne' ),
     359            'refresh'              => __( 'Refresh', 'wprne' ),
     360            'inputImage'           => __( "Drag 'n' drop some files here, or click to select files", 'wprne' ),
     361            'githubToken'          => __( 'Github token', 'wprne' ),
     362            'expoUser'             => __( 'Expo user name', 'wprne' ),
     363            'expoPassword'         => __( 'Expo password', 'wprne' ),
     364            'appName'              => __( 'App name', 'wprne' ),
     365            'appSlug'              => __( 'App slug', 'wprne' ),
     366            'appPackage'           => __( 'App package', 'wprne' ),
     367            'appVersion'           => __( 'App version', 'wprne' ),
     368            'androidVersioCode'    => __( 'App version number', 'wprne' ),
     369            'appIcon'              => __( 'App icon (png 1024 x 1024)', 'wprne' ),
     370            'splashImage'          => __( 'Splash screen image (png)', 'wprne' ),
     371            'repoCreated'          => __( 'The repository has been created', 'wprne' ),
     372            'buildRun'             => __( 'Build process is running', 'wprne' ),
     373            'githubActionError'    => __( 'Github actions not found', 'wprne' ),
     374            'buildError'           => __( 'There is an error, build process stopped', 'wprne' ),
     375            'checkRepo'            => __( 'Create the repository on github', 'wprne' ),
     376            'minimize'             => __( 'Minimize', 'wprne' ),
     377            'fullscreen'           => __( 'Fullscreen', 'wprne' ),
     378            'undo'                 => __( 'Undo', 'wprne' ),
     379            'redo'                 => __( 'Redo', 'wprne' ),
     380            'saveSettings'         => __( 'Save Settings', 'wprne' ),
     381            'woock'                => __( 'Woocommerce API Consumer Key', 'wprne' ),
     382            'woocs'                => __( 'Woocommerce API Consumer Secret', 'wprne' ),
     383            'settings'             => __( 'Settings', 'wprne' ),
     384            'deleteConfirm'        => __( 'Are You sure to delete this template?', 'wprne' ),
     385            'insertTemplate'       => __( 'insert template', 'wprne' ),
     386            'deleteTemplate'       => __( 'delete template', 'wprne' ),
     387            'deleteTemplateHeader' => __( 'Delete Template', 'wprne' ),
     388            'save'                 => __( 'Save', 'wprne' ),
     389            'pageName'             => __( 'Page Name', 'wprne' ),
     390            'pageTemplates'        => __( 'Page Templates', 'wprne' ),
     391            'showHeaderBar'        => __( 'Show Header Bar', 'wprne' ),
     392            'addBottomTab'         => __( 'Add to Bottom Tab Navigation', 'wprne' ),
     393            'priority'             => __( 'Priority', 'wprne' ),
     394            'inactiveColor'        => __( 'Inactive Color', 'wprne' ),
     395            'addNewPage'           => __( 'add new page', 'wprne' ),
     396            'addPageDialog'        => __( 'Add New Page', 'wprne' ),
     397            'deletePageDialog'     => __( 'Delete Page', 'wprne' ),
     398            'deletePage'           => __( 'delete page', 'wprne' ),
     399            'duplicatePage'        => __( 'duplicate selected page', 'wprne' ),
     400            'pageName'             => __( 'Page Name', 'wprne' ),
     401            'selectedPageSetting'  => __( 'selected page settings', 'wprne' ),
     402            'toolbarAlert'         => __( 'There is no page. Add a new page from the pages panel on the left.', 'wprne' ),
     403            'errorSavePages'       => __( 'Something went wrong trying to save pages', 'wprne' ),
     404            'successSavePages'     => __( 'Pages has been saved', 'wprne' ),
     405            'previewMode'          => __( 'Preview Mode', 'wprne' ),
     406            'builderMode'          => __( 'Builder Mode', 'wprne' ),
     407            'layers'               => __( 'Layers', 'wprne' ),
     408            'pages'                => __( 'Pages', 'wprne' ),
     409            'templates'            => __( 'Templates', 'wprne' ),
     410            'layerPanelAlert'      => __( 'Layers panel only available in builder mode', 'wprne' ),
     411            'templatePanelAlert'   => __( 'Templates panel only available in builder mode', 'wprne' ),
     412            'savePages'            => __( 'Save Pages', 'wprne' ),
     413            'saving'               => __( 'Saving...', 'wprne' ),
     414            'move'                 => __( 'move', 'wprne' ),
     415            'horizontal'           => __( 'Horizontal', 'wprne' ),
     416            'vertical'             => __( 'Vertical', 'wprne' ),
     417            'solid'                => __( 'Solid', 'wprne' ),
     418            'clear'                => __( 'Clear', 'wprne' ),
     419            'outline'              => __( 'Outline', 'wprne' ),
     420            'navigate'             => __( 'navigate', 'wprne' ),
     421            'goBack'               => __( 'go back', 'wprne' ),
     422            'atcAction'            => __( 'add to cart', 'wprne' ),
     423            'toCheckout'           => __( 'to checkout', 'wprne' ),
     424            'addQty'               => __( 'add cart item quantity', 'wprne' ),
     425            'reduceQty'            => __( 'reduce cart item quantity', 'wprne' ),
     426            'yes'                  => __( 'Yes', 'wprne' ),
     427            'no'                   => __( 'No', 'wprne' ),
     428            'wooProducts'          => __( 'Woocommerce Products', 'wprne' ),
     429            'wooOrders'            => __( 'Woocommerce Orders', 'wprne' ),
     430            'descending'           => __( 'Descending', 'wprne' ),
     431            'ascending'            => __( 'Ascending', 'wprne' ),
     432            'date'                 => __( 'Date', 'wprne' ),
     433            'postId'               => __( 'Post Id', 'wprne' ),
     434            'modified'             => __( 'Modified', 'wprne' ),
     435            'all'                  => __( 'All', 'wprne' ),
     436            'selectImage'          => __( 'Select image', 'wprne' ),
     437            'changeImage'          => __( 'Change image', 'wprne' ),
     438            'postImage'            => __( 'Post featured image', 'wprne' ),
     439            'static'               => __( 'static', 'wprne' ),
     440            'orderId'              => __( 'order number', 'wprne' ),
     441            'orderStatus'          => __( 'order status', 'wprne' ),
     442            'orderItem'            => __( 'order item', 'wprne' ),
     443            'orderTotal'           => __( 'order total', 'wprne' ),
     444            'shippingTotal'        => __( 'shipping total', 'wprne' ),
     445            'paymentMethod'        => __( 'payment method', 'wprne' ),
     446            'totalTax'             => __( 'total tax', 'wprne' ),
     447            'currencySymbol'       => __( 'currency symbol', 'wprne' ),
     448            'excerpt'              => __( 'Excerpt', 'wprne' ),
     449            'content'              => __( 'Content', 'wprne' ),
     450            'singlePost'           => __( 'Single Post', 'wprne' ),
     451            'searchPost'           => __( 'Search Post', 'wprne' ),
     452            'wooSingleProduct'     => __( 'Woocommerce Single Product', 'wprne' ),
     453            'wooImageCarousel'     => __( 'Product Image Carousel', 'wprne' ),
     454            'wooCart'              => __( 'Woocommerce Cart', 'wprne' ),
     455            'cartItem'             => __( 'Cart Item', 'wprne' ),
     456            'checkoutNative'       => __( 'Woocommerce Checkout', 'wprne' ),
     457            'checkoutWebView'      => __( 'Checkout Web View', 'wprne' ),
     458            'youtubePlayer'        => __( 'Youtube Player', 'wprne' ),
     459            'selectComponent'      => __( 'Select Component', 'wprne' ),
     460            'relative'             => __( 'Relative', 'wprne' ),
     461            'absolute'             => __( 'Absolute', 'wprne' ),
     462            'blank'                => __( 'Blank', 'wprne' ),
     463            'wooShop'              => __( 'Woocommerce Shop', 'wprne' ),
     464            'singleProduct'        => __( 'Single Product', 'wprne' ),
     465            'myOrder'              => __( 'My Order', 'wprne' ),
     466            'searchProduct'        => __( 'Search Product', 'wprne' ),
     467            'addTemplateError'     => __( 'Something went wrong trying to save template', 'wprne' ),
     468            'addTemplateSuccess'   => __( 'Template has been saved', 'wprne' ),
     469            'saveSettingsError'    => __( 'Something went wrong trying to save settings', 'wprne' ),
     470            'saveSettingsSuccess'  => __( 'Settings has been saved', 'wprne' ),
     471            'tutorials'            => __( 'Tutorials', 'wprne' ),
     472        );
    245473    }
    246474
    247     /**
    248      * Get all translatable word for script localize data.
    249      *
    250      * @since    1.0.0
    251      */
    252     public static function get_translate()
    253     {
    254         return array(
    255             'pluginTitle'          => __('Mobile App Editor', 'wprne'),
    256             'apps'                 => __('Apps', 'wprne'),
    257             'newApp'               => __('New App', 'wprne'),
    258             'editApp'              => __('Edit app', 'wprne'),
    259             'deleteApp'            => __('Delete app', 'wprne'),
    260             'newAppTemplate'       => __('Create new app using this template', 'wprne'),
    261             'createNewApp'         => __('Create New App', 'wprne'),
    262             'appName'              => __('App name', 'wprne'),
    263             'deleteAppConfirm'     => __('Are you sure to delete', 'wprne'),
    264             'errorNewApp'          => __('Something went wrong trying to create new app"', 'wprne'),
    265             'title'                => __('Title', 'wprne'),
    266             'buttonType'           => __('Button Type', 'wprne'),
    267             'font'                 => __('Font', 'wprne'),
    268             'icon'                 => __('Icon', 'wprne'),
    269             'fontSize'             => __('Font Size', 'wprne'),
    270             'fontColor'            => __('Font Color', 'wprne'),
    271             'iconSize'             => __('Icon Size', 'wprne'),
    272             'iconColor'            => __('Icon Color', 'wprne'),
    273             'onPressAction'        => __('On Press Action', 'wprne'),
    274             'autoplay'             => __('Autoplay', 'wprne'),
    275             'autoplayHint'         => __('Autoplay always disabled in builder mode', 'wprne'),
    276             'dot'                  => __('Dot', 'wprne'),
    277             'dotHint'              => __('Dot always enabled in builder mode', 'wprne'),
    278             'enable'               => __('Enable', 'wprne'),
    279             'delay'                => __('Delay (second)', 'wprne'),
    280             'activeColor'          => __('Active Color', 'wprne'),
    281             'productPreview'       => __('Product Preview', 'wprne'),
    282             'addToCart'            => __('Add to Cart', 'wprne'),
    283             'direction'            => __('Direction', 'wprne'),
    284             'justify'              => __('Justify Content', 'wprne'),
    285             'justifyHint'          => __('Align items along the main axis of their container', 'wprne'),
    286             'alignItems'           => __('Align Items', 'wprne'),
    287             'alignItemsHint'       => __('Align items along the cross axis of their container', 'wprne'),
    288             'scrollable'           => __('Scrollable', 'wprne'),
    289             'itemDirection'        => __('Item Direction', 'wprne'),
    290             'showScroll'           => __('Show Scroll', 'wprne'),
    291             'numColumns'           => __('Number of Column', 'wprne'),
    292             'postType'             => __('Post Type', 'wprne'),
    293             'postsCount'           => __('Posts Count', 'wprne'),
    294             'category'             => __('Category', 'wprne'),
    295             'order'                => __('Order', 'wprne'),
    296             'orderby'              => __('Order By', 'wprne'),
    297             'keyword'              => __('Keyword', 'wprne'),
    298             'postQuery'            => __('Post Query', 'wprne'),
    299             'changePostQuery'      => __('Change Post Query', 'wprne'),
    300             'bestSeller    '       => __('Best Seller', 'wprne'),
    301             'featured'             => __('Featured', 'wprne'),
    302             'onSale'               => __('On Sale', 'wprne'),
    303             'changeProductQuery'   => __('Change Product Query', 'wprne'),
    304             'source'               => __('Source', 'wprne'),
    305             'postContent'          => __('Post Content', 'wprne'),
    306             'resizeMode'           => __('Resize Mode', 'wprne'),
    307             'carouselSize'         => __('Carousel Size', 'wprne'),
    308             'carouselSizeHint'     => __('Use fixed number or % (ex: 32, 50%)', 'wprne'),
    309             'width'                => __('Width', 'wprne'),
    310             'height'               => __('Height', 'wprne'),
    311             'postPreview'          => __('Post Preview', 'wprne'),
    312             'contentType'          => __('Content Type', 'wprne'),
    313             'staticContent'        => __('Static Content', 'wprne'),
    314             'htmlContent'          => __('Html Content', 'wprne'),
    315             'asWebView'            => __('As Web View', 'wprne'),
    316             'charLength'           => __('Character Length', 'wprne'),
    317             'fontStyle'            => __('Font Style', 'wprne'),
    318             'fontWeight'           => __('Font Weight', 'wprne'),
    319             'textAlign'            => __('Text Align', 'wprne'),
    320             'textTransform'        => __('Text Transform', 'wprne'),
    321             'lineHeight'           => __('Line Height', 'wprne'),
    322             'videoId'              => __('Video ID', 'wprne'),
    323             'insertComponent'      => __('Insert selected component', 'wprne'),
    324             'container'            => __('Container', 'wprne'),
    325             'button'               => __('Button', 'wprne'),
    326             'text'                 => __('Text', 'wprne'),
    327             'image'                => __('Image', 'wprne'),
    328             'carousel'             => __('Carousel', 'wprne'),
    329             'gridPost'             => __('Grid Post', 'wprne'),
    330             'allComponents'        => __('All Components', 'wprne'),
    331             'moveUp"'              => __('move up', 'wprne'),
    332             'moveDown'             => __('move down', 'wprne'),
    333             'duplicate'            => __('duplicate', 'wprne'),
    334             'delete'               => __('delete', 'wprne'),
    335             'cut'                  => __('cut', 'wprne'),
    336             'copy'                 => __('copy', 'wprne'),
    337             'paste'                => __('paste', 'wprne'),
    338             'saveToTemplate'       => __('save template', 'wprne'),
    339             'saveTemplate'         => __('Save Template', 'wprne'),
    340             'movedUpWarning'       => __('This component can\'t be moved up', 'wprne'),
    341             'movedDownWarning'     => __('This component can\'t be moved down', 'wprne'),
    342             'deletedWarning'       => __('This component can\'t be deleted', 'wprne'),
    343             'duplicatedwarning'    => __('This component can\'t be duplicated', 'wprne'),
    344             'savedWarning'         => __('This component can\'t be saved', 'wprne'),
    345             'cutWarning'           => __('This component can\'t be cut', 'wprne'),
    346             'copiedWarning'        => __('This component can\'t be copied', 'wprne'),
    347             'pastedWarning'        => __('Component can only be inserted to a container', 'wprne'),
    348             'alertSettingsTitle'   => __('Click on a component in builder mode to edit it\'s properties', 'wprne'),
    349             'alertSettingsText'    => __('You could also select component from layers panel', 'wprne'),
    350             'flex'                 => __('Flex', 'wprne'),
    351             'flexHint'             => __('Flex will define how your items are going to “fill” over the available space along your main axis. Space will be divided according to each element\'s flex property.', 'wprne'),
    352             'size'                 => __('Size', 'wprne'),
    353             'sizeHint'             => __('Use auto, fixed number or % (ex: 32, 50%)', 'wprne'),
    354             'backgroundColor'      => __('Background Color', 'wprne'),
    355             'colorHint'            => __('Use color name, hex format or rgba format (ex: black, red, #FFF, rgba(0,0,0,1))', 'wprne'),
    356             'dynamicColor'         => __('Dynamic Background Color', 'wprne'),
    357             'margin'               => __('Margin', 'wprne'),
    358             'marginHint'           => __('Use auto, fixed number or % (ex: 16, 10%)', 'wprne'),
    359             'padding'              => __('Padding', 'wprne'),
    360             'position'             => __('Position', 'wprne'),
    361             'borderRadius'         => __('Border Radius', 'wprne'),
    362             'border'               => __('Border', 'wprne'),
    363             'buildApk'             => __('Build APK', 'wprne'),
    364             'build'                => __('Build', 'wprne'),
    365             'close'                => __('Close', 'wprne'),
    366             'refresh'              => __('Refresh', 'wprne'),
    367             'inputImage'           => __("Drag 'n' drop some files here, or click to select files", 'wprne'),
    368             'githubToken'          => __('Github token', 'wprne'),
    369             'expoUser'             => __('Expo user name', 'wprne'),
    370             'expoPassword'         => __('Expo password', 'wprne'),
    371             'appName'              => __('App name', 'wprne'),
    372             'appSlug'              => __('App slug', 'wprne'),
    373             'appPackage'           => __('App package', 'wprne'),
    374             'appVersion'           => __('App version', 'wprne'),
    375             'androidVersioCode'    => __('App version number', 'wprne'),
    376             'appIcon'              => __('App icon (png 1024 x 1024)', 'wprne'),
    377             'splashImage'          => __('Splash screen image (png)', 'wprne'),
    378             'repoCreated'          => __('The repository has been created', 'wprne'),
    379             'buildRun'             => __('Build process is running', 'wprne'),
    380             'githubActionError'    => __('Github actions not found', 'wprne'),
    381             'buildError'           => __('There is an error, build process stopped', 'wprne'),
    382             'checkRepo'            => __('Create the repository on github', 'wprne'),
    383             'minimize'             => __('Minimize', 'wprne'),
    384             'fullscreen'           => __('Fullscreen', 'wprne'),
    385             'undo'                 => __('Undo', 'wprne'),
    386             'redo'                 => __('Redo', 'wprne'),
    387             'saveSettings'         => __('Save Settings', 'wprne'),
    388             'woock'                => __('Woocommerce API Consumer Key', 'wprne'),
    389             'woocs'                => __('Woocommerce API Consumer Secret', 'wprne'),
    390             'settings'             => __('Settings', 'wprne'),
    391             'deleteConfirm'        => __('Are You sure to delete this template?', 'wprne'),
    392             'insertTemplate'       => __('insert template', 'wprne'),
    393             'deleteTemplate'       => __('delete template', 'wprne'),
    394             'deleteTemplateHeader' => __('Delete Template', 'wprne'),
    395             'save'                 => __('Save', 'wprne'),
    396             'pageName'             => __('Page Name', 'wprne'),
    397             'pageTemplates'        => __('Page Templates', 'wprne'),
    398             'showHeaderBar'        => __('Show Header Bar', 'wprne'),
    399             'addBottomTab'         => __('Add to Bottom Tab Navigation', 'wprne'),
    400             'priority'             => __('Priority', 'wprne'),
    401             'inactiveColor'        => __('Inactive Color', 'wprne'),
    402             'addNewPage'           => __('add new page', 'wprne'),
    403             'addPageDialog'        => __('Add New Page', 'wprne'),
    404             'deletePageDialog'     => __('Delete Page', 'wprne'),
    405             'deletePage'           => __('delete page', 'wprne'),
    406             'duplicatePage'        => __('duplicate selected page', 'wprne'),
    407             'pageName'             => __('Page Name', 'wprne'),
    408             'selectedPageSetting'  => __('selected page settings', 'wprne'),
    409             'toolbarAlert'         => __('There is no page. Add a new page from the pages panel on the left.', 'wprne'),
    410             'errorSavePages'       => __('Something went wrong trying to save pages', 'wprne'),
    411             'successSavePages'     => __('Pages has been saved', 'wprne'),
    412             'previewMode'          => __('Preview Mode', 'wprne'),
    413             'builderMode'          => __('Builder Mode', 'wprne'),
    414             'layers'               => __('Layers', 'wprne'),
    415             'pages'                => __('Pages', 'wprne'),
    416             'templates'            => __('Templates', 'wprne'),
    417             'layerPanelAlert'      => __('Layers panel only available in builder mode', 'wprne'),
    418             'templatePanelAlert'   => __('Templates panel only available in builder mode', 'wprne'),
    419             'savePages'            => __('Save Pages', 'wprne'),
    420             'saving'               => __('Saving...', 'wprne'),
    421             'move'                 => __('move', 'wprne'),
    422             'horizontal'           => __('Horizontal', 'wprne'),
    423             'vertical'             => __('Vertical', 'wprne'),
    424             'solid'                => __('Solid', 'wprne'),
    425             'clear'                => __('Clear', 'wprne'),
    426             'outline'              => __('Outline', 'wprne'),
    427             'navigate'             => __('navigate', 'wprne'),
    428             'goBack'               => __('go back', 'wprne'),
    429             'atcAction'            => __('add to cart', 'wprne'),
    430             'toCheckout'           => __('to checkout', 'wprne'),
    431             'addQty'               => __('add cart item quantity', 'wprne'),
    432             'reduceQty'            => __('reduce cart item quantity', 'wprne'),
    433             'yes'                  => __('Yes', 'wprne'),
    434             'no'                   => __('No', 'wprne'),
    435             'wooProducts'          => __('Woocommerce Products', 'wprne'),
    436             'wooOrders'            => __('Woocommerce Orders', 'wprne'),
    437             'descending'           => __('Descending', 'wprne'),
    438             'ascending'            => __('Ascending', 'wprne'),
    439             'date'                 => __('Date', 'wprne'),
    440             'postId'               => __('Post Id', 'wprne'),
    441             'modified'             => __('Modified', 'wprne'),
    442             'all'                  => __('All', 'wprne'),
    443             'selectImage'          => __('Select image', 'wprne'),
    444             'changeImage'          => __('Change image', 'wprne'),
    445             'postImage'            => __('Post featured image', 'wprne'),
    446             'static'               => __('static', 'wprne'),
    447             'orderId'              => __('order number', 'wprne'),
    448             'orderStatus'          => __('order status', 'wprne'),
    449             'orderItem'            => __('order item', 'wprne'),
    450             'orderTotal'           => __('order total', 'wprne'),
    451             'shippingTotal'        => __('shipping total', 'wprne'),
    452             'paymentMethod'        => __('payment method', 'wprne'),
    453             'totalTax'             => __('total tax', 'wprne'),
    454             'currencySymbol'       => __('currency symbol', 'wprne'),
    455             'excerpt'              => __('Excerpt', 'wprne'),
    456             'content'              => __('Content', 'wprne'),
    457             'singlePost'           => __('Single Post', 'wprne'),
    458             'searchPost'           => __('Search Post', 'wprne'),
    459             'wooSingleProduct'     => __('Woocommerce Single Product', 'wprne'),
    460             'wooImageCarousel'     => __('Product Image Carousel', 'wprne'),
    461             'wooCart'              => __('Woocommerce Cart', 'wprne'),
    462             'cartItem'             => __('Cart Item', 'wprne'),
    463             'checkoutNative'       => __('Woocommerce Checkout', 'wprne'),
    464             'checkoutWebView'      => __('Checkout Web View', 'wprne'),
    465             'youtubePlayer'        => __('Youtube Player', 'wprne'),
    466             'selectComponent'      => __('Select Component', 'wprne'),
    467             'relative'             => __('Relative', 'wprne'),
    468             'absolute'             => __('Absolute', 'wprne'),
    469             'blank'                => __('Blank', 'wprne'),
    470             'wooShop'              => __('Woocommerce Shop', 'wprne'),
    471             'singleProduct'        => __('Single Product', 'wprne'),
    472             'myOrder'              => __('My Order', 'wprne'),
    473             'searchProduct'        => __('Search Product', 'wprne'),
    474             'addTemplateError'     => __('Something went wrong trying to save template', 'wprne'),
    475             'addTemplateSuccess'   => __('Template has been saved', 'wprne'),
    476             'saveSettingsError'    => __('Something went wrong trying to save settings', 'wprne'),
    477             'saveSettingsSuccess'  => __('Settings has been saved', 'wprne'),
    478             'tutorials'            => __('Tutorials', 'wprne'),
    479         );
    480     }
    481475}
  • mobile-app-editor/trunk/admin/class-wprne-admin.php

    r2604032 r2604033  
    1010 */
    1111// If this file is called directly, abort.
    12 if (!defined('ABSPATH')) {
     12if ( !defined( 'ABSPATH' ) ) {
    1313    exit;
    1414}
     
    3131     * @var      string    $WPRNE    The ID of this plugin.
    3232     */
    33     private  $WPRNE;
     33    private  $WPRNE ;
    3434    /**
    3535     * The version of this plugin.
     
    3939     * @var      string    $version    The current version of this plugin.
    4040     */
    41     private  $version;
     41    private  $version ;
    4242    /**
    4343     * Initialize the class and set its properties.
     
    4747     * @param      string    $version    The version of this plugin.
    4848     */
    49     public function __construct($WPRNE, $version)
     49    public function __construct( $WPRNE, $version )
    5050    {
    5151        $this->WPRNE = $WPRNE;
    5252        $this->version = $version;
    5353    }
    54 
     54   
    5555    /**
    5656     * Register the stylesheets for the admin area.
     
    6060    public function enqueue_styles()
    6161    {
    62         $page = (isset($_GET['page']) ? sanitize_text_field($_GET['page']) : "");
    63         if (empty($page) || $page !== 'app-editor') {
     62        $page = ( isset( $_GET['page'] ) ? sanitize_text_field( $_GET['page'] ) : "" );
     63        if ( empty($page) || $page !== 'app-editor' ) {
    6464            return;
    6565        }
     
    7979        );
    8080    }
    81 
     81   
    8282    /**
    8383     * Register the JavaScript for the admin area.
     
    8787    public function enqueue_scripts()
    8888    {
    89         global  $wprne_fs;
    90         if ($wprne_fs->is_activation_mode()) {
     89        global  $wprne_fs ;
     90        if ( $wprne_fs->is_activation_mode() ) {
    9191            return;
    9292        }
    93         $page = (isset($_GET['page']) ? sanitize_text_field($_GET['page']) : "");
    94         if (empty($page) || $page !== 'app-editor') {
     93        $page = ( isset( $_GET['page'] ) ? sanitize_text_field( $_GET['page'] ) : "" );
     94        if ( empty($page) || $page !== 'app-editor' ) {
    9595            return;
    9696        }
     
    119119            'editor-display-script',
    120120            WPRNE_PLUGIN_URL . '/assets/js/editor-display.js',
    121             array("jquery"),
     121            array( "jquery" ),
    122122            $this->version,
    123123            true
    124124        );
    125         $settings = get_option('wprne_settings', array());
    126         $woock = (!empty($settings['woock']) ? $settings['woock'] : '');
    127         $woocs = (!empty($settings['woocs']) ? $settings['woocs'] : '');
     125        $settings = get_option( 'wprne_settings', array() );
     126        $woock = ( !empty($settings['woock']) ? $settings['woock'] : '' );
     127        $woocs = ( !empty($settings['woocs']) ? $settings['woocs'] : '' );
    128128        $localize_data = array(
    129             'baseUrl'    => home_url('/'),
     129            'baseUrl'    => home_url( '/' ),
    130130            'pluginUrl'  => WPRNE_PLUGIN_URL,
    131131            'translate'  => self::get_translate(),
    132132            'ck'         => $woock,
    133133            'cs'         => $woocs,
    134             'nonce'      => wp_create_nonce('wp_rest'),
     134            'nonce'      => wp_create_nonce( 'wp_rest' ),
    135135            'upgradeUrl' => wprne_fs()->get_upgrade_url(),
    136136        );
    137 
    138         if (wprne_fs()->is__premium_only()) {
    139             $localize_data = array_merge($localize_data, array('pro' =>  wprne_fs()->can_use_premium_code()));
    140         }
    141 
    142         wp_localize_script('editor-script', 'wprneLocalize', $localize_data);
    143     }
    144 
     137        wp_localize_script( 'editor-script', 'wprneLocalize', $localize_data );
     138    }
     139   
    145140    /**
    146141     * Admin menu
     
    152147        add_menu_page(
    153148            'app-editor',
    154             __('Mobile App Editor', 'wprne'),
     149            __( 'Mobile App Editor', 'wprne' ),
    155150            'edit_others_posts',
    156151            'app-editor',
    157             array($this, 'wprne_menu_page'),
     152            array( $this, 'wprne_menu_page' ),
    158153            'dashicons-smartphone',
    159154            50
    160155        );
    161156    }
    162 
     157   
    163158    /**
    164159     * Publish post
     
    166161     * @since    1.0.0
    167162     */
    168     public function publish_post($ID, $post)
     163    public function publish_post( $ID, $post )
    169164    {
    170165        $post_id = $post->ID;
    171         $push_notif_sent = get_post_meta($post_id, 'wprne_push_notif_sent', true);
    172         $is_send_push = get_option("wprne_send_post_pushnotif");
    173         if ($is_send_push && empty($push_notif_sent) && !wp_is_post_revision($post_id)) {
    174             $tokens = get_option('wprne_push_notif_token', array());
    175             $title = get_the_title($post_id);
    176             $urlparts = parse_url(get_site_url());
    177             $domain = $urlparts["host"];
    178             $body = [];
    179             foreach ($tokens as $token => $value) {             
    180                 if($value){
    181                     $body[] = [
    182                         'to'  => $token,
    183                         'sound' => 'default',
    184                         'title' => $domain,
    185                         'body' => $title,
    186                         'priority' => 'high',
    187                     ];
    188                 }
     166        $push_notif_sent = get_post_meta( $post_id, 'wprne_push_notif_sent', true );
     167        $is_send_push = get_option( "wprne_send_post_pushnotif" );
     168       
     169        if ( $is_send_push && empty($push_notif_sent) && !wp_is_post_revision( $post_id ) ) {
     170            $tokens = get_option( 'wprne_push_notif_token', array() );
     171            $title = get_the_title( $post_id );
     172            $urlparts = parse_url( get_site_url() );
     173            $domain = $urlparts["host"];
     174            $body = [];
     175            foreach ( $tokens as $token => $value ) {
     176                if ( $value ) {
     177                    $body[] = [
     178                        'to'       => $token,
     179                        'sound'    => 'default',
     180                        'title'    => $domain,
     181                        'body'     => $title,
     182                        'priority' => 'high',
     183                    ];
     184                }
    189185            }
    190             $endpoint = 'https://exp.host/--/api/v2/push/send';
    191 
    192             $body = wp_json_encode($body);
    193 
    194             $options = [
    195                 'body'        => $body,
    196                 'headers'     => [
    197                     'Content-Type' => 'application/json',
    198                 ],
    199                 'timeout'     => 60,
    200                 'redirection' => 5,
    201                 'blocking'    => true,
    202                 'httpversion' => '1.0',
    203                 'sslverify'   => false,
    204                 'data_format' => 'body',
    205             ];
    206 
    207             $response = wp_remote_post($endpoint, $options);
    208 
    209             update_post_meta($post_id, 'wprne_push_notif_sent', true);
     186            $endpoint = 'https://exp.host/--/api/v2/push/send';
     187            $body = wp_json_encode( $body );
     188            $options = [
     189                'body'        => $body,
     190                'headers'     => [
     191                'Content-Type' => 'application/json',
     192            ],
     193                'timeout'     => 60,
     194                'redirection' => 5,
     195                'blocking'    => true,
     196                'httpversion' => '1.0',
     197                'sslverify'   => false,
     198                'data_format' => 'body',
     199            ];
     200            $response = wp_remote_post( $endpoint, $options );
     201            update_post_meta( $post_id, 'wprne_push_notif_sent', true );
    210202        }
    211     }
    212 
     203   
     204    }
     205   
    213206    /**
    214207     * Admin menu callback
     
    218211    public function wprne_menu_page()
    219212    {
    220 ?>
     213        ?>
    221214        <style>
    222215            #wpbody-content {
     
    229222                @font-face {
    230223                    font-family: 'MaterialIcons';
    231                     src: url(<?php
    232                                 echo  esc_url(WPRNE_PLUGIN_URL . '/assets/media/MaterialIcons.ttf');
    233                                 ?>) format('truetype');
     224                    src: url(<?php 
     225        echo  esc_url( WPRNE_PLUGIN_URL . '/assets/media/MaterialIcons.ttf' ) ;
     226        ?>) format('truetype');
    234227                }
    235228
    236229                @font-face {
    237230                    font-family: 'FontAwesome';
    238                     src: url(<?php
    239                                 echo  esc_url(WPRNE_PLUGIN_URL . '/assets/media/FontAwesome.ttf');
    240                                 ?>) format('truetype');
     231                    src: url(<?php 
     232        echo  esc_url( WPRNE_PLUGIN_URL . '/assets/media/FontAwesome.ttf' ) ;
     233        ?>) format('truetype');
    241234                }
    242235            </style>
    243236        </div>
    244 <?php
     237<?php
     238    }
     239   
     240    /**
     241     * Get all translatable word for script localize data.
     242     *
     243     * @since    1.0.0
     244     */
     245    public static function get_translate()
     246    {
     247        return array(
     248            'pluginTitle'          => __( 'Mobile App Editor', 'wprne' ),
     249            'apps'                 => __( 'Apps', 'wprne' ),
     250            'newApp'               => __( 'New App', 'wprne' ),
     251            'editApp'              => __( 'Edit app', 'wprne' ),
     252            'deleteApp'            => __( 'Delete app', 'wprne' ),
     253            'newAppTemplate'       => __( 'Create new app using this template', 'wprne' ),
     254            'createNewApp'         => __( 'Create New App', 'wprne' ),
     255            'appName'              => __( 'App name', 'wprne' ),
     256            'deleteAppConfirm'     => __( 'Are you sure to delete', 'wprne' ),
     257            'errorNewApp'          => __( 'Something went wrong trying to create new app"', 'wprne' ),
     258            'title'                => __( 'Title', 'wprne' ),
     259            'buttonType'           => __( 'Button Type', 'wprne' ),
     260            'font'                 => __( 'Font', 'wprne' ),
     261            'icon'                 => __( 'Icon', 'wprne' ),
     262            'fontSize'             => __( 'Font Size', 'wprne' ),
     263            'fontColor'            => __( 'Font Color', 'wprne' ),
     264            'iconSize'             => __( 'Icon Size', 'wprne' ),
     265            'iconColor'            => __( 'Icon Color', 'wprne' ),
     266            'onPressAction'        => __( 'On Press Action', 'wprne' ),
     267            'autoplay'             => __( 'Autoplay', 'wprne' ),
     268            'autoplayHint'         => __( 'Autoplay always disabled in builder mode', 'wprne' ),
     269            'dot'                  => __( 'Dot', 'wprne' ),
     270            'dotHint'              => __( 'Dot always enabled in builder mode', 'wprne' ),
     271            'enable'               => __( 'Enable', 'wprne' ),
     272            'delay'                => __( 'Delay (second)', 'wprne' ),
     273            'activeColor'          => __( 'Active Color', 'wprne' ),
     274            'productPreview'       => __( 'Product Preview', 'wprne' ),
     275            'addToCart'            => __( 'Add to Cart', 'wprne' ),
     276            'direction'            => __( 'Direction', 'wprne' ),
     277            'justify'              => __( 'Justify Content', 'wprne' ),
     278            'justifyHint'          => __( 'Align items along the main axis of their container', 'wprne' ),
     279            'alignItems'           => __( 'Align Items', 'wprne' ),
     280            'alignItemsHint'       => __( 'Align items along the cross axis of their container', 'wprne' ),
     281            'scrollable'           => __( 'Scrollable', 'wprne' ),
     282            'itemDirection'        => __( 'Item Direction', 'wprne' ),
     283            'showScroll'           => __( 'Show Scroll', 'wprne' ),
     284            'numColumns'           => __( 'Number of Column', 'wprne' ),
     285            'postType'             => __( 'Post Type', 'wprne' ),
     286            'postsCount'           => __( 'Posts Count', 'wprne' ),
     287            'category'             => __( 'Category', 'wprne' ),
     288            'order'                => __( 'Order', 'wprne' ),
     289            'orderby'              => __( 'Order By', 'wprne' ),
     290            'keyword'              => __( 'Keyword', 'wprne' ),
     291            'postQuery'            => __( 'Post Query', 'wprne' ),
     292            'changePostQuery'      => __( 'Change Post Query', 'wprne' ),
     293            'bestSeller    '       => __( 'Best Seller', 'wprne' ),
     294            'featured'             => __( 'Featured', 'wprne' ),
     295            'onSale'               => __( 'On Sale', 'wprne' ),
     296            'changeProductQuery'   => __( 'Change Product Query', 'wprne' ),
     297            'source'               => __( 'Source', 'wprne' ),
     298            'postContent'          => __( 'Post Content', 'wprne' ),
     299            'resizeMode'           => __( 'Resize Mode', 'wprne' ),
     300            'carouselSize'         => __( 'Carousel Size', 'wprne' ),
     301            'carouselSizeHint'     => __( 'Use fixed number or % (ex: 32, 50%)', 'wprne' ),
     302            'width'                => __( 'Width', 'wprne' ),
     303            'height'               => __( 'Height', 'wprne' ),
     304            'postPreview'          => __( 'Post Preview', 'wprne' ),
     305            'contentType'          => __( 'Content Type', 'wprne' ),
     306            'staticContent'        => __( 'Static Content', 'wprne' ),
     307            'htmlContent'          => __( 'Html Content', 'wprne' ),
     308            'asWebView'            => __( 'As Web View', 'wprne' ),
     309            'charLength'           => __( 'Character Length', 'wprne' ),
     310            'fontStyle'            => __( 'Font Style', 'wprne' ),
     311            'fontWeight'           => __( 'Font Weight', 'wprne' ),
     312            'textAlign'            => __( 'Text Align', 'wprne' ),
     313            'textTransform'        => __( 'Text Transform', 'wprne' ),
     314            'lineHeight'           => __( 'Line Height', 'wprne' ),
     315            'videoId'              => __( 'Video ID', 'wprne' ),
     316            'insertComponent'      => __( 'Insert selected component', 'wprne' ),
     317            'container'            => __( 'Container', 'wprne' ),
     318            'button'               => __( 'Button', 'wprne' ),
     319            'text'                 => __( 'Text', 'wprne' ),
     320            'image'                => __( 'Image', 'wprne' ),
     321            'carousel'             => __( 'Carousel', 'wprne' ),
     322            'gridPost'             => __( 'Grid Post', 'wprne' ),
     323            'allComponents'        => __( 'All Components', 'wprne' ),
     324            'moveUp"'              => __( 'move up', 'wprne' ),
     325            'moveDown'             => __( 'move down', 'wprne' ),
     326            'duplicate'            => __( 'duplicate', 'wprne' ),
     327            'delete'               => __( 'delete', 'wprne' ),
     328            'cut'                  => __( 'cut', 'wprne' ),
     329            'copy'                 => __( 'copy', 'wprne' ),
     330            'paste'                => __( 'paste', 'wprne' ),
     331            'saveToTemplate'       => __( 'save template', 'wprne' ),
     332            'saveTemplate'         => __( 'Save Template', 'wprne' ),
     333            'movedUpWarning'       => __( 'This component can\'t be moved up', 'wprne' ),
     334            'movedDownWarning'     => __( 'This component can\'t be moved down', 'wprne' ),
     335            'deletedWarning'       => __( 'This component can\'t be deleted', 'wprne' ),
     336            'duplicatedwarning'    => __( 'This component can\'t be duplicated', 'wprne' ),
     337            'savedWarning'         => __( 'This component can\'t be saved', 'wprne' ),
     338            'cutWarning'           => __( 'This component can\'t be cut', 'wprne' ),
     339            'copiedWarning'        => __( 'This component can\'t be copied', 'wprne' ),
     340            'pastedWarning'        => __( 'Component can only be inserted to a container', 'wprne' ),
     341            'alertSettingsTitle'   => __( 'Click on a component in builder mode to edit it\'s properties', 'wprne' ),
     342            'alertSettingsText'    => __( 'You could also select component from layers panel', 'wprne' ),
     343            'flex'                 => __( 'Flex', 'wprne' ),
     344            'flexHint'             => __( 'Flex will define how your items are going to “fill” over the available space along your main axis. Space will be divided according to each element\'s flex property.', 'wprne' ),
     345            'size'                 => __( 'Size', 'wprne' ),
     346            'sizeHint'             => __( 'Use auto, fixed number or % (ex: 32, 50%)', 'wprne' ),
     347            'backgroundColor'      => __( 'Background Color', 'wprne' ),
     348            'colorHint'            => __( 'Use color name, hex format or rgba format (ex: black, red, #FFF, rgba(0,0,0,1))', 'wprne' ),
     349            'dynamicColor'         => __( 'Dynamic Background Color', 'wprne' ),
     350            'margin'               => __( 'Margin', 'wprne' ),
     351            'marginHint'           => __( 'Use auto, fixed number or % (ex: 16, 10%)', 'wprne' ),
     352            'padding'              => __( 'Padding', 'wprne' ),
     353            'position'             => __( 'Position', 'wprne' ),
     354            'borderRadius'         => __( 'Border Radius', 'wprne' ),
     355            'border'               => __( 'Border', 'wprne' ),
     356            'buildApk'             => __( 'Build APK', 'wprne' ),
     357            'build'                => __( 'Build', 'wprne' ),
     358            'close'                => __( 'Close', 'wprne' ),
     359            'refresh'              => __( 'Refresh', 'wprne' ),
     360            'inputImage'           => __( "Drag 'n' drop some files here, or click to select files", 'wprne' ),
     361            'githubToken'          => __( 'Github token', 'wprne' ),
     362            'expoUser'             => __( 'Expo user name', 'wprne' ),
     363            'expoPassword'         => __( 'Expo password', 'wprne' ),
     364            'appName'              => __( 'App name', 'wprne' ),
     365            'appSlug'              => __( 'App slug', 'wprne' ),
     366            'appPackage'           => __( 'App package', 'wprne' ),
     367            'appVersion'           => __( 'App version', 'wprne' ),
     368            'androidVersioCode'    => __( 'App version number', 'wprne' ),
     369            'appIcon'              => __( 'App icon (png 1024 x 1024)', 'wprne' ),
     370            'splashImage'          => __( 'Splash screen image (png)', 'wprne' ),
     371            'repoCreated'          => __( 'The repository has been created', 'wprne' ),
     372            'buildRun'             => __( 'Build process is running', 'wprne' ),
     373            'githubActionError'    => __( 'Github actions not found', 'wprne' ),
     374            'buildError'           => __( 'There is an error, build process stopped', 'wprne' ),
     375            'checkRepo'            => __( 'Create the repository on github', 'wprne' ),
     376            'minimize'             => __( 'Minimize', 'wprne' ),
     377            'fullscreen'           => __( 'Fullscreen', 'wprne' ),
     378            'undo'                 => __( 'Undo', 'wprne' ),
     379            'redo'                 => __( 'Redo', 'wprne' ),
     380            'saveSettings'         => __( 'Save Settings', 'wprne' ),
     381            'woock'                => __( 'Woocommerce API Consumer Key', 'wprne' ),
     382            'woocs'                => __( 'Woocommerce API Consumer Secret', 'wprne' ),
     383            'settings'             => __( 'Settings', 'wprne' ),
     384            'deleteConfirm'        => __( 'Are You sure to delete this template?', 'wprne' ),
     385            'insertTemplate'       => __( 'insert template', 'wprne' ),
     386            'deleteTemplate'       => __( 'delete template', 'wprne' ),
     387            'deleteTemplateHeader' => __( 'Delete Template', 'wprne' ),
     388            'save'                 => __( 'Save', 'wprne' ),
     389            'pageName'             => __( 'Page Name', 'wprne' ),
     390            'pageTemplates'        => __( 'Page Templates', 'wprne' ),
     391            'showHeaderBar'        => __( 'Show Header Bar', 'wprne' ),
     392            'addBottomTab'         => __( 'Add to Bottom Tab Navigation', 'wprne' ),
     393            'priority'             => __( 'Priority', 'wprne' ),
     394            'inactiveColor'        => __( 'Inactive Color', 'wprne' ),
     395            'addNewPage'           => __( 'add new page', 'wprne' ),
     396            'addPageDialog'        => __( 'Add New Page', 'wprne' ),
     397            'deletePageDialog'     => __( 'Delete Page', 'wprne' ),
     398            'deletePage'           => __( 'delete page', 'wprne' ),
     399            'duplicatePage'        => __( 'duplicate selected page', 'wprne' ),
     400            'pageName'             => __( 'Page Name', 'wprne' ),
     401            'selectedPageSetting'  => __( 'selected page settings', 'wprne' ),
     402            'toolbarAlert'         => __( 'There is no page. Add a new page from the pages panel on the left.', 'wprne' ),
     403            'errorSavePages'       => __( 'Something went wrong trying to save pages', 'wprne' ),
     404            'successSavePages'     => __( 'Pages has been saved', 'wprne' ),
     405            'previewMode'          => __( 'Preview Mode', 'wprne' ),
     406            'builderMode'          => __( 'Builder Mode', 'wprne' ),
     407            'layers'               => __( 'Layers', 'wprne' ),
     408            'pages'                => __( 'Pages', 'wprne' ),
     409            'templates'            => __( 'Templates', 'wprne' ),
     410            'layerPanelAlert'      => __( 'Layers panel only available in builder mode', 'wprne' ),
     411            'templatePanelAlert'   => __( 'Templates panel only available in builder mode', 'wprne' ),
     412            'savePages'            => __( 'Save Pages', 'wprne' ),
     413            'saving'               => __( 'Saving...', 'wprne' ),
     414            'move'                 => __( 'move', 'wprne' ),
     415            'horizontal'           => __( 'Horizontal', 'wprne' ),
     416            'vertical'             => __( 'Vertical', 'wprne' ),
     417            'solid'                => __( 'Solid', 'wprne' ),
     418            'clear'                => __( 'Clear', 'wprne' ),
     419            'outline'              => __( 'Outline', 'wprne' ),
     420            'navigate'             => __( 'navigate', 'wprne' ),
     421            'goBack'               => __( 'go back', 'wprne' ),
     422            'atcAction'            => __( 'add to cart', 'wprne' ),
     423            'toCheckout'           => __( 'to checkout', 'wprne' ),
     424            'addQty'               => __( 'add cart item quantity', 'wprne' ),
     425            'reduceQty'            => __( 'reduce cart item quantity', 'wprne' ),
     426            'yes'                  => __( 'Yes', 'wprne' ),
     427            'no'                   => __( 'No', 'wprne' ),
     428            'wooProducts'          => __( 'Woocommerce Products', 'wprne' ),
     429            'wooOrders'            => __( 'Woocommerce Orders', 'wprne' ),
     430            'descending'           => __( 'Descending', 'wprne' ),
     431            'ascending'            => __( 'Ascending', 'wprne' ),
     432            'date'                 => __( 'Date', 'wprne' ),
     433            'postId'               => __( 'Post Id', 'wprne' ),
     434            'modified'             => __( 'Modified', 'wprne' ),
     435            'all'                  => __( 'All', 'wprne' ),
     436            'selectImage'          => __( 'Select image', 'wprne' ),
     437            'changeImage'          => __( 'Change image', 'wprne' ),
     438            'postImage'            => __( 'Post featured image', 'wprne' ),
     439            'static'               => __( 'static', 'wprne' ),
     440            'orderId'              => __( 'order number', 'wprne' ),
     441            'orderStatus'          => __( 'order status', 'wprne' ),
     442            'orderItem'            => __( 'order item', 'wprne' ),
     443            'orderTotal'           => __( 'order total', 'wprne' ),
     444            'shippingTotal'        => __( 'shipping total', 'wprne' ),
     445            'paymentMethod'        => __( 'payment method', 'wprne' ),
     446            'totalTax'             => __( 'total tax', 'wprne' ),
     447            'currencySymbol'       => __( 'currency symbol', 'wprne' ),
     448            'excerpt'              => __( 'Excerpt', 'wprne' ),
     449            'content'              => __( 'Content', 'wprne' ),
     450            'singlePost'           => __( 'Single Post', 'wprne' ),
     451            'searchPost'           => __( 'Search Post', 'wprne' ),
     452            'wooSingleProduct'     => __( 'Woocommerce Single Product', 'wprne' ),
     453            'wooImageCarousel'     => __( 'Product Image Carousel', 'wprne' ),
     454            'wooCart'              => __( 'Woocommerce Cart', 'wprne' ),
     455            'cartItem'             => __( 'Cart Item', 'wprne' ),
     456            'checkoutNative'       => __( 'Woocommerce Checkout', 'wprne' ),
     457            'checkoutWebView'      => __( 'Checkout Web View', 'wprne' ),
     458            'youtubePlayer'        => __( 'Youtube Player', 'wprne' ),
     459            'selectComponent'      => __( 'Select Component', 'wprne' ),
     460            'relative'             => __( 'Relative', 'wprne' ),
     461            'absolute'             => __( 'Absolute', 'wprne' ),
     462            'blank'                => __( 'Blank', 'wprne' ),
     463            'wooShop'              => __( 'Woocommerce Shop', 'wprne' ),
     464            'singleProduct'        => __( 'Single Product', 'wprne' ),
     465            'myOrder'              => __( 'My Order', 'wprne' ),
     466            'searchProduct'        => __( 'Search Product', 'wprne' ),
     467            'addTemplateError'     => __( 'Something went wrong trying to save template', 'wprne' ),
     468            'addTemplateSuccess'   => __( 'Template has been saved', 'wprne' ),
     469            'saveSettingsError'    => __( 'Something went wrong trying to save settings', 'wprne' ),
     470            'saveSettingsSuccess'  => __( 'Settings has been saved', 'wprne' ),
     471            'tutorials'            => __( 'Tutorials', 'wprne' ),
     472        );
    245473    }
    246474
    247     /**
    248      * Get all translatable word for script localize data.
    249      *
    250      * @since    1.0.0
    251      */
    252     public static function get_translate()
    253     {
    254         return array(
    255             'pluginTitle'          => __('Mobile App Editor', 'wprne'),
    256             'apps'                 => __('Apps', 'wprne'),
    257             'newApp'               => __('New App', 'wprne'),
    258             'editApp'              => __('Edit app', 'wprne'),
    259             'deleteApp'            => __('Delete app', 'wprne'),
    260             'newAppTemplate'       => __('Create new app using this template', 'wprne'),
    261             'createNewApp'         => __('Create New App', 'wprne'),
    262             'appName'              => __('App name', 'wprne'),
    263             'deleteAppConfirm'     => __('Are you sure to delete', 'wprne'),
    264             'errorNewApp'          => __('Something went wrong trying to create new app"', 'wprne'),
    265             'title'                => __('Title', 'wprne'),
    266             'buttonType'           => __('Button Type', 'wprne'),
    267             'font'                 => __('Font', 'wprne'),
    268             'icon'                 => __('Icon', 'wprne'),
    269             'fontSize'             => __('Font Size', 'wprne'),
    270             'fontColor'            => __('Font Color', 'wprne'),
    271             'iconSize'             => __('Icon Size', 'wprne'),
    272             'iconColor'            => __('Icon Color', 'wprne'),
    273             'onPressAction'        => __('On Press Action', 'wprne'),
    274             'autoplay'             => __('Autoplay', 'wprne'),
    275             'autoplayHint'         => __('Autoplay always disabled in builder mode', 'wprne'),
    276             'dot'                  => __('Dot', 'wprne'),
    277             'dotHint'              => __('Dot always enabled in builder mode', 'wprne'),
    278             'enable'               => __('Enable', 'wprne'),
    279             'delay'                => __('Delay (second)', 'wprne'),
    280             'activeColor'          => __('Active Color', 'wprne'),
    281             'productPreview'       => __('Product Preview', 'wprne'),
    282             'addToCart'            => __('Add to Cart', 'wprne'),
    283             'direction'            => __('Direction', 'wprne'),
    284             'justify'              => __('Justify Content', 'wprne'),
    285             'justifyHint'          => __('Align items along the main axis of their container', 'wprne'),
    286             'alignItems'           => __('Align Items', 'wprne'),
    287             'alignItemsHint'       => __('Align items along the cross axis of their container', 'wprne'),
    288             'scrollable'           => __('Scrollable', 'wprne'),
    289             'itemDirection'        => __('Item Direction', 'wprne'),
    290             'showScroll'           => __('Show Scroll', 'wprne'),
    291             'numColumns'           => __('Number of Column', 'wprne'),
    292             'postType'             => __('Post Type', 'wprne'),
    293             'postsCount'           => __('Posts Count', 'wprne'),
    294             'category'             => __('Category', 'wprne'),
    295             'order'                => __('Order', 'wprne'),
    296             'orderby'              => __('Order By', 'wprne'),
    297             'keyword'              => __('Keyword', 'wprne'),
    298             'postQuery'            => __('Post Query', 'wprne'),
    299             'changePostQuery'      => __('Change Post Query', 'wprne'),
    300             'bestSeller    '       => __('Best Seller', 'wprne'),
    301             'featured'             => __('Featured', 'wprne'),
    302             'onSale'               => __('On Sale', 'wprne'),
    303             'changeProductQuery'   => __('Change Product Query', 'wprne'),
    304             'source'               => __('Source', 'wprne'),
    305             'postContent'          => __('Post Content', 'wprne'),
    306             'resizeMode'           => __('Resize Mode', 'wprne'),
    307             'carouselSize'         => __('Carousel Size', 'wprne'),
    308             'carouselSizeHint'     => __('Use fixed number or % (ex: 32, 50%)', 'wprne'),
    309             'width'                => __('Width', 'wprne'),
    310             'height'               => __('Height', 'wprne'),
    311             'postPreview'          => __('Post Preview', 'wprne'),
    312             'contentType'          => __('Content Type', 'wprne'),
    313             'staticContent'        => __('Static Content', 'wprne'),
    314             'htmlContent'          => __('Html Content', 'wprne'),
    315             'asWebView'            => __('As Web View', 'wprne'),
    316             'charLength'           => __('Character Length', 'wprne'),
    317             'fontStyle'            => __('Font Style', 'wprne'),
    318             'fontWeight'           => __('Font Weight', 'wprne'),
    319             'textAlign'            => __('Text Align', 'wprne'),
    320             'textTransform'        => __('Text Transform', 'wprne'),
    321             'lineHeight'           => __('Line Height', 'wprne'),
    322             'videoId'              => __('Video ID', 'wprne'),
    323             'insertComponent'      => __('Insert selected component', 'wprne'),
    324             'container'            => __('Container', 'wprne'),
    325             'button'               => __('Button', 'wprne'),
    326             'text'                 => __('Text', 'wprne'),
    327             'image'                => __('Image', 'wprne'),
    328             'carousel'             => __('Carousel', 'wprne'),
    329             'gridPost'             => __('Grid Post', 'wprne'),
    330             'allComponents'        => __('All Components', 'wprne'),
    331             'moveUp"'              => __('move up', 'wprne'),
    332             'moveDown'             => __('move down', 'wprne'),
    333             'duplicate'            => __('duplicate', 'wprne'),
    334             'delete'               => __('delete', 'wprne'),
    335             'cut'                  => __('cut', 'wprne'),
    336             'copy'                 => __('copy', 'wprne'),
    337             'paste'                => __('paste', 'wprne'),
    338             'saveToTemplate'       => __('save template', 'wprne'),
    339             'saveTemplate'         => __('Save Template', 'wprne'),
    340             'movedUpWarning'       => __('This component can\'t be moved up', 'wprne'),
    341             'movedDownWarning'     => __('This component can\'t be moved down', 'wprne'),
    342             'deletedWarning'       => __('This component can\'t be deleted', 'wprne'),
    343             'duplicatedwarning'    => __('This component can\'t be duplicated', 'wprne'),
    344             'savedWarning'         => __('This component can\'t be saved', 'wprne'),
    345             'cutWarning'           => __('This component can\'t be cut', 'wprne'),
    346             'copiedWarning'        => __('This component can\'t be copied', 'wprne'),
    347             'pastedWarning'        => __('Component can only be inserted to a container', 'wprne'),
    348             'alertSettingsTitle'   => __('Click on a component in builder mode to edit it\'s properties', 'wprne'),
    349             'alertSettingsText'    => __('You could also select component from layers panel', 'wprne'),
    350             'flex'                 => __('Flex', 'wprne'),
    351             'flexHint'             => __('Flex will define how your items are going to “fill” over the available space along your main axis. Space will be divided according to each element\'s flex property.', 'wprne'),
    352             'size'                 => __('Size', 'wprne'),
    353             'sizeHint'             => __('Use auto, fixed number or % (ex: 32, 50%)', 'wprne'),
    354             'backgroundColor'      => __('Background Color', 'wprne'),
    355             'colorHint'            => __('Use color name, hex format or rgba format (ex: black, red, #FFF, rgba(0,0,0,1))', 'wprne'),
    356             'dynamicColor'         => __('Dynamic Background Color', 'wprne'),
    357             'margin'               => __('Margin', 'wprne'),
    358             'marginHint'           => __('Use auto, fixed number or % (ex: 16, 10%)', 'wprne'),
    359             'padding'              => __('Padding', 'wprne'),
    360             'position'             => __('Position', 'wprne'),
    361             'borderRadius'         => __('Border Radius', 'wprne'),
    362             'border'               => __('Border', 'wprne'),
    363             'buildApk'             => __('Build APK', 'wprne'),
    364             'build'                => __('Build', 'wprne'),
    365             'close'                => __('Close', 'wprne'),
    366             'refresh'              => __('Refresh', 'wprne'),
    367             'inputImage'           => __("Drag 'n' drop some files here, or click to select files", 'wprne'),
    368             'githubToken'          => __('Github token', 'wprne'),
    369             'expoUser'             => __('Expo user name', 'wprne'),
    370             'expoPassword'         => __('Expo password', 'wprne'),
    371             'appName'              => __('App name', 'wprne'),
    372             'appSlug'              => __('App slug', 'wprne'),
    373             'appPackage'           => __('App package', 'wprne'),
    374             'appVersion'           => __('App version', 'wprne'),
    375             'androidVersioCode'    => __('App version number', 'wprne'),
    376             'appIcon'              => __('App icon (png 1024 x 1024)', 'wprne'),
    377             'splashImage'          => __('Splash screen image (png)', 'wprne'),
    378             'repoCreated'          => __('The repository has been created', 'wprne'),
    379             'buildRun'             => __('Build process is running', 'wprne'),
    380             'githubActionError'    => __('Github actions not found', 'wprne'),
    381             'buildError'           => __('There is an error, build process stopped', 'wprne'),
    382             'checkRepo'            => __('Create the repository on github', 'wprne'),
    383             'minimize'             => __('Minimize', 'wprne'),
    384             'fullscreen'           => __('Fullscreen', 'wprne'),
    385             'undo'                 => __('Undo', 'wprne'),
    386             'redo'                 => __('Redo', 'wprne'),
    387             'saveSettings'         => __('Save Settings', 'wprne'),
    388             'woock'                => __('Woocommerce API Consumer Key', 'wprne'),
    389             'woocs'                => __('Woocommerce API Consumer Secret', 'wprne'),
    390             'settings'             => __('Settings', 'wprne'),
    391             'deleteConfirm'        => __('Are You sure to delete this template?', 'wprne'),
    392             'insertTemplate'       => __('insert template', 'wprne'),
    393             'deleteTemplate'       => __('delete template', 'wprne'),
    394             'deleteTemplateHeader' => __('Delete Template', 'wprne'),
    395             'save'                 => __('Save', 'wprne'),
    396             'pageName'             => __('Page Name', 'wprne'),
    397             'pageTemplates'        => __('Page Templates', 'wprne'),
    398             'showHeaderBar'        => __('Show Header Bar', 'wprne'),
    399             'addBottomTab'         => __('Add to Bottom Tab Navigation', 'wprne'),
    400             'priority'             => __('Priority', 'wprne'),
    401             'inactiveColor'        => __('Inactive Color', 'wprne'),
    402             'addNewPage'           => __('add new page', 'wprne'),
    403             'addPageDialog'        => __('Add New Page', 'wprne'),
    404             'deletePageDialog'     => __('Delete Page', 'wprne'),
    405             'deletePage'           => __('delete page', 'wprne'),
    406             'duplicatePage'        => __('duplicate selected page', 'wprne'),
    407             'pageName'             => __('Page Name', 'wprne'),
    408             'selectedPageSetting'  => __('selected page settings', 'wprne'),
    409             'toolbarAlert'         => __('There is no page. Add a new page from the pages panel on the left.', 'wprne'),
    410             'errorSavePages'       => __('Something went wrong trying to save pages', 'wprne'),
    411             'successSavePages'     => __('Pages has been saved', 'wprne'),
    412             'previewMode'          => __('Preview Mode', 'wprne'),
    413             'builderMode'          => __('Builder Mode', 'wprne'),
    414             'layers'               => __('Layers', 'wprne'),
    415             'pages'                => __('Pages', 'wprne'),
    416             'templates'            => __('Templates', 'wprne'),
    417             'layerPanelAlert'      => __('Layers panel only available in builder mode', 'wprne'),
    418             'templatePanelAlert'   => __('Templates panel only available in builder mode', 'wprne'),
    419             'savePages'            => __('Save Pages', 'wprne'),
    420             'saving'               => __('Saving...', 'wprne'),
    421             'move'                 => __('move', 'wprne'),
    422             'horizontal'           => __('Horizontal', 'wprne'),
    423             'vertical'             => __('Vertical', 'wprne'),
    424             'solid'                => __('Solid', 'wprne'),
    425             'clear'                => __('Clear', 'wprne'),
    426             'outline'              => __('Outline', 'wprne'),
    427             'navigate'             => __('navigate', 'wprne'),
    428             'goBack'               => __('go back', 'wprne'),
    429             'atcAction'            => __('add to cart', 'wprne'),
    430             'toCheckout'           => __('to checkout', 'wprne'),
    431             'addQty'               => __('add cart item quantity', 'wprne'),
    432             'reduceQty'            => __('reduce cart item quantity', 'wprne'),
    433             'yes'                  => __('Yes', 'wprne'),
    434             'no'                   => __('No', 'wprne'),
    435             'wooProducts'          => __('Woocommerce Products', 'wprne'),
    436             'wooOrders'            => __('Woocommerce Orders', 'wprne'),
    437             'descending'           => __('Descending', 'wprne'),
    438             'ascending'            => __('Ascending', 'wprne'),
    439             'date'                 => __('Date', 'wprne'),
    440             'postId'               => __('Post Id', 'wprne'),
    441             'modified'             => __('Modified', 'wprne'),
    442             'all'                  => __('All', 'wprne'),
    443             'selectImage'          => __('Select image', 'wprne'),
    444             'changeImage'          => __('Change image', 'wprne'),
    445             'postImage'            => __('Post featured image', 'wprne'),
    446             'static'               => __('static', 'wprne'),
    447             'orderId'              => __('order number', 'wprne'),
    448             'orderStatus'          => __('order status', 'wprne'),
    449             'orderItem'            => __('order item', 'wprne'),
    450             'orderTotal'           => __('order total', 'wprne'),
    451             'shippingTotal'        => __('shipping total', 'wprne'),
    452             'paymentMethod'        => __('payment method', 'wprne'),
    453             'totalTax'             => __('total tax', 'wprne'),
    454             'currencySymbol'       => __('currency symbol', 'wprne'),
    455             'excerpt'              => __('Excerpt', 'wprne'),
    456             'content'              => __('Content', 'wprne'),
    457             'singlePost'           => __('Single Post', 'wprne'),
    458             'searchPost'           => __('Search Post', 'wprne'),
    459             'wooSingleProduct'     => __('Woocommerce Single Product', 'wprne'),
    460             'wooImageCarousel'     => __('Product Image Carousel', 'wprne'),
    461             'wooCart'              => __('Woocommerce Cart', 'wprne'),
    462             'cartItem'             => __('Cart Item', 'wprne'),
    463             'checkoutNative'       => __('Woocommerce Checkout', 'wprne'),
    464             'checkoutWebView'      => __('Checkout Web View', 'wprne'),
    465             'youtubePlayer'        => __('Youtube Player', 'wprne'),
    466             'selectComponent'      => __('Select Component', 'wprne'),
    467             'relative'             => __('Relative', 'wprne'),
    468             'absolute'             => __('Absolute', 'wprne'),
    469             'blank'                => __('Blank', 'wprne'),
    470             'wooShop'              => __('Woocommerce Shop', 'wprne'),
    471             'singleProduct'        => __('Single Product', 'wprne'),
    472             'myOrder'              => __('My Order', 'wprne'),
    473             'searchProduct'        => __('Search Product', 'wprne'),
    474             'addTemplateError'     => __('Something went wrong trying to save template', 'wprne'),
    475             'addTemplateSuccess'   => __('Template has been saved', 'wprne'),
    476             'saveSettingsError'    => __('Something went wrong trying to save settings', 'wprne'),
    477             'saveSettingsSuccess'  => __('Settings has been saved', 'wprne'),
    478             'tutorials'            => __('Tutorials', 'wprne'),
    479         );
    480     }
    481475}
Note: See TracChangeset for help on using the changeset viewer.