INSERT GRAPHIC HERE (include hyperlink in image)
Subtitle or Short Description Goes Here
ideally one sentence >
| <?php | |
| add_action( 'wp_enqueue_scripts', 'enqueue_my_styles' ); | |
| /** | |
| * Example callback function that demonstrates how to properly enqueue conditional stylesheets in WordPress for IE. | |
| * IE10 and up does not support conditional comments in standards mode. | |
| * | |
| * @uses wp_style_add_data() WordPress function to add the conditional data. | |
| * @link https://developer.wordpress.org/reference/functions/wp_style_add_data/ |
| <?php | |
| /** | |
| * | |
| * This removes the ability to add the FULL image size into a post, it does not alter or delete the image | |
| * Add whataever extra image sizes to the insert dropdown in WordPress you create via add_image_size | |
| * | |
| * For now we have to do it this way to make the labels translatable, see trac ref below. | |
| * | |
| * If your theme has $content_width GLOBAL make sure and remove it |
| /* Delete revisions */ | |
| DELETE FROM wp_posts WHERE post_type = "revision"; | |
| /* Only use this if you no longer care about any of your current revisions! */ | |
| /* Delete trashed posts */ | |
| DELETE FROM wp_posts WHERE post_type = "trash"; | |
| /* Delete Jetpack Feedback Spam */ | |
| SELECT * FROM wp_posts WHERE wp_posts.post_type = "feedback" AND wp_posts.post_status= "spam"; |
| <?php | |
| /* | |
| This can be included in your functions.php file. It checks to make sure the plugin is not activated. Please note, | |
| if you have the plugin in any other directory than redux-framework (ie, you installed via the Github Repo), this will not function. | |
| */ | |
| include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); // Comment this line if within template files, IE required in files like functions.php | |
| if ( !is_plugin_active('ReduxFramework/redux-framework.php') && !is_plugin_active('redux-framework/redux-framework.php') && !is_plugin_active('ReduxFramework-master/redux-framework.php') ) { | |
| if ( !$active && !class_exists( 'Redux_Framework' ) && file_exists( dirname( __FILE__ ) . '/ReduxFramework/ReduxCore/framework.php' ) ) { | |
| require_once( dirname( __FILE__ ) . '/ReduxFramework/ReduxCore/framework.php' ); | |
| } |
| <?php | |
| /** | |
| * Load LayerSlider Scripts only when shortcode is present | |
| * | |
| * Deregister Scripts from LayerSlider if no shortcode in content | |
| * Using do_shortcode function? See: http://wordpress.stackexchange.com/questions/20854/conditionally-loading-javascript-css-for-shortcodes/75915#75915 | |
| */ | |
| function check_for_layerslider_shortcode() { | |
| global $post; |
| check process hhvm with pidfile /var/run/hhvm/pid | |
| group hhvm | |
| start program = "/usr/sbin/service hhvm start" with timeout 60 seconds | |
| stop program = "/usr/sbin/service hhvm stop" | |
| if failed unixsocket /var/run/hhvm/hhvm.sock then restart | |
| if mem > 400.0 MB for 1 cycles then restart | |
| if 5 restarts with 5 cycles then timeout |
| <?php | |
| Redux::setSection( $opt_name, array( | |
| 'title' => __( 'Text Area', 'redux-framework-demo' ), | |
| 'desc' => __( 'For full documentation on this field, visit: ', 'redux-framework-demo' ) . '<a href="http://docs.reduxframework.com/core/fields/textarea/" target="_blank">http://docs.reduxframework.com/core/fields/textarea/</a>', | |
| 'id' => 'opt-textarea-subsection', | |
| 'subsection' => true, | |
| 'fields' => array( | |
| array( | |
| 'id' => 'background-parallax', |
| var sliders = { | |
| realSlider : '', | |
| realThumbSlider : '', | |
| init : function(){ | |
| if($(window).width() <= 767){ | |
| sliders.startSliders(); | |
| } | |
| sliders.windowResize(); | |
| }, |
First install Brew on your MAC
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"brew updatebrew tap homebrew/dupesbrew tap homebrew/phpbrew install php70mcrypt: brew install mcrypt php70-mcryptbrew install composer