Plugin Directory

Changeset 3057077


Ignore:
Timestamp:
03/22/2024 08:59:12 PM (2 years ago)
Author:
tangibleinc
Message:

4.1.3

Location:
tangible-loops-and-logic
Files:
6 deleted
26 edited
1 copied

Legend:

Unmodified
Added
Removed
  • tangible-loops-and-logic/tags/4.1.3/readme.txt

    r3051819 r3057077  
    11=== Loops & Logic ===
    2 Stable tag: 4.1.2
     2Stable tag: 4.1.3
    33Requires at least: 6.0
    44Tested up to: 6.5
     
    151151
    152152== Changelog ==
     153
     154= 4.1.3 =
     155
     156Release Date: 2024-03-22
     157
     158- ACF Date/Time field: Add tests for field comparison with timestamps
     159- Base loop: Improve casting query parameter to array when non-string value is passed
     160- Beaver integration: Ensure Template module restores current post in context
     161- Taxonomy term loop: Handle case when include/exclude is given as integer ID
     162- Template save and format slugify: Use remove_accents() to convert all accent characters to ASCII characters, before creating slug with sanitize_title_with_dashes()
    153163
    154164= 4.1.2 =
  • tangible-loops-and-logic/tags/4.1.3/tangible-loops-and-logic.php

    r3051819 r3057077  
    44 * Plugin URI: https://loopsandlogic.com/
    55 * Description: A template system with content type loops and conditions.
    6  * Version: 4.1.2
     6 * Version: 4.1.3
    77 * Author: Team Tangible
    88 * Author URI: https://teamtangible.com
     
    1010 */
    1111
    12 define( 'TANGIBLE_LOOPS_AND_LOGIC_VERSION', '4.1.2' );
     12define( 'TANGIBLE_LOOPS_AND_LOGIC_VERSION', '4.1.3' );
    1313
    1414require_once __DIR__ . '/vendor/tangible/template-system/index.php';
  • tangible-loops-and-logic/tags/4.1.3/vendor/composer/installed.json

    r3051819 r3057077  
    88                "type": "git",
    99                "url": "https://github.com/TangibleInc/template-system.git",
    10                 "reference": "a4a57dd961b6316574f444d73c02ca633c7df59e"
     10                "reference": "c6fe960f08db57756f2fa399e43af97b05c794e6"
    1111            },
    1212            "dist": {
    1313                "type": "zip",
    14                 "url": "https://api.github.com/repos/TangibleInc/template-system/zipball/a4a57dd961b6316574f444d73c02ca633c7df59e",
    15                 "reference": "a4a57dd961b6316574f444d73c02ca633c7df59e",
     14                "url": "https://api.github.com/repos/TangibleInc/template-system/zipball/c6fe960f08db57756f2fa399e43af97b05c794e6",
     15                "reference": "c6fe960f08db57756f2fa399e43af97b05c794e6",
    1616                "shasum": ""
    1717            },
     
    2020                "yoast/phpunit-polyfills": "^1"
    2121            },
    22             "time": "2024-03-15T15:53:34+00:00",
     22            "time": "2024-03-22T20:26:13+00:00",
    2323            "default-branch": true,
    2424            "type": "library",
  • tangible-loops-and-logic/tags/4.1.3/vendor/composer/installed.php

    r3051819 r3057077  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => 'd901b4160973cc898c9110b8499b2e1f6a56918c',
     6        'reference' => '0d4507688c241ac4609dcd1bcc5446acb39e110e',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-main',
    1515            'version' => 'dev-main',
    16             'reference' => 'd901b4160973cc898c9110b8499b2e1f6a56918c',
     16            'reference' => '0d4507688c241ac4609dcd1bcc5446acb39e110e',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
     
    2323            'pretty_version' => 'dev-main',
    2424            'version' => 'dev-main',
    25             'reference' => 'a4a57dd961b6316574f444d73c02ca633c7df59e',
     25            'reference' => 'c6fe960f08db57756f2fa399e43af97b05c794e6',
    2626            'type' => 'library',
    2727            'install_path' => __DIR__ . '/../tangible/template-system',
  • tangible-loops-and-logic/tags/4.1.3/vendor/tangible/template-system/admin/system.php

    r3051819 r3057077  
    1414
    1515  public $name = 'tangible_template_system';
    16   public $version = '20240315';
     16  public $version = '20240322';
    1717
    1818  public $url;
  • tangible-loops-and-logic/tags/4.1.3/vendor/tangible/template-system/admin/template-post/save.php

    r3017133 r3057077  
    8888    $post = get_post( $result );
    8989
    90     $post_name = sanitize_title_with_dashes(
     90    $post_name = sanitize_title_with_dashes(remove_accents(
    9191      ! empty( $name ) ? $name
    92         : ( ! empty( $title ) ? $title : 'no-title' ), '', 'save'
    93     );
     92        : ( ! empty( $title ) ? $title : 'no-title' )
     93    ), '', 'save');
    9494
    9595    $plugin->save_unique_template_post_slug( $post, $post_name );
     
    116116  // Update template slug
    117117
    118   $post_name = sanitize_title_with_dashes( ! empty( $_POST['name'] ) ? $_POST['name']
    119     : ( ! empty( $post->post_title ) ? $post->post_title
    120       : 'no-title'
    121     ), '', 'save'
    122   );
     118  $post_name = sanitize_title_with_dashes(remove_accents(
     119    ! empty( $_POST['name'] ) ? $_POST['name']
     120      : ( ! empty( $post->post_title ) ? $post->post_title
     121        : 'no-title'
     122      )
     123  ), '', 'save');
    123124
    124125  $plugin->save_unique_template_post_slug( $post, $post_name );
  • tangible-loops-and-logic/tags/4.1.3/vendor/tangible/template-system/core.php

    r3051819 r3057077  
    2323
    2424template_system::$state = (object) [
    25   'version' => '20240315', // Automatically updated with npm run version
     25  'version' => '20240322', // Automatically updated with npm run version
    2626  'path' => __DIR__,
    2727  'url' => untrailingslashit( plugins_url( '/', __FILE__ ) ),
  • tangible-loops-and-logic/tags/4.1.3/vendor/tangible/template-system/framework/format/index.php

    r3049893 r3057077  
    111111 */
    112112function slugify($string) {
    113   return sanitize_title_with_dashes($string, null, 'save');
     113  return sanitize_title_with_dashes(remove_accents($string), null, 'save');
    114114};
    115115
     
    118118 */
    119119function multiple_values($value) {
     120
     121  if (is_array($value)) return $value;
     122  if (!is_string($value)) return [$value];
     123
    120124  if (isset($value[0]) && $value[0]==='[') {
    121125    try {
     
    127131    }
    128132  }
     133
    129134  $values = array_map('trim', explode(',', $value));
     135
    130136  return $values;
    131137};
  • tangible-loops-and-logic/tags/4.1.3/vendor/tangible/template-system/framework/index.php

    r3051819 r3057077  
    1717
    1818  public $name = 'tangible_framework';
    19   public $version = '20240315';
     19  public $version = '20240322';
    2020
    2121  function __construct() {
  • tangible-loops-and-logic/tags/4.1.3/vendor/tangible/template-system/integrations/beaver/modules/tangible-template/includes/frontend.php

    r3017133 r3057077  
    2121  $html            = $template_system->html;
    2222
     23  global $post;
     24
     25  $previous_post = $post;
     26
    2327  /**
    2428   * Ensure default loop context is set to current post
     
    2832  $loop->push_current_post_context();
    2933
    30 if ( $settings->toggle_type == 'editor' ) {
     34  if ( $settings->toggle_type == 'editor' ) {
    3135
    32   echo $html->render_with_catch_exit( $settings->html );
     36    echo $html->render_with_catch_exit( $settings->html );
    3337
    34 } elseif ( ! empty( $settings->saved_template ) ) {
     38  } elseif ( ! empty( $settings->saved_template ) ) {
    3539
    36   $post = get_post( $settings->saved_template );
     40    $template_post = get_post( $settings->saved_template );
    3741
    38   echo $template_system->render_template_post( $post );
    39 }
     42    echo $template_system->render_template_post( $template_post );
     43  }
    4044
    4145  $loop->pop_current_post_context();
     46
     47  // Restore current post in context
     48  $post = $previous_post;
     49
    4250?>
    4351</div>
  • tangible-loops-and-logic/tags/4.1.3/vendor/tangible/template-system/loop/types/taxonomy-term/index.php

    r3051363 r3057077  
    220220      if ( ! isset($query_args[ $key ])) continue;
    221221
     222      if (!is_array($query_args[ $key ])) {
     223        $query_args[ $key ] = [$query_args[ $key ]];
     224      }
     225
    222226      foreach ($query_args[ $key ] as $index => $value) {
    223227
  • tangible-loops-and-logic/tags/4.1.3/vendor/tangible/template-system/loop/utils/args.php

    r3049893 r3057077  
    7171  if ( in_array( 'array', $field_types ) ) {
    7272
    73     if ( is_string( $value ) ) {
     73    if ( !is_array( $value ) ) {
    7474      $value = format\multiple_values( $value );
    7575    }
  • tangible-loops-and-logic/tags/4.1.3/vendor/tangible/template-system/plugin.php

    r3051819 r3057077  
    33 * Plugin Name: Tangible Template System
    44 * Description: Template system shared by Tangible Blocks and Loops & Logic
    5  * Version: 20240315
     5 * Version: 20240322
    66 * GitHub Plugin URI: https://github.com/tangible/template-system
    77 */
  • tangible-loops-and-logic/trunk/readme.txt

    r3051819 r3057077  
    11=== Loops & Logic ===
    2 Stable tag: 4.1.2
     2Stable tag: 4.1.3
    33Requires at least: 6.0
    44Tested up to: 6.5
     
    151151
    152152== Changelog ==
     153
     154= 4.1.3 =
     155
     156Release Date: 2024-03-22
     157
     158- ACF Date/Time field: Add tests for field comparison with timestamps
     159- Base loop: Improve casting query parameter to array when non-string value is passed
     160- Beaver integration: Ensure Template module restores current post in context
     161- Taxonomy term loop: Handle case when include/exclude is given as integer ID
     162- Template save and format slugify: Use remove_accents() to convert all accent characters to ASCII characters, before creating slug with sanitize_title_with_dashes()
    153163
    154164= 4.1.2 =
  • tangible-loops-and-logic/trunk/tangible-loops-and-logic.php

    r3051819 r3057077  
    44 * Plugin URI: https://loopsandlogic.com/
    55 * Description: A template system with content type loops and conditions.
    6  * Version: 4.1.2
     6 * Version: 4.1.3
    77 * Author: Team Tangible
    88 * Author URI: https://teamtangible.com
     
    1010 */
    1111
    12 define( 'TANGIBLE_LOOPS_AND_LOGIC_VERSION', '4.1.2' );
     12define( 'TANGIBLE_LOOPS_AND_LOGIC_VERSION', '4.1.3' );
    1313
    1414require_once __DIR__ . '/vendor/tangible/template-system/index.php';
  • tangible-loops-and-logic/trunk/vendor/composer/installed.json

    r3051819 r3057077  
    88                "type": "git",
    99                "url": "https://github.com/TangibleInc/template-system.git",
    10                 "reference": "a4a57dd961b6316574f444d73c02ca633c7df59e"
     10                "reference": "c6fe960f08db57756f2fa399e43af97b05c794e6"
    1111            },
    1212            "dist": {
    1313                "type": "zip",
    14                 "url": "https://api.github.com/repos/TangibleInc/template-system/zipball/a4a57dd961b6316574f444d73c02ca633c7df59e",
    15                 "reference": "a4a57dd961b6316574f444d73c02ca633c7df59e",
     14                "url": "https://api.github.com/repos/TangibleInc/template-system/zipball/c6fe960f08db57756f2fa399e43af97b05c794e6",
     15                "reference": "c6fe960f08db57756f2fa399e43af97b05c794e6",
    1616                "shasum": ""
    1717            },
     
    2020                "yoast/phpunit-polyfills": "^1"
    2121            },
    22             "time": "2024-03-15T15:53:34+00:00",
     22            "time": "2024-03-22T20:26:13+00:00",
    2323            "default-branch": true,
    2424            "type": "library",
  • tangible-loops-and-logic/trunk/vendor/composer/installed.php

    r3051819 r3057077  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => 'd901b4160973cc898c9110b8499b2e1f6a56918c',
     6        'reference' => '0d4507688c241ac4609dcd1bcc5446acb39e110e',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-main',
    1515            'version' => 'dev-main',
    16             'reference' => 'd901b4160973cc898c9110b8499b2e1f6a56918c',
     16            'reference' => '0d4507688c241ac4609dcd1bcc5446acb39e110e',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
     
    2323            'pretty_version' => 'dev-main',
    2424            'version' => 'dev-main',
    25             'reference' => 'a4a57dd961b6316574f444d73c02ca633c7df59e',
     25            'reference' => 'c6fe960f08db57756f2fa399e43af97b05c794e6',
    2626            'type' => 'library',
    2727            'install_path' => __DIR__ . '/../tangible/template-system',
  • tangible-loops-and-logic/trunk/vendor/tangible/template-system/admin/system.php

    r3051819 r3057077  
    1414
    1515  public $name = 'tangible_template_system';
    16   public $version = '20240315';
     16  public $version = '20240322';
    1717
    1818  public $url;
  • tangible-loops-and-logic/trunk/vendor/tangible/template-system/admin/template-post/save.php

    r3017133 r3057077  
    8888    $post = get_post( $result );
    8989
    90     $post_name = sanitize_title_with_dashes(
     90    $post_name = sanitize_title_with_dashes(remove_accents(
    9191      ! empty( $name ) ? $name
    92         : ( ! empty( $title ) ? $title : 'no-title' ), '', 'save'
    93     );
     92        : ( ! empty( $title ) ? $title : 'no-title' )
     93    ), '', 'save');
    9494
    9595    $plugin->save_unique_template_post_slug( $post, $post_name );
     
    116116  // Update template slug
    117117
    118   $post_name = sanitize_title_with_dashes( ! empty( $_POST['name'] ) ? $_POST['name']
    119     : ( ! empty( $post->post_title ) ? $post->post_title
    120       : 'no-title'
    121     ), '', 'save'
    122   );
     118  $post_name = sanitize_title_with_dashes(remove_accents(
     119    ! empty( $_POST['name'] ) ? $_POST['name']
     120      : ( ! empty( $post->post_title ) ? $post->post_title
     121        : 'no-title'
     122      )
     123  ), '', 'save');
    123124
    124125  $plugin->save_unique_template_post_slug( $post, $post_name );
  • tangible-loops-and-logic/trunk/vendor/tangible/template-system/core.php

    r3051819 r3057077  
    2323
    2424template_system::$state = (object) [
    25   'version' => '20240315', // Automatically updated with npm run version
     25  'version' => '20240322', // Automatically updated with npm run version
    2626  'path' => __DIR__,
    2727  'url' => untrailingslashit( plugins_url( '/', __FILE__ ) ),
  • tangible-loops-and-logic/trunk/vendor/tangible/template-system/framework/format/index.php

    r3049893 r3057077  
    111111 */
    112112function slugify($string) {
    113   return sanitize_title_with_dashes($string, null, 'save');
     113  return sanitize_title_with_dashes(remove_accents($string), null, 'save');
    114114};
    115115
     
    118118 */
    119119function multiple_values($value) {
     120
     121  if (is_array($value)) return $value;
     122  if (!is_string($value)) return [$value];
     123
    120124  if (isset($value[0]) && $value[0]==='[') {
    121125    try {
     
    127131    }
    128132  }
     133
    129134  $values = array_map('trim', explode(',', $value));
     135
    130136  return $values;
    131137};
  • tangible-loops-and-logic/trunk/vendor/tangible/template-system/framework/index.php

    r3051819 r3057077  
    1717
    1818  public $name = 'tangible_framework';
    19   public $version = '20240315';
     19  public $version = '20240322';
    2020
    2121  function __construct() {
  • tangible-loops-and-logic/trunk/vendor/tangible/template-system/integrations/beaver/modules/tangible-template/includes/frontend.php

    r3017133 r3057077  
    2121  $html            = $template_system->html;
    2222
     23  global $post;
     24
     25  $previous_post = $post;
     26
    2327  /**
    2428   * Ensure default loop context is set to current post
     
    2832  $loop->push_current_post_context();
    2933
    30 if ( $settings->toggle_type == 'editor' ) {
     34  if ( $settings->toggle_type == 'editor' ) {
    3135
    32   echo $html->render_with_catch_exit( $settings->html );
     36    echo $html->render_with_catch_exit( $settings->html );
    3337
    34 } elseif ( ! empty( $settings->saved_template ) ) {
     38  } elseif ( ! empty( $settings->saved_template ) ) {
    3539
    36   $post = get_post( $settings->saved_template );
     40    $template_post = get_post( $settings->saved_template );
    3741
    38   echo $template_system->render_template_post( $post );
    39 }
     42    echo $template_system->render_template_post( $template_post );
     43  }
    4044
    4145  $loop->pop_current_post_context();
     46
     47  // Restore current post in context
     48  $post = $previous_post;
     49
    4250?>
    4351</div>
  • tangible-loops-and-logic/trunk/vendor/tangible/template-system/loop/types/taxonomy-term/index.php

    r3051363 r3057077  
    220220      if ( ! isset($query_args[ $key ])) continue;
    221221
     222      if (!is_array($query_args[ $key ])) {
     223        $query_args[ $key ] = [$query_args[ $key ]];
     224      }
     225
    222226      foreach ($query_args[ $key ] as $index => $value) {
    223227
  • tangible-loops-and-logic/trunk/vendor/tangible/template-system/loop/utils/args.php

    r3049893 r3057077  
    7171  if ( in_array( 'array', $field_types ) ) {
    7272
    73     if ( is_string( $value ) ) {
     73    if ( !is_array( $value ) ) {
    7474      $value = format\multiple_values( $value );
    7575    }
  • tangible-loops-and-logic/trunk/vendor/tangible/template-system/plugin.php

    r3051819 r3057077  
    33 * Plugin Name: Tangible Template System
    44 * Description: Template system shared by Tangible Blocks and Loops & Logic
    5  * Version: 20240315
     5 * Version: 20240322
    66 * GitHub Plugin URI: https://github.com/tangible/template-system
    77 */
Note: See TracChangeset for help on using the changeset viewer.