13 lines
523 B
PHP
13 lines
523 B
PHP
<?php
|
|
$content = file_get_contents('display.php');
|
|
$search = '<div class="card-body text-center p-2 d-flex flex-column align-items-center justify-content-center">';
|
|
$replace = '<div class="card-body w-100 text-center p-2 d-flex flex-column align-items-center justify-content-center">';
|
|
$newContent = str_replace($search, $replace, $content);
|
|
if ($newContent !== $content) {
|
|
file_put_contents('display.php', $newContent);
|
|
echo "Added w-100 to card-body\n";
|
|
} else {
|
|
echo "w-100 already added or not found\n";
|
|
}
|
|
|