Skip to content

Instantly share code, notes, and snippets.

View AlexL-JWA's full-sized avatar

Aleksandr Lavigin AlexL-JWA

View GitHub Profile
@AlexL-JWA
AlexL-JWA / vue.js
Created June 17, 2018 20:09
стандартный вызов vue.js
new Vue({
el:'.less-2',
data:{},
});
@AlexL-JWA
AlexL-JWA / page.html
Created June 18, 2018 21:46
Загрузка видео по клику на кнопку плей (берет дата атрибут URL с родителя )
jQuery(document).ready(function($){
$('.video .video-uploads').click(function(e){
const url = $(this).parent().data();
$(this).append('<source src="'+ url.video +'">');
console.log(url);
});
});
@AlexL-JWA
AlexL-JWA / single.php
Created June 27, 2018 09:46
vue подключение
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
@AlexL-JWA
AlexL-JWA / single.php
Created June 27, 2018 09:48
JQ подключение
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
@AlexL-JWA
AlexL-JWA / README.md
Created July 10, 2018 10:41
Readme.md html\wp

HTML\ CSS And WP Themes.

Project frenchenglishrussian.com

HTML \ CSS

To start the project git clone https://gitlab.com/AlsconWeb/frenchengru.git

To compile html \ css from dev version

@AlexL-JWA
AlexL-JWA / footer.php
Created July 17, 2018 20:35
Вставка виджета WP
@AlexL-JWA
AlexL-JWA / theme-support.php
Created July 17, 2018 20:36
регистрация виджета WP
register_sidebar( array(
'name' => 'sidebare_menu',
'id' => 'sidebare_menu',
'before_widget' => ' ',
'after_widget'=>' ',
'class'=>'conditions-menu',
'before_title' => '<h3 class="clicking">',
'after_title' => "</h3>",
));
@AlexL-JWA
AlexL-JWA / page.php
Created July 18, 2018 08:24
стандартный вывод контента WP
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php the_content();?>
<?php endwhile; ?>
<?php endif; ?>
@AlexL-JWA
AlexL-JWA / functions.php
Created August 1, 2018 15:32
Убрать траиточие из the_excerpt
add_filter('excerpt_more', function($more) {
return '...';
});
@AlexL-JWA
AlexL-JWA / terms-page.php
Created August 17, 2018 07:55
обявление шаблона WP
<?php
/**
* Template Name: Terms Page
*/
?>