ed string if Polylang is not active * * @param $string * * @return void */ if ( !function_exists( 'pll_e' ) ) { function pll_e( $str ) { echo $str; } } /** * A fallback function that returns a non-translated string if Polylang is not active * * @param $string * * @return string */ if ( !function_exists( 'pll__' ) ) { function pll__( $str ) { return $str; } } /* function otb_img_attachment_fields( $form_fields, $post ) { $form_fields['cssgramFilter'] = array( 'label' => 'Instagram Filter', 'input' => 'html', 'html' => ' ', 'show_in_edit' => false, ); return $form_fields; } add_filter("attachment_fields_to_edit", "otb_img_attachment_fields", null, 2); */ /** * Wrap the inserted image html with
* if the theme supports html5 and the current image has no caption: */ /* function otb_image_send_to_editor( $html, $id, $caption, $title, $align, $url, $size, $alt ) { $cssgramFilter = get_post_meta( $id, '_cssgramFilter', true ); //if ( !empty( $cssgramFilter ) ) { //if( current_theme_supports( 'html5' ) && ! $caption ) { $html = sprintf( '
%s
', $html ); // Modify to your needs! //} return $html; } add_filter( "image_send_to_editor", "otb_image_send_to_editor", null, 8); function give_linked_images_class($html, $id, $caption, $title, $align, $url, $size, $alt = '' ) { $classes = 'juno'; // separated by spaces, e.g. 'img image-link' // check if there are already classes assigned to the anchor // if ( preg_match('//', $html) ) { // $html = preg_replace('/()/', '$1 ' . $classes . '$2', $html); // } else { // $html = preg_replace('/(/', '$1 class="' . $classes . '" >', $html); // } // check if there are already classes assigned to the anchor // if ( preg_match('//', $html) ) { // $html = preg_replace('/()/', '$1 ' . $classes . '$2', $html); // $html = 'this!'; // } else { // $html = preg_replace('/(/', '$1 class="' . $classes . '" >', $html); // $html = 'this!'; // } // return $html; //return 'blah'; } */ //add_filter('image_send_to_editor','give_linked_images_class',10,8); /* function otb_image_attachment_fields_save( $post, $attachment ) { if ( isset($attachment['cssgramFilter']) ) { update_post_meta($post['ID'], '_cssgramFilter', $attachment['cssgramFilter']); } return $post; } add_filter("attachment_fields_to_save", "otb_image_attachment_fields_save", null, 2); */ /* function add_image_class( $class, $id ) { // $class .= ' '. get_post_meta( $id, '_cssgramFilter', true ); return $class; } add_filter( 'get_image_tag_class', 'add_image_class', 10, 2 ); */ require get_template_directory() . '/update.php'; Galeria | Ostra Brama PL
Fatal error: Uncaught Error: Call to undefined function customizer_library_get_default() in /home/kordian1/domains/ostrabrama.pl/public_html/wp-content/themes/citylogic/header.php:25 Stack trace: #0 /home/kordian1/domains/ostrabrama.pl/public_html/wp-includes/template.php(810): require_once() #1 /home/kordian1/domains/ostrabrama.pl/public_html/wp-includes/template.php(745): load_template('/home/kordian1/...', true, Array) #2 /home/kordian1/domains/ostrabrama.pl/public_html/wp-includes/general-template.php(48): locate_template(Array, true, true, Array) #3 /home/kordian1/domains/ostrabrama.pl/public_html/wp-content/themes/citylogic/page.php(13): get_header() #4 /home/kordian1/domains/ostrabrama.pl/public_html/wp-includes/template-loader.php(106): include('/home/kordian1/...') #5 /home/kordian1/domains/ostrabrama.pl/public_html/wp-blog-header.php(19): require_once('/home/kordian1/...') #6 /home/kordian1/domains/ostrabrama.pl/public_html/index.php(17): require('/home/kordian1/...') #7 {main} thrown in /home/kordian1/domains/ostrabrama.pl/public_html/wp-content/themes/citylogic/header.php on line 25