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
add_action('wp_head', 'fwp_refresh_on_sort'); | |
function fwp_refresh_on_sort() { | |
?> | |
<script type="text/javascript"> | |
//<![CDATA[ | |
(function($) { | |
$(document).ready(function() { | |
$('.facetwp-sort').on('change','select', function() { | |
console.log("hey"); |
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 id="results" class="asd-results"> | |
<?php while ( have_posts() ): the_post(); ?> | |
<div class="asd-result"> | |
<?php if ( has_post_thumbnail() ) : ?> | |
<div class="asd-result__thumb"> | |
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail("medium") ?></a> | |
</div> | |
<?php endif ?> | |
<div class="asd-result__content"> | |
<h3 class="asd-result__title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> |
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 search-form template. | |
* | |
* @package Avada | |
* @subpackage Templates | |
*/ | |
// Do not allow directly accessing this file. | |
if ( ! defined( 'ABSPATH' ) ) { |
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 | |
/* | |
Plugin Name: ASD FacetWP - ASD Time Since | |
Description: "ASD Time Since" facet | |
Version: 1.0 | |
Based on: 1.4.2 | |
Author: AJ Siegel | |
Original Author URI: https://facetwp.com/ | |
Original GitHub URI: facetwp/facetwp-time-since | |
*/ |
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 | |
$interactive = (is_page("home")) ? 0 : true; | |
$features = []; | |
$args = array( | |
"post_type" => 'asd_operation', | |
"facetwp" => false | |
); | |
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 | |
/* | |
Plugin Name: ASD FacetWP - ASD Time Since | |
Description: "ASD Time Since" facet | |
Version: 1.0 | |
Based on: 1.4.2 | |
Author: AJ Siegel | |
Original Author URI: https://facetwp.com/ | |
Original GitHub URI: facetwp/facetwp-time-since | |
*/ |
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
<!--- In a ui page --> | |
<!-- this will get the token on the server side and set it to a client-side javascript variable. | |
<g:evaluate object="true"> | |
var g_ck = gs.getSessionToken(); | |
</g:evaluate> | |
<script> | |
window.g_ck = "$[g_ck]"; | |
</script> | |
<!-- In your AngularJS config, you can set the token as a default $httpProvider header --> |
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
config.after_initialize do | |
ActionMailer::Base.delivery_method = :amazon_ses | |
ActionMailer::Base.custom_amazon_ses_mailer = AWS::SES::Base.new(:secret_access_key => 'abc', :access_key_id => ''123') | |
end |