承接 unl/php-wdn-templates 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

unl/php-wdn-templates

最新稳定版本:v6.0.1

Composer 安装命令:

composer require unl/php-wdn-templates

包简介

A PHP library for rendering the UNL templates

README 文档

README

Build Status Coverage Status

The UNL HTML Templates as a PHP library

This package allows you to render UNL Template styled pages using PHP Objects.

Requirements

  • PHP >= 5.5

Example

  • Navigate to your web root
  • Create a composer.json file with:
{
  "require": {
    "unl/php-wdn-templates": "5.1.*"
  }
}
  • Run the following commands
curl -sS https://getcomposer.org/installer | php
php composer.phar install
  • Create an index.php file with
<?php

require_once  'vendor/autoload.php';

use UNL\Templates\Templates;

$page = Templates::factory('Fixed', Templates::VERSION_5_1);

$page->doctitle = '<title>My Sample UNL Site | University of Nebraska&ndash;Lincoln</title>';
$page->head = '<!-- Place optional header elements here -->';
$page->affiliation = '<a href="#">My site affiliation</a>';
$page->titlegraphic = '<a class="unl-site-title-medium" href="#">Title of my site</a>';
$page->navlinks = '<ul>
                   <li><a href="./">Home</a>
                       <ul>
                       <li><a href="./">Sub-link 1</a></li>
                       <li><a href="./">Sub-link 2</a></li>
                       </ul>
                   </li>
                   </ul>';
$page->hero = '<div class="dcf-hero dcf-hero-default"></div>';
$page->breadcrumbs = '<ol>
                      <li><a href="http://www.unl.edu/">UNL</a></li>
                      <li><a href="./">My Sample UNL Site</a></li>
                      </ol>';
$page->pagetitle = '<h1>Welcome</h1>';
$page->herogroup1 = '';
$page->herogroup2 = '<div class="dcf-hero-group-2"></div>';
$page->maincontentarea = '<p>Content</p>';
$page->contactinfo = '<p><strong>University of Nebraska-Lincoln</strong><br />
                      1400 R Street<br />
                      Lincoln, NE 68588<br />
                     402-472-7211</p>';
$page->jsbody = '<!-- put your custom javascript here -->';

echo $page;

统计信息

  • 总下载量: 5.43k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 4
  • Forks: 6
  • 开发语言: HTML

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-12-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固