Exemplo n.º 1
0
function plug_pictos($d, $id)
{
    $rid = 'bld' . randid();
    $ret = lj('popbt', $rid . '_plug___pictos_pictos*refresh', picto('reload')) . ' ';
    $ret .= hlpbt('pictos') . ' ' . msqlink('system', 'program_pictos') . br();
    $r = msql_read('system', 'program_pictos', '', 1);
    foreach ($r as $k => $v) {
        list($p, $c) = split(':', $v);
        if ($c == 'icon') {
            $ico = icon($p, $k);
        } elseif (is_numeric($c)) {
            $ico = icosys($p, $c);
        } elseif ($c == 'svg') {
            $ico = svg($p);
        } else {
            $ico = '';
        }
        $edit = lj('popbt', 'popup_plug___pictos_pictos*edit_' . $k, $k) . ' ';
        $rb[] = div('', picto($k, 24) . ' ' . $edit . btd('ico' . $k, $ico));
    }
    $ret .= onxcols($rb, 4, 680);
    return divd($rid, $ret);
}
Exemplo n.º 2
0
	   Друзья
	   <div class="action__counter"><?php 
echo count($user['UF_FRIENDS']) > 0 && intval($user['UF_FRIENDS'][0]) > 0 ? count($user['UF_FRIENDS']) : '';
?>
</div><img src="/layout/images/svg/blue-arrow.svg" class="action__arrow"></a><br>
	   <a href="/user/groups/" class="welcome__action action">

	   Группы
	   <div class="action__counter"><?php 
echo $user['UF_GROUPS'] && count($user['UF_GROUPS']) > 0 ? count($user['UF_GROUPS']) : '';
?>
</div><img src="/layout/images/svg/blue-arrow.svg" class="action__arrow"></a>
	 <div class="row">
	   <div class="col-xs-6 left"><a href="/user/profile/?edit=y" class="welcome__link welcome__link--settings"><?php 
echo svg('settings');
?>
Настройки</a></div>
	   <div class="col-xs-6 right"><a href="/?logout=yes" class="welcome__link"><?php 
echo svg('menu-exit');
?>
Выйти</a></div>
	 </div>
	 <div class="welcome__footer qblock__footer">
	   <?php 
include $_SERVER['DOCUMENT_ROOT'] . '/includes/footer.php';
?>
	 </div>
   </div>
 </div>
Exemplo n.º 3
0
	  </div>
	</a>
	<div class="sidebar">
		<a href="#" class="sidebar__logo"><?php 
    echo svg('logo');
    ?>
</a>

		<div class="sidebar__nav nav">
			<?php 
    foreach ($arResult as $key => $item) {
        ?>
				<a href="<?php 
        echo $item['LINK'];
        ?>
" class="nav__item">
					<?php 
        echo svg('menu-' . $item['PARAMS']['CODE']);
        ?>
					<span><?php 
        echo $item['TEXT'];
        ?>
</span>
				</a>
			<?php 
    }
    ?>
		</div>
	</div>
<?php 
}
 function cnb_head()
 {
     $options = get_option('cnb');
     $credits = "\n<!-- Call Now Button " . CNB_VERSION . " by Jerry Rietveld (callnowbutton.com) -->\n";
     if ($options['appearance'] == 'full') {
         $ButtonAppearance = "width:100%;left:0;";
         $ButtonExtra = "body {padding-bottom:60px;}";
     } elseif ($options['appearance'] == 'left') {
         $ButtonAppearance = "width:100px;left:0;border-bottom-right-radius:40px; border-top-right-radius:40px;";
         $ButtonExtra = "";
     } else {
         $ButtonAppearance = "width:100px;right:0;border-bottom-left-radius:40px; border-top-left-radius:40px;";
         $ButtonExtra = "";
     }
     echo $credits . "<style>#callnowbutton {display:none;} @media screen and (max-width:650px){#callnowbutton {display:block; " . $ButtonAppearance . " height:80px; position:fixed; bottom:-20px; border-top:2px solid " . changeColor($options['color'], 'lighter') . "; background:url(data:image/svg+xml;base64," . svg(changeColor($options['color'], 'darker')) . ") center 2px no-repeat " . $options['color'] . "; text-decoration:none; box-shadow:0 0 5px #888; z-index:9999;background-size:58px 58px}" . $ButtonExtra . "}</style>\n";
 }
Exemplo n.º 5
0
function finder_data($r, $p, $rb)
{
    if (!$r) {
        return array(array('f' => 'empty'));
    }
    if ($p) {
        $p .= '/';
    }
    //ksort($r);
    foreach ($r as $k => $v) {
        $rc = '';
        $rc['id'] = normalize($p . $k);
        $rc['pid'] = normalize($p);
        if (!is_numeric($k) or is_array($v)) {
            $rc['r'] = 1;
            $rc['f'] = $k;
            $nf = count($v);
            $nbd = 0;
            if (is_array($v)) {
                foreach ($v as $ka => $va) {
                    if (!is_numeric($ka)) {
                        $nbd++;
                    }
                }
            }
            $rc['nbd'] = $nbd;
            $rc['opt'] = btn('txtsmall2', '(' . $nf . ')');
            //nbof(,51)
            $rc['typ'] = 'folder';
            $rc['j'] = ajx($p . $k) . '_';
        } else {
            if ($rb[0] == 'shared') {
                $url = $v;
                $f = strpos($v, '/') !== false ? strrchr_b($v, '/') : $v;
            } else {
                $url = $p . $v;
                $f = $v;
            }
            $fb = fi_droot() . $url;
            $xt = xtb($f);
            $rc['url'] = $rc['url'] = $url;
            $rc['prop'] = strprm($p);
            if ($rb[1] == 'distant') {
                $rc['dist'] = 1;
            } else {
                $rc['opt'] = btn('txtsmall2', fsize($fb)) . ' ';
                $rc['date'] = btn('txtsmall2', ftime($fb, 'ymd')) . ' ';
            }
            $rc['xt'] = $xt;
            $rc['r'] = 0;
            $rc['j'] = ajx($url) . '_';
            $rc['f'] = $f;
            if ($rb[0] == 'shared') {
                $rc['prop'] = btn('txtsmall', strprm($v)) . ' ';
            }
            if (is_file($fb) && $xt) {
                if (strpos('.jpg.png.gif', $xt) !== false && $rb[6] != 'pictos' && substr(fi_droot(), 0, 4) != 'http') {
                    //set as mini
                    $rc['img'] = make_thumb_c($fb, '48/48');
                } else {
                    $rc['typ'] = $xt;
                }
            }
            if ($rb[3] == 'icon') {
                if ($xt) {
                    list($fd, $fl) = split_one('/', $url, 1);
                    if ($xt == '.svg') {
                        $fsvg = substr($url, 0, -4);
                        $rc['conn'] = '[' . $fsvg . '§24:svg]';
                        $rc['img'] = svg($fsvg . '§24');
                    } elseif (strpos('.jpg.png.gif', $xt) !== false) {
                        $rc['conn'] = '[' . substr($fl, 0, -4) . '§' . $fd . ':icon]';
                    }
                }
            }
            if ($rb[3] == 'disk') {
                $rc['conn'] = '[' . $url . ']';
            }
        }
        $ret[] = $rc;
    }
    return $ret;
}
Exemplo n.º 6
0
<?php

require $_SERVER['DOCUMENT_ROOT'] . '/bitrix/header.php';
$APPLICATION->SetPageProperty('body_class', "contacts");
$APPLICATION->SetTitle("Контакты");
?>
 
<h1 class="page__title">Контакты</h1>
<div class="page__divider"></div>
<div class="row">
  <div class="col-sm-8">
    <big><strong>Адрес: </strong>Россия, Москва, <nobr>ул. Усачева, 35А</nobr> <br><strong>Телефон: </strong><a href="tel:88005553136">8 800 555 31 36 <br></a><strong>E-mail: </strong><a href="mailto:info@argusweld.ru">info@argusweld.ru</a></big><br>
    <div class="xs-center"><a data-toggle="modal" data-target="#contactsMap" href="#contactsMap" class="button button--big button--white">схема проезда</a></div>
  </div>
  <div class="col-sm-4 right">
    <div class="xs-center"><a data-toggle="modal" data-target="#Feedback" href="#Feedback" class="no-margin-top button button--big button--white">напишите нам</a></div>
  </div>
</div>
<?php 
$APPLICATION->AddViewContent('footer', '
<div id="contactsMap" tabindex="-1" role="dialog" aria-hidden="true" class="modal fade">
  <div class="modal-dialog modal-lg">
    <div class="modal-content"><a data-dismiss="modal" href="#" class="close">' . svg('close') . '</a>
      <div id="map"></div>
    </div>
  </div>
</div>
<script src="http://api-maps.yandex.ru/2.1/?lang=ru-RU&amp;load=package.full" type="text/javascript"></script>
');
require $_SERVER['DOCUMENT_ROOT'] . '/bitrix/footer.php';
Exemplo n.º 7
0
            echo " selected";
        }
        ?>
><?php 
        echo $value;
        ?>
</option>
	<?php 
    }
    ?>
	</select>
<?php 
}
?>
	&nbsp;<button type="submit"><?php 
echo svg('seach');
?>
</button>
	<input type="hidden" name="how" value="<?php 
echo $arResult["REQUEST"]["HOW"] == "d" ? "d" : "r";
?>
" />
<?php 
if ($arParams["SHOW_WHEN"]) {
    ?>
	<script>
	var switch_search_params = function()
	{
		var sp = document.getElementById('search_params');
		var flag;
		var i;
Exemplo n.º 8
0
$cpt = new CCaptcha();
$cpt->SetCodeLength(4);
$cpt->SetCode();
$code = $cpt->GetSID();
?>
      <div class="captcha" style="background-image:url(/include/captcha.php?captcha_sid=<?php 
echo $code;
?>
)"></div>
    </div>
    <div class="col-xs-2 no-padding">
      
      <input type="hidden" name="captcha_code" value="<?php 
echo $code;
?>
">
      <a href="#" class="captcha_refresh">
        <?php 
echo svg('refresh');
?>
      </a>
    </div>
    <div class="col-xs-6">
      <label class="right">в это поле</label>
      <input name="captcha_word" type="text" required>
    </div>
  </div>
  <div class="center">
    <input type="submit" value="Отправить">
  </div>
</form>
Exemplo n.º 9
0
</a>
            </div>
            <div class="col-xs-6 col-sm-2 sm-center no-padding-left">
              <a data-toggle="modal" data-target="#Contacts" href="#Contacts" class="visible-xs-inline s-margin-right"><?php 
echo svg('phone');
?>
</a>
              <a data-toggle="modal" data-target="#Search" href="#Search"><?php 
echo svg('seach');
?>
</a>

            </div>
            <div class="col-xs-6 col-sm-2 right">
              <a data-toggle="modal" data-target="#Nav" href="#Nav"><span>Меню</span><?php 
echo svg('nav');
?>
</a>
            </div>
          </div>
        </div>
      </div>
    </div>
  </header>
  <main class="page">
    <div class="container">
      <div class="row">
        <div class="col-sm-12 <?php 
echo $APPLICATION->GetCurDir() == '/' ? 'col-md-4' : '';
?>
 no-position">
Exemplo n.º 10
0
<div class="site-select">
      <a href="#" class="site-select__trigger"><?php 
echo GetMessage('ALL');
echo svg('arrow');
?>
</a>
      <div class="site-select__dropdown">
            <?php 
foreach ($arResult as $key => $item) {
    ?>
                  <a href="<?php 
    echo $item['LINK'];
    ?>
" class="site-select__link"><?php 
    echo $item['TEXT'];
    ?>
</a>
            <?php 
}
?>
      </div>
</div>
Exemplo n.º 11
0
    <?php 
echo $arResult['liked'] ? 'like--liked' : '';
?>
    <?php 
echo $arParams['GRAY'] ? 'like--gray' : '';
?>
    <?php 
echo $arParams['BLACK'] ? 'like--black' : '';
?>
    <?php 
echo $arParams['STRONG'] ? 'like--strong' : '';
?>
    <?php 
echo $arParams['INACTIVE'] ? 'like--innactive' : '';
?>
    '>
    <?php 
echo svg('like');
?>
    <?php 
if ($arParams['COUNTER'] !== 'N') {
    ?>
        <span class='like__counter'><?php 
    echo $arResult['total'];
    ?>
</span>
    <?php 
}
?>
</a>
Exemplo n.º 12
0
          </div>
        </div>
      </div>
    </div>
  </header>
  </header>
  <main class="page">
    <div class="container">
      <div class="row">
        <div class="col-sm-12 <?php 
echo $APPLICATION->GetCurDir() == '/' ? 'col-md-4' : '';
?>
 no-position">
          <aside class="sidebar">
          <a href="/" class="logo"><?php 
echo svg('logo_eng');
?>
</a>
            
            <?php 
if ($APPLICATION->GetCurDir() == '/') {
    ?>
                <div class="bages">
                  <div class="bages__item"><img src="./layout/images/icon-2.png" class="bages__image">
                    <div class="bages__title">ASSOCIATE MEMBER OF ROSNGS</div>
                  </div>
                  <div class="bages__item"><img src="./layout/images/icon-3.png" class="bages__image">
                    <div class="bages__title">ISO CERTIFICATION</div>
                  </div>
                  <div class="bages__item"><img src="./layout/images/icon-4.png" class="bages__image">
                    <div class="bages__title">GAZSERT CERTIFICATION</div>
Exemplo n.º 13
0
<?php

foreach ($arResult as $key => $item) {
    ?>
	<a href="<?php 
    echo $item['LINK'];
    ?>
" class="social__item"><?php 
    echo svg($item['TEXT']);
    ?>
</a>
<?php 
}
Exemplo n.º 14
0
Arquivo: lib.php Projeto: philum/cms
function ico($d, $t = '')
{
    list($p, $c) = explode(':', $d);
    if ($c == 'icon') {
        return icon($p, $t);
    } elseif (is_numeric($c)) {
        return icosys($p, $c);
    } elseif ($c == 'svg') {
        return svg($p);
    } elseif ($p !== false) {
        return picto($p);
    } else {
        return $t;
    }
}
Exemplo n.º 15
0
	    </div>
	  </a>
	</div>
   	<?php 
}
?>
   	</div>
</div>
<?php 
$this->SetViewTarget('footer');
?>
<div id="markerDetail" tabindex="-1" role="dialog" aria-hidden="true" class="modal fade">
  <div class="modal-dialog modal-lg">
    <div class="modal-content modal-content--white">
    	<a data-dismiss="modal" href="#" class="close"><?php 
echo svg('close');
?>
</a>
    	<div class="text">
    		
    	</div>
    </div>
  </div>
</div>
<div id="bg_map"></div>
<script src="http://maps.googleapis.com/maps/api/js?sensor=true&language=<?php 
echo LANGUAGE_ID;
?>
" type="text/javascript" charset="utf-8"></script>
<script src="/layout/js/tooltip.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
Exemplo n.º 16
0
 function cnb_seven_head()
 {
     $options = get_option('cnb');
     $default_value = getCurrentSettingOfPage($options);
     $phone = explode(',', str_replace(' ', '', $default_value['number']));
     $credits = "\n<!-- Call Now Button 7" . CNB7_VERSION . " -->\n";
     if ($options['appearance'] == 'full') {
         $ButtonAppearance = "width:100%;left:0;bottom:3px;";
         $ButtonAppearanceEnd = '';
         $ButtonExtra = "body {padding-bottom:60px;}";
     } elseif ($options['appearance'] == 'left') {
         $ButtonAppearance = "width:100px;left:0;border-bottom-right-radius:40px; border-top-right-radius:40px;bottom: 3px;";
         $ButtonAppearanceEnd = 'background-position-x: 38px;';
         $ButtonExtra = "";
     } else {
         $ButtonAppearance = "width:100px;right:0;border-bottom-left-radius:40px; border-top-left-radius:40px;bottom: 3px;";
         $ButtonAppearanceEnd = 'background-position-x: 5px;';
         $ButtonExtra = "";
     }
     $show_css = false;
     if (strlen($default_value['number']) > 0 && is_array($default_value['pages'])) {
         $cssbase = ".callnowbuttonseven {display:none;} @media screen and (max-width:650px){.callnowbuttonseven {display:block; " . $ButtonAppearance . " height:65px; position:fixed; border-top:2px solid " . changeColor($default_value['color'], 'lighter') . "; background:url(data:image/svg+xml;base64," . svg(changeColor($default_value['color'], 'darker')) . ") center 2px no-repeat " . $default_value['color'] . "; text-decoration:none; box-shadow:0 0 5px #888; z-index:9999;background-size:58px 58px;" . $ButtonAppearanceEnd . " }" . $ButtonExtra . "}\n";
         if (sizeof($phone) == 2) {
             $cssaddition = "#callnow1 {bottom: 72px;}";
         }
         echo $credits . "<style>" . $cssbase . "\n" . $cssaddition . "</style>\n";
     }
 }
Exemplo n.º 17
0
header("Content-type: image/svg+xml");
function svg()
{
    return <<<EOF
\t\t<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
\t
\t\t<!--<script>
\t\t\tfunction move() {
\t\t\t\tdocument.getElementById('line').setAttribute('y2',500);
\t\t\t}
\t\t</script>-->
\t\t
\t\t<script xlink:href="interface2.js"/>
\t\t
\t\t<!--<rect onmouseover="alert('coucou')" fill="red" x="100" y="100" width="100" height="100"></rect>-->
\t\t<!--<rect onmouseover="document.getElementById('line').setAttribute('y2',500);" fill="red" x="100" y="100" width="100" height="100"></rect>-->
\t\t<rect onmouseover="move()" fill="red" x="100" y="100" width="100" height="100"></rect>
EOF;
}
echo svg();
for ($i = 0; $i < 50; $i++) {
    $x = rand(0, 50 * $i);
    $y = rand(0, 50);
    if ($i % 2 == 0) {
        $color = "green";
    } else {
        $color = "red";
    }
    echo '<line id="line' . $i . '" x1="' . $x . '" y1="' . $y . '" x2="300" y2="100" stroke="' . $color . '" stroke-width="5"  />';
}
echo "</svg>";
Exemplo n.º 18
0
Arquivo: pop.php Projeto: philum/cms
function connectors($doc, $media, $id)
{
    $large = $_SESSION['prma']['content'];
    $largb = round($large * 0.5);
    $xt = strtolower(strrchr($doc, "."));
    $xfp = strrpos($doc, ':');
    $xf = substr($doc, $xfp);
    $pdoc = substr($doc, 0, $xfp);
    if (rstr(70)) {
        $xf = retape_conn($xf, $id);
    }
    //list($d,$p)=good_param($pdoc);
    switch ($xf) {
        case ':no':
            return;
            break;
        case ':br':
            return "\n";
            break;
        case ':u':
            return '<u>' . $pdoc . '</u>';
            break;
        case ':i':
            return '<i>' . $pdoc . '</i>';
            break;
        case ':b':
            return '<b>' . $pdoc . '</b>';
            break;
        case ':h':
            return '<h3>' . $pdoc . '</h3>';
            break;
        case ':h1':
            return '<h1>' . $pdoc . '</h1>';
            break;
        case ':h2':
            return '<h2>' . $pdoc . '</h2>';
            break;
        case ':h4':
            return '<h4>' . $pdoc . '</h4>';
            break;
        case ':e':
            return '<sup>' . $pdoc . '</sup>';
            break;
        case ':l':
            return '<small>' . $pdoc . '</small>';
            break;
        case ':k':
            return '<strike>' . $pdoc . '</strike>';
            break;
        case ':q':
            return '<blockquote>' . $pdoc . '</blockquote>';
            break;
        case ':t':
            return btn("txtit", $pdoc);
            break;
        case ':c':
            return btn("txtclr", $pdoc);
            break;
        case ':s':
            return btn("stabilo", $pdoc);
            break;
        case ':r':
            return pub_clr($pdoc . '§ff0000');
            break;
        case ':code':
            return bal('code', $pdoc);
            break;
        case ':list':
            return make_li($pdoc, 'ul');
            break;
        case ':css':
            return pub_css($pdoc);
            break;
        case ':font':
            return pub_font($pdoc);
            break;
        case ':size':
            return pub_size($pdoc);
            break;
        case ':color':
            return pub_clr($pdoc);
            break;
        case ':html':
            return pub_html($pdoc);
            break;
        case ':pub':
            return pubart($pdoc);
            break;
            //pub
        //pub
        case ':w':
            return lkc('', goodroot($pdoc), $pdoc);
            break;
        case ':read':
            return str_replace('<br />', '', read_msg($pdoc, $media));
            break;
            //read
        //read
        case ':photo':
            return photo_thumbs($pdoc, $id);
            break;
            //gallery
        //gallery
        case ':photo1':
            return gallery_flash($pdoc, $id);
            break;
            //flash
        //flash
        case ':photo2':
            return gallery_j($pdoc, $id);
            break;
            //ajax
        //ajax
        case ':slider':
            return slider($pdoc, $id);
            break;
            //flash
        //flash
        case ':sliderJ':
            return sliderj($pdoc, $id);
            break;
            //ajax
        //ajax
        case ':jukebox':
            return jukebox($pdoc, $media, $id);
            break;
            //jukebox
        //jukebox
        case ':radio':
            return radio($pdoc, $media, $id);
            break;
            //radio
        //radio
        case ':import':
            return import_art($pdoc, $media);
            break;
            //import
        //import
        case ':numlist':
            return make_li($pdoc, 'ol');
            break;
        case ':forum':
            return plugin('forum', $pdoc ? $pdoc : $id);
            break;
            //forum
        //forum
        case ':search':
            return rech_internal($pdoc);
            break;
            //search
        //search
        case ':articles':
            return arts_mod($pdoc, $id);
            break;
            //articles
        //articles
        case ':formail':
            return make_form($pdoc, 'mailform' . $id, '_formail___' . ajx($pdoc, '') . '____');
            break;
            //mail
        //mail
        case ':chat':
            return plugin('chat', $pdoc ? $pdoc : $id, 5);
            break;
            //chat
        //chat
        case ':chatxml':
            return plugin('chatxml', $pdoc ? $pdoc : $id);
            break;
        case ':room':
            return call_plug('', 'popup', 'chatxml', $pdoc, pictxt('chat', $pdoc));
            break;
        case ':shop':
            return plugin('shop', 'shop', $pdoc, $id);
            break;
            //shop
        //shop
        case ':prod':
            return plugin('shop', 'prod', $pdoc, $id);
            break;
            //prod
        //prod
        case ':bkg':
            return mk_bkg($pdoc, $id);
            break;
        case ':draw':
            return plugin('draw');
            break;
        case ':icon':
            return icon($pdoc);
            break;
        case ':center':
            return bal("center", $pdoc);
            break;
        case ':right':
            return divc('" align="right', $pdoc);
            break;
        case ':clear':
            if (is_image($pdoc)) {
                $pdoc = place_image($pdoc, $media, $large, $largb);
            }
            return str_replace('float:left;', '', $pdoc) . "\n\n";
            break;
        case ':table':
            return mk_table($pdoc);
            break;
        case ':divtable':
            return mk_dtable($pdoc);
            break;
        case ':nh':
            if ($media == 'nl') {
                return lka('#nb' . $pdoc . '" name="nh' . $pdoc, $pdoc);
            } else {
                return lj('" name="nh' . $pdoc, 'popup_nbp___' . $pdoc . '_' . $id, $pdoc);
            }
            break;
        case ':nb':
            if ($media != 'nl') {
                $go = urlread($id);
            }
            return lka($go . '#nh' . $pdoc . '" name="nb' . $pdoc, $pdoc);
            break;
            //nbp
        //nbp
        case ':pre':
            return bal("pre", entities($pdoc));
            break;
        case ':php':
            return progcode($pdoc);
            break;
        case ':link':
            return special_link($pdoc);
            break;
        case ':console':
            return divc("console", $pdoc);
            break;
        case ':label':
            return imlabel($pdoc, $large);
            break;
        case ':polaroid':
            return imcomment($pdoc, $large, $largb, $media, $id);
            break;
        case ':scan':
            return scan_txt($pdoc);
            break;
            //fopen_txt
        //fopen_txt
        case ':iframe':
            return iframe($pdoc, '');
            break;
        case ':imgtxt':
            return create_img_txt($pdoc);
            break;
        case ':download':
            return download($pdoc);
            break;
        case ':msql':
            return msqread(msq_goodtable_b($pdoc), $id);
            break;
        case ':microsql':
            return msqread(msq_goodtable($pdoc), $id);
            break;
        case ':microread':
            return microread($pdoc);
            break;
        case ':msq_conn':
            return msqconn($pdoc, $id);
            break;
            //case(':msq_html'):return msqconn($pdoc,$id);break;
        //case(':msq_html'):return msqconn($pdoc,$id);break;
        case ':msq_lasts':
            return msqlasts($pdoc);
            break;
        case ':msq_count':
            return msqcount($pdoc);
            break;
        case ':msq_bin':
            return msqbin($pdoc);
            break;
        case ':msq_graph':
            return msqgraph($pdoc, $media);
            break;
        case ':data':
            return msqdata($pdoc, $id);
            break;
        case ':microform':
            return plugin('microform', $pdoc, $id);
            break;
            break;
        case ':module':
            req('mod');
            return build_mod_r($pdoc);
            break;
        case ':modpop':
            return lj('', 'popup_modpop__3_' . ajx($pdoc), picto('get'));
            break;
        case ':ajxget':
            return ajx($pdoc);
            break;
        case ':ajax':
            return ajxlink($pdoc, randid(), 0, 1);
            break;
        case ':rss_input':
            return rssin($pdoc);
            break;
        case ':twitter':
            return plugin_func('twit', 'twit_build', ajx($pdoc));
            break;
        case ':twitter_cached':
            return twitart($pdoc, $id);
            break;
        case ':poptwit':
            return poptwit($pdoc);
            break;
        case ':last-update':
            return lastup($pdoc, $id);
            break;
        case ':pdf':
            return pdfreader($pdoc);
            break;
        case ':swf':
            return popswf($pdoc);
            break;
        case ':flv':
            return popflv($pdoc, $large);
            break;
        case ':jpg':
            return place_image($pdoc, $media, $large, $largb);
            break;
        case ':img':
            $im = vacuum_image($pdoc . '.jpg', $id);
            return place_image($im, $media, $large, $largb);
            break;
            //img
        //img
        case ':mini':
            if (substr($pdoc, 0, 4) == 'http') {
                return vacuum_image($pdoc, $id);
            }
            return make_mini_b($pdoc, $id);
            break;
            //mini
        //mini
        case ':thumb':
            return make_mini_c($pdoc);
            break;
            //thumb
        //thumb
        case ':video':
            return video_auto($pdoc, $large, $id, $media);
            break;
        case ':popvideo':
            return popvideo($pdoc);
            break;
        case ':poptxt':
            return call_j($pdoc, 'poptxt');
            break;
        case ':popmsqt':
            return call_j($pdoc, 'popmsqt');
            break;
        case ':popmsql':
            return call_j($pdoc, 'popmsql');
            break;
        case ':popread':
            return call_j($pdoc, 'popread');
            break;
        case ':pop':
            return call_pop($pdoc);
            break;
        case ':jopen':
            return jopen($pdoc, 0);
            break;
            //jopen
        //jopen
        case ':jconn':
            return jopen($pdoc, 1);
            break;
            //jconn
        //jconn
        case ':popurl':
            return popurl($pdoc);
            break;
        case ':popart':
            return pop_art($pdoc);
            break;
        case ':rss_art':
            return rss_art($pdoc, 0, 0);
            break;
        case ':rss_read':
            return rss_art($pdoc, 1, 0);
            break;
        case ':webpage':
            return lj('txtbox', 'popup_webpage___' . ajx($pdoc), preplink($pdoc));
            break;
        case ':weburl':
            return weblink($pdoc, 1);
            break;
        case ':web':
            return weblink($pdoc);
            break;
        case ':idart':
            return id_of_suj($pdoc);
            break;
        case ':petition':
            return plugin('petition', $id, 10);
            break;
        case ':book':
            return plugin('book', $pdoc, $id);
            break;
        case ':popbook':
            return plugin('book', $pdoc, 'x');
            break;
        case ':track':
            return tracks_read($pdoc);
            break;
            //case(':eco'):return txarea('',parse($pdoc),44,8); break;
        //case(':eco'):return txarea('',parse($pdoc),44,8); break;
        case ':svg':
            return svg($pdoc);
            break;
        case ':svgcode':
            list($p, $o) = split_one('§', $pdoc, 1);
            return plugin_func('svg', 'svg_j', $p, $o);
            break;
        case ':plug':
            list($p, $o, $conn) = decompact_conn($pdoc);
            return plugin($conn, $p, $o);
            break;
        case ':pluf':
            list($fnc, $plg) = explode('§', $pdoc);
            return plugin_func($plg, $fnc, '');
            break;
        case ':plup':
            list($p, $o, $conn) = decompact_conn($pdoc);
            list($plg, $bt) = split_one("§", $conn, 1);
            return lj('', 'popup_plupin___' . $plg . '_' . ajx($p) . '_' . ajx($o), $bt ? $bt : $plg);
            break;
        case ':openapp':
            list($p, $o, $d) = decompact_conn($pdoc);
            return openapp($d, $p, $o);
            break;
        case ':popapp':
            list($p, $o, $d) = decompact_conn($pdoc);
            return lj('', 'popup_openapp___' . $d, $d);
            break;
        case ':apps':
            return read_apps_link($pdoc);
        case ':bubble':
            return bubble_menus($pdoc, 'inline');
        case ':header':
            Head::add('code', delbr($pdoc, "\n"));
            return;
            break;
        case ':basic':
            list($func, $var) = good_param($pdoc);
            return cbasic($func, $var);
            break;
        case ':bazx':
            return plugin('bazx', $pdoc);
            break;
        case ':version':
            return $_SESSION['philum'];
            break;
        case ':ver':
            $phi = $_SESSION['philum'];
            return substr($phi, 0, 2) . '.' . substr($phi, 2, 2);
            break;
        case ':picto':
            @(list($p, $o) = explode('§', $pdoc));
            return picto($p, $o);
            break;
        case ':on':
            return '[' . $pdoc . ']';
            break;
    }
    if ($doc == '--') {
        return hr();
    }
    //hr
    if (is_image($doc) && strpos($doc, '§') === false && strpos($doc, '<') === false) {
        //images
        if (substr($d, 0, 4) == 'http' && !$_GET['callj']) {
            $doc = vacuum_image($doc, $id);
        }
        return place_image($doc, $media, $large, $largb);
    }
    if (strpos($doc, "¬") !== false) {
        return mk_dtable($doc);
    }
    //tables
    if ($xt == ".mp3") {
        return audio(goodroot($doc), $id);
    }
    //mp3
    if ($xt == ".mp4") {
        return video_html(goodroot($doc));
    }
    //mp4
    if ($xt == ".pdf") {
        return pdfdoc($doc, $media, $large);
    }
    //pdf
    if ($xt == ".svg") {
        list($p, $w, $h) = subparams($doc);
        return image($p, $w, $h);
    }
    //svf
    if ($xt == ".flv") {
        return jwplayer($doc, $large);
    }
    //flv
    if ($xt == ".swf") {
        return flash_prep($doc, '');
    }
    //swf
    if ($xt == ".txt") {
        $doc = goodroot($doc);
        return lkt('', $doc, strrchr($doc, "/"));
    }
    if ($xt == ".gz") {
        return download($doc);
    }
    //tar
    if ($xt && $xt != ".") {
        //video
        if (strpos('.ogg.mp4.m4a.mov.mpg.wmv.h264.aac', $xt) !== false) {
            if ($media != 3) {
                return lj('txtx', 'popup_popvideo___' . ajx($doc), pictxt('video', strrchr_b($doc, "/")));
            }
            if ($xt == '.mp4' or $xt == '.m4a' or $xt == '.mov') {
                return jwplayer($doc, round($large * (3 / 4)));
            }
        }
    }
    if (substr($pdoc, 0, 1) == '@') {
        return poptwit(substr($pdoc, 1));
    }
    //liens
    if ((strpos($doc, '§') !== false or strpos($doc, 'http') !== false or strpos($doc, '@') !== false) && strpos($doc, '<a href') === false) {
        $lk = prepdlink($doc);
        if (is_image($lk[0])) {
            //link2image§text
            if (substr($lk[0], 0, 4) == 'http') {
                $lk[0] = vacuum_image($lk[0], $id);
            }
            if (substr($lk[1], 0, 4) == 'http') {
                $lk[1] = lkt('', $lk[1], preplink($lk[1]));
            }
            if (is_image($lk[1])) {
                return popim(goodroot($lk[0]), image(goodroot($lk[1])), $id);
            }
            //mini
            //return place_image($lk[0],$media,$large,$largb,$lk[1],'');
            return popim(goodroot($lk[0], 1), $lk[1]);
        } elseif (is_image($lk[1])) {
            //link§image
            if (substr($lk[1], 0, 4) == 'http') {
                $lk[1] = vacuum_image($lk[1], $id);
            }
            if (strpos($lk[0], '.pdf') !== false) {
                return pdfdoc($doc, $media, $large);
            }
            if (is_numeric($lk[0])) {
                $lk[0] = urlread($lk[0]);
            }
            return lkc('', $lk[0], place_image($lk[1], $media, $large, $largb, '', ''));
        } elseif (substr($lk[0], 0, 4) == 'http') {
            return lka($lk[0], $lk[1]);
        } elseif (strpos($lk[0], '<img') !== false) {
            return $lk[0] . divc('blocktext', $lk[1]);
        } elseif (strpos($lk[1], '<img') !== false) {
            return $lk[0] . ' ' . $lk[1];
        } elseif (substr($lk[0], 0, 1) == '/') {
            return lka($lk[0], $lk[1]);
        } elseif (strpos($lk[0], '/') !== false) {
            return lkc('', goodroot($lk[0]), $lk[1]);
        } elseif (strpos($lk[0], '.pdf') !== false) {
            return pdfdoc($doc, $media, $large);
        } elseif (substr($lk[0], 0, 1) == '#') {
            list($lien, $name) = explode('-', $lk[0]);
            return lka($lien . '" name="' . $name, $lk[1]);
        } elseif (strpos($lk[0], '@') !== false && strpos($lk[0], ".") !== false) {
            return lka('mailto:' . $lk[0], $lk[1] ? $lk[1] : $lk[0]);
        } elseif (substr($doc, 0, 1) == '@' && ($tw = substr($doc, 1))) {
            return call_plug('', 'popup', 'twitter', ajx($tw), $doc);
        } elseif (is_numeric($lk[0])) {
            return jread('', $lk[0], $lk[1]);
        }
    }
    //cols
    if (substr($xf, 0, 2) == ":/") {
        $nb = substr($xf, 2);
        if (is_numeric($nb)) {
            $nw = $large / $nb - 5;
            if ($media < 3) {
                return $pdoc;
            } else {
                return divs('float:left; width:' . $nw . 'px; padding-right:5px;', $pdoc);
            }
        }
    }
    if (substr($xf, 2) == "cols" && $media > 2) {
        $nb = substr($xf, 1, 2);
        if ($media < 3) {
            return $pdoc;
        } else {
            return paocols($pdoc, $nb, 0);
        }
    }
    //codeline_join
    $xxf = substr($xf, 1);
    $clvr = sesmk('clvars');
    if ($clvr[$xxf]) {
        $rb = decompact_conn($doc);
        return codeline($rb[0], $rb[1], $rb[2]);
    }
    //user_conn
    $is = strpos($xf, ':') !== false ? 1 : 0;
    if ($xxf && $is && $xxf != 'stop' && $xxf != 'attr' && $xxf != 'rect' && $xxf != 'defs') {
        $func = msql_read('', ses('qb') . '_connectors', $xxf);
        if (!$func) {
            $func = msql_read('', 'public_connectors', $xxf);
        }
        if ($func && !is_array($func)) {
            return cbasic($func, $pdoc);
        }
        //plugin
        if (isplug($xxf)) {
            list($p, $o) = explode('§', $pdoc);
            $ret = plugin($xxf, $p, $o);
        }
        if ($ret) {
            return delbr($ret, "\n");
        }
    }
    return '[' . $doc . ']';
}
Exemplo n.º 19
0
	<div class="login__social-frame">
		<a href="#" class="login__social login__social--fb" data-url="<?php 
echo MyQubeSocialAuth::getLink('facebook');
?>
"><?php 
echo svg('fb');
?>
</a>
		<a href="#" class="login__social login__social--vk" data-url="<?php 
echo MyQubeSocialAuth::getLink('vk');
?>
"><?php 
echo svg('vk');
?>
</a>
		<a href="#" class="login__social login__social--gp" data-url="<?php 
echo MyQubeSocialAuth::getLink('google');
?>
"><?php 
echo svg('gp');
?>
</a>
	</div>
	<div class="login__footer qblock__footer">
		<?php 
include $_SERVER['DOCUMENT_ROOT'] . '/includes/footer.php';
?>
	</div>
	</div>
</div>
Exemplo n.º 20
0
      <div class="col-sm-3 col-md-2">
        <div class="contacts"><span><?php 
echo COption::GetOptionString("grain.customsettings", "footer_address_en");
?>
 <br></span><a href="mailto:<?php 
echo COption::GetOptionString("grain.customsettings", "footer_email_en");
?>
" class="contacts_link"><?php 
echo COption::GetOptionString("grain.customsettings", "footer_email_en");
?>
</a></div>
      </div>
      <div class="col-sm-2">
        <div class="map"><a href="/map/">sitemap</a></div>
      </div>
      <div class="col-xs-4 col-sm-3 col-md-2 col-lg-2 social">
        <nobr>
        <?php 
$APPLICATION->IncludeComponent("bitrix:menu", "social", array("ALLOW_MULTI_SELECT" => "Y", "MENU_CACHE_TYPE" => "A", "ROOT_MENU_TYPE" => "social", "MAX_LEVEL" => "1"), false);
?>
        </nobr>
      </div>
      <div class="col-md-3 col-lg-3 visible-md-block visible-lg-block"><a href="http://radia.ru" target="_blank" class="radia"><?php 
echo svg('radia');
?>
          <div class="radia__content">Developed by <br>radia interactive</div></a></div>
    </div>
  </div>
</footer>
</body>
</html>
Exemplo n.º 21
0
                case 'controlpoint':
                case 'point_controlpoint':
                default:
                    $mclass = $mclass != '' ? $mclass : "obj_{$tclass}";
                    /*
                    					$svg.="								 <g><rect id='layer-{$layername}-{$row['pos_name']}-{$tclass}' mask='url(#{$mclass})' x='{$row['pos_x']}' y='{$row['pos_y']}' height='32' width='32' style='fill: rgba({$colors[$tclass]},0.75);'>\n";
                    					$svg.="									 <title>{$row['pos_name']}</title>\n";
                    					$svg.="									 <text x='50%' y='50%' style='font-weight: bold; font-size: 1.5em; text-anchor: middle;'>{$row['pos_name']}</text>\n";
                    					$svg.="								 </rect></g>\n";
                    */
                    echo "\t\t\t\t\t\t\t\t<div id='{$layername}-{$row['pos_type']}-{$row['pos_name']}-{$tclass}' class='obj {$mclass}_bg' style='position: absolute; left: {$row['pos_x']}px; top: {$row['pos_y']}px;'></div>\n";
                    echo "\t\t\t\t\t\t\t\t<div id='{$layername}-{$row['pos_type']}-{$row['pos_name']}-{$tclass}' class='obj {$mclass}_fg' style='position: absolute; left: {$row['pos_x']}px; top: {$row['pos_y']}px;'>{$row['pos_name']}</div>\n";
            }
        }
        if ($svg) {
            svg($svg, $layername);
            $svg = "";
        }
        echo "\t\t\t\t\t\t</div>\n";
    }
    echo "\t\t\t\t\t</div>\n";
}
// Right column
echo "\t\t\t\t\t<div id='key' class='key'>\n";
echo "\t\t\t\t\t\t\t\t<form>\n";
DisplayModSelection(0, 'map');
/*
Map: <select name='map'>";
	foreach ($maps as $mapname => $mapdata) {
		$sel = ($mapname == $map) ? ' SELECTED' : '';
		echo "<option{$sel}>{$mapname}</option>\n";