$text = "- 8bit/forum/category_70/
- acer/blog/category_904/page_67/
- kiwidition/photo/category_128/page_32/
- edc/poll/category_51/";
$text = preg_replace('/category_\d+/', '[url=$0]$0[/url]', $text);
echo $text;
:selected.attr="item.selected"
function generateFaqSchema($postId) {
$repeater = get_post_meta($postId, 'faqshema', true);
$count = count($repeater);
$jsonLd = [
"@context" => "https://schema.org",
"@type" => "FAQPage",
"mainEntity" => []
];
foreach ($repeater as $item) {
$question = $item['question'];
$answer = $item['answer'];
$jsonLd['mainEntity'][] = [
"@type" => "Question",
"name" => $question,
"acceptedAnswer" => [
"@type" => "Answer",
"text" => $answer
]
];
$count--;
if ($count > 0) {
$jsonLd['mainEntity'][] = ',';
}
}
return '
<script type="application/ld+json">
' . json_encode($jsonLd) . '
</script>
';
}
echo generateFaqSchema(get_the_ID());
'guards' => [
'admin' => [
'driver' => 'session',
'provider' => 'admin',
],
'account' => [
'driver' => 'session',
'provider' => 'account',
],
],
'providers' => [
'admin' => [
'driver' => 'eloquent',
'model' => App\Models\Admin\User::class,
],
'account' => [
'driver' => 'eloquent',
'model' => App\Models\Account\User::class,
],
],
server {
listen 80;
server_name domain.com;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl;
server_name domain.com;
location / {
proxy_pass http://localhost:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}
server {
listen 80;
listen [::]:80;
server_name _;
root /var/www/domain.com/public;
index index.php;
charset utf-8;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
error_page 404 /index.php;
location ~ \.php$ {
try_files $uri =404;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
}