default.xsl 28.7 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751
<?xml version="1.0" encoding="utf-8"?>

<xsl:stylesheet version="1.0" 	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
								xmlns:php="http://php.net/xsl" >

	<xsl:output method="html" encoding="utf-8"  indent="no" />

	<xsl:template match="/">
		<html>
			<head>
				<xsl:apply-templates select="//XMLSite_Head" />
			</head>
			<body>
				<div class="Site">
					<xsl:apply-templates select="/content/XMLSite_Basic" />
					<xsl:apply-templates select="/content/XMLSite_Display" />
					<xsl:apply-templates select="/content/XMLSite_Misc" />
					<xsl:call-template name="footer"/>
				</div>
			</body>
		</html>
	</xsl:template>

	<!-- global vars -->
	<xsl:variable name="var_blog_short" select="'350'"/>
	<xsl:variable name="var_index" select="'index.php'"/>
	<xsl:variable name="var_moreStart" select="'&lt;!--more'"/>
	<xsl:variable name="var_moreEnd" select="'--&gt;'"/>


	<xsl:template name="footer">
		<div class="footer">
			<a href="http://mensch.coop/clients/mcEg/index.php">Startseite</a>
			<a href="http://mensch.coop">mensch.coop</a>
			<a href="">Impressum</a>
		</div>
	</xsl:template>
	<xsl:template match="XMLSite_Head">
		<link rel="icon" type="image/x-icon" href="http://mensch.coop/clients/mcEg/include/Images/favicon.ico" />
		<xsl:variable name="href"> <xsl:value-of select="XMLStylesheet/href" /> </xsl:variable>
		<xsl:variable name="name"> <xsl:value-of select="XMLStylesheet/name" /> </xsl:variable>
		<title><xsl:value-of select="title" /></title>
 		<link rel="stylesheet" type="text/css" href="http://mensch.coop/clients/mcEg/include/css/default.css" title="{$name}" />
<!--		<link rel="stylesheet" type="text/css" href="http://localhost/losp/clients/mcEg/include/css/default.css" title="{$name}" /> -->
		<xsl:for-each select="/content/XMLSite_Display/BasisClipboard/Menu/Services/Link">
			<link rel="alternate" type="application/rss+xml" title="{@label}" href="{@url}?{@parameter}" />
		</xsl:for-each>
	</xsl:template>

	<xsl:template match="XMLSite_Basic">
	 	<div class="top">
			<p class="topHead">
				<a href="{$var_index}">
					<xsl:attribute name="title">
						<xsl:apply-templates select="BasisElement/Element[@objvar='Subject']"/>
					</xsl:attribute>
					<img src="http://mensch.coop/clients/mcEg/include/Images/header_EG.png"/>
				</a>
			</p>
			<div class="topNav">
				<ul class="topNav">
					<xsl:apply-templates select="BasisElement/BasisClipboard[@BasisClipboard='LinkList']/List/BasisElement" mode="topLink"/>
				</ul>
			</div>
	 		<xsl:for-each select="../XMLSite_Display">
				<p class="history"><xsl:text> </xsl:text>
					<xsl:call-template name="fnc_history"/>
				</p>
			</xsl:for-each>
		</div>
	</xsl:template>
	<xsl:template match="Element[@key='menu_sort']">
		<xsl:for-each select="MenuEntry">
			<xsl:sort select="@pos" order="ascending"/>
				<xsl:choose>
					<xsl:when test="not(@id)">
						<xsl:if test="@bc_name != 'LinkList'">
							<xsl:variable name="bc_name" select="@bc_name" />
							<xsl:apply-templates select="../../../../Preference/showBasisClipboard[@name=$bc_name]" mode="topLink"/>
						</xsl:if>
					</xsl:when>
					<xsl:otherwise>
						<xsl:variable name="var_id" select="@id"/>
						<xsl:choose>
							<xsl:when test = " /content/XMLSite_Basic/BasisElement/BasisClipboard[@BasisClipboard = 'LinkList']/List/BasisElement[@ID = $var_id]" />
							<xsl:otherwise>
								<xsl:apply-templates select="/content/XMLSite_Basic/BasisElement/BasisClipboard[@Category='SubPages']/List/BasisElement[@ID = $var_id]" mode="topLink" />
							</xsl:otherwise>
						</xsl:choose>
					</xsl:otherwise>
				</xsl:choose>
		</xsl:for-each>
	</xsl:template>
	<xsl:template match="XMLSite_Display">
		<div class="display">
			<div class="content" ID="Content">
				<xsl:if test="not(BasisElement) and not(BasisClipboard)">
					<xsl:apply-templates select="../XMLSite_Basic/BasisElement" mode="start"/>
				</xsl:if>
				<xsl:apply-templates select="BasisClipboard"/>
			</div>
			<div ID="navRight" class="nav">
				<xsl:apply-templates select="/content/XMLSite_Basic/BasisElement/BasisClipboard[@Category='Blog']" mode="nav"/>
				<div class="misc">
					<xsl:value-of select="/content/XMLSite_Basic/BasisElement/BasisElementDesign/Miscellaneous" disable-output-escaping="yes"/>
				</div>
			</div>
		</div>
	</xsl:template>
	<xsl:template match="BasisElement[@ID='1352']" mode="nav">
		<xsl:apply-templates select="BasisElementDesign/Values/Element"/>
	</xsl:template>
	<xsl:template match="BasisClipboard" mode="nav">
		<p class="navHead"><a href="{$var_index}{@parameter}"><xsl:apply-templates select="/content/Language/lang[@name='ThreadMessageBCBlog']"/></a>
			<xsl:for-each select="Menu/Services/Link">
				<a class="button {@label}" href="{concat('http://mensch.coop/index.php?',@parameter)}" title="{@label}"><xsl:text> </xsl:text></a>
			</xsl:for-each>
		</p>
		<ul class="nav">
			<xsl:apply-templates select="List/BasisElement[5 &gt; position()]" mode="nav"/>
		</ul>
	</xsl:template>

	<xsl:template match="XMLSite_Misc">
	</xsl:template>
	<xsl:template match="BasisElement" mode="link">
		<xsl:param name="param_url"/>
		<xsl:param name="param_view" select="'showSingle'"/>
		<xsl:variable name="var_url">
			p[]=<xsl:value-of select="$param_view"/>&#38;p[]=ID&#38;p[]=<xsl:value-of select="@ID"/>
		</xsl:variable>
		<li>
			<a href="{$var_index}{$param_url}{$var_url}"><xsl:apply-templates select="Headline/Element"/></a>
			<xsl:if test="../../@view='showBoth' and @ID = ../../BasisElement/@ID">
				<xsl:apply-templates select="../../BasisElement/Preference">
					<xsl:with-param name="param_url"><xsl:value-of select="$param_url"/><xsl:value-of select="$var_url"/></xsl:with-param>
				</xsl:apply-templates>
			</xsl:if>
		</li>
	</xsl:template>
	<xsl:template match="Preference">
		<xsl:param name="param_url"/>
		<xsl:if test="showBasisClipboard[@name != 'LinkList']">
			<ul class="leftNav2">
				<xsl:apply-templates select="showBasisClipboard[@name != 'LinkList']" mode="leftNav">
					<xsl:with-param name="param_url" select="$param_url"/>
				</xsl:apply-templates>
			</ul>
		</xsl:if>
	</xsl:template>
	<xsl:template match="showBasisClipboard" mode="topLink">
		<xsl:param name="param_lang">
			<xsl:choose>
				<xsl:when test="contains(@name,'::')">
					<xsl:value-of select="substring-before(@name,'::')"/><xsl:value-of select="substring-after(@name,'::')"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="@name"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:param>
		<xsl:param name="param_url">
			<xsl:text>?</xsl:text>p[]=showSingle&#38;p[]=ID&#38;p[]=<xsl:value-of select="../../@ID"/>&#38;
		</xsl:param>

		<xsl:variable name="var_url">
			<xsl:text>p[]=</xsl:text><xsl:value-of select="@name"/>
		</xsl:variable>

		<xsl:choose>
			<xsl:when test="$param_lang != 'BlogSubPages'">
				<li class="topLink">
					<a href="{$var_index}{$param_url}{$var_url}"><xsl:apply-templates select="/content/Language/lang[@name=$param_lang]"/></a>
				</li>
			</xsl:when>
			<xsl:otherwise>
				<xsl:apply-templates select="/content/XMLSite_Basic/BasisElement/BasisClipboard[@Category='SubPages']/List/BasisElement" mode="topLink" />
			</xsl:otherwise>
		</xsl:choose>

	</xsl:template>
	<xsl:template match="BasisElement" mode="nav">
		<xsl:param name="param_url" select="../../@parameter"/>
		<xsl:variable name="var_url">
			&#38;p[]=showSingle&#38;p[]=ID&#38;p[]=<xsl:value-of select="@ID"/>
		</xsl:variable>
		<li class="topLink">
			<a class="head" href="{$var_index}{$param_url}{$var_url}"><xsl:apply-templates select="Headline/Element[@objvar='Subject']"/></a>
			<br/><span class="small"><xsl:apply-templates select="CreateDate"/></span>
			<xsl:apply-templates select="Subheading/Element[@objvar='Text']" mode="short">
				<xsl:with-param name="param_url" select="concat($var_index,$param_url,$var_url)"/>
				<xsl:with-param name="param_short" select="100"/>
			</xsl:apply-templates>
		</li>
	</xsl:template>
	<xsl:template match="BasisElement" mode="topLink">
		<xsl:param name="param_url" select="../../@parameter"/>
		<xsl:variable name="var_url">
			&#38;p[]=showSingle&#38;p[]=ID&#38;p[]=<xsl:value-of select="@ID"/>
		</xsl:variable>
		<li class="topLink">
			<a href="{$var_index}{$param_url}{$var_url}"><xsl:apply-templates select="Headline/Element[@objvar='Subject']"/></a>
		</li>
	</xsl:template>

	<xsl:template match="showBasisClipboard" mode="link">
		<xsl:param name="param_name" select="@name"/>
		<xsl:param name="param_url">
			p[]=showSingle&#38;p[]=ID&#38;p[]=<xsl:value-of select="../../@ID"/>&#38;
		</xsl:param>
		<xsl:variable name="var_url">
			<xsl:text>p[]=</xsl:text><xsl:value-of select="@name"/>
		</xsl:variable>
		<li class="topLink">
			<a href="{$var_index}{$param_url}{$var_url}"><xsl:apply-templates select="/content/Language/lang[@name=$param_name]"/></a>
		</li>
	</xsl:template>



	<xsl:template match="showBasisClipboard[@name='Blog::SubPages']" mode="menu">
		<xsl:param name="param_name" select="@name"/>
		<li class="topLink">
			<a href=""><xsl:apply-templates select="/content/Language/lang[@name='BlogSubPages']"/></a>
			<ul class="dropDown">
				<xsl:apply-templates select="../showBasisClipboard[@name='ThreadMessageBC::Blog']" mode="dropLink">
					<xsl:with-param name="param_name" select="'ThreadMessageBCBlog'"/>
				</xsl:apply-templates>
				<xsl:apply-templates select="../../BasisClipboard/List/BasisElement" mode="link">
					<xsl:with-param name="param_url">
						p[]=showSingle&#38;p[]=ID&#38;p[]=<xsl:value-of select="../../@ID"/>&#38;p[]=<xsl:value-of select="../../BasisClipboard/@BasisClipboard"/>::<xsl:value-of select="../../BasisClipboard/@Category"/>&#38;
					</xsl:with-param>
				</xsl:apply-templates>
				<span class="clear"/>
			</ul>
		</li>
	</xsl:template>



	<xsl:template match="BasisElement">
		<xsl:param name="param_url" />
		<xsl:variable name="var_url">
			p[]=showBoth&#38;p[]=ID&#38;p[]=<xsl:value-of select="@ID"/>
		</xsl:variable>
		<xsl:choose>
			<xsl:when test="BasisClipboard[not(@Category) or @Category != 'Image']/BasisElement">
				<xsl:apply-templates select="BasisClipboard/BasisElement">
					<xsl:with-param name="param_url">
						<xsl:value-of select="$param_url"/>
						<xsl:value-of select="$var_url"/>
						<xsl:for-each select="BasisClipboard/BasisElement">
							&#38;p[]=<xsl:value-of select="../@BasisClipboard"/>
							<xsl:if test="../@Category">
								::<xsl:value-of select="../@Category"/>
							</xsl:if>&#38;
						</xsl:for-each>
					</xsl:with-param>
				</xsl:apply-templates>
			</xsl:when>
			<xsl:when test="BasisClipboard[@last and @BasisClipboard != 'LinkList' and @Category != 'Image']">
				<xsl:apply-templates select="BasisClipboard[@last and @BasisClipboard != 'LinkList']">
					<xsl:with-param name="param_url">
						<xsl:value-of select="$param_url"/>
						<xsl:value-of select="$var_url"/>
						&#38;p[]=<xsl:value-of select="BasisClipboard/@BasisClipboard"/>
							<xsl:if test="BasisClipboard/@Category">
								::<xsl:value-of select="BasisClipboard/@Category"/>
						</xsl:if>&#38;
					</xsl:with-param>
				</xsl:apply-templates>
			</xsl:when>
			<xsl:otherwise>
				<xsl:apply-templates select="." mode="showSingle">
					<xsl:with-param name="param_url" select="$param_url"/>
				</xsl:apply-templates>
			</xsl:otherwise>
		</xsl:choose>


	</xsl:template>
	<xsl:template match="CategoryName">
		<xsl:param name="param_name" select="."/>
		<xsl:choose>
			<xsl:when test="/content/Language/lang[@name=$param_name]">
				<xsl:apply-templates select="/content/Language/lang[@name=$param_name]"/>
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="."/>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>

	<xsl:template match="BasisClipboard">
		<xsl:param name="param_name">
			<xsl:value-of select="@BasisClipboard"/><xsl:value-of select="@Category"/>
		</xsl:param>
		<xsl:param name="param_url">
			<xsl:value-of select="@parameter"/>&#38;
		</xsl:param>
		<xsl:choose>
			<xsl:when test="BasisElement">
				<xsl:apply-templates select="BasisElement">
					<xsl:with-param name="param_url" select="$param_url"/>
				</xsl:apply-templates>
			</xsl:when>
			<xsl:when test="BasisClipboard">
				<xsl:apply-templates select="BasisClipboard">
					<xsl:with-param name="param_url" select="$param_url"/>
				</xsl:apply-templates>
			</xsl:when>
			<xsl:otherwise>
				<p class="head">
					<xsl:apply-templates select="/content/Language/lang[@name=$param_name]"/>
				</p>
				<xsl:apply-templates select="List/BasisElement" mode="short">
					<xsl:with-param name="param_url" select="$param_url"/>
					<xsl:with-param name="param_show" select="'showBoth'"/>
				</xsl:apply-templates>
				<xsl:call-template name="fnc_nextBack"/>
			</xsl:otherwise>
		</xsl:choose>

	</xsl:template>

	<xsl:template match="BasisElement[@class='TopicBE']" mode="showSingle">
		<xsl:param name="param_url"/>
		<xsl:variable name="var_url">
			p[]=showBoth&#38;p[]=ID&#38;p[]=<xsl:value-of select="@ID"/>
		</xsl:variable>

		<xsl:choose>
			<xsl:when test="BasisClipboard[@last]">
				<xsl:apply-templates select="BasisClipboard[@last]">
					<xsl:with-param name="param_url">
						<xsl:value-of select="$param_url"/>
						<xsl:value-of select="$var_url"/>
						&#38;p[]=<xsl:value-of select="BasisClipboard/@BasisClipboard"/>
							<xsl:if test="BasisClipboard/@Category">
								::<xsl:value-of select="BasisClipboard/@Category"/>
						</xsl:if>&#38;
					</xsl:with-param>
				</xsl:apply-templates>
			</xsl:when>
			<xsl:when test="BasisClipboard[@view]">
				<xsl:apply-templates select="BasisClipboard[@view]">
					<xsl:with-param name="param_url">
						<xsl:value-of select="$param_url"/>
						<xsl:value-of select="$var_url"/>
						&#38;p[]=<xsl:value-of select="BasisClipboard/@BasisClipboard"/>
							<xsl:if test="BasisClipboard/@Category">
								::<xsl:value-of select="BasisClipboard/@Category"/>
						</xsl:if>&#38;
					</xsl:with-param>
				</xsl:apply-templates>
			</xsl:when>
			<xsl:otherwise>
				<p class="head">
					<a href="{$var_index}"><xsl:apply-templates select="Element[@objvar='Subject']"/></a>
				</p>
				<p class="text">
					<xsl:apply-templates select="Subheading/Element[@objvar='Text']"/>
				</p>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>


	<xsl:template match="BasisElement" mode="showSingle">
		<xsl:param name="param_url" />

		<xsl:variable name="var_url">
			p[]=showSingle&#38;p[]=ID&#38;p[]=<xsl:value-of select="@ID"/>
		</xsl:variable>

		<p class="head">
			<a href="{$var_index}{$param_url}{$var_url}"><xsl:apply-templates select="Headline/Element"/></a>
		</p>

		<xsl:if test="@class != 'MultimediaText'">
			<p class="underHead"><xsl:apply-templates select="Author_NickName"/><xsl:text> - </xsl:text><xsl:apply-templates select="CreateDate"/></p>
		</xsl:if>

		<xsl:if test="BasisClipboard[@BasisClipboard='LinkList']/List/BasisElement">
			<p class="subLink">
				<xsl:for-each select="BasisClipboard[@BasisClipboard='LinkList']/List/BasisElement[@class='MultimediaText']/Headline/Element">
					<a>
						<xsl:attribute name="href">
							<xsl:value-of select="concat($param_url,$var_url)"/>&#38;p[]=LinkList&#38;p[]=showSingle&#38;p[]=ID&#38;p[]=<xsl:value-of select="../../@ID"/>
						</xsl:attribute>
						<xsl:value-of select="."/>
					</a>
				</xsl:for-each>
			</p>
			<br/>
			<span class="clear"/>
		</xsl:if>
		<xsl:apply-templates select="Element[@objvar='Link']"/>

		<div class="text">
			<xsl:apply-templates select="Subheading/Element[@objvar='Text']"/>
			<xsl:apply-templates select="Element[@objvar='Text']"/>
		</div>

		<xsl:choose>
			<xsl:when test="@class='ThreadMessageUnderBE'">
				<xsl:apply-templates select="BasisClipboard">
					<xsl:with-param name="param_url">
						<xsl:value-of select="$param_url"/>
						<xsl:value-of select="$var_url"/>
						&#38;p[]=<xsl:value-of select="BasisClipboard/@BasisClipboard"/>
							<xsl:if test="BasisClipboard/@Category">
								::<xsl:value-of select="BasisClipboard/@Category"/>
						</xsl:if>&#38;
					</xsl:with-param>
				</xsl:apply-templates>
			</xsl:when>
		</xsl:choose>
		<xsl:if test="BasisClipboard[@BasisClipboard='ThreadBC']/List/BasisElement">
			<xsl:apply-templates select="BasisClipboard[@BasisClipboard='ThreadBC']"/>
		</xsl:if>
	</xsl:template>

	<xsl:template match="BasisElement" mode="short">
		<xsl:param name="param_url" />
		<xsl:param name="param_show" select="'showSingle'"/>
		<xsl:variable name="var_url">
			p[]=<xsl:value-of select="$param_show"/>&#38;p[]=ID&#38;p[]=<xsl:value-of select="@ID"/>
		</xsl:variable>
		<div class="shortBE">
			<p class="smallHead">
				<a href="{$var_index}{$param_url}{$var_url}"><xsl:apply-templates select="Headline/Element"/></a>
			</p>
			<p class="underHead"><xsl:apply-templates select="Author_NickName"/><xsl:text> - </xsl:text><xsl:apply-templates select="CreateDate"/></p>


			<xsl:apply-templates select="Element[@objvar='Link']"/>
			<xsl:apply-templates select="Subheading[Element/@objvar='Start']"/>
			<p class="text">
				<xsl:apply-templates select="Subheading/Element[@objvar='Text']" mode="short">
					<xsl:with-param name="param_url" select="concat($var_index, $param_url, $var_url)"/>
				</xsl:apply-templates>
				<xsl:apply-templates select="Element[@objvar='Text']" mode="short">
					<xsl:with-param name="param_url" select="concat($var_index, $param_url, $var_url)"/>
				</xsl:apply-templates>

			</p>
		</div>
	</xsl:template>
	<xsl:template match="Element[@objvar='Link']">
		<p>
			<a target="_blank">
				<xsl:attribute name="href">
					<xsl:text>../../files/</xsl:text><xsl:value-of select="." />
				</xsl:attribute>
				<xsl:value-of select="substring-after(.,'/')"/>
			</a>
		</p>

	</xsl:template>
	<xsl:template match="Element[@objvar='Text']" mode="short">
		<xsl:param name="param_url" />
		<xsl:param name="param_short" />
		<xsl:variable name="var_text">
			<xsl:choose>
				<xsl:when test="not($param_short) and contains( . , $var_moreStart)">
					<xsl:value-of select="substring-before( . , $var_moreStart)"/><xsl:value-of select="substring-before(substring-after(.,$var_moreStart),$var_moreEnd)"/>
				</xsl:when>
				<xsl:when test="$param_short">
					<xsl:value-of select="php:functionString('XSLPHPFunction::checkTags', . ,$param_short )"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="php:functionString('XSLPHPFunction::checkTags', . ,$var_blog_short )"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>

		<xsl:choose>
			<xsl:when test="$var_text=''">
				<xsl:text> </xsl:text>
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="$var_text"  disable-output-escaping="yes"/>
				<xsl:text> </xsl:text><a class="small" href="{$param_url}"><xsl:apply-templates select="/content/Language/lang[@name='more']"/></a>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="Element[@objvar='Text']">
		<xsl:call-template name="fnc_getTextWithInline"/>
	</xsl:template>

	<xsl:template name="fnc_history">
		<xsl:param name="param_url">
			<xsl:text>?</xsl:text>p[]=showSingle&#38;p[]=ID&#38;p[]=<xsl:value-of select="/content/XMLSite_Basic/BasisElement/@ID"/>
		</xsl:param>
		<xsl:choose>
			<xsl:when test="BasisElement">
				<xsl:for-each select="BasisElement">
					<xsl:variable name="var_url">
						<xsl:value-of select="$param_url"/>&#38;p[]=<xsl:value-of select="@view"/>&#38;p[]=ID&#38;p[]=<xsl:value-of select="@ID"/>
					</xsl:variable>
					<xsl:text> -> </xsl:text>
					<xsl:call-template name="fnc_historyPointBE">
						<xsl:with-param name="param_url" select="$var_url"/>
					</xsl:call-template>
				</xsl:for-each>
			</xsl:when>
			<xsl:when test="BasisClipboard[(@view or @last) and (@BasisClipboard='LinkList' or @Category='SubPages' or @Category='Image')]/BasisElement">
				<xsl:for-each select="BasisClipboard[@view or @last]/BasisElement">
					<xsl:variable name="var_nameBC">
						<xsl:value-of select="../@BasisClipboard"/>
						<xsl:if test="../@Category">
							::<xsl:value-of select="../@Category"/>
						</xsl:if>
					</xsl:variable>
					<xsl:variable name="var_url">
						<xsl:value-of select="$param_url"/>&#38;p[]=<xsl:value-of select="$var_nameBC"/>&#38;p[]=<xsl:value-of select="@view"/>&#38;p[]=ID&#38;p[]=<xsl:value-of select="@ID"/>
					</xsl:variable>
					<xsl:text> -> </xsl:text>
					<xsl:call-template name="fnc_historyPointBE">
						<xsl:with-param name="param_url" select="$var_url"/>
					</xsl:call-template>
				</xsl:for-each>
			</xsl:when>
			<xsl:when test="BasisClipboard[@view or @last] or BasisClipboard/BasisClipboard">
				<xsl:for-each select="BasisClipboard[@view or @last]">
					<xsl:variable name="var_nameBC">
						<xsl:value-of select="@BasisClipboard"/>
						<xsl:if test="@Category">
							::<xsl:value-of select="@Category"/>
						</xsl:if>
					</xsl:variable>
					<xsl:variable name="var_url">
						<xsl:value-of select="$param_url"/>&#38;p[]=<xsl:value-of select="$var_nameBC"/>
					</xsl:variable>
					<xsl:text> -> </xsl:text>
					<xsl:call-template name="fnc_historyPointBC">
						<xsl:with-param name="param_url" select="$var_url"/>
					</xsl:call-template>
				</xsl:for-each>
				<xsl:for-each select="BasisClipboard/BasisClipboard">
					<xsl:variable name="var_nameBC">
						<xsl:value-of select="../@BasisClipboard"/>
						<xsl:if test="../@Category">
							::<xsl:value-of select="../@Category"/>
						</xsl:if>
					</xsl:variable>
					<xsl:variable name="var_url">
						<xsl:value-of select="$param_url"/>&#38;p[]=<xsl:value-of select="$var_nameBC"/>
					</xsl:variable>
					<xsl:text> -> </xsl:text>
					<xsl:call-template name="fnc_historyPointBCBC">
						<xsl:with-param name="param_url" select="$var_url"/>
					</xsl:call-template>
				</xsl:for-each>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template name="fnc_historyPointBE">
		<xsl:param name="param_url"/>
		<a href="{$var_index}{$param_url}"><xsl:apply-templates select="Headline/Element"/></a>
		<xsl:call-template name="fnc_history">
			<xsl:with-param name="param_url" select="$param_url"/>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="fnc_historyPointBC">
		<xsl:param name="param_url"/>
		<xsl:variable name="tmp_name">
			<xsl:value-of select="@BasisClipboard"/><xsl:value-of select="@Category"/>
		</xsl:variable>
		<a href="{$var_index}{$param_url}"><xsl:apply-templates select="/content/Language/lang[@name=$tmp_name]"/></a>
		<xsl:call-template name="fnc_history">
			<xsl:with-param name="param_url" select="$param_url"/>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="fnc_historyPointBCBC">
		<xsl:param name="param_url"/>
		<xsl:variable name="tmp_name">
			<xsl:value-of select="../@BasisClipboard"/><xsl:value-of select="../@Category"/>
		</xsl:variable>
		<a href="{$var_index}{$param_url}"><xsl:apply-templates select="/content/Language/lang[@name=$tmp_name]"/></a>
		<xsl:call-template name="fnc_history">
			<xsl:with-param name="param_url" select="$param_url"/>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="fnc_getTextWithInline">
		<xsl:param name="param_sub" select="."/>

		<xsl:choose>
			<xsl:when test="contains( $param_sub , '[BasisElement')">
				<xsl:value-of select="substring-before( $param_sub , '[BasisElement')" disable-output-escaping="yes"/>

				<xsl:variable name="tmp_inLine" select="substring-before(substring-after( $param_sub , '[BasisElement'), ']')"/>

				<xsl:for-each select="../InLine/InLineElement">
					<xsl:variable name="tmp_searchID"><xsl:value-of select="' '"/><xsl:value-of select="@ID"/></xsl:variable>
					<xsl:if test="contains($tmp_inLine , $tmp_searchID )">
						<xsl:call-template name="fnc_mkInLineElement">
							<xsl:with-param name="param_id" select="@ID"/>
							<xsl:with-param name="param_kind" select="@kind"/>
						</xsl:call-template>
					</xsl:if>
				</xsl:for-each>
				<xsl:for-each select="../../InLine/InLineElement">
					<xsl:variable name="tmp_searchID"><xsl:value-of select="' '"/><xsl:value-of select="@ID"/></xsl:variable>
					<xsl:if test="contains($tmp_inLine , $tmp_searchID )">
						<xsl:call-template name="fnc_mkInLineElement">
							<xsl:with-param name="param_id" select="@ID"/>
							<xsl:with-param name="param_kind" select="@kind"/>
						</xsl:call-template>
					</xsl:if>
				</xsl:for-each>

				<xsl:call-template name="fnc_getTextWithInline">
					<xsl:with-param name="param_sub" select="substring-after($param_sub , ']')"/>
				</xsl:call-template>
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="$param_sub" disable-output-escaping="yes"/>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="BasisElement" mode="start">
		<div class="box">
			<ul class="popUps">
				<li>
					<a>
						<xsl:attribute name="href">
							<![CDATA[https://mensch.coop/clients/mcEg/index.php?p[0]=showSingle&p[1]=ID&p[2]=1352&p[3]=LinkList&p[]=showSingle&p[]=ID&p[]=1743]]>
						</xsl:attribute>
						Ihr<br/>Soziales Netzwerk<span class="pop"><img class="popUp" src="include/Images/network.png"/></span>
					</a>
				</li>
				<li>
					<a>
						<xsl:attribute name="href">
							<![CDATA[https://mensch.coop/clients/mcEg/index.php?p[0]=showSingle&p[1]=ID&p[2]=1352&p[3]=LinkList&p[]=showSingle&p[]=ID&p[]=1774]]>
						</xsl:attribute>
						Ihre<br/>Homepage<span class="pop"><img class="popUp" src="include/Images/PortalToI.png"/></span>
					</a>
				</li>
				<li>
					<a>
						<xsl:attribute name="href">
							<![CDATA[https://mensch.coop/clients/mcEg/index.php?p[0]=showSingle&p[1]=ID&p[2]=1352&p[3]=LinkList&p[]=showSingle&p[]=ID&p[]=1745]]>
						</xsl:attribute>
						Ihre<br/>Software<span class="pop"><img class="popUp" src="include/Images/software.png"/></span>
					</a>
				</li>
			</ul>
		</div>
	</xsl:template>
	<xsl:template name="fnc_mkInLineElement">
		<xsl:param name="param_id" />
		<xsl:param name="param_kind" />
		<xsl:param name="param_url" select="../../BasisClipboard[@BasisClipboard='LinkList']/@parameter"/>
		<xsl:for-each select="../../BasisClipboard[@BasisClipboard='LinkList']/List/BasisElement[@ID=$param_id]">
			<xsl:choose>
				<xsl:when test="$param_kind = 'link'">
					<xsl:apply-templates select="Headline/Element">
						<xsl:with-param name="param_url">
							<xsl:value-of select="$param_url"/>
						</xsl:with-param>
					</xsl:apply-templates>
				</xsl:when>
				<xsl:when test="$param_kind = 'small'">
					<div class="inLineSmall">
						<xsl:call-template name="fnc_mkPopup">
							<xsl:with-param name="param_noPopup" select="1"/>
							<xsl:with-param name="param_url">
								<xsl:choose>
									<xsl:when test="@class='TopicBE' or @class='Profile'">
										<xsl:value-of select="$var_link_index"/>
									</xsl:when>
									<xsl:otherwise>
										<xsl:value-of select="$param_url"/>
									</xsl:otherwise>
								</xsl:choose>
							</xsl:with-param>
						</xsl:call-template>
					</div>
				</xsl:when>
				<xsl:when test="$param_kind = 'big'">
					<div class="inLineBig">
						<xsl:apply-templates select=".">
							<xsl:with-param name="param_url">
								<xsl:choose>
									<xsl:when test="@class='TopicBE' or @class='Profile'">
										<xsl:value-of select="$var_link_index"/>
									</xsl:when>
									<xsl:otherwise>
										<xsl:value-of select="$param_url"/>
									</xsl:otherwise>
								</xsl:choose>
							</xsl:with-param>
						</xsl:apply-templates>
					</div>
				</xsl:when>
				<xsl:otherwise>
					<xsl:apply-templates select="Headline/Element">
						<xsl:with-param name="param_url">
							<xsl:choose>
								<xsl:when test="@class='TopicBE' or @class='Profile'">
									<xsl:value-of select="$var_link_index"/>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="$param_url"/>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:with-param>
					</xsl:apply-templates>

				</xsl:otherwise>
			</xsl:choose>
		</xsl:for-each>
	</xsl:template>
	<xsl:template name="fnc_nextBack">
		<xsl:if test="Menu/Link[@kind='back' or @kind='next']">
			<div class = "center">
				<hr />
				<xsl:choose>
					<xsl:when test="Menu/Link/@kind='back'">
						<xsl:apply-templates select="Menu/Link[@kind='back']" />
					</xsl:when>
					<xsl:otherwise>
						<xsl:apply-templates select="/content/Language/lang[@name='back']"/>
					</xsl:otherwise>
				</xsl:choose>
				<xsl:text> - </xsl:text>
				<xsl:choose>
					<xsl:when test="Menu/Link/@kind='next'">
						<xsl:apply-templates select="Menu/Link[@kind='next']" />
					</xsl:when>
					<xsl:otherwise>
						<xsl:apply-templates select="/content/Language/lang[@name='next']"/>
					</xsl:otherwise>
				</xsl:choose>
			</div>
		</xsl:if>
	</xsl:template>
	<xsl:template match="Link">
		<xsl:param name="param_kind" select="@kind"/>
		<a href="{@url}?{@parameter}"><xsl:apply-templates select="/content/Language/lang[@name=$param_kind]"/></a>
	</xsl:template>
	<xsl:template match="/content/Language/js/lang">
		<xsl:text>'</xsl:text><xsl:value-of select="@name"/><xsl:text>':'</xsl:text><xsl:apply-templates/><xsl:text>',</xsl:text>
	</xsl:template>
	<xsl:template match="/content/Language/js/lang[last()]">
		<xsl:text>'</xsl:text><xsl:value-of select="@name"/><xsl:text>':'</xsl:text><xsl:apply-templates/><xsl:text>'</xsl:text>
	</xsl:template>
</xsl:stylesheet>