Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • mulmulovich Friend
    #189447

    Hello,
    i cant find a way to change the default option “Choose office location”
    plz help

    regards,

    muli

    pavit Moderator
    #501147

    Hi

    In this file templatesja_beranishtmlmod_jaimagehotspotdefault.php at line 17

    <div class="btn-group">
    <a href="javascript:void(0)" class="btn">Choose Office Location</a>
    <a href="javascript:void(0)" data-toggle="dropdown" class="btn btn-primary dropdown-toggle"><span class="caret"></span></a>
    <ul class="dropdown-menu">
    <?php foreach($description AS $des){
    echo '<li><a href="javascript:void(0)" data-placement="#point-'.$des->imgid.'">'.$des->title.'</a></li>';
    }?>
    </ul>
    </div>

    Change the text in RED

    mulmulovich Friend
    #501148

    thank u pavit, but my file looks like this (i dont know php so plz tell me what to change…)
    <?php
    /**
    * ————————————————————————
    * JA Beranis Template
    * ————————————————————————
    * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
    * @license – Copyrighted Commercial Software
    * Author: J.O.O.M Solutions Co., Ltd
    * Websites: http://www.joomlart.comhttp://www.joomlancers.com
    * This file may not be redistributed in whole or significant part.
    * ————————————————————————
    */
    defined(‘_JEXEC’) or die(‘Restricted access’);
    ?>
    <div class=”jai-map-wrap<?php echo $params->get( ‘moduleclass_sfx’ );?>” id=”ja-imagesmap<?php echo $module->id;?>”>
    <?php if($modules_des):?>
    <div class=”jai-map-description”>
    <?php echo $modules_des;?>
    </div>
    <?php endif;?>
    <?php if($positionchoiseoffice == 1 && ($positionoffice == ‘top-left’ || $positionoffice == ‘top-right’ || $positionoffice == ‘middle-left’ || $positionoffice == ‘middle-right’)): ?>
    <div class=”<?php echo $positionoffice;?>”>
    <select id=”cd-dropdown” name=”cd-dropdown” class=”cd-select”>
    <option value=”-1″ selected><?php echo JText::_(‘JAI_CHOOSE_OFFICE_LOCATION’);?></option>
    <?php foreach($description AS $des){
    if(!$des->title) $des->title = JText::_(‘JAI_TITLE_DEFAULT’);
    echo ‘<option value=”point-‘.$des->imgid.'”>’.$des->title.'</option>’;
    }?>
    </select>
    </div>
    <?php endif; ?>
    <div class=”jai-map-container”>
    <?php
    $i = 1;
    foreach($description AS $des){
    $classpoint = isset($des->classpoint)?$des->classpoint:”;
    echo ‘<a style=”top:’.$des->offsety.’%;left:’.$des->offsetx.’%” class=”point ‘.$classpoint.’ point’.$i.'” href=”javascript:void(0)” id=”point-‘.$des->imgid.'” data-toggle=”popover” data-placement=”top” title=”‘.$des->title.'” data-content=”‘.$des->details.'”><span class=”hidden”>Point</span></a>’;
    $i++;
    }?>
    <img src=”<?php echo $imgpath;?>” alt=””/>
    </div>

    <?php if($positionchoiseoffice == 1 && ($positionoffice == ‘bottom-left’ || $positionoffice == ‘bottom-right’)): ?>
    <div class=”<?php echo $positionoffice;?>”>
    <select id=”cd-dropdown” name=”cd-dropdown” class=”cd-select”>
    <option value=”-1″ selected><?php echo JText::_(‘JAI_CHOOSE_OFFICE_LOCATION’);?></option>
    <?php foreach($description AS $des){
    if(!$des->title) $des->title = JText::_(‘JAI_TITLE_DEFAULT’);
    echo ‘<option value=”point-‘.$des->imgid.'”>’.$des->title.'</option>’;
    }?>
    </select>
    </div>
    <?php endif; ?>
    </div>

    pavit Moderator
    #501149

    Hi

    Sorry there was a misunderstanding about the version

    anyway you can edit that <?php echo JText::_(‘JAI_CHOOSE_OFFICE_LOCATION’);?>

    Going to the language file languageen-GBen-GB.mod_jaimagehotspot.ini

    JAI_CHOOSE_OFFICE_LOCATION="Choose Office Location"

    Change it with your desired text

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

This topic contains 4 replies, has 2 voices, and was last updated by  pavit 10 years, 9 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum