File: example/MediumExample/landing.1.php

Recommend this page to a friend!
  Classes of Jorge Castro  >  PHP AMP Page Generator  >  example/MediumExample/landing.1.php  >  Download  
File: example/MediumExample/landing.1.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP AMP Page Generator
Generate HTML for using as Google AMP site
Author: By
Last change:
Date: 11 months ago
Size: 919 bytes
 

Contents

Class file image Download
<?php

use eftec\AmpGeneratorOne\AmpGeneratorOne;
use
eftec\AmpGeneratorOne\ButtonModel;
use
eftec\AmpGeneratorOne\FooterModel;
use
eftec\AmpGeneratorOne\HeaderModel;
use
eftec\AmpGeneratorOne\HeadModel;
use
eftec\AmpGeneratorOne\LinkModel;
use
eftec\AmpGeneratorOne\SectionModel;
use
eftec\AmpGeneratorOne\StructureModel;

include
"../../lib/AmpGeneratorOne.php";

$canonical="https://www.canonical.com";
$base='http://localhost/currentproject/ampgeneratorone/example/MediumExample';

$amp=new AmpGeneratorOne($canonical,$base);


$amp->startAmp(new HeaderModel("Example","AMP Generator One"));

// sidebar menu
$menu=array();
$menu[]=new LinkModel("Cupcakes", $base."/detail.php?id=cupcake", "");
$menu[]=new LinkModel("Muffins", $base."/detail.php?id=muffin", "");
$amp->setClassTextColor("text-white")
    ->
sidebar($menu);



$amp->head(new HeadModel("Cupcakes","/resources/logo/logo.png"),70,70);

$amp->render();


For more information send a message to info at phpclasses dot org.