"&site=".SITE_ID."&back_url=".urlencode($_SERVER["REQUEST_URI"]). "&path=".urlencode($path)."&contID=".urlencode($arResult["ID"]), "PARAMS" => array( 'width' => '850', 'height' => '400' ) ) ); if (!$playlistExists) $warning .= '<br><a href="javascript:'.$playlist_edit_url.'">'.GetMessage("PLAYER_PLAYLIST_ADD").'</a>'; $arIcons = Array(Array( "URL" => 'javascript:'.$playlist_edit_url, "ICON" => "bx-context-toolbar-edit-icon", "TITLE" => ($playlistExists ? GetMessage("PLAYER_PLAYLIST_EDIT") : GetMessage("PLAYER_PLAYLIST_ADD")), )); echo '<script>if (JCPopup) {window.jsPopup_playlist = new JCPopup({suffix: "playlist", zIndex: 3000});}</script>'; // create instance of JCPopup: jsPopup_playlist $this->AddIncludeAreaIcons($arIcons); } } if(isset($arParams['INIT_PLAYER'])) $arResult['INIT_PLAYER'] = $arParams['INIT_PLAYER']; else $arResult['INIT_PLAYER'] = "Y"; if (strlen($warning) > 0) return CComponentUtil::__ShowError($warning); $this->IncludeComponentTemplate(); ?>