|
72 | 72 |
|
73 | 73 | <main class="content">
|
74 | 74 | <div class="cards">
|
75 |
| - <!-- Card Template --> |
76 |
| - <article class="card"> |
77 |
| - <div class="card-image"> |
78 |
| - <img src="https://via.placeholder.com/150" alt="Food Image"> |
79 |
| - </div> |
80 |
| - <div class="card-content"> |
81 |
| - <h3>Shane Mario</h3> |
82 |
| - <p>You and your family will love this refreshing salad that's perfect for warm days or summer meals!</p> |
83 |
| - <button class="visit-btn">Visit Us</button> |
84 |
| - </div> |
85 |
| - </article> |
86 |
| - <!-- Repeat as needed --> |
87 |
| - <article class="card"> |
88 |
| - <div class="card-image"> |
89 |
| - <img src="https://via.placeholder.com/150" alt="Food Image"> |
90 |
| - </div> |
91 |
| - <div class="card-content"> |
92 |
| - <h3>Shane Mario</h3> |
93 |
| - <p>You and your family will love this refreshing salad that's perfect for warm days or summer meals!</p> |
94 |
| - <button class="visit-btn">Visit Us</button> |
95 |
| - </div> |
96 |
| - </article> |
| 75 | + <?php if (!empty($posts)): ?> |
| 76 | + <?php foreach ($posts as $post): ?> |
| 77 | + <article class="card"> |
| 78 | + <div class="card-image"> |
| 79 | + <img src="/assets/uploads/<?php echo $post['media']; ?>" alt="Post Media"> |
| 80 | + </div> |
| 81 | + <div class="card-content"> |
| 82 | + <h3><?php echo $technician['fname'] . ' ' . $technician['lname']; ?></h3> |
| 83 | + <p><?php echo htmlspecialchars($post['description'], ENT_QUOTES, 'UTF-8'); ?></p> |
| 84 | + <p><small>Posted on <?php echo date('F j, Y, g:i a', strtotime($post['created_at'])); ?></small> |
| 85 | + </p> |
| 86 | + </div> |
| 87 | + </article> |
| 88 | + <?php endforeach; ?> |
| 89 | + <?php else: ?> |
| 90 | + <p>No posts to display.</p> |
| 91 | + <?php endif; ?> |
97 | 92 | </div>
|
98 | 93 | </main>
|
99 | 94 |
|
| 95 | + |
| 96 | +<!--<main class="content">--> |
| 97 | +<!-- <div class="cards">--> |
| 98 | +<!-- <!-- Card Template --> |
| 99 | +<!-- <article class="card">--> |
| 100 | +<!-- <div class="card-image">--> |
| 101 | +<!-- <img src="https://via.placeholder.com/150" alt="Food Image">--> |
| 102 | +<!-- </div>--> |
| 103 | +<!-- <div class="card-content">--> |
| 104 | +<!-- <h3>Shane Mario</h3>--> |
| 105 | +<!-- <p>You and your family will love this refreshing salad that's perfect for warm days or summer meals!</p>--> |
| 106 | +<!-- <button class="visit-btn">Visit Us</button>--> |
| 107 | +<!-- </div>--> |
| 108 | +<!-- </article>--> |
| 109 | +<!-- <!-- Repeat as needed --> |
| 110 | +<!-- <article class="card">--> |
| 111 | +<!-- <div class="card-image">--> |
| 112 | +<!-- <img src="https://via.placeholder.com/150" alt="Food Image">--> |
| 113 | +<!-- </div>--> |
| 114 | +<!-- <div class="card-content">--> |
| 115 | +<!-- <h3>Shane Mario</h3>--> |
| 116 | +<!-- <p>You and your family will love this refreshing salad that's perfect for warm days or summer meals!</p>--> |
| 117 | +<!-- <button class="visit-btn">Visit Us</button>--> |
| 118 | +<!-- </div>--> |
| 119 | +<!-- </article>--> |
| 120 | +<!-- </div>--> |
| 121 | +<!--</main>--> |
| 122 | + |
100 | 123 | <!-- Overlay for the confirmation message -->
|
101 | 124 | <div id="signOutOverlay" class="overlay">
|
102 | 125 | <div class="overlay-content">
|
|
0 commit comments