Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • in reply to: White page Wp-admin #728754

    Thank you ! now it’s ok ! thank you very much !!! bye

    in reply to: White page Wp-admin #728732

    yes no problem!!
    But after install pre-built one will my site go ‘well yet????
    Thank you

    in reply to: White page Wp-admin #728718

    thank you but I still see a white page….
    i don’t know.. I can’t log in my site

    in reply to: Google maps API #721419

    I solve it. thanks anyway !!! By

    in reply to: Google maps API #721415

    Hi,
    in the API console my API’s key is active.
    I put into the google services of enfold but when i create a google maps on my page it doesn’t work . This is the error that i see:
    “It seems that your Google API key is not configured correctly

    The key is probably either restricted to the wrong domain or the domain syntax you entered is wrong.

    Please check your API key qui

    The domain that should be allowed is:
    http://stoping.it/*

    I saw your link in the previous answer but i don’t find the way to solve it.
    My domain is verificated on google search console.

    in reply to: Change language of widget of facebook ( #721057

    Fantastic! thank you very much.
    Bye

    in reply to: Change language of widget of facebook ( #721033

    HI

    in reply to: Change language of widget of facebook ( #721020

    Doesn’work i post the logins information

    in reply to: Change language of widget of facebook ( #721008

    Hi,
    thank you to everybody.

    I do this.
    But the language is english yet.

    Bye
    Andrea

    /**
    * AVIA FACEBOOK WIDGET
    */

    if (!class_exists(‘avia_fb_likebox’))
    {
    class avia_fb_likebox extends WP_Widget {

    static $script_loaded = 0;

    function __construct() {
    //Constructor
    $widget_ops = array(‘classname’ => ‘avia_fb_likebox’, ‘description’ => __(‘A widget that displays a facebook Likebox to a facebook page of your choice’, ‘avia_framework’) );
    parent::__construct( ‘avia_fb_likebox’, THEMENAME.’ Facebook Likebox’, $widget_ops );
    }

    function widget($args, $instance)
    {
    // prints the widget

    extract($args, EXTR_SKIP);
    if(empty($instance[‘url’])) return;
    $url = $instance[‘url’];
    $title = isset($instance[‘title’]) ? $instance[‘title’] : “”;
    $height = 151;
    $faces = “true”;
    $extraClass = “”;
    $style = “”;

    if(strpos($height, “%”) !== false)
    {
    $extraClass = “av_facebook_widget_wrap_positioner”;
    $style = “style=’padding-bottom:{$height}'”;
    $height = “100%”;
    }

    echo $before_widget;

    if ( !empty( $title ) ) { echo $before_title . $title . $after_title; };

    echo “<div class=’av_facebook_widget_wrap {$extraClass}’ {$style}>”;
    echo ‘<div class=”fb-page” data-width=”500″ data-href=”‘.$url.'” data-small-header=”false” data-adapt-container-width=”true” data-hide-cover=”false” data-show-facepile=”true” data-show-posts=”false”><div class=”fb-xfbml-parse-ignore”></div></div>’;
    echo “</div>”;
    echo $after_widget;
    add_action(‘wp_footer’, array( $this,’fb_js’ ));
    }

    function fb_js()
    {
    if ( function_exists(‘icl_object_id’) ) {
    $locale = ICL_LANGUAGE_NAME_EN;
    $fbxml = @simplexml_load_file( AVIA_BASE . ‘/config-wpml/FacebookLocales.xml’ );

    if(is_object($fbxml))
    {
    $langcode = array();
    foreach($fbxml as $loc) {
    if($loc->englishName == $locale) {
    $langcode = $loc->codes->code->standard->representation;
    }
    }
    }
    }

    $langcode = function_exists(‘icl_object_id’) && !empty($langcode) ? $langcode : get_locale();

    if(self::$script_loaded == 1) return;
    self::$script_loaded = 1;

    echo ‘
    <script>(function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return;
    js = d.createElement(s); js.id = id;
    js.src = “//connect.facebook.net/it_IT/sdk.js#xfbml=1&version=v2.7”;
    fjs.parentNode.insertBefore(js, fjs);
    }(document, “script”, “facebook-jssdk”));</script>’;

    }

    function update($new_instance, $old_instance)
    {
    $instance = $old_instance;
    foreach($new_instance as $key=>$value)
    {
    $instance[$key] = strip_tags($new_instance[$key]);
    }

    return $instance;
    }

    function form($instance) {
    //widgetform in backend

    $instance = wp_parse_args( (array) $instance, array(‘url’ => ‘https://www.facebook.com/kriesi.at&#8217;, ‘title’ => ”) );
    $html = new avia_htmlhelper();

    ?>

    <p>
    <label for=”<?php echo $this->get_field_id(‘title’); ?>”><?php _e(‘Title:’, ‘avia_framework’); ?>
    <input class=”widefat” id=”<?php echo $this->get_field_id(‘title’); ?>” name=”<?php echo $this->get_field_name(‘title’); ?>” type=”text” value=”<?php echo esc_attr($instance[‘title’]); ?>” /></label>
    </p>

    <p>
    <label for=”<?php echo $this->get_field_id(‘url’); ?>”><?php _e(‘Enter the url to the Page. Please note that it needs to be a link to a facebook fanpage. Personal profiles are not allowed!’, ‘avia_framework’); ?>
    <input class=”widefat” id=”<?php echo $this->get_field_id(‘url’); ?>” name=”<?php echo $this->get_field_name(‘url’); ?>” type=”text” value=”<?php echo esc_attr($instance[‘url’]); ?>” /></label>
    </p>

    <?php
    }
    }
    }

Viewing 9 posts - 1 through 9 (of 9 total)