Permalink
Browse files

Pretty-printing.

  • Loading branch information...
1 parent aff1d25 commit 6af4f7ccb285f24288493767263203080e964d51 @onpubcom committed Feb 18, 2012
Showing with 50 additions and 25 deletions.
  1. +50 −25 onpub_conf.php
View
@@ -21,27 +21,31 @@
value of this variable to the hostname of your MySQL server if it's not running
on the same server as Onpub.
*/
-if (!isset($onpub_db_host)) $onpub_db_host = 'localhost';
+if (!isset($onpub_db_host))
+ $onpub_db_host = 'localhost';
/*
MySQL database where Onpub schema is installed. Change the value of this
variable to the name of the MySQL database where you'd like to install the
Onpub schema the first time you login to the Onpub content management interface.
*/
-if (!isset($onpub_db_name)) $onpub_db_name = '';
+if (!isset($onpub_db_name))
+ $onpub_db_name = '';
/*
MySQL username used to connect to Onpub database. Change the value of this
variable to the username that has at least read access to the database where
you installed the Onpub database schema.
*/
-if (!isset($onpub_db_user)) $onpub_db_user = '';
+if (!isset($onpub_db_user))
+ $onpub_db_user = '';
/*
MySQL password used to connect to Onpub database. Change the value of this
variable to the password of the MySQL user defined by the variable above.
*/
-if (!isset($onpub_db_pass)) $onpub_db_pass = '';
+if (!isset($onpub_db_pass))
+ $onpub_db_pass = '';
// Directories Config
@@ -54,7 +58,8 @@
index.php and onpub_conf_*.php files from a location outside of the root onpub/
installation directory.
*/
-if (!isset($onpub_dir_root)) $onpub_dir_root = '';
+if (!isset($onpub_dir_root))
+ $onpub_dir_root = '';
/*
Path to local include files. Please note that all path names defined in this
@@ -64,20 +69,23 @@
list of file names that will automatically be included by the frontend if they
exist in this directory.
*/
-if (!isset($onpub_dir_local)) $onpub_dir_local = $onpub_dir_root . 'local/';
+if (!isset($onpub_dir_local))
+ $onpub_dir_local = $onpub_dir_root . 'local/';
/*
Path to OnpubAPI directory. It is recommended that you leave this value
unchanged.
*/
-if (!isset($onpub_dir_api)) $onpub_dir_api = $onpub_dir_root . 'api/';
+if (!isset($onpub_dir_api))
+ $onpub_dir_api = $onpub_dir_root . 'api/';
/*
Path to YUI directory. This directory contains the YUI 3 distribution. Rename
or delete this directory if you'd like to include the YUI files from Yahoo!'s
CDN instead.
*/
-if (!isset($onpub_dir_yui)) $onpub_dir_yui = $onpub_dir_api . 'yui/build/';
+if (!isset($onpub_dir_yui))
+ $onpub_dir_yui = $onpub_dir_api . 'yui/build/';
/*
Path to default Onpub frontend directory. This variable is useful for pointing
@@ -89,13 +97,15 @@
create a totally custom layout/design while still using the Onpub content
management interface to keep your site updated.
*/
-if (!isset($onpub_dir_frontend)) $onpub_dir_frontend = $onpub_dir_root . 'frontend/';
+if (!isset($onpub_dir_frontend))
+ $onpub_dir_frontend = $onpub_dir_root . 'frontend/';
/*
Path to the Onpub management interface. It is recommended that you leave this
value unchanged.
*/
-if (!isset($onpub_dir_manage)) $onpub_dir_manage = $onpub_dir_root . 'manage/';
+if (!isset($onpub_dir_manage))
+ $onpub_dir_manage = $onpub_dir_root . 'manage/';
// Frontend Display Config
@@ -104,7 +114,8 @@
website you want the frontend to display by default. Most people will not need
to modify this variable.
*/
-if (!isset($onpub_disp_website)) $onpub_disp_website = 1;
+if (!isset($onpub_disp_website))
+ $onpub_disp_website = 1;
/*
ID of Onpub Article to display on the home page. Set this to null if you don't
@@ -113,30 +124,35 @@
the first article you create with Onpub is displayed on the frontend home page
(index.php).
*/
-if (!isset($onpub_disp_article)) $onpub_disp_article = 1;
+if (!isset($onpub_disp_article))
+ $onpub_disp_article = 1;
/*
Set this to false if you do not want to display the "What's New" section on the
home page.
*/
-if (!isset($onpub_disp_updates)) $onpub_disp_updates = true;
+if (!isset($onpub_disp_updates))
+ $onpub_disp_updates = true;
/*
Number of "What's New" articles to display on the home page if
$onpub_disp_updates is true;
*/
-if (!isset($onpub_disp_updates_num)) $onpub_disp_updates_num = 5;
+if (!isset($onpub_disp_updates_num))
+ $onpub_disp_updates_num = 5;
/*
Set this to flase to prevent the Onpub "Login" hyperlink from showing up
anywhere on the frontend interface.
*/
-if (!isset($onpub_disp_login)) $onpub_disp_login = true;
+if (!isset($onpub_disp_login))
+ $onpub_disp_login = true;
/*
Set this to false to hide the Onpub horizontal navigation menu bar.
*/
-if (!isset($onpub_disp_menu)) $onpub_disp_menu = true;
+if (!isset($onpub_disp_menu))
+ $onpub_disp_menu = true;
// Local File Includes Config
@@ -146,14 +162,16 @@
This file is recommended for pasting in Google Analytics and/or other dynamic
includes.
*/
-if (!isset($onpub_inc_foot)) $onpub_inc_foot = $onpub_dir_local . 'onpub_foot.php';
+if (!isset($onpub_inc_foot))
+ $onpub_inc_foot = $onpub_dir_local . 'onpub_foot.php';
/*
If this file exists in the $onpub_dir_local directory, it is included by the
frontend immediately before the opening <head> tag on every page. Suitable for
initializing JS variables and/or other dynamic PHP/JS code.
*/
-if (!isset($onpub_inc_head)) $onpub_inc_head = $onpub_dir_local . 'onpub_head.php';
+if (!isset($onpub_inc_head))
+ $onpub_inc_head = $onpub_dir_local . 'onpub_head.php';
/*
If this file exists in the $onpub_dir_local directory, it is included by the
@@ -162,37 +180,42 @@
header content that's separate from the site logo and navigation at the top of
every frontend page.
*/
-if (!isset($onpub_inc_banner)) $onpub_inc_banner = $onpub_dir_local . 'onpub_banner.php';
+if (!isset($onpub_inc_banner))
+ $onpub_inc_banner = $onpub_dir_local . 'onpub_banner.php';
/*
If this file exists in the $onpub_dir_local directory, it is included directly
after the "What's New" section on the home page. This file will only be included
on the page if $onpub_disp_updates = true.
*/
-if (!isset($onpub_inc_article_updates)) $onpub_inc_article_updates = $onpub_dir_local . 'onpub_article_updates.php';
+if (!isset($onpub_inc_article_updates))
+ $onpub_inc_article_updates = $onpub_dir_local . 'onpub_article_updates.php';
/*
If this file exists in the $onpub_dir_local directory, it is included in the
right-side column beside the published/updated dates <div> on article pages
only. We use this file to include our AddThis code for our articles and blog
posts.
*/
-if (!isset($onpub_inc_article_info)) $onpub_inc_article_info = $onpub_dir_local . 'onpub_article_info.php';
+if (!isset($onpub_inc_article_info))
+ $onpub_inc_article_info = $onpub_dir_local . 'onpub_article_info.php';
/*
If this file exists in the $onpub_dir_local directory, it is included
immediately after the main content section on all frontend article pages. We
use this file to include our Disqus comment threading code.
*/
-if (!isset($onpub_inc_article_foot)) $onpub_inc_article_foot = $onpub_dir_local . 'onpub_article_foot.php';
+if (!isset($onpub_inc_article_foot))
+ $onpub_inc_article_foot = $onpub_dir_local . 'onpub_article_foot.php';
/*
If this file exists in the $onpub_dir_local directory, this file is included in
addition to the default Onpub frontend CSS file. This allows you to selectively
override the frontends default CSS classes. Tweaking this file allows you to
create your own custom-branded Onpub frontend design.
*/
-if (!isset($onpub_inc_css)) $onpub_inc_css = $onpub_dir_local . 'onpub.css';
+if (!isset($onpub_inc_css))
+ $onpub_inc_css = $onpub_dir_local . 'onpub.css';
/*
If this file exists in the $onpub_dir_local directory, this file is included in
@@ -201,7 +224,8 @@
specifies the design of the navigation menu. Tweaking this file allows you to
create your own custom nav menu design.
*/
-if (!isset($onpub_inc_css_menu)) $onpub_inc_css_menu = $onpub_dir_local . 'onpub-menu.css';
+if (!isset($onpub_inc_css_menu))
+ $onpub_inc_css_menu = $onpub_dir_local . 'onpub-menu.css';
// YUI Config
@@ -212,6 +236,7 @@
variable will usually be set to whatever the most recent version of YUI 3 is at
the time new versions of Onpub are released.
*/
-if (!isset($onpub_yui_version)) $onpub_yui_version = '3.4.1';
+if (!isset($onpub_yui_version))
+ $onpub_yui_version = '3.4.1';
?>

0 comments on commit 6af4f7c

Please sign in to comment.