Esempio n. 1
0
function random_gal_head($args = array())
{
    echo mso_load_jquery('jquery.nivo.slider.js') . mso_load_style(getinfo('plugins_url') . 'random_gal/random_gal.css');
    return $args;
}
Esempio n. 2
0
function random_gal_head_css($args = array())
{
    echo mso_load_style(getinfo('plugins_url') . 'random_gal/random_gal.css');
    return $args;
}
Esempio n. 3
0
if ($post = mso_check_post(array('data'))) {
    $output = $post['data'];
    $output = trim($output);
    $output = str_replace(chr(10), "<br>", $output);
    $output = str_replace(chr(13), "", $output);
    $output = str_replace('[cut]', '', $output);
    $output = mso_hook('content', $output);
    $output = mso_hook('content_auto_tag', $output);
    $output = mso_hook('content_balance_tags', $output);
    $output = mso_hook('content_out', $output);
    $output = mso_hook('content_content', $output);
    // стили
    $css_link = mso_load_style(getinfo('shared_url') . 'css-less/style-all-mini.css');
    $css_link .= mso_load_style(getinfo('admin_url') . 'plugins/editor_markitup/preview.css');
    if (file_exists(getinfo('template_dir') . 'css/var_style.css')) {
        $css_link .= mso_load_style(getinfo('template_url') . 'css/var_style.css');
    }
    echo <<<EOF
<!DOCTYPE HTML>
<html><head>
\t<meta charset="UTF-8">
\t<title>Предпросмотр</title>
\t{$css_link}
\t<style>
\t\tbody, div.all, div.all-wrap, div.content {background: white; margin: 0; padding: 0; box-shadow: none; border-radius: 0; float: none; width: 99%;}
\t\tdiv.content {width: 90%; margin: 0 auto; padding: 0;}
\t</style>
</head><body>
<div class="all">
\t<div class="all-wrap">
\t\t<div class="content">