This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php query_posts('post_type=post'); ?> | |
| <?php $variable=0;?> | |
| <div class="carousel-item active"> | |
| <div class="service_row row"> | |
| <?php while ( have_posts() ) : the_post(); ?> | |
| <?php if(($variable+1)<5){ ?> | |
| <div class="col-lg-3 col-md-6"> | |
| <div class="service_row__col "> | |
| <div class="pimage"> | |
| <?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $do_not_duplicate = array(); | |
| $args = array( | |
| 'type' => 'work', | |
| 'orderby' => 'name', | |
| 'order' => 'ASC', | |
| 'taxonomy' => 'worktype' | |
| ); | |
| $categories = get_categories( $args ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Template Name: Fullwidth | |
| */ | |
| get_header(); ?> | |
| <div class="container"> | |
| <?php /* The loop */ ?> | |
| <?php while ( have_posts() ) : the_post(); ?> | |
| <?php the_post_thumbnail(); ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| //Удаляем ссылку у текущего пункта меню WordPress | |
| function wp_nav_menu_no_current_link( $atts, $item, $args, $depth ) { | |
| if ( $item->current ) $atts['href'] = ''; | |
| return $atts; | |
| } | |
| add_action( 'nav_menu_link_attributes', 'wp_nav_menu_no_current_link', 10, 4 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Создание заказа по кнопке "Заказать в один клик | |
| */ | |
| function roomble_ajax_create_order() { | |
| // Получить корзину | |
| $cart = WC()->cart; | |
| $phone = esc_attr( trim( $_REQUEST['phone'] ) ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * | |
| * Plugin Name: CF7 to Webhook - Airtable | |
| * Description: Send webhook to Airtable API | |
| * Version: 1.0.0 | |
| * Author: Mário Valney | |
| * Author URI: https://mariovalney.com | |
| * Text Domain: cf7-to-webhook-air-table | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name: CF7 Modal Invalid Answer | |
| * Plugin URI: https://gist.github.com/campusboy87/a056c288c99feee70058ed24cee805ad | |
| * Author: Campusboy (wp-plus) | |
| * Author URI: https://www.youtube.com/wp-plus | |
| */ | |
| add_action( 'wp_enqueue_scripts', 'wpcf7_modal_invalid_js' ); | |
| add_action( 'wp_footer', 'wpcf7_modal_invalid_js_inline', 999 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name: Code Editor for Contact Form 7 | |
| * Plugin URI: https://gist.github.com/campusboy87/2daad24e45116721759991549b626977 | |
| * Author: Campusboy (wp-plus) | |
| * Author URI: https://www.youtube.com/wp-plus | |
| */ | |
| add_action( 'admin_print_styles-toplevel_page_wpcf7', function () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $tplProduct = 3; //номер шаблона для карточки товара | |
| $tplParent = 2; //номер шаблона для категорий | |
| $tplChildParent = 2; //номер шаблона для подкатегорий | |
| $idParent = 6; //id каталога товаров | |
| $fileProduct = 'product.xml'; //имя файла с товарами | |
| $xpath_expression['pagetitle'] = '//Товары/Номенклатура'; //DOM структура в XML файле до имени | |
| $xpath_expression['article'] = '//Товары/Артикул'; //DOM структура в XML файле до артикула | |
| $xpath_expression['parents'] = '//Товары/Родитель'; //DOM структура в XML файле до родителей |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="panel-group" id="accordion"> | |
| <div class="panel panel-default"> | |
| <div class="panel-heading"> | |
| <h4 class="panel-title"> | |
| <a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#accordion" href="#collapseOne">Food</a> | |
| </h4> | |
| </div> | |
| <div id="collapseOne" class="panel-collapse collapse"> | |
| <div class="panel-body"> | |
| <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Magnam optio incidunt perspiciatis sint! Tempora architecto dignissimos ducimus similique optio in rerum consequuntur, veniam dolor nesciunt perspiciatis delectus? Dignissimos, vitae laudantium.</p> |
OlderNewer