Git Komut Rehberi & Terminal Asistanı
Sıfırdan Yeni Bir Depo Başlatın:
Mevcut Bir Git Deposu veya Klasörü Gönderin:
Hataları Geri Alma, İptal & Temizlik:
Son commit'i geri al (yapılan değişiklikleri korur):
git reset --soft HEAD~1
Yapılan yerel değişiklikleri iptal et (çalışma ağacını temizler):
git restore .
Takip edilmeyen gereksiz dosyaları sil:
git clean -fd
Değişiklikleri geçici sakla ve geri getir (stash):
git stash git stash pop
Dal (Branch) ve Sürüm Etiketleri:
Yeni dal aç ve geçiş yap:
git checkout -b yeni-ozellik git push -u origin yeni-ozellik
Sürüm etiketi (tag) oluştur ve gönder:
git tag -a v1.0.0 -m "Sürüm 1.0.0" git push origin --tags
36 lines
1.1 KiB
PHP
36 lines
1.1 KiB
PHP
<h2>Latest Products</h2>
|
|||
|
|
<p>Welcome to our accessible product catalog.</p>
|
||
|
|
|
||
|
|
<?php
|
||
|
|
$products = [
|
||
|
|
['id' => 1, 'name' => 'Super Gadget', 'image' => 'gadget.jpg', 'price' => '$99'],
|
||
|
|
['id' => 2, 'name' => 'Mega Widget', 'image' => 'widget.png', 'price' => '$49'],
|
||
|
|
['id' => 3, 'name' => 'Ultra Thing', 'image' => 'thing.jpg', 'price' => '$199'],
|
||
|
|
];
|
||
|
|
?>
|
||
|
|
|
||
|
|
<div class="products">
|
||
|
|
<?php foreach ($products as $product): ?>
|
||
|
|
<div class="card">
|
||
|
|
<!-- FIXED: Added alt attribute describing the product -->
|
||
|
|
<img src="images/<?php echo $product['image']; ?>" width="100"
|
||
|
|
alt="<?php echo htmlspecialchars($product['name']); ?>">
|
||
|
|
<h3>
|
||
|
|
<?php echo $product['name']; ?>
|
||
|
|
</h3>
|
||
|
|
<p>
|
||
|
|
<?php echo $product['price']; ?>
|
||
|
|
</p>
|
||
|
|
<button class="btn">Buy Now</button>
|
||
|
|
</div>
|
||
|
|
<?php endforeach; ?>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<hr>
|
||
|
|
|
||
|
|
<h3>Sponsors</h3>
|
||
|
|
<div>
|
||
|
|
<!-- FIXED: Added empty alt="" for decorative images -->
|
||
|
|
<img src="https://via.placeholder.com/150" alt="">
|
||
|
|
<img src="https://via.placeholder.com/150" alt="">
|
||
|
|
</div>
|