This file contains 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
class Pure_Category_Walker extends Walker_Category { | |
function start_lvl( &$output, $depth = 0, $args = array() ) { | |
if ( 'list' != $args['style'] ) | |
return; | |
$indent = str_repeat("\t", $depth); | |
$output .= "$indent<ul class='pure-menu-children'>\n"; | |
} |
This file contains 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 | |
$file = '/path/to/file.png'; | |
$filename = basename($file); | |
$upload_file = wp_upload_bits($filename, null, file_get_contents($file)); | |
if (!$upload_file['error']) { | |
$wp_filetype = wp_check_filetype($filename, null ); | |
$attachment = array( | |
'post_mime_type' => $wp_filetype['type'], | |
'post_parent' => $parent_post_id, |
This file contains 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="theme-filters"> | |
<div class="filter-head"><i class="fa fa-map-marker-alt"></i>一键找房</div> | |
<?php wprs_show_filters(['area', 'mianji', 'louceng']); ?> | |
<div id="filter-go" class="filter-head"><i class="fa fa-search"></i> 立即搜索</div> | |
</div> | |
<script> | |
jQuery(document).ready(function($){ |
This file contains 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
.woocommerce{ | |
.variations{ | |
.reset_variations{ | |
display: none; | |
} | |
.reset_variations, | |
select{ | |
display: none; | |
} |
This file contains 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
use Endroid\QrCode\QrCode; | |
$qrCode = new QrCode($signature_url); | |
$qrCode->setMargin(0); | |
$html = '<img id="js-signature" src="data:image/jpeg;base64,' . base64_encode($qrCode->writeString()) . '" alt="" />'; |
This file contains 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 | |
/** | |
* The main template file. | |
* | |
* This is the most generic template file in a WordPress theme | |
* and one of the two required files for a theme (the other being style.css). | |
* It is used to display a page when nothing more specific matches a query. | |
* E.g., it puts together the home page when no home.php file exists. | |
* Learn more: http://codex.wordpress.org/Template_Hierarchy | |
* |