The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
| <?php | |
| $names = $_POST['name']; | |
| $emails = $_POST['email']; | |
| $user_array = array(); | |
| foreach($names as $key => $name) | |
| { | |
| $user_array[$key]['name'] = $name; |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> | |
| <title></title> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
| <style type="text/css"> | |
| body { | |
| margin: 0; | |
| mso-line-height-rule: exactly; | |
| padding: 0; | |
| min-width: 100%; | |
| } |
| <?php | |
| // Register Custom Post Type named FAQ | |
| function wagon_faqs_post_type() { | |
| $labels = array( | |
| 'name' => _x( 'CPAP FAQs', 'Post Type General Name', 'cpap' ), | |
| 'singular_name' => _x( 'CPAP FAQ', 'Post Type Singular Name', 'cpap' ), | |
| 'menu_name' => __( 'CPAP FAQs', 'cpap' ), |
| <?php | |
| $ionicons_icons = array( | |
| 'ion-alert', | |
| 'ion-alert-circled', | |
| 'ion-android-add', | |
| 'ion-android-add-circle', | |
| 'ion-android-alarm-clock', | |
| 'ion-android-alert', | |
| 'ion-android-apps', |
| <?php | |
| /* ------------------------------------------------ | |
| Custom login image logo | |
| ------------------------------------------------ */ | |
| function my_custom_login_logo() { | |
| echo '<style type="text/css"> | |
| h1 a { background-image:url('.get_bloginfo('template_url').'/images/loginlogo.png) !important; } | |
| </style>'; | |
| } | |
| add_action('login_head', 'my_custom_login_logo'); |
| <?php | |
| // get featured image for this page | |
| if ( has_post_thumbnail()) { | |
| $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full'); | |
| } | |
| ?> |
| var options = { | |
| title: "Test", | |
| hAxis: { | |
| direction:-1, | |
| slantedText:true, | |
| slantedTextAngle:90 // here you can even use 180 | |
| } | |
| }; |
| <script type="text/javascript"> | |
| $('a').click(function(){ | |
| $('html, body').animate({ | |
| scrollTop: $( $.attr(this, 'href') ).offset().top | |
| }, 800); | |
| return false; | |
| }); | |
| </script> |
| #paste this into domain.com/wordpress installation .htaccess | |
| # BEGIN WordPress | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase /wordpress/ | |
| RewriteRule ^index\.php$ - [L] | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d |