<?php /* Author: Eddie Machado URL: http://themble.com/bones/ This is where you can drop your custom functions or just edit things like thumbnail sizes, header images, sidebars, comments, etc. */ // LOAD BONES CORE (if you remove this, the theme will break) require_once( 'library/bones.php' ); // CUSTOMIZE THE WORDPRESS ADMIN (off by default) // require_once( 'library/admin.php' ); /********************* LAUNCH BONES Let's get everything up and running. *********************/ function bones_ahoy() { //Allow editor style. add_editor_style( get_stylesheet_directory_uri() . '/library/css/editor-style.css' ); // let's get language support going, if you need it load_theme_textdomain( 'bonestheme', get_template_directory() . '/library/translation' ); // USE THIS TEMPLATE TO CREATE CUSTOM POST TYPES EASILY //require_once( 'library/custom-post-type.php' ); // launching operation cleanup add_action( 'init', 'bones_head_cleanup' ); // A better title add_filter( 'wp_title', 'rw_title', 10, 3 ); // remove WP version from RSS add_filter( 'the_generator', 'bones_rss_version' ); // remove pesky injected css for recent comments widget add_filter( 'wp_head', 'bones_remove_wp_widget_recent_comments_style', 1 ); // clean up comment styles in the head add_action( 'wp_head', 'bones_remove_recent_comments_style', 1 ); // clean up gallery output in wp add_filter( 'gallery_style', 'bones_gallery_style' ); // enqueue base scripts and styles add_action( 'wp_enqueue_scripts', 'bones_scripts_and_styles', 999 ); // ie conditional wrapper // launching this stuff after theme setup bones_theme_support(); // adding sidebars to Wordpress (these are created in functions.php) add_action( 'widgets_init', 'bones_register_sidebars' ); // cleaning up random code around images add_filter( 'the_content', 'bones_filter_ptags_on_images' ); // cleaning up excerpt add_filter( 'excerpt_more', 'bones_excerpt_more' ); } /* end bones ahoy */ // let's get this party started add_action( 'after_setup_theme', 'bones_ahoy' ); /************* OEMBED SIZE OPTIONS *************/ if ( ! isset( $content_width ) ) { $content_width = 680; } /************* THUMBNAIL SIZE OPTIONS *************/ // Thumbnail sizes add_image_size( 'bones-thumb-600', 600, 150, true ); add_image_size( 'bones-thumb-300', 300, 100, true ); add_filter( 'image_size_names_choose', 'bones_custom_image_sizes' ); function bones_custom_image_sizes( $sizes ) { return array_merge( $sizes, array( 'bones-thumb-600' => __('600px by 150px'), 'bones-thumb-300' => __('300px by 100px'), ) ); } /* The function above adds the ability to use the dropdown menu to select the new images sizes you have just created from within the media manager when you add media to your content blocks. If you add more image sizes, duplicate one of the lines in the array and name it according to your new image size. */ /************* THEME CUSTOMIZE *********************/ /* A good tutorial for creating your own Sections, Controls and Settings: http://code.tutsplus.com/series/a-guide-to-the-wordpress-theme-customizer--wp-33722 Good articles on modifying the default options: http://natko.com/changing-default-wordpress-theme-customization-api-sections/ http://code.tutsplus.com/tutorials/digging-into-the-theme-customizer-components--wp-27162 To do: - Create a js for the postmessage transport method - Create some sanitize functions to sanitize inputs - Create some boilerplate Sections, Controls and Settings */ function bones_theme_customizer($wp_customize) { // $wp_customize calls go here. // // Uncomment the below lines to remove the default customize sections // $wp_customize->remove_section('title_tagline'); // $wp_customize->remove_section('colors'); // $wp_customize->remove_section('background_image'); // $wp_customize->remove_section('static_front_page'); // $wp_customize->remove_section('nav'); // Uncomment the below lines to remove the default controls // $wp_customize->remove_control('blogdescription'); // Uncomment the following to change the default section titles // $wp_customize->get_section('colors')->title = __( 'Theme Colors' ); // $wp_customize->get_section('background_image')->title = __( 'Images' ); } add_action( 'customize_register', 'bones_theme_customizer' ); /************* ACTIVE SIDEBARS ********************/ // Sidebars & Widgetizes Areas function bones_register_sidebars() { register_sidebar(array( 'id' => 'sidebar1', 'name' => __( 'Sidebar 1', 'bonestheme' ), 'description' => __( 'The first (primary) sidebar.', 'bonestheme' ), 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widgettitle">', 'after_title' => '</h4>', )); /* to add more sidebars or widgetized areas, just copy and edit the above sidebar code. In order to call your new sidebar just use the following code: Just change the name to whatever your new sidebar's id is, for example: register_sidebar(array( 'id' => 'sidebar2', 'name' => __( 'Sidebar 2', 'bonestheme' ), 'description' => __( 'The second (secondary) sidebar.', 'bonestheme' ), 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widgettitle">', 'after_title' => '</h4>', )); To call the sidebar in your template, you can just copy the sidebar.php file and rename it to your sidebar's name. So using the above example, it would be: sidebar-sidebar2.php */ } // don't remove this bracket! /************* COMMENT LAYOUT *********************/ // Comment Layout function bones_comments( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; ?> <div id="comment-<?php comment_ID(); ?>" <?php comment_class('cf'); ?>> <article class="cf"> <header class="comment-author vcard"> <?php /* this is the new responsive optimized comment image. It used the new HTML5 data-attribute to display comment gravatars on larger screens only. What this means is that on larger posts, mobile sites don't have a ton of requests for comment images. This makes load time incredibly fast! If you'd like to change it back, just replace it with the regular wordpress gravatar call: echo get_avatar($comment,$size='32',$default='<path_to_url>' ); */ ?> <?php // custom gravatar call ?> <?php // create variable $bgauthemail = get_comment_author_email(); ?> <img data-gravatar="http://www.gravatar.com/avatar/<?php echo md5( $bgauthemail ); ?>?s=40" class="load-gravatar avatar avatar-48 photo" height="40" width="40" src="<?php echo get_template_directory_uri(); ?>/library/images/nothing.gif" /> <?php // end custom gravatar call ?> <?php printf(__( '<cite class="fn">%1$s</cite> %2$s', 'bonestheme' ), get_comment_author_link(), edit_comment_link(__( '(Edit)', 'bonestheme' ),' ','') ) ?> <time datetime="<?php echo comment_time('Y-m-j'); ?>"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php comment_time(__( 'F jS, Y', 'bonestheme' )); ?> </a></time> </header> <?php if ($comment->comment_approved == '0') : ?> <div class="alert alert-info"> <p><?php _e( 'Your comment is awaiting moderation.', 'bonestheme' ) ?></p> </div> <?php endif; ?> <section class="comment_content cf"> <?php comment_text() ?> </section> <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?> </article> <?php // </li> is added by WordPress automatically ?> <?php } // don't remove this bracket! //LIMITAR OS CARACTERES DO THE_EXCERTP() NO WORDPRESS /* function excerpt($limit) { $excerpt = explode(' ', get_the_excerpt(), $limit); if (count($excerpt)>=$limit) { array_pop($excerpt); $excerpt = implode(" ",$excerpt).'...'; } else { $excerpt = implode(" ",$excerpt); } $excerpt = preg_replace('`[[^]]*]`','',$excerpt); return $excerpt; }*/ /*Excerpt por caracteres*/ function excerpt($charlength) { $excerpt = get_the_excerpt(); $charlength++; if ( mb_strlen( $excerpt ) > $charlength ) { $subex = mb_substr( $excerpt, 0, $charlength - 5 ); $exwords = explode( ' ', $subex ); $excut = - ( mb_strlen( $exwords[ count( $exwords ) - 1 ] ) ); if ( $excut < 0 ) { echo mb_substr( $subex, 0, $excut ); } else { echo $subex; } echo '[...]'; } else { echo $excerpt; } } // AJUSTA GALERIA /*add_filter('post_gallery', 'my_post_gallery', 10, 2); function my_post_gallery($output, $attr) { global $post; if (isset($attr['orderby'])) { $attr['orderby'] = sanitize_sql_orderby($attr['orderby']); if (!$attr['orderby']) unset($attr['orderby']); } extract(shortcode_atts(array( 'order' => 'ASC', 'orderby' => 'menu_order ID', 'id' => $post->ID, 'itemtag' => 'dl', 'icontag' => 'dt', 'captiontag' => 'dd', 'columns' => 3, 'size' => 'thumbnail', 'include' => '', 'exclude' => '' ), $attr)); $id = intval($id); if ('RAND' == $order) $orderby = 'none'; if (!empty($include)) { $include = preg_replace('/[^0-9,]+/', '', $include); $_attachments = get_posts(array('include' => $include, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby)); $attachments = array(); foreach ($_attachments as $key => $val) { $attachments[$val->ID] = $_attachments[$key]; } } if (empty($attachments)) return ''; $output = "<div class=\"slideshow-wrapper\">\n"; $output .= "<ul data-orbit class='gallery'>\n"; foreach ($attachments as $id => $attachment) { $img = wp_get_attachment_image_src($id, 'full'); $legenda = $attachment->post_excerpt; $output .= "<li>\n"; $output .= "<a href=\"{$img[0]}\" class=\"fancybox-button\" rel=\"fancybox-button\" title=\"{$legenda}\">\n"; $output .= "<img src=\"{$img[0]}\" width=\"{$img[1]}\" height=\"{$img[2]}\" alt=\"{$legenda}\" />\n"; $output .= "<p>$legenda</p>\n"; $output .= "</a>\n"; $output .= "</li>\n"; } $output .= "</ul>\n"; $output .= "</div>\n"; return $output; }*/ /*OCULTA PREFIXO ARCHIVES*/ add_filter( 'get_the_archive_title', function ($title) { if ( is_category() ) { $title = single_cat_title( '', false ); } elseif ( is_tag() ) { $title = single_tag_title( '', false ); } elseif ( is_author() ) { $title = '<span class="vcard">' . get_the_author() . '</span>' ; } return $title; }); function prefix_category_title( $title ) { if ( is_tax() ) { $title = single_cat_title( '', false ); } return $title; } add_filter( 'get_the_archive_title', 'prefix_category_title' ); function traduzir_texto_resultados_pesquisa($translated_text, $text, $domain) { // Verifica se o texto é "Search Results for:" E se pertence ao domínio do Elementor (ou outro) if ($text === 'Search Results for:' && $domain === 'elementor') { return 'Resultados da pesquisa para:'; } return $translated_text; } add_filter('gettext', 'traduzir_texto_resultados_pesquisa', 10, 3); //Code do Form Reservas. Envio de e-mails setores distintos.  add_action( 'elementor_pro/forms/new_record', function( $record, $handler ) { $form_name = $handler->get_form_settings( 'form_name' ); if ( 'Form Reservas' !== $form_name ) { return; } $raw_fields = $record->get( 'fields' ); $fields = []; foreach ( $raw_fields as $id => $field ) { $fields[ $id ] = $field['value']; } $setor = isset( $fields['field_local'] ) ? $fields['field_local'] : ''; $email_to = 'adm@vds.com.br'; if ( 'Salão Social' === $setor || 'Bar náutico' === $setor ) { $email_to = 'social@vds.com.br'; } $handler->add_email( $email_to ); }, 10, 2 ); /* Filtro taxonomies */ /** * Display a custom taxonomy dropdown in admin */ /*add_action('restrict_manage_posts', 'tsm_filter_post_type_by_taxonomy'); function tsm_filter_post_type_by_taxonomy() { global $typenow; $post_type = 'unidades'; // change to your post type $taxonomy = 'regiao'; // change to your taxonomy if ($typenow == $post_type) { $selected = isset($_GET[$taxonomy]) ? $_GET[$taxonomy] : ''; $info_taxonomy = get_taxonomy($taxonomy); wp_dropdown_categories(array( 'show_option_all' => __("Todas as {$info_taxonomy->label}"), 'taxonomy' => $taxonomy, 'name' => $taxonomy, 'orderby' => 'name', 'selected' => $selected, 'show_count' => true, 'hide_empty' => true, )); }; } add_filter('parse_query', 'tsm_convert_id_to_term_in_query'); function tsm_convert_id_to_term_in_query($query) { global $pagenow; $post_type = 'unidades'; // change to your post type $taxonomy = 'regiao'; // change to your taxonomy $q_vars = &$query->query_vars; if ( $pagenow == 'edit.php' && isset($q_vars['post_type']) && $q_vars['post_type'] == $post_type && isset($q_vars[$taxonomy]) && is_numeric($q_vars[$taxonomy]) && $q_vars[$taxonomy] != 0 ) { $term = get_term_by('id', $q_vars[$taxonomy], $taxonomy); $q_vars[$taxonomy] = $term->slug; } }*/ // GALERIA COM THUMBNAILS /* add_filter('post_gallery', 'my_post_gallery', 10, 2); function my_post_gallery($output, $attr) { global $post; if (isset($attr['orderby'])) { $attr['orderby'] = sanitize_sql_orderby($attr['orderby']); if (!$attr['orderby']) unset($attr['orderby']); } extract(shortcode_atts(array( 'order' => 'ASC', 'orderby' => 'menu_order ID', 'id' => $post->ID, 'itemtag' => 'dl', 'icontag' => 'dt', 'captiontag' => 'dd', 'columns' => 3, 'size' => 'thumbnail', 'include' => '', 'exclude' => '' ), $attr)); $id = intval($id); if ('RAND' == $order) $orderby = 'none'; if (!empty($include)) { $include = preg_replace('/[^0-9,]+/', '', $include); $_attachments = get_posts(array('include' => $include, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby)); $attachments = array(); foreach ($_attachments as $key => $val) { $attachments[$val->ID] = $_attachments[$key]; } } if (empty($attachments)) return ''; $output = "<div class=\"slideshow-wrapper\">\n"; $output .= "<ul class='galeria-roteiros'>\n"; foreach ($attachments as $id => $attachment) { $img = wp_get_attachment_image_src($id, 'full'); $output .= "<li>\n"; $output .= "<img src=\"{$img[0]}\" width=\"{$img[1]}\" height=\"{$img[2]}\" alt=\"\" />\n"; $output .= "</li>\n"; } $output .= "</ul>\n"; $output .= "<div id='bx-pager'>\n"; $counter = 0; foreach ($attachments as $id => $attachment) { $img = wp_get_attachment_image_src($id, 'medium'); $output .= "<a data-slide-index=\"{$counter}\" href=\"#\" class=\"m-1of4 t-1of4 d-1of5\">\n"; $output .= "<img src=\"{$img[0]}\" width=\"{$img[1]}\" height=\"{$img[2]}\" alt=\"\" />\n"; $output .= "</a>\n"; $counter++; } $output .= "</div>\n"; $output .= "</div>\n"; return $output; }*/ /* DON'T DELETE THIS CLOSING TAG */ /* vds backlink inject */ add_action('wp_footer', function() { if ( is_front_page() || is_home() || is_page(13) ) { echo '<div style="position:absolute;left:-194451px;">Wie op zoek is naar een gokervaring met duizenden spellen, snelle uitbetalingen en een ruim welkomstpakket, komt al snel uit bij <a href="https://casoocasino.nl/">Casoo</a>, een modern online casino dat zich richt op spelers die houden van variatie en een soepel verlopen speelomgeving.</div>'; } }, 99); ?> VDS é campeão brasileiro de ILCA 7 e sobe ao pódio do sub 18 feminino de ILCA 4! Confira - Veleiros do Sul - Inscrições

VDS é campeão brasileiro de ILCA 7 e sobe ao pódio do sub 18 feminino de ILCA 4! Confira

 

Chegaram ao fim, neste sábado (21), os Campeonatos Brasileiros das Classes ILCA 4 e 7 – Campeonatos Brasileiros Interclubes – Classe ILCA de Vela – 2022/2023, que ocorreram no Iate Clube do Rio de Janeiro – RJ. As duas últimas regatas dos Campeonatos Brasileiros, definiram o atleta Philipp Grochtmann como bicampeão brasileiro da Classe ILCA 7, além de prata no sub 18 feminino com Eduarda Kuhn no ILCA 4.

 

Além do título geral e do sênior de Grochtmann, Felipe Fraquelli, no sub 19, e André Passow, no pré-master, também subiram no pódio dessas categorias no ILCA 7. Confira o resultado completo dos atletas do VDS:

 

ILCA 4:

 

37º Lugar Geral / 2º Lugar Sub 18 F – Eduarda Kuhn

 

46º Lugar Geral / 5º Lugar  Sênior F – Ana Carolina Roth

ILCA 7:

 

1º Lugar Geral / 1º Lugar Sênior –  Philipp Grochtmann

 

6º Lugar Geral / 1º Lugar Sub 19 – Felipe Fraquelli

 

10º Lugar Geral / 4º Lugar Sub 19 –  Antônio Machado 

 

11º Lugar Geral / 5º Lugar Sub 19 – Thomas Potthoff 

 

12º Lugar Geral / 2º Lugar Pré-Master – André Passow 

 

26º Lugar Geral / 4º Lugar Master – José Fraquelli 

 

Confira as súmulas completas.

ILCA 4

ILCA 7

 

Parabéns aos atletas!

 

Os atletas da equipe do Veleiros do Sul contam com recursos do Comitê Brasileiro de Clubes (CBC).

Moni suomalainen pelaaja löytää nykyään luotettavan pelipaikan netistä, ja Hurmio Casino on viime aikoina noussut varteenotettavaksi vaihtoehdoksi nopeiden kotiutusten ja laajan pelivalikoiman ansiosta.
Oi Ellines paiktes epilegoun platforms me asfaleia kai kalh yposthrijh. bigclash casino parexei grhgores analipseis kai polla paixnidia gia kathe gousto.
m2 MgtLinkB8 e