????JFIF??x?x????'
Server IP : 104.21.64.1 / Your IP : 216.73.216.145 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/tempvsty/dchs84reunion.com/wp-content/themes/celebration/php/ |
Upload File : |
<?php /** * Post media HTML * * @param string * @param array * @return string */ if ( ! function_exists( 'boldthemes_get_media_html' ) ) { function boldthemes_get_media_html( $type, $data ) { $html = ''; if ( $type == 'image' ) { $data_attr = ''; if ( isset( $data[2] ) ) { $data_attr = 'data-hw="' . esc_attr( $data[2] ) . '"'; } $html = '<div class="btMediaBox" ' . $data_attr . '><div class="bpbItem">'; $html .= '<a href="' . esc_url_raw( $data[0] ) . '"><img src="' . esc_url_raw( $data[1] ) . '" alt="' . esc_attr( basename( $data[1] ) ) . '"></a>'; $html .= '</div></div>'; } else if ( $type == 'image_single_post' ) { $data_attr = ''; if ( isset( $data[2] ) ) { $data_attr = 'data-hw="' . esc_attr( $data[2] ) . '"'; } $html = '<div class="btMediaBox" ' . $data_attr . '><div class="bpbItem">'; $html .= '<img src="' . esc_url_raw( $data[1] ) . '" alt="' . esc_attr( basename( $data[1] ) ) . '">'; $html .= '</div></div>'; } else if ( $type == 'gallery' ) { $data_attr = ''; if ( isset( $data[1] ) ) { $data_attr = ' ' . 'data-hw="' . esc_attr( $data[1] ) . '"'; } if ( isset( $data[2] ) ) { $html = '<div class="btMediaBox"' . sanitize_text_field( $data_attr ) . '>' . do_shortcode( '[gallery ids="' . join( ',', $data[0] ) . '" size="' . esc_attr( $data[2] ) . '"]' ) . '</div>'; } else { $html = '<div class="btMediaBox"' . sanitize_text_field( $data_attr ) . '>' . do_shortcode( '[gallery ids="' . join( ',', $data[0] ) . '"]' ) . '</div>'; } } else if ( $type == 'grid_gallery' ) { $html = '<div class="btMediaBox">' . do_shortcode( '[bt' . '_grid_gallery ids="' . join( ',', $data[0] ) . '" columns="' . esc_attr( $data[1] ) . '" has_thumb="' . esc_attr( $data[2] ) . '" format="' . esc_attr( $data[3] ) . '" lightbox="' . esc_attr( $data[4] ) . '" grid_gap="' . esc_attr( $data[5] ) . '"]' ) . '</div>'; } else if ( $type == 'video' ) { $hw = 9 / 16; $html = '<div class="btMediaBox video" data-hw="' . esc_attr( $hw ) . '"><img class="aspectVideo" src="' . esc_url_raw( get_template_directory_uri() . '/gfx/video-16.9.png' ) . '" alt="' . esc_url_raw( get_template_directory_uri() . '/gfx/video-16.9.png' ) . '" role="presentation" aria-hidden="true">'; if ( strpos( $data[0], 'vimeo.com/' ) > 0 ) { $video_id = substr( $data[0], strpos( $data[0], 'vimeo.com/' ) + 10 ); $html .= '<ifra' . 'me src="' . esc_url_raw( 'http://player.vimeo.com/video/' . $video_id ) . '" allowfullscreen></ifra' . 'me>'; } else { $yt_id_pattern = '~(?:http|https|)(?::\/\/|)(?:www.|)(?:youtu\.be\/|youtube\.com(?:\/embed\/|\/v\/|\/watch\?v=|\/ytscreeningroom\?v=|\/feeds\/api\/videos\/|\/user\S*[^\w\-\s]|\S*[^\w\-\s]))([\w\-]{11})[a-z0-9;:@#?&%=+\/\$_.-]*~i'; $youtube_id = ( preg_replace( $yt_id_pattern, '$1', $data[0] ) ); if ( strlen( $youtube_id ) == 11 ) { $html .= '<ifra' . 'me width="560" height="315" src="' . esc_url_raw( 'http://www.youtube.com/embed/' . $youtube_id ) . '" allowfullscreen></ifra' . 'me>'; } else { $html = '<div class="btMediaBox video" data-hw="' . esc_attr( $hw ) . '">'; $html .= do_shortcode( $data[0] ); } } $html .= '</div>'; if ( $data[0] == '' ) { $html = ''; } } else if ( $type == 'audio' ) { if ( strpos( $data[0], '</ifra' . 'me>' ) > 0 ) { $html = '<div class="btMediaBox audio">' . wp_kses( $data[0], array( 'iframe' => array( 'height' => array(), 'src' =>array() ) ) ) . '</div>'; } else { $html = '<div class="btMediaBox audio">' . do_shortcode( $data[0] ) . '</div>'; } if ( $data[0] == '' ) { $html = ''; } } else if ( $type == 'link' ) { $html = '<div class="btMediaBox btDarkSkin btLink"><p><a href="' . esc_url_raw( $data[0] ) . '">' . $data[1] . '</a></p><cite><a href="' . esc_url_raw( $data[0] ) . '">' . $data[0] . '</a></cite></div>'; if ( $data[1] == '' || $data[0] == '' ) { $html = ''; } } else if ( $type == 'quote' ) { $html = '<div class="btMediaBox btQuote btDarkSkin"><p>' . $data[0] . '</p><cite>' . $data[1] . '</cite></div>'; if ( $data[0] == '' || $data[1] == '' ) { $html = ''; } } return $html; } } /** * Returns heading HTML * * @param string $superheadline * @param string $headline * @param string $subheadline * @param string $headline_size // small/medium/large/extralarge * @param string $dash // no/top/bottom * @param string $el_class * @param string $el_style * @return string */ if ( ! function_exists( 'boldthemes_get_heading_html' ) ) { function boldthemes_get_heading_html( $superheadline, $headline, $subheadline, $headline_size, $dash, $el_class, $el_style ) { if ( $superheadline != '' ) { $superheadline = '<div class="btSuperTitle">' . $superheadline . '</div>'; } if ( $subheadline != '' ) { $subheadline = '<div class="btSubTitle">' . $subheadline . '</div>'; } $h_tag = 'h1'; $class = ''; $style_attr = ''; if ( $el_style != '' ) { $style_attr = 'style="' . esc_attr( $el_style ) . '"'; } if ( $headline_size != 'no' ) { $class .= $headline_size; } if ( $headline_size == 'huge' ) { $h_tag = 'h1'; } else if ( $headline_size == 'extralarge' ) { $h_tag = 'h2'; } else if ( $headline_size == 'large' ) { $h_tag = 'h2'; } else if ( $headline_size == 'medium' ) { $h_tag = 'h3'; } else { $h_tag = 'h4'; } if ( $dash == 'yes' ) { $dash = 'top'; } if( $dash != 'no' && $dash != '' ) { $class .= ' btDash ' . $dash . 'Dash'; } if ( $el_class != '' ) { $class .= ' ' . $el_class; } $output = '<header class="header btClear ' . $class . '" ' . $style_attr . '>'; $output .= $superheadline; if ( $headline != '' ) { $output .= '<div class="dash">'; $pattern = "/<(b|u|i|em)([> ])/"; $replace = '<$1 class="animate">'; $headline = preg_replace($pattern, $replace, $headline); $output .= '<' . $h_tag . '><span class="headline">' . $headline . '</span></' . $h_tag . '>'; $output .= '</div>'; } $output .= $subheadline; $output .= '</header>'; return $output; } } /** * Returns icon HTML * * @param string $icon * @param string $url * @param string $text * @param string $el_class * @return string */ if ( ! function_exists( 'boldthemes_get_icon_html' ) ) { function boldthemes_get_icon_html( $icon, $url, $text, $el_class, $target = '', $el_style = '' ) { $icon_set = substr( $icon, 0, 2 ); $icon = substr( $icon, 3 ); if( substr( $url, 0, 3 ) == 'www') $url = 'http://' . $url; $link = ''; if ( $url != '' && $url != '#' && substr( $url, 0, 4 ) != 'http' && substr( $url, 0, 5 ) != 'https' && substr( $url, 0, 6 ) != 'mailto' ) { $link_tmp = get_posts( array( 'name' => $url, 'post_type' => 'page' ) ); if ( ( is_array( $link_tmp ) && count( $link_tmp ) > 0 && isset( $link_tmp[0]->ID ) ) ) { if ( substr( $url, 0, 4 ) == 'http' ) { $link = $url; } else { $link = get_permalink( $link_tmp[0]->ID ); } } else { $link = $url; } } else { $link = $url; } if ( $target != '' ) $target = ' target = "' . ( $target ) . '"'; if ( $text != '' ) $text = '<span>' . $text . '</span>'; $ico_tag = 'a '; if ( $link == '' ) { $ico_tag = 'span '; $ico_tag_end = 'span'; } else { $ico_tag = 'a href="' . esc_url_raw( $link ) . '" ' . ( $target ); $ico_tag_end = 'a'; } $style_attr = ''; if ( $el_style != '' ) { $style_attr = ' ' . 'style="' . esc_attr( $el_style ) . '"'; } return '<span class="btIco ' . esc_attr( $el_class ) . '" ' . $style_attr . '><' . $ico_tag . ' data-ico-' . esc_attr( $icon_set ) . '="&#x' . esc_attr( $icon ) . ';" class="btIcoHolder">' . $text . '</' . $ico_tag_end . '></span>'; } } /** * Returns button HTML * * @param string $icon * @param string $url * @param string $text * @param string $el_class * @param string $el_style * @param string $target * @return string */ if ( ! function_exists( 'boldthemes_get_button_html' ) ) { function boldthemes_get_button_html( $icon, $url, $text, $el_class, $el_style = '', $target = '' ) { $style_attr = ''; if ( $el_style != '' ) { $style_attr = 'style="' . esc_attr( $el_style ) . '"'; } if ( $url == '' ) { $url = '#'; } if ( $text != '' ) { $text = '<span class="btnInnerText">' . $text . '</span>'; } if ( is_array( $el_class ) ) $el_class = implode( ' ', $el_class ); if ( $icon == '' || $icon == 'no_icon' ) { $el_class .= " btnNoIcon"; } $link = ""; if ( $url != '' && $url != '#' && substr( $url, 0, 4 ) != 'http' && substr( $url, 0, 5 ) != 'https' && substr( $url, 0, 6 ) != 'mailto' ) { $link_tmp = get_posts( array( 'name' => $url, 'post_type' => 'page' ) ); if ( ( is_array( $link_tmp ) && count( $link_tmp ) > 0 && isset( $link_tmp[0]->ID ) ) ) { if ( substr( $url, 0, 4 ) == 'http' ) { $link = $url; } else { $link = get_permalink( $link_tmp[0]->ID ); } } else { $link = $url; } } else { $link = $url; } $output = '<a href="' . esc_attr( $link ) . '" class="btBtn ' . esc_attr( $el_class ) . '"' . ' ' . $style_attr . $target . '>'; if ( $icon == '' || $icon == 'no_icon' ) { $output .= $text; } else { $output .= $text . boldthemes_get_icon_html( $icon, '', '', '' ); } $output .= '</a>'; return $output; } } /** * Logo */ if ( ! function_exists( 'boldthemes_logo' ) ) { function boldthemes_logo( $type = 'header' ) { $logo_invert = boldthemes_get_option( 'logo_invert' ); if ( $logo_invert ) { $logo = boldthemes_get_option( 'alt_logo' ); $alt_logo = boldthemes_get_option( 'logo' ); } else { $logo = boldthemes_get_option( 'logo' ); $alt_logo = boldthemes_get_option( 'alt_logo' ); } if ( strpos( $logo, '/wp-content' ) === 0 ) { $logo = get_site_url() . $logo; } $hw = ''; if ( $logo != '' ) { $image = wp_get_attachment_image_src( attachment_url_to_postid( $logo ), 'full' ); if ( $image ) { $width = $image[1]; $height = $image[2]; if ( $height > 0 ) { $hw = $width / $height; } } } $home_link = home_url( '/' ); if ( $logo != '' && $logo != ' ' ) { if ( $type == 'header' ) { echo '<a href="' . esc_url_raw( $home_link ) . '"><img class="btMainLogo" data-hw="' . esc_attr( $hw ) . '" src="' . esc_url_raw( $logo ) . '" alt="' . esc_attr( get_bloginfo( 'name' ) ) . '">'; if ( $alt_logo != '' && $alt_logo != ' ' ) echo '<img class="btAltLogo" src="' . esc_url_raw( $alt_logo ) . '" alt="' . esc_attr( get_bloginfo( 'name' ) ) . '">'; echo '</a>'; } else if ( $type == 'footer' ) { echo '<a href="' . esc_url_raw( $home_link ) . '"><img src="' . esc_url_raw( $logo ) . '" alt="' . esc_attr( get_bloginfo( 'name' ) ) . '"></a>'; } else if ( $type == 'preloader' ) { echo '<img class="preloaderLogo" src="' . esc_url_raw( $logo ) . '" alt="' . esc_attr( get_bloginfo( 'name' ) ) . '" data-alt-logo="' . esc_attr( $alt_logo ) . '">'; } } else { echo '<a href="' . esc_url_raw( $home_link ) . '" class="btTextLogo">' . get_bloginfo( 'name' ) . '</a>'; } } } /** * Top bar HTML output */ if ( ! function_exists( 'boldthemes_top_bar_html' ) ) { function boldthemes_top_bar_html( $type = 'top' ) { if ( is_active_sidebar( 'header_left_widgets' ) || is_active_sidebar( 'header_right_widgets' ) ) { if ( $type == 'top' ) { ?> <div class="topBar btClear"> <div class="topBarPort btClear"> <?php if ( is_active_sidebar( 'header_left_widgets' ) ) { ?> <div class="topTools btTopToolsLeft btTextLeft"> <?php dynamic_sidebar( 'header_left_widgets' ); ?> </div><!-- /ttLeft --> <?php } ?> <?php if ( is_active_sidebar( 'header_right_widgets' ) ) { ?> <div class="topTools btTopToolsRight btTextRight"> <?php dynamic_sidebar( 'header_right_widgets' ); ?> </div><!-- /ttRight --> <?php } ?> </div><!-- /topBarPort --> </div><!-- /topBar --> <?php } else { ?> <div class="topBarInMenu"> <div class="topBarInMenuCell"> <?php dynamic_sidebar( 'header_right_widgets' ); ?> </div><!-- /topBarInMenu --> </div><!-- /topBarInMenuCell --> <?php } } } } /** * Preloader HTML output */ if ( ! function_exists( 'boldthemes_preloader_html' ) ) { function boldthemes_preloader_html() { if ( ! boldthemes_get_option( 'disable_preloader' ) ) { ?> <div id="btPreloader" class="btPreloader fullScreenHeight"> <div class="animation"> <div><?php boldthemes_logo( 'preloader' ); ?></div> <div class="btLoader"></div> <p><?php echo boldthemes_get_option( 'preloader_text' ); ?></p> </div> </div><!-- /.preloader --> <?php } } } /** * Returns image with link HTML * * @param string $image * @param string $caption_text * @param string $size * @param string $url * @param string $target * @param string $el_style * @param string $el_class * @return string */ if ( ! function_exists( 'boldthemes_get_image_html' ) ) { function boldthemes_get_image_html( $image, $caption, $caption_text, $size, $shape, $url, $target, $show_titles, $el_style, $el_class ) { $el_style = sanitize_text_field( $el_style ); $el_class = sanitize_text_field( $el_class ); if ( $size == '' ) $size = 'large'; if ( $shape == 'circle' ) $el_class .= ' btCircleImage'; $style_html = ''; if ( $el_style != '' ) { $style_html= ' ' . 'style="' . esc_attr( $el_style ) . '"'; } $output = '<div class = "btImage"><img src="' . esc_url_raw( $image ) . '" alt="' . esc_url( $image ) . '" ></div>'; if ( strpos( $url, '<a href') === 0 ) { $link = $url; } else { $link = ""; if ( $url != '' && $url != '#' && substr( $url, 0, 4 ) != 'http' && substr( $url, 0, 5 ) != 'https' && substr( $url, 0, 6 ) != 'mailto' ) { $link_tmp = get_posts( array( 'name' => $url, 'post_type' => 'page' ) ); if ( ( is_array( $link_tmp ) && count( $link_tmp ) > 0 && isset( $link_tmp[0]->ID ) ) ) { if ( substr( $url, 0, 4 ) == 'http' ) { $link = $url; } else { $link = get_permalink( $link_tmp[0]->ID ); } } else { $link = $url; } } else { $link = $url; } $link = '<a href="' . esc_url_raw( $link ) . '" target="' . esc_attr( $target ) . '"></a>'; } if ( $caption != '' || $caption_text != '' ) { } if ( $url != '' ) { $link_output = '<div class="bpgPhoto ' . $el_class . '" ' . $style_html . '> ' . $link . ' <div class="boldPhotoBox"><div class="bpbItem">' . $output . '</div></div> <div class="captionPane"> <div class="captionTable"> <div class="captionCell"> <div class="captionTxt">'; if ( $caption != '' || $caption_text != '' ) { $link_output .= boldthemes_get_heading_html( '', $caption, $caption_text, 'small', 'bottom', '', '' ); } $link_output .= '</div> </div> </div> </div>'; if ( $show_titles ) { $link_output .= ' <div class="btShowTitle"> <span class="btShowTitleCaptionTxt">' . boldthemes_get_heading_html( '', $caption, $caption_text, 'small', 'bottom', '', '' ) . '</span> </div>'; } $link_output .= '</div>'; $output = $link_output; } else { $output = '<div class="bpgPhoto ' . $el_class . '" ' . $style_html . '>' . $output . '</div>'; } return $output; } }