fix icons classes and others posible future problems
authorEduardo <[email protected]>
Sat, 25 Nov 2023 14:24:39 +0000 (15:24 +0100)
committerEduardo <[email protected]>
Sat, 25 Nov 2023 14:24:39 +0000 (15:24 +0100)
Page: contact-us

page-generator/generator.php

index 7c0634bfdc84c7c419ae24bc9d2907817f8dcf8b..8af9c2d5a4486200a6d3e31ca82f221d3604ae8f 100644 (file)
@@ -191,7 +191,7 @@ class CodeGenerator
                         $html .= $closing_tag;
 
                         // if previous iteration was diferent class close p
-                    } elseif ($i != 0 && empty($url)) { // need to check if url is empty cause if not then the classes will go in the a tag
+                    } elseif ($i != 0 && empty($url) && empty($title)) { // need to check if url is empty cause if not then the classes will go in the a tag
                         if (empty($this->str_val_or_empty($data[$i - 1], 'url')) && array_map('trim', explode(",", $this->str_val_or_empty($data[$i - 1], 'class'))) != $class) {
                             [$closing_tag, $is_p_closed] = $this->open_or_close_p($is_p_closed, $class, CLOSE);
                             $html .= $closing_tag;