Constants

TABLE_PREFIX

TABLE_PREFIX

A prefix for all tables used by this plugin

PLUGIN_DB_VERSION

PLUGIN_DB_VERSION

A database schema version. This should be an incrementing index (read: should not include minor version numbers), and doesn't need to match the plugin code version number.

MENU_TITLE

MENU_TITLE

Provide titles for menu items

MENU_TITLE_APPSTORE

MENU_TITLE_APPSTORE

MENU_TITLE_CONTENT

MENU_TITLE_CONTENT

MENU_SLUG

MENU_SLUG

Provide unique slugs for menu items The first two are the same to avoid a duplicate submenu item

MENU_SLUG_APPSTORE

MENU_SLUG_APPSTORE

MENU_SLUG_CONTENT

MENU_SLUG_CONTENT

IMAGICK_PATH_DEV

IMAGICK_PATH_DEV

Paths to image magick in different environments

IMAGICK_PATH_PROD

IMAGICK_PATH_PROD

TMP_DIR

TMP_DIR

TAG_URL

TAG_URL

Properties

$pluginUrl

$pluginUrl : string

The URL of the plugin path

Type

string

$imagickPath

$imagickPath : string

The path to ImageMagick

Type

string

Methods

__construct()

__construct() 

Class constructor

creationSql()

creationSql() : array

Gets the SQL needed to setup the initial database schema

Returns

array

installDb()

installDb() : string

Installs the necessary database tables

Returns

string

tablePrefix()

tablePrefix() : string

Glues together the defined wordpress table prefix with this plugin's prefix

Returns

string

setupTable()

setupTable() : string

Gets the name of the setup table

Returns

string

imagesTable()

imagesTable() : string

Gets the name of the images table

Returns

string

imageVariationsTable()

imageVariationsTable() : string

Gets the name of the imagevariations table

Returns

string

sectionsTable()

sectionsTable() : string

Gets the name of the sections table

Returns

string

sectionMetaTable()

sectionMetaTable() : string

Gets the name of the sectionmeta table

Returns

string

pushLookupTable()

pushLookupTable() : string

Gets the name of the pushlookup table

Returns

string

unsavedChangesTable()

unsavedChangesTable() : string

Gets the name of the unsavedchanges table

Returns

string

adminMenuItems()

adminMenuItems() 

Sets up the administration menu

Uncomment the contents of this method to get a wp-admin menu

loadEnqueues()

loadEnqueues() 

Enqueue scripts and styles

urlFromComponents()

urlFromComponents(string  $path, string  $url) : string

Parses a section URL (e.g. the "uploads" directory) and a full file path and produces the URL to the file

Parameters

string $path

The full path to the file

string $url

The URL to a section

Returns

string

appStore()

appStore() : string

Provides the entire view for the App Store administration page

Returns

string

content()

content() : string

Provide the entire view for the Content administration page

Returns

string

appStoreDetail()

appStoreDetail() : string

Provides the middle section of the App Store administration screen.

This farms out work to other methods so that div layers can be quickly replaced

Returns

string

phonePreview()

phonePreview() : string

Provides the preview image for a phone and the div that will contain the preview

Returns

string

appStoreForm()

appStoreForm() : string

Provides form elements for App Store screen input

Larger chunks of HTML are farmed out to other methods to help avoid confusion and breaky code

Returns

string

nameAndDescriptionContent()

nameAndDescriptionContent() : string

Gets the HTML for name and description input

Returns

string

iconContent()

iconContent() : string

Gets the HTML for supplying icons

Returns

string

launchImageContent()

launchImageContent() : string

Gets the HTML for supplying launch images

Returns

string

screenshotContent()

screenshotContent() : string

Gets the HTML for supplying icons

Returns

string

sectionsContent()

sectionsContent() : string

Gets the HTML for theme selection & content/section management

Returns

string

themeIconPreviewContent()

themeIconPreviewContent() : string

Gets the HTML for icon previews

Returns

string

initializeTabs()

initializeTabs(  $whichId) 

Parameters

$whichId

initializeTempSaver()

initializeTempSaver() 

getView()

getView(  $whichView) 

Parameters

$whichView

screenshotPhoneContent()

screenshotPhoneContent() : string

Gets the HTML for phone screen shots

Returns

string

screenshotTabletContent()

screenshotTabletContent() : string

Gets the HTML for tablet screen shots

Returns

string

launchImageThemeContent()

launchImageThemeContent() : string

Gets launch image HTML for a provided theme (not yet implemented)

Returns

string

launchImageCustomContent()

launchImageCustomContent() : string

Gets launch image HTML for customers to upload individual images

Returns

string

headerContent()

headerContent() : string

Gets the administration header with the provided options

Returns

string

footerContent()

footerContent() : string

Gets the administration footer with the provided options

Returns

string

sidekickAppStoreMenu()

sidekickAppStoreMenu() : string

Gets sidekick panel menu for app store settings

Returns

string

sidekickContentMenu()

sidekickContentMenu() : string

Gets sidekick panel menu for content settings

Returns

string

sidekickDevicePreviewMenu()

sidekickDevicePreviewMenu() : string

Gets sidekick panel menu for device preview selection

Returns

string