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
.form-field { | |
margin-bottom: 10px; | |
} | |
.form-field label { | |
display:block; | |
} | |
.form-field .input, | |
.form-field textarea { | |
width: 100%; | |
} |
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 | |
function helper_imageUrlToFeaturedImage( $post_id, $image_url ) { | |
if( esc_url_raw( $image_url ) === $image_url ) { | |
$image_name = date( 'YmdHis' ) . '-' . $post_id . '-bc.jpg'; | |
$upload_dir = wp_upload_dir(); // Set upload folder | |
$image_data = file_get_contents($image_url); // Get image data | |
$unique_file_name = wp_unique_filename( $upload_dir['path'], $image_name ); // Generate unique name | |
$filename = basename( $unique_file_name ); // Create image file name | |
// Check folder permission and define file location |
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
[md-form spacing="tight"] | |
[md-select label="Pilih Support" outlined="yes"] | |
[select_channel* service] | |
[/md-select] | |
[md-text label="Nama Lengkap" outlined="yes"] | |
[text* your-name] | |
[/md-text] | |
[md-text label="No WhatsApp" outlined="yes"] | |
[number* your-whatsapp] | |
[/md-text] |
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
woo_checkout_first_name: your-name | |
woo_checkout_phone: whatsapp | |
woo_checkout_order_note: order-note |
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
Default Shortcode, menampilkan seluruh produk simple & variabel dan dikelompokan per kategori. | |
[cf7sendwa-quickshop] | |
Menampilkan text & category filter. | |
[cf7sendwa-quickshop filter="yes"] | |
Menampilkan produk dengan kategori hoodies. Untuk beberapa kategori gunakan koma sebagai pemisah. misal hoodies,tshirts | |
[cf7sendwa-quickshop category="hoodies"] | |
Menampilkan produk tertentu saja, gunakan product 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
<?php | |
function solusipress_custom_wa_api_send( $data, $form_id ) { | |
/** | |
* Do something here | |
* $data contains this information: | |
[ | |
'to_number' => 'the number you defined', | |
'message' => 'message content from mail tab template', | |
'cf7_inputs' => the_posted_data_array_from_cf7, | |
'to_number_2' => 'the number for autorespond', |
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
post_type=post&posts_per_page=5&sp_related=yes |
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
<link rel="stylesheet" href="<?php echo CT_FW_URI . '/vendor/unslider/unslider.css' ?>"> | |
<script type="text/javascript" src="<?php echo CT_FW_URI . '/vendor/unslider/unslider-min.js' ?>"></script> | |
<script type="text/javascript"> | |
(function($){ | |
$( '.post-sliders .oxy-repeater-pages-wrap' ).remove(); | |
<?php if( !is_admin() ): ?> | |
$( '.post-sliders' ).each( function(){ | |
var the_html = $(this).html(); | |
$(this).replaceWith( $( '<div class="the-sliders"><ul>' + the_html + '</ul></div>' ) ); | |
}); |
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 | |
class SP_Contact_Form_WA { | |
protected $ids = array(); | |
protected $script_loaded = false; | |
protected $bodies = array(); | |
protected $numbers = array(); | |
public function __construct() { | |
add_shortcode( 'contact-form-7-wa', array( $this, 'render_contact_form' ) ); |
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 | |
/* Display 2 columns post archive in GeneratePress theme */ | |
class SolusiPress_Post_Grid { | |
protected $post_count = 0; | |
protected $valid_area = false; | |
public function __construct() { | |
add_action( 'wp_head', array( $this, 'custom_css' ) ); |