Skip to content

Instantly share code, notes, and snippets.

@bzerangue
bzerangue / index.md
Created Jan 29, 2014
Default Phile CMS Content Markdown Document
View index.md

Welcome to Phile

Congratulations, you have successfully installed Phile. Phile is a Markdown file-based CMS.

Creating Content

@bzerangue
bzerangue / registerPCPC.ascx
Last active Aug 29, 2015
arena template for registration
View registerPCPC.ascx
<%@ control language="c#" inherits="ArenaWeb.Templates.SampleThree, Arena" %>
<script runat="server">
protected override void OnInit( EventArgs e )
{
base.OnInit( e );
BasePage.AddMetaTag( Page, "X-UA-Compatible", "IE=edge" );
BasePage.AddMetaTag( Page, "viewport", "width=device-width, initial-scale=1");
View RegisterPage1.ascx
<%@ control language="C#" autoeventwireup="true" inherits="ArenaWeb.UserControls.Custom.Registration.Register.RegisterPage1, Arena" %>
<asp:Panel runat="server" DefaultButton="btnNext">
<input type="hidden" runat="server" id="ihRegistrationGuid" />
<asp:Image CssClass="registrationProcessImage" ID="imgProcess" runat="server" Visible="false" />
<div class="registrationPage" id="registrationPage1">
<asp:Panel CssClass="registrationTitle" ID="pnlTitle" runat="server" />
<asp:Panel CssClass="registrationMessage" ID="pnlMessage" runat="server" Visible="false" />
<h4>Instructions (SANDBOX - NEED TO MAKE DYNAMIC)</h4>
View output.html
<article class="add-custom-title-for-additional-styles">
<header class="title">
<h2></h2>
</header>
<section class="body">
<div class="cell maincontent">
View RegisterPage1-orig.ascx
<%@ control language="C#" autoeventwireup="true" inherits="ArenaWeb.UserControls.Event.Register.RegisterPage1, Arena" %>
<asp:Panel runat="server" DefaultButton="btnNext">
<input type="hidden" runat="server" id="ihRegistrationGuid" />
<asp:Image CssClass="registrationProcessImage" ID="imgProcess" runat="server" Visible="false" />
<div class="registrationPage" id="registrationPage1">
<asp:Panel CssClass="registrationTitle" ID="pnlTitle" runat="server" />
<asp:Panel CssClass="registrationMessage" ID="pnlMessage" runat="server" Visible="false" />
<h4>Instructions (SANDBOX - NEED TO MAKE DYNAMIC)</h4>
View RegisterPage1.ascx
<%@ control language="C#" autoeventwireup="true" inherits="ArenaWeb.UserControls.Event.Register.RegisterPage1, Arena" %>
<asp:Panel runat="server" DefaultButton="btnNext">
<input type="hidden" runat="server" id="ihRegistrationGuid" />
<asp:Image CssClass="registrationProcessImage" ID="imgProcess" runat="server" Visible="false" />
<div class="registrationPage" id="registrationPage1">
<asp:Panel CssClass="registrationTitle" ID="pnlTitle" runat="server" />
<asp:Panel CssClass="registrationMessage" ID="pnlMessage" runat="server" Visible="false" />
<asp:Panel CssClass="registrationDetails" ID="pnlDetails" runat="server">
<asp:Image CssClass="registrationImage" ID="imgRegistration" runat="server" />
View registerPCPC.ascx
<%@ control language="c#" inherits="ArenaWeb.Templates.SampleThree, Arena" %>
<script runat="server">
protected override void OnInit( EventArgs e )
{
base.OnInit( e );
HtmlMeta child = new HtmlMeta();
child.HttpEquiv = "X-UA-Compatible";
child.Content = "IE=edge";
View arena-output-properties.ascx
<%
var objectToInspect = typeof(ArenaWeb.UserControls.Event.Register.RegisterPage1).GetField("_registration", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance).GetValue(this); // or this.SomeProperty, or this.SomeProperty.ChildProperty, etc
var properties = objectToInspect.GetType().GetProperties().Select (x => new {Name =x.Name, Value = x.GetValue(objectToInspect, null) });
foreach (var prop in properties)
{ %>
<%= prop.Name %> (<%= prop.Value %>)<br />
View print-out-objects.ascx
<%
var objectToInspect = this; // or this.SomeProperty, or this.SomeProperty.ChildProperty, etc
var properties = objectToInspect.GetType().GetProperties().Select (x => new {Name =x.Name, Value = x.GetValue(objectToInspect, null) });
foreach (var prop in properties)
{ %>
<%= prop.Name %> (<%= prop.Value %>)<br />
View pagemenu.ascx
<%@ control language="c#" inherits="ArenaWeb.UserControls.PageMenu, Arena" %>
<%@ Register TagPrefix="ComponentArt" Namespace="ComponentArt.Web.UI" Assembly="ComponentArt.Web.UI" %>
<!-- THIS IS THE CORE PAGEMENU.ASCX USER CONTROL THAT ARENA USES -->
<asp:panel id="pnlTitle" runat="server" cssClass="menuTitlePanel" visible="false"><asp:Label
id="lblTitle" runat="server" cssClass="menuTitleLabel"></asp:Label></asp:panel>
<ComponentArt:Menu id="pageMenu"
DefaultGroupCssClass="TopMenuGroup"
DefaultItemLookID="DefaultItemLook"