> What do we need to do to the breadcrumb function?

something like this in function BOLTFbreadcrumb:

to reverse the crumbs
change
    return implode($separator, $out);
to
    if ($args['dir']=='rtl') $out = array_reverse($out);
    return implode($separator, $out);

to reverse the default separator
change
    $separator = isset($args['separator']) ? $args['separator'] : ' > ';
to
    $sep = ($args['dir']=='rtl')  ? ' < ' : ' > ';
    $separator = isset($args['separator']) ? $args['separator'] : $sep;

With these changes one can get  a right to left breadcrumb with
    [(breadcrumb dir=rtl)]

Perhaps a page var would be good for this as well:
$BOLTvar['$direction'] = BOLTconfig['direction'];
and setting in site.config
    direction: rtl (or textdirection, or dir) [dir=rtl is used in HTML tags]

    [(breadcrumb dir={direction})]

The skin template then gets into the top

<html xmlns="http://www.w3.org/1999/xhtml"; dir="=={direction}==">

That is as far as i tested it.
A table based skin template will have left and right cells swapped
(all table cells change direction with dir=rtl in the <html ..> tag.
Then the css needs some tidying... I used a different css file.

So I think very little changes to the core. Most changes are css
changes, i.e up to the skin.

Hmmm, there is probably more to it, like how to read variables in
snippets and site.config.
Probably best to protect such pages from rtl direction change and
insist on Latin characters and ltr (left to right).

cheers,
~Hans

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to