Shineyrock web design & consultancy

Shineyrock

Searched for: "jquery" / 191 results

Add an Expiry Date to WordPress Posts

…jQuery UI datepicker to the meta box field to enhance the interface. Finally, use the pre_get_posts hook to ensure that posts past their expiry date aren't displayed. What You Will NeedTo complete this tutorial you will need: a development installation of WordPress a code editor You'll create a plugin with…


Using the Citrix Webinar API in WordPress

…jQuery table plugin, so I'll enqueue the scripts and styles for that as well. Here goes: function my_backend_assets() { wp_register_script( 'datatables', '//cdn.datatables.net/1.10.7/js/jquery.dataTables.min.js', array( 'jquery', 'customselect' ), '1.0', true ); wp_register_style( 'datatables', '//cdn.datatables.net/1.10.7/css/jquery.dataTables.min.css' ); wp_enqueue_script( 'my-app', plugin_dir_path( __FILE__ ) . '/js/app.js', array( 'datatables' ), '1.0', true ); } function my_registrants_metabox() {…


Magento Theme Development: Getting Started

…jQuery, if they are not already there. Go ahead and familiarize yourself with the folders contained in the app and skin folders, before you start following the steps in the next articles of this series.Setting Up the Magento Development EnvironmentWe need to change some settings in Magento, which will help…


Improved Ajax Techniques for WordPress: Procedural Programming

…jQuery );The function implementation will be covered momentarily, but we need to make sure we're enqueuing this JavaScript file in the plugin, as well. Return to the function sa_add_ajax_support and add the following above the call to wp_localize_script:<?php wp_enqueue_script( 'ajax-script', plugin_dir_url( __FILE__ ) . 'frontend.js', array( 'jquery' ) );Remember this…


Improved Ajax Techniques for WordPress: Object-Oriented Programming

…jquery' ) ); wp_localize_script( 'ajax-script', 'sa_demo', array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) ); } } After that, we need to take the functions responsible for handling the Ajax requests and providing responses and then add them to the class. Since they'll be within the context of a class, we…


Magento Theme Development: Bootstrapping

…jquery.carouFredSel-6.2.1-packed.js</name><params/></action> <action method="addItem"><type>skin_js</type><name>js/jquery.easing.1.3.js</name><params/></action> <action method="addItem"><type>skin_js</type><name>js/jquery.elevatezoom.js</name><params/></action> <action method="addItem"><type>skin_js</type><name>js/jquery.flexslider.js</name><params/></action> <action method="addItem"><type>skin_js</type><name>js/owl.carousel.js</name><params/></action> <action method="addItem"><type>skin_js</type><name>js/jquery.sequence-min.js</name><params/></action> <action method="addItem"><type>skin_js</type><name>js/script.min.js</name><params/></action> <!--Adding CSS Files Styles--> <action method="addCss"><stylesheet>css/bootstrap.css</stylesheet><params/></action> <action method="addCss"><stylesheet>css/bootstrapTheme.css</stylesheet><params/></action> <action method="addCss"><stylesheet>css/font-awesome.min.css</stylesheet><params/></action> <action method="addCss"><stylesheet>css/flexslider.css</stylesheet><params/></action> <action method="addCss"><stylesheet>css/owl.carousel.css</stylesheet><params/></action> <action method="addCss"><stylesheet>css/owl.theme.css</stylesheet><params/></action> <action method="addCss"><stylesheet>css/sequence-looptheme.css</stylesheet><params/></action> <action method="addCss"><stylesheet>css/style.css</stylesheet><params/></action> <action method="addCss"><stylesheet>css/style8.css</stylesheet><params/></action> </reference> </default> </layout>Let me explain the above code step by step. Under layout (implying this…


Programming With Yii2: Using the Advanced Application Template

…jquery (2.1.4) Loading from cache - Installing bower-asset/jquery.inputmask (3.1.63) Loading from cache - Installing bower-asset/punycode (v1.3.2) Loading from cache - Installing bower-asset/yii2-pjax (v2.0.4) Loading from cache - Installing yiisoft/yii2 (2.0.6) Loading from cache - Installing swiftmailer/swiftmailer (v5.4.1) Loading from cache - Installing yiisoft/yii2-swiftmailer (2.0.4) Loading from cache - Installing yiisoft/yii2-codeception…


HTML5 Mastery: Fragments

…jQuery, Angular, and others. They all use the DocumentFragment in one or more places to overcome potential performance hits. Is a virtual DOM faster than the real one? Yes, of course, but it may not be as fast without using a DocumentFragment to aggregate multiple operations. References Efficient DOM and…


Introducing the WP REST API

…jQuery) by querying the DOM for the appropriate <link> element like the following:(function( $ ) { var $link = $( 'link[rel="https://github.com/WP-API/WP-API"]' ); var api_root = $link.attr( 'href' ); })( jQuery );From here we can start retrieving the content from the site through the WP REST API. Please note that only…


Data Persistence and Sessions With React

…jQuery we create a request to check the value of the session variable when the document becomes available. If it is set, we then initialise our React component with the stored value, resulting in an autologin feature for our users. Fire up the chat again with npm start and have…


Refine Search

Save This Search?

Saved Searches

You have not saved any searches yet.