コード例 #1
0
ファイル: default.php プロジェクト: kevinwojo/hubzero-cms
                $height = intval($attribs->get('height', 360));
                if ($width > 0 && $height > 0) {
                    $class .= ' ' . $width . 'x' . $height;
                }
            }
            // user guide
            if (strtolower($title) != preg_replace('/user guide/', '', strtolower($title))) {
                $liclass = ' class="guide"';
            }
            ?>
					<li<?php 
            echo $liclass;
            ?>
>
						<?php 
            echo \Components\Resources\Helpers\Html::getFileAttribs($child->path, $base, 0);
            ?>
						<a<?php 
            echo $class ? ' class="' . $class . '"' : '';
            ?>
 href="<?php 
            echo $url;
            ?>
" title="<?php 
            echo $this->escape(stripslashes($child->title));
            ?>
" <?php 
            echo $action ? ' ' . $action : '';
            ?>
>
							<?php 
コード例 #2
0
ファイル: display.php プロジェクト: mined-gatech/hubzero-cms
        ?>
				<tr>
					<td width="100%">
						<span class="ftitle item:name id:<?php 
        echo $child->id;
        ?>
" data-id="<?php 
        echo $child->id;
        ?>
">
							<?php 
        echo $this->escape($child->title);
        ?>
						</span>
						<?php 
        echo $isFile ? \Components\Resources\Helpers\Html::getFileAttribs($url, $base) : '<span class="caption">' . $url . '</span>';
        ?>
					</td>
					<td>
						<?php 
        $cs = $child->access == 1 ? 'registered' : 'public';
        $st = $child->access == 1 ? 0 : 1;
        ?>
						<a class="access-<?php 
        echo $cs;
        ?>
 access" href="index.php?option=<?php 
        echo $this->option;
        ?>
&amp;controller=<?php 
        echo $this->controller;