A Pen by Sebastian Ortiz on CodePen.
Live Preview: https://codepen.io/dsebao/full/VweNPKB
| name: Build and Publish Production Plugin | |
| on: | |
| push: | |
| branches: [master] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest |
| import { getSection, getTitleGroup } from './util/get-content-elements'; | |
| import DOMPurify from 'dompurify'; | |
| /** Marketo forms */ | |
| export const initForms = ( dataLayer, initDataLayer ) => { | |
| // eslint-disable-next-line no-undef | |
| MktoForms2.whenReady( function( form ) { | |
| form.onValidate( function( valid ) { | |
| const formEl = form.getFormElem(); |
| h1.is-class { | |
| font-weight: 100 !important; | |
| } | |
| figure.wp-block-image.is-resized.size-large.connections-logo-banner.is-style-no-border-radius { | |
| margin-bottom: 3rem; | |
| } | |
| .connections-logo-banner img{ | |
| margin-left: 0; |
| <?php | |
| add_action('admin_head', function(){ | |
| ?> | |
| <script type="text/javascript"> | |
| /* | |
| updated JS file for use with ACF >= 5.7.0 | |
| */ | |
| {{#location}} | |
| <li data-markerid="{{markerid}}"> | |
| <div class="list-label">{{marker}}</div> | |
| <div class="list-details"> | |
| <div class="list-content"> | |
| <div class="loc-name">{{name}}</div> | |
| <div class="loc-addr">{{address}}</div> | |
| {{#if phone}} | |
| <div class="loc-phone">{{phone}}</div> | |
| {{/if}} |
| <?php | |
| add_filter('woocommerce_get_price_html', 'custom_price_message', 100, 2); | |
| function custom_price_message($price, $product) | |
| { | |
| //aca se podria realizar diferentes acciones dependiendo del tipo de producto, es solo de muestra | |
| if ($product->get_type() === 'simple') { | |
| } | |
A Pen by Sebastian Ortiz on CodePen.
Live Preview: https://codepen.io/dsebao/full/VweNPKB
| //Este es el javascript del boton | |
| function addBtnDirector(){ | |
| <sccript> | |
| let btn = document.querySelector('a.btndirectors'); | |
| btn.addEventListener('click',function(e){ | |
| e.preventDefault(); | |
| let nav = document.querySelector('ul.masonry-filter'); | |
| nav.classList.toggle('mostrar'); | |
| }); | |
| </script> |
| /* | |
| * | |
| * More readed Shortcode | |
| * | |
| */ | |
| //Define the function to add counter visits (its a metabox) | |
| function setPostViews($postID) { | |
| //This is the key | |
| $count_key = 'tm_views'; |
| /* | |
| * | |
| * More readed Shortcode | |
| * | |
| */ | |
| //Define the function to add counter visits (its a metabox) | |
| function setPostViews($postID) { | |
| //This is the key | |
| $count_key = 'tm_views'; |