Skip to content

Instantly share code, notes, and snippets.

@AlexL-JWA
AlexL-JWA / vue.js
Created Jun 17, 2018
стандартный вызов vue.js
View vue.js
new Vue({
el:'.less-2',
data:{},
});
@AlexL-JWA
AlexL-JWA / page.html
Created Jun 18, 2018
Загрузка видео по клику на кнопку плей (берет дата атрибут URL с родителя )
View page.html
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 Jun 27, 2018
vue подключение
View single.php
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
@AlexL-JWA
AlexL-JWA / single.php
Created Jun 27, 2018
JQ подключение
View single.php
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
@AlexL-JWA
AlexL-JWA / README.md
Created Jul 10, 2018
Readme.md html\wp
View README.md

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 Jul 17, 2018
Вставка виджета WP
View footer.php
@AlexL-JWA
AlexL-JWA / theme-support.php
Created Jul 17, 2018
регистрация виджета WP
View theme-support.php
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 Jul 18, 2018
стандартный вывод контента WP
View page.php
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php the_content();?>
<?php endwhile; ?>
<?php endif; ?>
@AlexL-JWA
AlexL-JWA / functions.php
Created Aug 1, 2018
Убрать траиточие из the_excerpt
View functions.php
add_filter('excerpt_more', function($more) {
return '...';
});
@AlexL-JWA
AlexL-JWA / terms-page.php
Created Aug 17, 2018
обявление шаблона WP
View terms-page.php
<?php
/**
* Template Name: Terms Page
*/
?>