Фиксы JS, описания и объяснения

This commit is contained in:
Alexander Yakovlev 2018-12-08 01:19:09 +07:00
parent f73140c279
commit 1f9aae3b1f
3 changed files with 7 additions and 7 deletions

View file

@ -4,11 +4,6 @@ require_once "shortcodes/gamelist.php";
function understrap_remove_scripts() {
wp_dequeue_style( 'understrap-styles' );
wp_deregister_style( 'understrap-styles' );
wp_dequeue_script( 'understrap-scripts' );
wp_deregister_script( 'understrap-scripts' );
// Removes the parent themes stylesheet and scripts from inc/enqueue.php
}
add_action( 'wp_enqueue_scripts', 'understrap_remove_scripts', 20 );
@ -19,7 +14,6 @@ function theme_enqueue_styles() {
$the_theme = wp_get_theme();
wp_enqueue_style( 'child-understrap-styles', get_stylesheet_directory_uri() . '/css/child-theme.min.css', array(), $the_theme->get( 'Version' ) );
wp_enqueue_script( 'jquery');
wp_enqueue_script( 'popper-scripts', get_template_directory_uri() . '/js/popper.min.js', array(), false);
wp_enqueue_script( 'child-understrap-scripts', get_stylesheet_directory_uri() . '/js/child-theme.min.js', array(), $the_theme->get( 'Version' ), true );
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );

View file

@ -145,7 +145,7 @@ aside.widget {
// New style -- Oreolek
.nNomination {
clear: both;
clear: left;
text-align: center;
}
.nKrilGame {
@ -217,3 +217,6 @@ aside.widget {
flex-wrap: wrap;
width: 100%;
}
.nQuickLink {
margin-right: $font-size-base;
}

View file

@ -71,6 +71,8 @@ function gamelist($atts){
';
$retval .= '</div>';
$retval .= '<small>Личный порядок - это случайно перемешанный список, который всегда будет вашим.</small></p>';
$retval .= '<p>Быстрый переход по номинациям: <ul><li><a class="nQuickLink" href="#bookmark2">переводы</a></li><li><a class="nQuickLink" href="#bookmark3">игры вне конкурса</a></li></ul></p>';
$retval .= '<p>Чтобы проголосовать или прокомментировать игру, щёлкните на её название. Баллы также можно выставить в общем списке на <a href="http://forum.ifiction.ru/viewforum.php?id=36&list=2">форуме ifiction.ru.</a></p>';
$i = 1;
foreach ($list as $list_nom) {
@ -78,6 +80,7 @@ function gamelist($atts){
$games = $list_nom->games;
$retval .= '<small class="float-right"><a id="hideLink_'.$i.'" href="javascript:hideNom(\''.$i.'\')">(свернуть)</a></small>';
$retval .= '<h2 class="nNomination">'.$nomination.'</h2>';
$retval .= '<a name="bookmark'.$i.'"></a>';
$retval .= '<div class="gamelist gamelist_'.$i.'">';
$j = 0;
foreach ($games as $game) {