server {
server_name example.ru www.example.ru ;
listen 68.183.39.71:443 ssl;
ssl_certificate "/var/www/httpd-cert/example.ru_2020-11-13-13-03_46.crt";
ssl_certificate_key "/var/www/httpd-cert/example.ru_2020-11-13-13-03_46.key";
charset utf-8;
gzip on;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/css text/xml application/javascript text/plain application/json image/svg+xml image/x-icon;
gzip_comp_level 1;
set $root_path /var/www/example.ru/data/www/example.ru;
root $root_path;
disable_symlinks if_not_owner from=$root_path;
location / {
proxy_pass http://127.0.0.1:81;
proxy_redirect http://127.0.0.1:81/ /;
include /etc/nginx/proxy_params;
}
location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpeg|avi|zip|gz|bz2|rar|swf|ico|7z|doc|docx|map|ogg|otf|pdf|tff|tif|txt|wav|webp|woff|woff2|xls|xlsx|xml)$ {
try_files $uri $uri/ @fallback;
}
location @fallback {
proxy_pass http://127.0.0.1:81;
proxy_redirect http://127.0.0.1:81/ /;
include /etc/nginx/proxy_params;
}
include "/etc/nginx/fastpanel2-sites/example.ru/example.ru.includes";
include /etc/nginx/fastpanel2-includes/*.conf;
error_log /var/www/example.ru/data/logs/example.ru-frontend.error.log;
access_log /var/www/example.ru/data/logs/example.ru-frontend.access.log;
}
server {
server_name example.ru www.example.ru ;
listen 68.183.39.71:80 ssl;
return 301 https://$host$request_uri;
ssl_certificate "/var/www/httpd-cert/example.ru_2020-11-13-13-03_46.crt";
ssl_certificate_key "/var/www/httpd-cert/example.ru_2020-11-13-13-03_46.key";
}
server {
server_name example.ru www.example.ru ;
listen 68.183.39.71:80;
return 301 https://$host$request_uri;
error_log /var/www/example.ru/data/logs/example.ru-frontend.error.log;
access_log /var/www/example.ru/data/logs/example.ru-frontend.access.log;
}
$mypost_Query = new WP_Query( array(
'post_type' => 'post',
'post_status' => 'publish',
'posts_per_page' => 5,
'cat' => -2,
'meta_key' => 'index_sticky',
'order' => 'DESC',
'orderby' => array(
'meta_value_num' => 'DESC',
'date' => 'DESC',
),
) );
<table id="table">
<thead>
<tr>
<th>Дата</th>
<th>Просмотров</th>
<th>Визитов</th>
<th>Сеанс</th>
<th>Отказы</th>
<th>Глубина</th>
</tr>
</thead>
<tbody id="trafic">
<tr>
<td>2019-07-23</td>
<td>66</td>
<td>146</td>
<td>18.18</td>
<td>2.21</td>
<td>4.26</td>
</tr>
<tr>
<td>2019-07-24</td>
<td>64</td>
<td>134</td>
<td>23.44</td>
<td>2.09</td>
<td>4.46</td>
</tr>
<tr>
<td>2019-07-18</td>
<td>61</td>
<td>107</td>
<td>13.11</td>
<td>1.75</td>
<td>2.55</td>
</tr>
</tbody>
</table>
if(is_page_template('template.php')){
wp_enqueue_style ( 'template-main-css', get_template_directory_uri() . '/assets/template/css/main.css', array(), '1.0' );
wp_enqueue_script ( 'template-main-js', get_template_directory_uri() . '/assets/template/js/main.js', array(), '1.0', true ); //если true то скрипт подгружается перед </body>, если false то в head
}