Ссылки и шорткод
This commit is contained in:
parent
00a24c10eb
commit
d78a48cfcb
3637
css/child-theme.css
3637
css/child-theme.css
File diff suppressed because it is too large
Load diff
5
css/child-theme.min.css
vendored
5
css/child-theme.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,11 +1,11 @@
|
||||||
@import "theme/child_theme_variables"; // <--------- Add your variables into this file. Also add variables to overwrite Bootstrap variables here
|
@import "theme/child_theme_variables"; // <--------- Add your variables into this file. Also add variables to overwrite Bootstrap variables here
|
||||||
@import "assets/bootstrap4";// <--------- Loads Bootstrap3 or Bootstrap4. Change from /bootstrap3 to /bootstrap4 Watch out! just for testing in the moment!
|
@import "assets/bootstrap4";
|
||||||
@import "../src/sass/understrap/understrap/understrap";// <-------- Loads the UnderStrap defaults. Just a few classes to incorporate BS in WP
|
@import "../src/sass/understrap/understrap/understrap";// <-------- Loads the UnderStrap defaults. Just a few classes to incorporate BS in WP
|
||||||
@import "../src/sass/understrap/theme/contact-form7";// <-------- Loads some basic styling for contact form 7 plugin
|
//@import "../src/sass/understrap/theme/contact-form7";// <-------- Loads some basic styling for contact form 7 plugin
|
||||||
|
|
||||||
//Optional files - If you don´t use the corresponding scripts/fonts comment em out
|
//Optional files - If you don´t use the corresponding scripts/fonts comment em out
|
||||||
@import "assets/font-awesome"; // <------- Font Awesome Icon font
|
//@import "assets/font-awesome"; // <------- Font Awesome Icon font
|
||||||
@import "assets/underscores"; // <------- Underscores media styles
|
//@import "assets/underscores"; // <------- Underscores media styles
|
||||||
|
|
||||||
// Any additional imported files //
|
// Any additional imported files //
|
||||||
@import "theme/child_theme"; // <--------- Add your styles into this file
|
@import "theme/child_theme"; // <--------- Add your styles into this file
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
u,
|
u,
|
||||||
#content a:hover:not(.btn) {
|
#content a:not(.btn) {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
background: linear-gradient(#fffff8, #fffff8), linear-gradient(#fffff8, #fffff8), linear-gradient(#333, #333);
|
background: linear-gradient(#fffff8, #fffff8), linear-gradient(#fffff8, #fffff8), linear-gradient(#333, #333);
|
||||||
background-size: 0.05em 1px, 0.05em 1px, 1px 1px;
|
background-size: 0.05em 1px, 0.05em 1px, 1px 1px;
|
||||||
|
@ -18,6 +18,11 @@ u,
|
||||||
text-shadow: 0.03em 0 #fffff8, -0.03em 0 #fffff8, 0 0.03em #fffff8, 0 -0.03em #fffff8, 0.06em 0 #fffff8, -0.06em 0 #fffff8, 0.09em 0 #fffff8, -0.09em 0 #fffff8, 0.12em 0 #fffff8, -0.12em 0 #fffff8, 0.15em 0 #fffff8, -0.15em 0 #fffff8;
|
text-shadow: 0.03em 0 #fffff8, -0.03em 0 #fffff8, 0 0.03em #fffff8, 0 -0.03em #fffff8, 0.06em 0 #fffff8, -0.06em 0 #fffff8, 0.09em 0 #fffff8, -0.09em 0 #fffff8, 0.12em 0 #fffff8, -0.12em 0 #fffff8, 0.15em 0 #fffff8, -0.15em 0 #fffff8;
|
||||||
background-position: 0% 93%, 100% 93%, 0% 93%;
|
background-position: 0% 93%, 100% 93%, 0% 93%;
|
||||||
}
|
}
|
||||||
|
#content a:hover:not(.btn) {
|
||||||
|
text-decoration: none;
|
||||||
|
text-shadow: none;
|
||||||
|
background-image: none;
|
||||||
|
}
|
||||||
aside.widget {
|
aside.widget {
|
||||||
margin-top: $font-size-base;
|
margin-top: $font-size-base;
|
||||||
}
|
}
|
||||||
|
@ -40,57 +45,54 @@ aside.widget {
|
||||||
margin-top: $font-size-base;
|
margin-top: $font-size-base;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- KRIL begin --- */
|
.kril-nomination {
|
||||||
/* --- (c) Nafanin --- */
|
text-align: center;
|
||||||
|
}
|
||||||
.kril-game {}
|
.kril-game {
|
||||||
|
|
||||||
.kril-game-header {
|
.kril-game-header {
|
||||||
overflow: hidden;
|
display: flex;
|
||||||
}
|
flex-direction: row;
|
||||||
|
|
||||||
.kril-game-title {
|
|
||||||
float: left;
|
|
||||||
width: 450px;
|
|
||||||
float: left;
|
|
||||||
width: 480px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.kril-game-name {
|
.kril-game-name {
|
||||||
font-size: 28px;
|
font-size: $h3-font-size;
|
||||||
|
flex-grow: 1;
|
||||||
|
max-width: 600px;
|
||||||
|
&::before {
|
||||||
|
content: "«";
|
||||||
}
|
}
|
||||||
|
&::after {
|
||||||
.kril-game-author, .kril-game-platform {
|
content: "»";
|
||||||
font-size: 14px;
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.kril-authors {
|
||||||
|
display: block;
|
||||||
|
padding-top: ($h3-font-size / 2);
|
||||||
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
.kril-game-num {
|
.kril-game-num {
|
||||||
float: right;
|
float: right;
|
||||||
font-size: 36px;
|
font-size: 36px;
|
||||||
width: 80px;
|
width: 80px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.kril-game-info {
|
.kril-game-info {
|
||||||
overflow: hidden;
|
display: flex;
|
||||||
margin-top: 20px;
|
flex-direction: row;
|
||||||
}
|
}
|
||||||
|
|
||||||
.kril-game-pic {
|
.kril-game-pic {
|
||||||
float: left;
|
flex-grow: 1;
|
||||||
width: 150px;
|
flex-shrink: 1;
|
||||||
vertical-align: top;
|
|
||||||
margin-right: 20px;
|
|
||||||
img {
|
img {
|
||||||
width: 150px;
|
max-width: 100%;
|
||||||
height: 150px;
|
height: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.kril-game-descr {
|
||||||
|
margin-left: $font-size-base;
|
||||||
|
flex-grow: 2;
|
||||||
|
flex-shrink: 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.kril-game-descr {
|
|
||||||
float: left;
|
|
||||||
vertical-align: top;
|
|
||||||
width: 420px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.kril-game hr, hr.kril {
|
.kril-game hr, hr.kril {
|
||||||
border: 0;
|
border: 0;
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
$primary: #1f2429;
|
$primary: #1f2429;
|
||||||
|
$link-color: #132B0E;
|
||||||
|
|
||||||
$rudy-primary-color: #212121;
|
$rudy-primary-color: #212121;
|
||||||
$rudy-primary-color-light: #9E9E9E;
|
$rudy-primary-color-light: #9E9E9E;
|
||||||
|
|
|
@ -30,32 +30,36 @@ function gamelist($atts){
|
||||||
if( $the_query->have_posts() ) {
|
if( $the_query->have_posts() ) {
|
||||||
while( $the_query->have_posts() ) {
|
while( $the_query->have_posts() ) {
|
||||||
$the_query->the_post();
|
$the_query->the_post();
|
||||||
$retval .= '<h2>'.$name.'</h2>';
|
$retval .= '<h2 class="kril-nomination">'.$name.'</h2>';
|
||||||
$retval .= '<div class="games">';
|
$retval .= '<div class="games">';
|
||||||
if ($i > 1) {
|
if ($i > 1) {
|
||||||
$retval .= '<hr class="kril">';
|
$retval .= '<hr class="kril">';
|
||||||
}
|
}
|
||||||
$retval .= '<div class="kril-game">';
|
$retval .= '<div class="kril-game">';
|
||||||
$retval .= '<div class="kril-game-header"><div class="kril-game-title"><div class="kril-game-name">'.
|
$retval .= '<div class="kril-game-header">';
|
||||||
'<a name="game-'.$nomination.'-'.$i.'"></a>'.get_the_title().'</div><div class="kril-game-author">Авторы:'.
|
$retval .= '<div class="kril-game-name">'.
|
||||||
get_field('authors').'</div></div>'.
|
'<a name="game-'.$nomination.'-'.$i.'"></a>'.get_the_title().
|
||||||
'<div class="kril-game-platform">Платформа: '.get_field('platform').'</div></div>'.
|
'</div>';
|
||||||
|
$retval .= '<div class="kril-meta">';
|
||||||
|
$retval .= '<p><span class="sr-only">Авторы:</span><span class="kril-authors">'.get_field('authors').'</span></p>';
|
||||||
|
$retval .= '</div></div>'.
|
||||||
'<div class="kril-game-info">'.
|
'<div class="kril-game-info">'.
|
||||||
'<p class="kril-game-pic">'.get_the_post_thumbnail().'</p>'.
|
'<div class="kril-game-pic">'.get_the_post_thumbnail().'</div>';
|
||||||
'<div class="kril-game-descr">'.get_the_content().'</div>';
|
$retval .= '<div class="kril-game-descr"><p>'.get_the_content().'</p>';
|
||||||
|
$retval .= '<p><strong>Платформа:</strong> '.get_field('platform').'</p>';
|
||||||
$online = get_field('link_online');
|
$online = get_field('link_online');
|
||||||
$offline = get_field('link_offline');
|
$offline = get_field('link_offline');
|
||||||
if (!empty($online) || !empty($offline)) {
|
if (!empty($online) || !empty($offline)) {
|
||||||
$retval .= '<div class="kril-links">';
|
$retval .= '<div class="kril-links">';
|
||||||
if (!empty($online)) {
|
if (!empty($online)) {
|
||||||
$retval .= get_field('link_online');
|
$retval .= '<a href="'.get_field('link_online').'" target="_blank">Играть онлайн</a>';
|
||||||
}
|
}
|
||||||
if (!empty($offline)) {
|
if (!empty($offline)) {
|
||||||
$retval .= get_field('link_offline');
|
$retval .= '<a href="'.get_field('link_offline').'" target="_blank">Скачать архив</a>';
|
||||||
}
|
}
|
||||||
$retval .= '</div>';
|
$retval .= '</div>';
|
||||||
}
|
}
|
||||||
$retval .= '</div>';
|
$retval .= '</div></div>';
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
$retval .= '</div>';
|
$retval .= '</div>';
|
||||||
|
|
Loading…
Reference in a new issue