Viewing 6 results - 16,711 through 16,716 (of 16,716 total)
  • Author
    Search Results
  • #114519

    [Edit: Code below works with single point map. If you want driving directions, a better solution is found on this url https://kriesi.at/support/topic/google-maps-widget-in-custom-widget-area#post-106864 ]

    Hi,

    Ok, Once you make the replacement below, everything will work fine. Please open up /framework/php/class-framework-widgets.php and find line 1177 which looks like

    $output .= "<script type='text/javascript'>

    and delete line 1177 and all other lines till the end of the file.

    In their place, please paste the code below

    $output .= "<script type='text/javascript'>
    function makeMap_".$avia_config['g_maps_widget_active']."() {
    var latlng = new google.maps.LatLng(".$lat.", ".$lng.")
    var myOptions = {
    zoom: ".$zoom.",
    center: latlng,
    mapTypeControl: true,
    mapTypeControlOptions: {style: google.maps.MapTypeControlStyle.DROPDOWN_MENU},
    navigationControl: true,
    navigationControlOptions: {style: google.maps.NavigationControlStyle.SMALL},
    mapTypeId: google.maps.MapTypeId.".$type."
    };
    var map = new google.maps.Map(document.getElementById('avia_google_maps_$unique'), myOptions);
    var contentString = '$content.$directionsForm';
    var infowindow = new google.maps.InfoWindow({
    content: contentString
    });
    var marker = new google.maps.Marker({
    position: latlng,
    map: map,
    title: ''
    });
    google.maps.event.addListener(marker, 'click', function() {
    infowindow.open(map,marker);
    });
    }
    jQuery(document).ready(function() {
    makeMap_".$avia_config['g_maps_widget_active']."();
    });
    </script>
    <div id='avia_google_maps_$unique' class='avia_google_maps_container'></div>";

    return $output;
    }

    Thanks,

    Nick

    #114388

    In reply to: Random errors …

    I updated to the latest from ThemeForest (Enfold 1.2) and the errors haven’t gone away:

    Warning: simplexml_load_file() [function.simplexml-load-file]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /nfs/c07/h04/mnt/106557/domains/lenscraft.com/html/wp-content/themes/enfold/framework/php/class-update-notifier.php on line 62

    Warning: simplexml_load_file(http://kriesi.at/themes/wp-content/uploads/avia_xml/Enfold-Updates.xml) [function.simplexml-load-file]: failed to open stream: no suitable wrapper could be found in /nfs/c07/h04/mnt/106557/domains/lenscraft.com/html/wp-content/themes/enfold/framework/php/class-update-notifier.php on line 62

    Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity “http://kriesi.at/themes/wp-content/uploads/avia_xml/Enfold-Updates.xml&#8221; in /nfs/c07/h04/mnt/106557/domains/lenscraft.com/html/wp-content/themes/enfold/framework/php/class-update-notifier.php on line 62

    #115127

    Here is another error I just got, on the update page for the w3 cache plugin:

    Warning: simplexml_load_file() [function.simplexml-load-file]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /nfs/c07/h04/mnt/106557/domains/lenscraft.com/html/wp-content/themes/enfold/framework/php/class-update-notifier.php on line 62

    Warning: simplexml_load_file(http://kriesi.at/themes/wp-content/uploads/avia_xml/Enfold-Updates.xml) [function.simplexml-load-file]: failed to open stream: no suitable wrapper could be found in /nfs/c07/h04/mnt/106557/domains/lenscraft.com/html/wp-content/themes/enfold/framework/php/class-update-notifier.php on line 62

    #22265
    lenscraft
    Participant

    I am occasionally getting the following errors from the Enfold admin screen. They appear at the top of the page, just below the WordPress bar.

    Warning: simplexml_load_file() [function.simplexml-load-file]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /nfs/c07/h04/mnt/106557/domains/lenscraft.com/html/wp-content/themes/enfold/framework/php/class-update-notifier.php on line 62

    Warning: simplexml_load_file(http://kriesi.at/themes/wp-content/uploads/avia_xml/Enfold-Updates.xml) [function.simplexml-load-file]: failed to open stream: no suitable wrapper could be found in /nfs/c07/h04/mnt/106557/domains/lenscraft.com/html/wp-content/themes/enfold/framework/php/class-update-notifier.php on line 62

    Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity “http://kriesi.at/themes/wp-content/uploads/avia_xml/Enfold-Updates.xml&#8221; in /nfs/c07/h04/mnt/106557/domains/lenscraft.com/html/wp-content/themes/enfold/framework/php/class-update-notifier.php on line 62

    #22150

    Topic: Random errors …

    in forum Enfold
    lenscraft
    Participant

    I am getting the following errors occurring randomly while editing my pages. This is one example, but they all look similar:

    Warning: simplexml_load_file() [function.simplexml-load-file]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /nfs/c07/h04/mnt/106557/domains/lenscraft.com/html/wp-content/themes/enfold/framework/php/class-update-notifier.php on line 62

    Warning: simplexml_load_file(http://kriesi.at/themes/wp-content/uploads/avia_xml/Enfold-Updates.xml) [function.simplexml-load-file]: failed to open stream: no suitable wrapper could be found in /nfs/c07/h04/mnt/106557/domains/lenscraft.com/html/wp-content/themes/enfold/framework/php/class-update-notifier.php on line 62

    Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity “http://kriesi.at/themes/wp-content/uploads/avia_xml/Enfold-Updates.xml&#8221; in /nfs/c07/h04/mnt/106557/domains/lenscraft.com/html/wp-content/themes/enfold/framework/php/class-update-notifier.php on line 62

    Hi,

    Since people asked here is how to add a button to the Fixed Header with Social Icons and Additional Navigation.

    The button http://www.clipular.com/c?9784008=vDuclwRmVGaUtEsvJE5OhIUqBHQ&f=.png

    The button when fixed header shrinks http://www.clipular.com/c?9782007=1ngiPM6XB_EChXBaoJWkUftEaSo&f=.png

    The only thing you need to add manually is the url where the button takes you, and the button’s label.

    ==========================================

    1) In header.php find line 157 that looks like

    <!-- end container-->

    and replace it with the block below. Inside this block you will need to add the url where the button should take people who press it in place of http://URL which should be in the format: http://www.domain.com/page/ .. and also replace PRESS ME with what you want the button to say. To change the button color change avia-color-red in the css below to blue, or green, etc..

    <div class="avia-button-wrap avia-button-right" style="margin-top: 39px;" >
    <a href="HTTP://URL" class="avia-button avia-color-red avia-size-small avia-position-right ">
    <span class="avia_iconbox_title">PRESS ME</span>
    </a>
    </div>

    ===============================================

    2) Open up /js/avis.js and find the function on line 809-847 called

    function avia_header_size()

    and replace that entire function with the one below

    function avia_header_size()
    {
    var win = $(window),
    header = $('.fixed_header #header'),
    logo = header.find('.logo img'),
    elements = $('#header_main .container, .main_menu ul:first-child > li > a:not(.avia_mega_div a)'),
    el_height = $(elements).filter(':first').height(),
    isMobile = 'ontouchstart' in document.documentElement,
    scroll_top = $('#scroll-top-link'),
    element_button = $('.avia-button-wrap.avia-button-right'),
    set_height = function()
    {
    var st = win.scrollTop(), newH = 0, newTopMargin =0;

    if(st < el_height/2)
    {
    newH = el_height - st;
    newTopMargin = 39;
    //header.removeClass('shadow');
    }
    else
    {
    newH = el_height/2;
    newTopMargin = 10;
    //header.addClass('shadow');
    }

    elements.css({height: newH + 'px', lineHeight: newH + 'px'});
    element_button.css({'margin-top': newTopMargin + 'px'});
    }

    if(!header.length) return false;

    if(isMobile)
    {
    return false;
    }

    win.scroll(set_height);
    set_height();
    }

    3) Add this css to you /css/custom.css or to Quick CSS

    .main_menu {
    right: 80px;
    }
    .avia-button-right {
    display: inline-block;
    left: 28px;
    position: relative;
    float: right;
    }
    @media only screen and (max-width: 767px) {
    .avia-button-right {
    left: initial;
    position: absolute;
    top: 89px;
    right: 9px;
    }
    }

    That’s it.

    Thanks,

Viewing 6 results - 16,711 through 16,716 (of 16,716 total)