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 | |
/** | |
* Single Listing view. | |
*/ | |
class DKF_REL_View_Listing_Single extends APP_View { | |
/** | |
* Check if this class should handle the current view. | |
* | |
* @return bool |
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 va_custom_import() { | |
global $vantage; | |
/** | |
* 1. Insert & Update listing data. | |
* | |
* If you specify listing ID - it will update that listing, otherwise it | |
* will insert new one. | |
* |
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 to display widget "Vantage - Home Latest Listings". | |
* | |
* @package Vantage\Templates | |
* @since 4.0.0 | |
*/ | |
$items = $instance['items']; | |
set_query_var( 'listing_layout', '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
<?php | |
/** | |
* The listing search form template file | |
* | |
* @package ClassiPress | |
* @since 4.0.0 | |
*/ | |
if ( ! isset( $search_form_location ) ) { | |
$search_form_location = 'bar'; |
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 MY_Step_Explain_Claim extends APP_Listing_Step { | |
/** | |
* Construct Listing step | |
* | |
* @param APP_Listing $listing Listing object to assign step with. | |
* @param string $step_id Step ID. | |
* @param array $args Optional. An array of arguments. | |
*/ | |
public function __construct( APP_Listing $listing, $step_id = 'explain', $args = array() ) { |
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
#!/bin/bash | |
if [ $# -lt 1 ]; then | |
echo "usage: $(basename $0) <new-site-slug> [<theme-slug>, <plugin-slug>]" | |
exit 1 | |
fi | |
wp site delete --slug="$1" | |
wp site create --slug="$1" |
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 | |
/** | |
* Counts words in a text string. | |
* | |
* Uses code from wp_trim_words(). | |
* | |
* @param string $text Given text. | |
*/ | |
function my_get_word_count( $text = '' ) { | |
$translations = get_translations_for_domain( 'default' ); |
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: Disable Expired Listing Email | |
* Description: Disable Expired Listing Email | |
* Version: 1.0.0 | |
* Author: Artem Frolov (dikiyforester) | |
* Author URI: https://www.appthemes.com/members/dikiyforester/ | |
*/ | |
function my_appthemes_notify_user_expired_listing( $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 | |
/* | |
* Plugin Name: Clipper Custom Taxonomies | |
* Description: Registers custom Banks and Brands taxonomies for the Clipper Coupons. | |
* Version: 1.0.0 | |
* Author: Artem Frolov (dikiyforester) | |
* Author URI: https://www.appthemes.com/members/dikiyforester/ | |
* Text Domain: clipper-custom-taxonomies | |
*/ |