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 | |
| //bootstrap WP | |
| require_once('wp-load.php');//I have this file saved in the site root | |
| $stores = get_posts([ | |
| 'post_type' => 'wpsl_stores', | |
| 'posts_per_page' => -1, | |
| 'post_status' => 'any' | |
| ]); |
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
| # Fluid Template (Search.html) : | |
| <html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true"> | |
| <f:form action="search" method="post" action="search" controller="Search" extensionName="indexedsearch" pluginName="pi2" pageUid="5"> | |
| <label for="sword">Search: </label> | |
| <f:form.textfield id="sword" name="search[sword]" value="{sword}" class="form-control" /> | |
| <f:form.submit name="search[submitButton]" value="Search" /> | |
| </f:form> | |
| </html> | |
| # You can use below lib object everywhere in fluid template! |
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
| import * as React from 'react'; | |
| import { | |
| Animated, | |
| Dimensions, | |
| Image, | |
| FlatList, | |
| Text, | |
| View, | |
| StyleSheet, | |
| } from 'react-native'; |
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
| <template> | |
| <app-layout> | |
| <template #header> | |
| <h2 class="font-semibold text-xl text-gray-800 leading-tight"> | |
| Cadastrar Novo Cliente | |
| </h2> | |
| <breadcrumb slot="breadcrumb" :items="breadcrumbItems"></breadcrumb> | |
| </template> | |
| <div class="py-12"> | |
| <div class="max-w-7xl mx-auto sm:px-6 lg:px-8"> |
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 | |
| add_shortcode( 'user_company_link', 'yanco_user_company_link' ); | |
| function yanco_user_company_link() { | |
| if( ! is_user_logged_in() ) { | |
| return; | |
| } | |
| $html = ''; |
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: Elementor Widget | |
| * Text Domain: elementor-widget | |
| * Domain Path: /languages | |
| * Version: 0.1.0 | |
| * | |
| * @package Elementor_Widget | |
| */ |
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 | |
| public function uploadFileFromBlobString($base64string = '', $file_name = '', $folder = '') | |
| { | |
| $file_path = ""; | |
| $result = 0; | |
| // Convert blob (base64 string) back to PDF | |
| if (!empty($base64string)) { |
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
| # ---------------------------------------------- # | |
| # # | |
| # A collection of TYPO3 flexform snippets # | |
| # # | |
| # ---------------------------------------------- # |
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
| add_action('wpcf7_mail_sent', 'extract_cf7_data'); /* <- wpcf7_mail_sent is best hook to get values after succesfull submission */ | |
| function extract_cf7_data($data) { | |
| if ($data->title == 'FORM-TITLE-HERE') { /* <- Put here title from form which submission you want to extract */ | |
| $submission = WPCF7_Submission::get_instance(); | |
| if ( $submission ) { | |
| $cf7_data = $submission->get_posted_data(); | |
| $cf7_data['name']; /* <- Contains values from 'name'-field */ | |
| $cf7_data['email']; /* <- Contains values from 'email'-field */ | |
| $cf7_data['text']; /* <- Contains values from 'text'-field */ | |
| } |
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 $gallery_instance = 1; | |
| if($tpl === 'horizontal_gallery' && $flex['gallery']) { $g = 1; ?> | |
| <div class="horizontal-gallery row"> | |
| <div class="swiper-container"> | |
| <div class="swiper-wrapper"> | |
| <?php foreach ($flex['gallery'] as $img) { ?> | |
| <div class="swiper-slide <?php echo ($g % 3) == 0?'swiper-slide-fh':''; ?>"> | |
| <a class="cover" href="<?php echo $img['url']; ?>" data-fancybox="gallery-<?php echo $gallery_instance++; ?>" style="<?php echo image_src($img['ID'], 'large', true); ?>"></a> | |
| <div class="e-space"></div> | |
| <?php echo ($g % 3) == 0?'</div><div class="swiper-slide swiper-slide-empty">':''; ?> |
NewerOlder