Exemple #1
0
function mwidget_share($site_id)
{
    if ($site_id && strlen($site_id) > 0) {
        ?>
						<script type="text/javascript">
								//<![CDATA[
		  								( function() {
		    									var shr = document.createElement( 'script' );
		    									shr.setAttribute( 'data-cfasync', 'false' );
		    									shr.src = '//dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic.js';
		    									shr.type = 'text/javascript'; shr.async = 'true';
		    									shr.onload = shr.onreadystatechange = function() {
		      											var rs = this.readyState;
		      											if ( rs && rs != 'complete' && rs != 'loaded' ) return;
		      											var site_id = '<?php 
        MPut::_js($site_id);
        ?>
';
		      											try { Shareaholic.init( site_id ); } catch ( e ) {}
		    									};
		    									var s = document.getElementsByTagName( 'script' )[0];
		    									s.parentNode.insertBefore( shr, s );
		  								} )();
								//]]>
						</script>

						<div class="share">
								<h4 style="position: absolute; margin-top: 4px;">Condividi su:</h4>
								<div class='shareaholic-canvas' data-app='share_buttons' data-app-id='593701'></div>
						</div>
				<?php 
    }
}
Exemple #2
0
														<div class="panel-heading">Categories</div>
														<div class="panel-body">
														
																<?php 
if (sizeof($data->categories) > 0) {
    ?>
																		<ul class="list-group">
																				<?php 
    foreach ($data->categories as $category) {
        ?>
																						<li class="list-group-item">
																								<?php 
        MPut::_html($category->title);
        ?>
																								<button type="button" class="btn btn-xs btn-action" onclick=<?php 
        MPut::_js('new MContent().remove_category( \'' . $category->id . '\' );');
        ?>
 style="float: right;">Remove</button>
																						</li>
																				<?php 
    }
    ?>
																		</ul>
																<?php 
}
?>

																<select name="content_category" class="form-control input-sm" id="content_category">
																		<?php 
if (sizeof($categories) > 0) {
    ?>
Exemple #3
0
												<div class="panel-heading">Menus</div>
												<div class="panel-body">
														
														<?php 
if (sizeof($data->menus) > 0) {
    ?>
																<ul class="list-group">
																		<?php 
    foreach ($data->menus as $menu) {
        ?>
																				<li class="list-group-item">
																						<?php 
        MPut::_html($menu->title);
        ?>
																						<button type="button" class="btn btn-xs btn-action" onclick=<?php 
        MPut::_js('new MPage().remove_menu( \'' . $menu->id . '\' );');
        ?>
 style="float: right;">Remove</button>
																				</li>
																		<?php 
    }
    ?>
																</ul>
														<?php 
}
?>

														<select name="page_menu" class="form-control input-sm" id="page_menu">
																<?php 
if (sizeof($menus) > 0) {
    ?>