Skip to content

Conversation

@CySSoO
Copy link
Contributor

@CySSoO CySSoO commented Jan 15, 2026

Motivation

  • Prevent a SmartyCompilerException caused by inline ternary/isset(...) ? ... : ... usage inside the overrides array in the Google reviews prettyblock template.
  • Normalize optional boolean/flag overrides before building the overrides array so Smarty's parser does not choke on ternary expressions.

Description

  • Replace inline ternary isset($state.foo) ? $state.foo : null expressions with pre-assigned variables show_rating_override, show_avatar_override, and show_cta_override that are set to null and conditionally assigned when present.
  • Use the normalized variables in the overrides array construction instead of the ternary expressions.
  • Modified file: views/templates/hook/prettyblocks/prettyblock_google_reviews.tpl.

Testing

  • No automated tests were executed for this change.
  • Template parsing error was addressed by source change and committed, but no CI/test run was performed.

Codex Task

@CySSoO CySSoO merged commit e242022 into master Jan 15, 2026
2 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants