Example #1
0
/**
 * Display information about each blog in the array of blogs
 *
 * @param	array $blogs
 * @param array $atts - shortcode attributes
 * @param string $content - content to be displayed for each blog
 */
function bw_display_blogs($blogs, $atts, $content)
{
    $class = bw_array_get($atts, "class", null);
    foreach ($blogs as $blog) {
        sdiv("bw_blog {$class}");
        bw_display_blog($blog, $atts, $content);
        ediv("bw_blog");
    }
}
Example #2
0
 /**
  * Create a dummy div which may be used for placing graphics using background images in CSS 
  */
 function sediv($class = NULL, $id = NULL, $extra = NULL)
 {
     sdiv($class, $id, $extra);
     ediv();
 }
Example #3
0
 /**
  * Create an oik menu header
  *
  * Note: Removed the link to oik  
  *
  * @param string $title - title for the box
  * @param string $class - class for the box 
  */
 function oik_menu_header($title = "Overview", $class = "w70pc")
 {
     oik_enqueue_scripts();
     sdiv("wrap");
     if (function_exists("bw_loik")) {
         $loik = bw_loik();
     } else {
         $loik = null;
     }
     h2("{$loik} " . bw_translate($title));
     scolumn($class);
 }
Example #4
0
 /**
  * Create an oik menu header
  *
  * Note: Removed the link to oik  
  *
  * @param string $title - title for the box
  * @param string $class - class for the box 
  */
 function oik_menu_header($title = "Overview", $class = "w70pc")
 {
     //oik_require( "bobbforms.inc" );
     //oik_enqueue_stylesheets();
     oik_enqueue_scripts();
     sdiv("wrap");
     //oik_require( "shortcodes/oik-bob-bing-wide.php" );
     if (function_exists("bw_loik")) {
         $loik = bw_loik();
     } else {
         $loik = null;
     }
     h2("{$loik} " . bw_translate($title));
     scolumn($class);
 }
Example #5
0
/**
 * Display the unescaped HTML.
 *
 * Question: Will this always be safe to do so?
 * If not, what sort of problems can this cause?
 * 
 * @param string $content
 */
function trac_29608_display($content)
{
    sdiv("cleared");
    ediv();
    e($content);
}