Exemple #1
0
function mwidget_content($id)
{
    $content = MObject::get('content', $id);
    $title_addon = $content->get_meta('title-addon');
    if ($content) {
        ?>
					<h2 class="featurette-heading"><?php 
        MPut::_html($content->get_title());
        ?>
							<?php 
        if ($title_addon) {
            ?>
 
								<br />
								<span class="text-muted"><?php 
            ' ' . MPut::_html($title_addon->get_value());
            ?>
</span>
							<?php 
        }
        ?>
					</h2>
					<p class="lead"><?php 
        MPut::_text($content->get_text());
        ?>
</p>
				<?php 
    }
}
Exemple #2
0
								<div class="row">
										<div class="col-xs-12 col-sm-12 col-md-8 col-lg-9">

												<br />
												<div class="input-group">
														<span class="input-group-addon">Title</span>
														<input type="text" name="content_title" class="form-control" id="content_title" value="<?php 
MPut::_html_attr($data->title);
?>
" />
												</div>

												<br />
												<textarea name="content_text" class="mceditor" id="content_text"><?php 
MPut::_text($data->text);
?>
</textarea>
												
												<br />
												<div class="form-group">
														<blockquote>
												  			<p>
												  					<span class="badge">Created</span> <?php 
MPut::_html($data->created['when']);
?>
												  					<small>by <?php 
MPut::_html($data->created['by_user']);
?>
</small>
												  			</p>
Exemple #3
0
    static function content_location($content)
    {
        ?>
						<div class="content-location">
								<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
										<span itemprop="streetAddress"><?php 
        MPut::_text($content->get_address());
        ?>
</span>
								</div>
								<span itemprop="geo" itemscope itemtype="http://schema.org/GeoCoordinates">
										<meta itemprop="latitude" content="<?php 
        MPut::_numeric($content->get_lat());
        ?>
" />
										<meta itemprop="longitude" content="<?php 
        MPut::_numeric($content->get_lng());
        ?>
"  />
								</span>
						</div>
				<?php 
    }