Ссылки и шорткод
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 "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/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
|
||||
@import "assets/font-awesome"; // <------- Font Awesome Icon font
|
||||
@import "assets/underscores"; // <------- Underscores media styles
|
||||
//@import "assets/font-awesome"; // <------- Font Awesome Icon font
|
||||
//@import "assets/underscores"; // <------- Underscores media styles
|
||||
|
||||
// Any additional imported files //
|
||||
@import "theme/child_theme"; // <--------- Add your styles into this file
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
width: 100%;
|
||||
}
|
||||
u,
|
||||
#content a:hover:not(.btn) {
|
||||
#content a:not(.btn) {
|
||||
text-decoration: none;
|
||||
background: linear-gradient(#fffff8, #fffff8), linear-gradient(#fffff8, #fffff8), linear-gradient(#333, #333);
|
||||
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;
|
||||
background-position: 0% 93%, 100% 93%, 0% 93%;
|
||||
}
|
||||
#content a:hover:not(.btn) {
|
||||
text-decoration: none;
|
||||
text-shadow: none;
|
||||
background-image: none;
|
||||
}
|
||||
aside.widget {
|
||||
margin-top: $font-size-base;
|
||||
}
|
||||
|
@ -40,57 +45,54 @@ aside.widget {
|
|||
margin-top: $font-size-base;
|
||||
}
|
||||
|
||||
/* --- KRIL begin --- */
|
||||
/* --- (c) Nafanin --- */
|
||||
|
||||
.kril-game {}
|
||||
|
||||
.kril-game-header {
|
||||
overflow: hidden;
|
||||
.kril-nomination {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.kril-game-title {
|
||||
float: left;
|
||||
width: 450px;
|
||||
float: left;
|
||||
width: 480px;
|
||||
}
|
||||
|
||||
.kril-game-name {
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
.kril-game-author, .kril-game-platform {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.kril-game-num {
|
||||
.kril-game {
|
||||
.kril-game-header {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
.kril-game-name {
|
||||
font-size: $h3-font-size;
|
||||
flex-grow: 1;
|
||||
max-width: 600px;
|
||||
&::before {
|
||||
content: "«";
|
||||
}
|
||||
&::after {
|
||||
content: "»";
|
||||
}
|
||||
}
|
||||
}
|
||||
.kril-authors {
|
||||
display: block;
|
||||
padding-top: ($h3-font-size / 2);
|
||||
font-style: italic;
|
||||
}
|
||||
.kril-game-num {
|
||||
float: right;
|
||||
font-size: 36px;
|
||||
width: 80px;
|
||||
}
|
||||
|
||||
.kril-game-info {
|
||||
overflow: hidden;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.kril-game-pic {
|
||||
float: left;
|
||||
width: 150px;
|
||||
vertical-align: top;
|
||||
margin-right: 20px;
|
||||
}
|
||||
.kril-game-info {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
.kril-game-pic {
|
||||
flex-grow: 1;
|
||||
flex-shrink: 1;
|
||||
img {
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
max-width: 100%;
|
||||
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 {
|
||||
border: 0;
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
//
|
||||
|
||||
$primary: #1f2429;
|
||||
$link-color: #132B0E;
|
||||
|
||||
$rudy-primary-color: #212121;
|
||||
$rudy-primary-color-light: #9E9E9E;
|
||||
|
|
|
@ -30,32 +30,36 @@ function gamelist($atts){
|
|||
if( $the_query->have_posts() ) {
|
||||
while( $the_query->have_posts() ) {
|
||||
$the_query->the_post();
|
||||
$retval .= '<h2>'.$name.'</h2>';
|
||||
$retval .= '<h2 class="kril-nomination">'.$name.'</h2>';
|
||||
$retval .= '<div class="games">';
|
||||
if ($i > 1) {
|
||||
$retval .= '<hr class="kril">';
|
||||
}
|
||||
$retval .= '<div class="kril-game">';
|
||||
$retval .= '<div class="kril-game-header"><div class="kril-game-title"><div class="kril-game-name">'.
|
||||
'<a name="game-'.$nomination.'-'.$i.'"></a>'.get_the_title().'</div><div class="kril-game-author">Авторы:'.
|
||||
get_field('authors').'</div></div>'.
|
||||
'<div class="kril-game-platform">Платформа: '.get_field('platform').'</div></div>'.
|
||||
$retval .= '<div class="kril-game-header">';
|
||||
$retval .= '<div class="kril-game-name">'.
|
||||
'<a name="game-'.$nomination.'-'.$i.'"></a>'.get_the_title().
|
||||
'</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">'.
|
||||
'<p class="kril-game-pic">'.get_the_post_thumbnail().'</p>'.
|
||||
'<div class="kril-game-descr">'.get_the_content().'</div>';
|
||||
'<div class="kril-game-pic">'.get_the_post_thumbnail().'</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');
|
||||
$offline = get_field('link_offline');
|
||||
if (!empty($online) || !empty($offline)) {
|
||||
$retval .= '<div class="kril-links">';
|
||||
if (!empty($online)) {
|
||||
$retval .= get_field('link_online');
|
||||
$retval .= '<a href="'.get_field('link_online').'" target="_blank">Играть онлайн</a>';
|
||||
}
|
||||
if (!empty($offline)) {
|
||||
$retval .= get_field('link_offline');
|
||||
$retval .= '<a href="'.get_field('link_offline').'" target="_blank">Скачать архив</a>';
|
||||
}
|
||||
$retval .= '</div>';
|
||||
}
|
||||
$retval .= '</div>';
|
||||
$retval .= '</div></div>';
|
||||
$i++;
|
||||
}
|
||||
$retval .= '</div>';
|
||||
|
|
Loading…
Reference in a new issue