Mediabistro Blogs Configuration

From Littledamien Wiki
Jump to navigation Jump to search

sandbox settings[edit]

network settings[edit]

  • access to settings shared across blogs & sandboxes
  • log in to sandbox dashboard > upper right link: "Network Admin"

mobile[edit]

configuration[edit]

  • plugin: WordPress Mobile Edition
  • accessed through network admin > plugins
  • theme: "carrington-mobile-X.X.X", where "X.X.X" is the version of the plugin

files and structure[edit]

  • base directory: /wp-content/themes/carrington-mobile-[x.x.x]/
    Where x.x.x is the version number of the carrington mobile theme
  • index.php landing page, which in turn includes loop/loop-default.php.
  • loop/loop-default.asp
  • Page display logic employed on landing page.
  • Add custom content here by calling a custom routine, as defined in plugins/mbFunctions.php
  • Custom function naming convention: [USER_PREFIX]_[CONTENT_DIRECTORY]
  • plugins/mbFunctions.php
  • Custom functions are defined here. These functions in turn pull include template files to display content.
/**
 * featured post content include
 */
function mbcfct_featured_post() {	
	$file = cfct_choose_general_template('featured_post');
	cfct_template_file('featured_post', $file);
}
  • In the sample above, the argument to cfct_choose_general_template() is the name of the directory containing the content template file.
  • The first argument to cfct_template_file() is the base name of the content template file. The file will be named "[BASE_NAME]-default.php".

sidebar content[edit]

  • /wp-content/themes/[THEME]/sidebar.php
    e.g. for the "base" theme: /wp-content/themes/base/sidebar.php
  • The sidebar modules are set in the blog's config file.
  • /wp-content/themes/[THEME]/inc/config/[BLOG-SLUG]-config.php
    e.g. for the "AllTwitter" blog: /wp-content/themes/base/inc/config/alltwitter-config.php
$MB->sidebarModules = array(); /* << array contains list of module content include paths */
  • e.g. The featured jobs module: $moduleDir.'jobs.php'
  • sidebar module content includes are located in /wp-content/themes/[THEME]/modules/