BNF grammar is in: examples/lang.bnf
Lex grammar is in: examples/lang.lex
To see what is all possible view examples/test.lang
Run
//Edit the Category List | |
add_filter( 'manage_edit-post_type_columns', 'set_custom_edit_post_type_columns' ); | |
// Add to admin_init function | |
add_filter( 'manage_post_type_custom_column', 'manage_post_type_columns', 10, 3); | |
function manage_post_type_columns($out, $column_name, $id) { | |
switch ($column_name) { | |
case 'icon_image': | |
// Output custom post_type field here |
<?php if(have_rows('repeater_field_name')): ?> | |
<ul> | |
<?php while( have_rows('repeater_field_name')): the_row(); ?> | |
<li><?php echo get_sub_field('image'); ?></li> | |
<?php wp_reset_postdata(); // IMPORTANT - reset the $post object so the rest of the page works correctly ?> | |
<?php endwhile; ?> | |
</ul> | |
<?php endif; ?> |
//For blank searches to use search.php | |
add_filter( 'request', 'my_request_filter' ); | |
function my_request_filter( $query_vars ) { | |
if( isset( $_GET['s'] ) && empty( $_GET['s'] ) ) { | |
$query_vars['s'] = " "; | |
} | |
return $query_vars; | |
} |
/** | |
* Child page conditional | |
* @ Accept's page ID, page slug or page title as parameters | |
*/ | |
function is_child( $parent = '' ) { | |
global $post; | |
$parent_obj = get_page( $post->post_parent, ARRAY_A ); | |
$parent = (string) $parent; | |
$parent_array = (array) $parent; |
<?php | |
$loader = new PemLoader(); | |
$math = EccFactory::getAdapter(); | |
$this->messages = new MessageFactory($math); | |
$privKeySerializer = new PemPrivateKeySerializer(new DerPrivateKeySerializer()); | |
$pubKeySerializer = new PemPublicKeySerializer(new DerPublicKeySerializer()); | |
$PrivateKeyPath = env('KEY_LOCATION').'my.priv'; | |
$PublicKeyPath = storage_path().'/app/'.uniqid().'.pub'; |
var currencyValidator = { | |
format: function (number) { | |
return (Math.trunc(number * 100) / 100).toFixed(2) | |
}, | |
parse: function (newString, oldNumber) { | |
var CleanParse = function (value) { | |
return { value: value } | |
} | |
var StringParse = function (string) { | |
return parseFloat(string.replace(/,/g, '')) |
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
class ValidateAuthyRequest { | |
/** | |
* Handle an incoming request. | |
* |
$font-mdi : 'Material-Design-Icons'; | |
$mdi-prefix : 'mdi-'; | |
@font-face { | |
font-family: "#{$font-mdi}"; | |
src:url("#{$icons-font-path}#{$font-mdi}.eot?#iefix") format("embedded-opentype"), | |
url("#{$icons-font-path}#{$font-mdi}.woff2") format("woff2"), | |
url("#{$icons-font-path}#{$font-mdi}.woff") format("woff"), | |
url("#{$icons-font-path}#{$font-mdi}.ttf") format("truetype"), | |
url("#{$icons-font-path}#{$font-mdi}.svg##{$font-mdi}") format("svg"); |
import React, { Component } from 'react'; | |
import ReactDOM from 'react-dom'; | |
import debounce from 'throttle-debounce/debounce' | |
import axios from 'axios'; | |
import SubmitButton from './SubmitButton' | |
export default class RegisterCompany extends Component { | |
constructor(props) { |
BNF grammar is in: examples/lang.bnf
Lex grammar is in: examples/lang.lex
To see what is all possible view examples/test.lang
Run