Plugin Directory

Changeset 2408971


Ignore:
Timestamp:
10/29/2020 10:53:23 AM (5 years ago)
Author:
xamoom1
Message:

tagging version 3.6

Location:
xamoom
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • xamoom/tags/3.6/includes/class-xamoom.php

    r2362768 r2408971  
    6969
    7070        $this->plugin_name = 'xamoom';
    71         $this->version = '3.5.0';
     71        $this->version = '3.6.0';
    7272        $this->api_endpoint = 'https://api.xamoom.net/consumer/';
    7373        // $this->api_endpoint = 'https://xamoom-dev.appspot.com/consumer/'; // DEV
  • xamoom/tags/3.6/public/class-xamoom-public.php

    r2362768 r2408971  
    183183        $html = "<style type='text/css'>" . get_option('xamoom_custom_css') . "</style>";
    184184       
    185 
    186185        //render block HTML for each content block
    187186        for($i = 0; $i < count($content_blocks); $i++){
    188187            $block = $content_blocks[$i]['attributes'];
    189188            $block_type = $block['block-type']; //get block type
    190 
    191             $html .= "<div class='xamoom_block'>"; //initializes content block div container
    192 
     189            $is_public = $block['is-public'];
     190
     191            if (!$is_public && !wp_is_mobile()) {
     192                continue;
     193            }
     194       
     195            //initializes content block div container
     196            $html .= "<div class='xamoom_block'>";
    193197
    194198            $html = $this->generate_blocks_html($block, $block_type, $html, $lang, $id, $custom_map_marker);
     
    477481                        $icon = "fa-google-plus";
    478482                        break;
    479                     case "11": //TEL
     483                case "11": //TEL
    480484                        $icon = "fa-phone";
    481485                        break;
    482                     case "12": //EMAIL
     486                case "12": //EMAIL
    483487                        $icon = "fa-envelope-o";
    484488                        break;
    485                     case "13": //SPOTIFY
     489                case "13": //SPOTIFY
    486490                        $icon = "fa-spotify";
    487491                        break;
    488                     case "14": //GOOGLE_MAPS
     492                case "14": //GOOGLE_MAPS
    489493                        $icon = "fa-location-arrow";
     494                        break;
     495                case "15": //APP STORE
     496                        $icon = "fa fa-apple";
     497                        break;
     498                case "16": //GOOGLE PLAY
     499                        $icon = "fab fa-google-play";
     500                        break;
     501                case "17": //WINDOWS STORE
     502                        $icon = "fa fa-windows";
     503                        break;
     504                case "18": //INSTAGRAM
     505                        $icon = "fa fa-instagram";
     506                        break;
     507                case "19": //SMS
     508                        $icon = "fas fa-sms";
     509                        break;
     510                case "20": //WHATSAPP
     511                        $icon = "fab fa-whatsapp";
    490512                        break;
    491513                }
     
    714736                        $html .= "var img = new Image();
    715737                            img.onload = async function() {
    716                             const mapBounds = renderMap_" . ($id . 'tour') . "_" . $map_id . "(this.width,this.height);\n
     738                            var mapBounds = renderMap_" . ($id . 'tour') . "_" . $map_id . "(this.width,this.height);\n
    717739                            map" . ($id . 'tour') . "_" . $map_id . " = mapBounds.map;\n
    718740                            new tourMap('$id', '$map_id', '" . $file_url . "', ". $block['scale-x'] .", map" . ($id . 'tour') . "_" . $map_id . ",'" .  $lang ."', mapBounds.bounds  );
     
    721743                            ";
    722744                    } else { //render without custom marker
    723                         $html .= "const mapBounds = renderMap_" . ($id . 'tour') . "_" . $map_id . "(this.width,this.height);\n
     745                        $html .= "var mapBounds = renderMap_" . ($id . 'tour') . "_" . $map_id . "(this.width,this.height);\n
    724746                        map" . ($id . 'tour') . "_" . $map_id . " = mapBounds.map;\n";
    725747                        $html .= "new tourMap('$id', '$map_id','" . $file_url . "', ". $block['scale-x'] .", map" . ($id . 'tour') . "_" . $map_id . ",'" .  $lang ."', mapBounds.bounds )";
     
    955977     */
    956978    public function call_api($url){
    957         $header = array('headers' => array( 'ApiKey' => get_option('xamoom_api_key'), 'X-Reason' => 2, 'user-agent' => 'xamoom wordpress plugin' ));
    958         $result = wp_remote_get( $url , array('headers' => array( 'ApiKey' => get_option('xamoom_api_key'), 'X-Reason' => 2, 'user-agent' => 'xamoom wordpress plugin' ) ));
     979        $header = array('headers' => array( 'ApiKey' => get_option('xamoom_api_key'), 'X-Reason' => 0, 'user-agent' => 'xamoom wordpress plugin' ));
     980        $result = wp_remote_get( $url , array('headers' => array( 'ApiKey' => get_option('xamoom_api_key'), 'X-Reason' => 0, 'user-agent' => 'xamoom wordpress plugin' ) ));
    959981        return wp_remote_retrieve_body($result);
    960982    }
  • xamoom/tags/3.6/readme.txt

    r2362777 r2408971  
    33Tags: CMS, Location Based Service, Mobile Marketing, NFC, QR, iBeacon
    44Requires at least: 4.5
    5 Tested up to: 5.5
     5Tested up to: 5.5.1
    66Requires PHP: 5.2.4
    7 Stable tag: 3.5.0
     7Stable tag: 3.6.0
    88
    99The connection between the xamoom CMS and WordPress. Use your great mobile content also on the desktop.
     
    4343
    4444== Changelog ==
     45= 3.6 =
     46* Added new link blocks WhatsApp and SMS.
     47
    4548= 3.5 =
    4649* Added new content block tour.
  • xamoom/tags/3.6/xamoom.php

    r2362768 r2408971  
    3737 * Plugin URI:        http://xamoom.com
    3838 * Description:       This plugin allows you to sync xamoom pages to Wordpress
    39  * Version:           3.5.0
     39 * Version:           3.6.0
    4040 * Author:            xamoom GmbH
    4141 * Author URI:        http://xamoom.com/
  • xamoom/trunk/includes/class-xamoom.php

    r2362768 r2408971  
    6969
    7070        $this->plugin_name = 'xamoom';
    71         $this->version = '3.5.0';
     71        $this->version = '3.6.0';
    7272        $this->api_endpoint = 'https://api.xamoom.net/consumer/';
    7373        // $this->api_endpoint = 'https://xamoom-dev.appspot.com/consumer/'; // DEV
  • xamoom/trunk/public/class-xamoom-public.php

    r2362768 r2408971  
    183183        $html = "<style type='text/css'>" . get_option('xamoom_custom_css') . "</style>";
    184184       
    185 
    186185        //render block HTML for each content block
    187186        for($i = 0; $i < count($content_blocks); $i++){
    188187            $block = $content_blocks[$i]['attributes'];
    189188            $block_type = $block['block-type']; //get block type
    190 
    191             $html .= "<div class='xamoom_block'>"; //initializes content block div container
    192 
     189            $is_public = $block['is-public'];
     190
     191            if (!$is_public && !wp_is_mobile()) {
     192                continue;
     193            }
     194       
     195            //initializes content block div container
     196            $html .= "<div class='xamoom_block'>";
    193197
    194198            $html = $this->generate_blocks_html($block, $block_type, $html, $lang, $id, $custom_map_marker);
     
    477481                        $icon = "fa-google-plus";
    478482                        break;
    479                     case "11": //TEL
     483                case "11": //TEL
    480484                        $icon = "fa-phone";
    481485                        break;
    482                     case "12": //EMAIL
     486                case "12": //EMAIL
    483487                        $icon = "fa-envelope-o";
    484488                        break;
    485                     case "13": //SPOTIFY
     489                case "13": //SPOTIFY
    486490                        $icon = "fa-spotify";
    487491                        break;
    488                     case "14": //GOOGLE_MAPS
     492                case "14": //GOOGLE_MAPS
    489493                        $icon = "fa-location-arrow";
     494                        break;
     495                case "15": //APP STORE
     496                        $icon = "fa fa-apple";
     497                        break;
     498                case "16": //GOOGLE PLAY
     499                        $icon = "fab fa-google-play";
     500                        break;
     501                case "17": //WINDOWS STORE
     502                        $icon = "fa fa-windows";
     503                        break;
     504                case "18": //INSTAGRAM
     505                        $icon = "fa fa-instagram";
     506                        break;
     507                case "19": //SMS
     508                        $icon = "fas fa-sms";
     509                        break;
     510                case "20": //WHATSAPP
     511                        $icon = "fab fa-whatsapp";
    490512                        break;
    491513                }
     
    714736                        $html .= "var img = new Image();
    715737                            img.onload = async function() {
    716                             const mapBounds = renderMap_" . ($id . 'tour') . "_" . $map_id . "(this.width,this.height);\n
     738                            var mapBounds = renderMap_" . ($id . 'tour') . "_" . $map_id . "(this.width,this.height);\n
    717739                            map" . ($id . 'tour') . "_" . $map_id . " = mapBounds.map;\n
    718740                            new tourMap('$id', '$map_id', '" . $file_url . "', ". $block['scale-x'] .", map" . ($id . 'tour') . "_" . $map_id . ",'" .  $lang ."', mapBounds.bounds  );
     
    721743                            ";
    722744                    } else { //render without custom marker
    723                         $html .= "const mapBounds = renderMap_" . ($id . 'tour') . "_" . $map_id . "(this.width,this.height);\n
     745                        $html .= "var mapBounds = renderMap_" . ($id . 'tour') . "_" . $map_id . "(this.width,this.height);\n
    724746                        map" . ($id . 'tour') . "_" . $map_id . " = mapBounds.map;\n";
    725747                        $html .= "new tourMap('$id', '$map_id','" . $file_url . "', ". $block['scale-x'] .", map" . ($id . 'tour') . "_" . $map_id . ",'" .  $lang ."', mapBounds.bounds )";
     
    955977     */
    956978    public function call_api($url){
    957         $header = array('headers' => array( 'ApiKey' => get_option('xamoom_api_key'), 'X-Reason' => 2, 'user-agent' => 'xamoom wordpress plugin' ));
    958         $result = wp_remote_get( $url , array('headers' => array( 'ApiKey' => get_option('xamoom_api_key'), 'X-Reason' => 2, 'user-agent' => 'xamoom wordpress plugin' ) ));
     979        $header = array('headers' => array( 'ApiKey' => get_option('xamoom_api_key'), 'X-Reason' => 0, 'user-agent' => 'xamoom wordpress plugin' ));
     980        $result = wp_remote_get( $url , array('headers' => array( 'ApiKey' => get_option('xamoom_api_key'), 'X-Reason' => 0, 'user-agent' => 'xamoom wordpress plugin' ) ));
    959981        return wp_remote_retrieve_body($result);
    960982    }
  • xamoom/trunk/readme.txt

    r2362777 r2408971  
    33Tags: CMS, Location Based Service, Mobile Marketing, NFC, QR, iBeacon
    44Requires at least: 4.5
    5 Tested up to: 5.5
     5Tested up to: 5.5.1
    66Requires PHP: 5.2.4
    7 Stable tag: 3.5.0
     7Stable tag: 3.6.0
    88
    99The connection between the xamoom CMS and WordPress. Use your great mobile content also on the desktop.
     
    4343
    4444== Changelog ==
     45= 3.6 =
     46* Added new link blocks WhatsApp and SMS.
     47
    4548= 3.5 =
    4649* Added new content block tour.
  • xamoom/trunk/xamoom.php

    r2362768 r2408971  
    3737 * Plugin URI:        http://xamoom.com
    3838 * Description:       This plugin allows you to sync xamoom pages to Wordpress
    39  * Version:           3.5.0
     39 * Version:           3.6.0
    4040 * Author:            xamoom GmbH
    4141 * Author URI:        http://xamoom.com/
Note: See TracChangeset for help on using the changeset viewer.