Plugin Directory

Changeset 3268579


Ignore:
Timestamp:
04/08/2025 09:52:59 AM (12 months ago)
Author:
ahmedkaludi
Message:

1.1.4 (08 April 2025)

  • Feature: Add setting button in Purge AMP CDN Cache #5671
  • Compatibility: Need to implement inMobi Choice #5678
  • Improvement: Add the close button feature in AMP Stories for better usability. #5680
  • Feature: Option to Disable Custom Third-Party Code Injection in AMP Pages #5681
Location:
accelerated-mobile-pages/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • accelerated-mobile-pages/trunk/accelerated-moblie-pages.php

    r3240662 r3268579  
    44Plugin URI: https://wordpress.org/plugins/accelerated-mobile-pages/
    55Description: AMP for WP - Accelerated Mobile Pages for WordPress
    6 Version: 1.1.3
     6Version: 1.1.4
    77Author: Ahmed Kaludi, Mohammed Kaludi
    88Author URI: https://ampforwp.com/
     
    2121define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
    2222define('AMPFORWP_MAIN_PLUGIN_DIR', plugin_dir_path( __DIR__ ) );
    23 define('AMPFORWP_VERSION','1.1.3');
     23define('AMPFORWP_VERSION','1.1.4');
    2424define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
    2525define('AMPFORWP_ANALYTICS_URL',plugin_dir_url(__FILE__).'includes/features/analytics');
  • accelerated-mobile-pages/trunk/changelog.txt

    r3240662 r3268579  
    11== Changelog ==
     2
     3= 1.1.4 (08 April 2025) =
     4* Feature: Add setting button in Purge AMP CDN Cache #5671
     5* Compatibility: Need to implement inMobi Choice #5678
     6* Improvement: Add the close button feature in AMP Stories for better usability. #5680
     7* Feature: Option to Disable Custom Third-Party Code Injection in AMP Pages #5681
     8
    29= 1.1.3 (14 February 2025) =
    310* Fixed: PHP Deprecated: error with AMP #5669
  • accelerated-mobile-pages/trunk/includes/features/notice-bar/notice-bar-options.php

    r3201326 r3268579  
    317317           ),
    318318           array(
     319            'id' => 'ampforwp-notice-inmobi',
     320            'type' => 'section',
     321            'title' => esc_html__('InMobi Notice Bar in AMP', 'accelerated-mobile-pages'),
     322            'indent' => true,
     323            'layout_type' => 'accordion',
     324            'accordion-open'=> 1,
     325                  ),
     326           array(
     327               'id'        =>'amp-inmobi-notice-switch',
     328               'type'      => 'switch',
     329               'title'     => esc_html__('InMobi Notice Bar', 'accelerated-mobile-pages'),
     330               'default'   => 0
     331           ),
     332           array(
     333               'class'  => 'child_opt',
     334               'id'        =>'amp-inmobi-id',
     335               'type'      => 'text',
     336               'title'     => esc_html__('Account Id', 'accelerated-mobile-pages'),
     337               'placeholder'=> 'InMobi Account Id',
     338               'required' => array('amp-inmobi-notice-switch', '=' , '1'),
     339           ),
     340           array(
     341               'class'  => 'child_opt',
     342               'id'        =>'amp-inmobi-hashcode',
     343               'type'      => 'text',
     344               'title'     => esc_html__('Hash Code', 'accelerated-mobile-pages'),
     345               'placeholder'=> '3BDXDqoakCk4Q4LzQqBGVQ',
     346               'required' => array('amp-inmobi-notice-switch', '=' , '1'),
     347           ),
     348           array(
     349               'class'  => 'child_opt',
     350               'id'        =>'amp-inmobi-publishercountrycode',
     351               'type'      => 'text',
     352               'title'     => esc_html__('Publisher Country Code', 'accelerated-mobile-pages'),
     353               'placeholder'=> 'US',
     354               'required' => array('amp-inmobi-notice-switch', '=' , '1'),
     355           ),
     356           array(
     357               'class'  => 'child_opt',
     358               'id'        =>'amp-inmobi-privacy-mode',
     359               'type'      => 'text',
     360               'title'     => esc_html__('Privacy Mode', 'accelerated-mobile-pages'),
     361               'placeholder'=> 'GDPR',
     362               'required' => array('amp-inmobi-notice-switch', '=' , '1'),
     363           ),
     364           array(
    319365           'class' => 'amp-popup-fld',
    320366           'id'   => 'info_normal_amp_popup',
  • accelerated-mobile-pages/trunk/readme.txt

    r3240662 r3268579  
    55Requires at least: 3.0
    66Tested up to: 6.7
    7 Stable tag: 1.1.3
     7Stable tag: 1.1.4
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    196196== Changelog ==
    197197
     198= 1.1.4 (08 April 2025) =
     199* Feature: Add setting button in Purge AMP CDN Cache #5671
     200* Compatibility: Need to implement inMobi Choice #5678
     201* Improvement: Add the close button feature in AMP Stories for better usability. #5680
     202* Feature: Option to Disable Custom Third-Party Code Injection in AMP Pages #5681
     203
    198204= 1.1.3 (14 February 2025) =
    199205* Fixed: PHP Deprecated: error with AMP #5669
  • accelerated-mobile-pages/trunk/templates/features.php

    r3201326 r3268579  
    24372437    echo ampforwp_get_setting('amp-footer-text-area-for-html') ;
    24382438  }
     2439
     2440  if (ampforwp_get_setting('amp-inmobi-notice-switch')) {
     2441        $id = ampforwp_get_setting('amp-inmobi-id');
     2442     $hashcode = ampforwp_get_setting('amp-inmobi-hashcode');
     2443     $country = ampforwp_get_setting('amp-inmobi-publishercountrycode');
     2444     $privacy = ampforwp_get_setting('amp-inmobi-privacy-mode');
     2445     $lang = ampforwp_get_setting('amp-inmobi-lang');
     2446     if (empty($privacy)) {
     2447        $privacy[] = "GDPR";
     2448     }else{
     2449        $exp = explode(',',$privacy);
     2450        $pri_arr = array();
     2451        for ($i=0; $i < count($exp); $i++) {
     2452            $pr ='"'.$exp[$i].'"';
     2453            $pri_arr[] = $pr;
     2454        }
     2455        $privacy = $pri_arr;
     2456     }
     2457     if (empty($lang)) {
     2458        $lang = 'en';
     2459     }
     2460    if (!empty($id) && !empty($hashcode) && !empty($country) ) {?>
     2461<amp-consent id="inmobi" layout="nodisplay">
     2462  <script type="application/json">
     2463    {
     2464      "consentInstanceId": "inmobi",
     2465      "checkConsentHref": "https://api.cmp.inmobi.com/amp/check-consent",
     2466      "consentRequired": "remote",
     2467      "promptUISrc": "https://cmp.inmobi.com/tcfv2/amp.html",
     2468      "clientConfig": {
     2469        "coreConfig": {
     2470          "vendorPurposeLegitimateInterestIds": [
     2471            2,
     2472            7,
     2473            8,
     2474            10,
     2475            9,
     2476            11
     2477          ],
     2478          "publisherPurposeIds": [],
     2479          "publisherSpecialPurposesIds": [],
     2480          "publisherFeaturesIds": [],
     2481          "stacks": [
     2482            1,
     2483            42
     2484          ],
     2485          "publisherLIRestrictionIds": [],
     2486          "inmobiAccountId": "<?php echo esc_attr( $id )?>",
     2487          "vendorSpecialPurposesIds": [
     2488            1,
     2489            2
     2490          ],
     2491          "initScreenBodyTextOption": 1,
     2492          "publisherConsentRestrictionIds": [],
     2493          "vendorPurposeIds": [2,4,6,7,9,10,1,3,5,8,11],
     2494          "totalVendors": 1420,
     2495          "lang_": "en",
     2496          "privacyMode": [<?php echo implode( ',', $privacy);?>],
     2497          "publisherPurposeLegitimateInterestIds": [],
     2498          "hashCode": "<?php echo esc_attr($hashcode)?>",
     2499          "vendorSpecialFeaturesIds": [
     2500            1,
     2501            2
     2502          ],
     2503          "displayUi": "always",
     2504          "publisherSpecialFeaturesIds": [],
     2505          "googleEnabled": false,
     2506          "vendorListUpdateFreq": 30,
     2507          "publisherCountryCode": "<?php echo esc_attr( $country );?>",
     2508          "vendorFeaturesIds": [
     2509            1,
     2510            2,
     2511            3
     2512          ],
     2513          "gvlVersion": 3
     2514        },
     2515        "coreUiLabels": {},
     2516        "theme": {},
     2517        "tagVersion": "V3"
     2518      }
     2519    }
     2520  </script>
     2521</amp-consent>
     2522<?php
     2523    }
     2524}
    24392525  //Quantcast Support #4951
    24402526  if (ampforwp_get_setting('amp-quantcast-notice-switch')) {
     
    24532539     }
    24542540
    2455   if (!empty($id) && !empty($hashcode) && !empty($country) && !empty($name) ) {?>
     2541    if (!empty($id) && !empty($hashcode) && !empty($country) && !empty($name) ) {?>
    24562542    <amp-consent id="quantcast" layout="nodisplay">
    24572543        <script type="application/json">
     
    87198805        $content = preg_replace('/<square-placement(.*)<\/square-placement>/', '', $content);
    87208806    }
     8807    if(preg_match('/<comentario-comments(.*)<\/comentario-comments>/', $content)){
     8808        $content = preg_replace('/<comentario-comments(.*)<\/comentario-comments>/', '', $content);
     8809    }
    87218810    if(empty($content)){
    87228811        return $content;
Note: See TracChangeset for help on using the changeset viewer.