Вход Регистрация
Файл: base-sys/base/views/components/text_formatter.html
Строк: 51
<?php
{style}
{
literal}
    .
alignleft{
        
floatleft;
    }
    .
alignright{
        
floatright;
    }
    .
aligncenter{
        
displayblock;
        
margin-leftauto;
        
margin-rightauto;
    }
{/
literal}
{/
style}

{
script}
{
literal}
function 
openMediaPanel(typeisBBselection){
    
selection = $("#{/literal}{$elId}{literal}").getSelection();
    switch(
type){
        case 
'image':
            
document.tfmp = new PEEP_FloatBox({$title'{/literal}{text key='base+ws_button_label_image'}{literal}'
                    
width'600px'
                    
height'600px'
                    
$contents'<center><iframe style="min-width: 550px; min-height: 500px;" src="{/literal}{url_for for="BASE_CTRL_MediaPanel:index:[plugin=>`$plugin`, type=>image]"}{literal}?eid={/literal}{$elId}{literal}&'+(isBB'bb=y''')+(selection'&sel_start='+selection['start']: '')+'"></iframe></center>'});
            break;
    }
}
{/
literal}
{/
script}

{foreach 
from=$controls item 'ctrl'}
    <
button type="button" id="{$ctrl.id}"><span style="{if isset($ctrl.style)}{$ctrl.style}{/if}">{$ctrl.label}</span></button>
{/foreach}
<
button type="button" onclick="openMediaPanel('image', {$bb});" class="peep_ic_picture" style="background-repeat: no-repeat; background-position: 50% 50%" id="{$ctrl.id}">&nbsp;</button>

{if 
0}{*todocheck*}
<
div style="padding: 3px;">
    <
div class="peep_ic_picture" style="cursor: pointer; width: 16px; height: 16px;" onclick="openMediaPanel('image', {$bb})" ></div>
</
div>
{/if}
?>
Онлайн: 0
Реклама