Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Commit

Permalink
inital commit of MobilePress current version 1.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
MattGeri committed Feb 23, 2010
0 parents commit b8fa2a1
Show file tree
Hide file tree
Showing 49 changed files with 4,900 additions and 0 deletions.
87 changes: 87 additions & 0 deletions mobilepress.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<?php
/*
Plugin Name: MobilePress
Plugin URI: http://mobilepress.co.za
Description: Turn your WordPress blog into a mobile website/blog.
Version: 1.1.4
Author: Aduity
Author URI: http://aduity.com
Copyright 2009 Aduity (email: [email protected])
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
global $wpdb;

// Load the config
require_once(dirname(__FILE__) . '/system/config/config.php');

// Load the helpers
require_once(dirname(__FILE__) . '/system/helpers/functions.php');

// Load the versions (must be loaded after the function helpers)
require_once(dirname(__FILE__) . '/system/config/versions.php');

// Load the core class
require_once(dirname(__FILE__) . '/system/classes/core.php');

if (class_exists('MobilePress_core'))
{
// New MobilePress object
$mobilepress = new MobilePress_core;

// Setup the installer on activation of the plugin
register_activation_hook(__FILE__, array(&$mobilepress, 'load_activation'));

// Shut down the plugin on deactivation
register_deactivation_hook(__FILE__, array(&$mobilepress, 'load_deactivation'));

// Setup admin panel only if we are inside the admin area, otherwise run the normal render code
if (is_admin())
{
// Setup the admin area
$mobilepress->create_admin();
}
else
{
// Start a session if not started already
if ( ! session_id())
{
@session_start();
}

// Load the ad/analytics helpers
require_once(dirname(__FILE__) . '/system/helpers/ad_analytics_functions.php');

// Initialize the MobilePress check logic and rendering
$mobilepress->load_site();
}
}

// Are we uninstalling the plugin?
if (function_exists('register_uninstall_hook'))
{
register_uninstall_hook(__FILE__, 'mopr_load_uninstall');
}

if ( ! function_exists('mopr_load_uninstall'))
{
function mopr_load_uninstall()
{
require_once(dirname(__FILE__) . '/system/classes/uninstall.php');
$uninstall = new MobilePress_uninstall;
}
}
?>
70 changes: 70 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
=== MobilePress ===
Contributors: mattgeri, tylerreed
Tags: mobile, iphone, android, mobilepress, cell phone, cellphone, handset, nokia, motorola, att, sprint, verizon, blackberry, palm, windows ce, opera, operamini, opera mini, google, yahoo, plugin, comments, posts
Requires at least: 2.3
Tested up to: 2.8.6
Stable tag: 1.1.4

MobilePress is a WordPress plugin that will render your WordPress blog on mobile
handsets, with the ability to use customized mobile themes, track analytics and
serve ads.


== Description ==

MobilePress is a WordPress plugin that will render your WordPress blog on mobile
handsets, with the ability to use customized themes. Built into MobilePress is the
ability to track your mobile sites analytics and serve ads with [Aduity.com](http://aduity.com).

Integration with [Aduity.com](http://aduity.com) enables you to serve ads from some of the biggest
mobile ad networks such as Admob, Quattro Wireless, Buzzcity and InMobi. You can
also serve you own managed ads. You will also be able to track your visitors every
move with Aduity analytics.

The plugin allows WordPress theme developers to create custom mobile themes for
MobilePress enabled blogs. Theme designers can create specific iPhone themes or
generic mobile themes for other mobile devices.

MobilePress is SEO enabled and detects Google, Yahoo and MSN mobile search bots.
These mobile search engine bots will see the mobile version of your blog and get
your mobile site indexed in the mobile search results.

For more information and a full set of docs, please visit the official MobilePress
website at [MobilePress.co.za](http://mobilepress.co.za)


== Installation ==

Installation instructions available at: [MobilePress.co.za](http://mobilepress.co.za/download/installation)


== Config & Settings ==

Once successfully installed, you will be presented with a few options.

= Blog Title =

Changing this will replace the title of your blog when being viewed on a
mobile device. So, instead of "My cool blog", you could replace it with
something like "My mobile blog". This will not affect your site when being
viewed on a regular web browser.

= Blog Description =

This is the same as changing your blog title, but will modify your blog's
description instead.

= Force Mobile Site =

This option will force your site to be rendered as mobile, regardless of where
it is being viewed from. Regular web browsers will see the mobile version.


== Frequently Asked Questions ==

FAQ available at: [MobilePress.co.za](http://mobilepress.co.za/support)


== Screenshots ==

Screenshots are available at: [MobilePress.co.za](http://mobilepress.co.za)
Loading

0 comments on commit b8fa2a1

Please sign in to comment.