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 | |
| if ( ! defined( 'ABSPATH' ) ) { | |
| exit; | |
| } | |
| //require('VariantSettings.php'); | |
| /* | |
| * Todo: php max_input_vars and woocommerce | |
| * Todo: define( 'WC_MAX_LINKED_VARIATIONS', 100 ); | |
| */ |
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
| /* global $ emi */ | |
| (function () { | |
| let wishListAjax = false | |
| $('.add-to-wishlist').on('click', function (e) { | |
| e.preventDefault() | |
| const productID = $(this).data('product-id') | |
| const removeItem = $(this).hasClass('added') ? 1 : 0 | |
| $(this).toggleClass('added') | |
| if (wishListAjax) { | |
| wishListAjax.abort() |
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
| // http://eslint.org/docs/user-guide/configuring | |
| module.exports = { | |
| root: true, | |
| parser: 'babel-eslint', | |
| parserOptions: { | |
| sourceType: 'module' | |
| }, | |
| env: { | |
| browser: true |
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 | |
| class comment_walker extends Walker_Comment { | |
| var $tree_type = 'comment'; | |
| var $db_fields = array( 'parent' => 'comment_parent', 'id' => 'comment_ID' ); | |
| // constructor – wrapper for the comments list | |
| function __construct() { ?> | |
| <section class="comments-list"> |
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
| const { ServiceProvider } = require('@adonisjs/fold') | |
| class BoomProvider extends ServiceProvider { | |
| register () { | |
| this.app.bind('Adonis/Middleware/Boom', app => { | |
| const BoomMiddleware = require('./middleware') | |
| return new BoomMiddleware() | |
| }) | |
| } | |
| } |
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
| const Config = use('Config') | |
| const { Command } = require('@adonisjs/ace') | |
| const { Nuxt, Builder } = require('nuxt') | |
| class NuxtBuild extends Command { | |
| static get signature () { | |
| return 'nuxt:build' | |
| } | |
| static get description () { |
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
| const { ServiceProvider } = require('@adonisjs/fold') | |
| const boom = require('boom') | |
| const STATUS_CODES = { | |
| '100': 'Continue', | |
| '101': 'Switching Protocols', | |
| '102': 'Processing', | |
| '200': 'OK', | |
| '201': 'Created', | |
| '202': 'Accepted', |
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
| var UserService = make('App/Services/UserService') | |
| class AuthController { | |
| async login ({ request, response, auth }) { | |
| UserService.demo() | |
| const { email, password } = request.all() | |
| try { | |
| const token = await auth.attempt(email, password) | |
| response.send(token) | |
| } catch (error) { |
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
| if (!content.hasOwnProperty('checksum_type')) { | |
| return { | |
| forPaypal () { | |
| console.log(content) | |
| }, | |
| forSofort () {} | |
| } | |
| } |
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
| function iconic_output_engraving_field() { | |
| global $product; | |
| if ( ! check_user_role( 'gewerbe' ) ) | |
| return; | |
| ?> | |
| <hr> | |
| <div class="iconic-engraving-field"> | |
| <p class="form-row legal terms wc-terms-and-conditions"> | |
| <input type="checkbox" class="input-checkbox" name="duplicating" id="duplicating"> |