I’m downloaded a template for my asp.net website. The templates is for Joomla CMS. I converted all but I have some problem in the header and can’t understand what does it do and how can I specialize for asp.net:
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl ;?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ;?>/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ;?>/templates/<?php echo $this->template ;?>/css/template.css" type="text/css" />
<!--<?php if($this->direction == 'rtl') : ?> -->
<link href="<?php echo $this->baseurl ;?>/templates/<?php echo $this->template ;?>/css/template_rtl.css" rel="stylesheet" type="text/css" />
<?php endif; ?>
<!--[if lte IE 7]>
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/ie7.css" rel="stylesheet" type="text/css" />
<![endif]-->
<!--[if lte IE 6]>
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/ie6.css" rel="stylesheet" type="text/css" />
<![endif]-->
<link id="JTKLocalCss" href="css/template.css" rel="stylesheet" type="text/css" />
You can replace the code
<?php echo $this->baseurl ?>/with<% = this.ResolveUrl("~/") %>For the code
<?php echo $this->template ?>, replace it with<% = this.ResolveUrl("~/") %>and then you must define a Template accessor in the codebehind:This will then need to be set (e.g. on PageLoad) for the property to populate the code above.
For the
<?php if($this->direction == 'rtl') : ?> ... <?php endif; ?>statement, this can be replaced with:Again this will need an accessor in the codebehind, much like the Template example.