Skip to content

Instantly share code, notes, and snippets.

View hiiightower's full-sized avatar
🦇
ilybu

andy ryan hightower hiiightower

🦇
ilybu
View GitHub Profile
import Vue from 'vue';
import posts from './components/posts.vue';
window.axios = require('axios');
window.Vue = Vue;
Vue.component('posts', posts);
const app = new Vue({
el: '#app',
@hiiightower
hiiightower / ChildComponent.vue
Created June 7, 2021 12:09 — forked from sproogen/ChildComponent.vue
Vee Validate - Child Component Example
<template>
<div>
<input v-validate data-rules="required" :class="{'has-error': errors.has("textInput")}" id="textInput" name="textInput" type="text">
<span class="error" v-show="errors.has("textInput")">{{ errors.first("textInput") }}</span>
</div>
</template>
<script>
import { find, propEq } from 'ramda'
import bus from './bus'
<template>
<ul class="w-item-picker__list">
<li
v-for="item in value"
:key="item.id"
class="w-item-picker__item">
<button class="btn">
<span
:ref="`item${item.id}`"
@mouseover="mouseOver(item.id, item.name)"
@hiiightower
hiiightower / [1] main.js
Created June 7, 2021 11:54 — forked from hfalucas/[1] main.js
[Vue.js] Authentication and Authorization
/**
* Think of this "main.js" file as your application bootstrap.
*/
import Vue from 'vue'
import Resource from 'vue-resource'
import VueRouter from 'vue-router'
import routes from './routes'
import middleware from './middleware'
@hiiightower
hiiightower / acf-postobject-repeater.php
Created January 30, 2018 01:51 — forked from nfsarmento/acf-postobject-repeater.php
ACF: Get Post Object data within a Repeater
<section class="slider">
<?php if( have_rows('slides') ): ?>
<div id="slider" class="flexslider">
<ul class="slides">
<?php while ( have_rows('slides') ) : the_row(); ?>
@hiiightower
hiiightower / ACF: Post Object
Created January 30, 2018 01:50 — forked from ashby/ACF: Post Object
ACF: Post Object
<?php $post_objects = get_field('post_objects'); ?>
<?php if( $post_objects ): ?>
<?php foreach( $post_objects as $post): ?>
<?php setup_postdata($post); ?>
<?php the_title(); ?>
<?php endforeach; ?>
<?php wp_reset_postdata(); ?>
<?php endif; ?>
@hiiightower
hiiightower / acf-relation
Created January 30, 2018 01:50 — forked from jainnidhi/acf-relation
reverse lookup acf relationship field and passing variable in template part
<?php
$auctionend='';
$args = array(
'post_type' => 'auction',
'meta_query' => array(
array(
'key' => 'connect_property_single',
'value' => '"'. get_the_ID() .'"',
'compare' => 'LIKE'
)
@hiiightower
hiiightower / acf-relation
Created January 30, 2018 01:50 — forked from jainnidhi/acf-relation
reverse lookup acf relationship field and passing variable in template part
<?php
$auctionend='';
$args = array(
'post_type' => 'auction',
'meta_query' => array(
array(
'key' => 'connect_property_single',
'value' => '"'. get_the_ID() .'"',
'compare' => 'LIKE'
)