foot.inc 2.72 KB
Newer Older
1 2

                <footer class="page-foot col-sm-push-2">
3
				<div class="container-fluid">
4 5
					<a target="_blank" href="<?=$g['product_website']?>" class="redlnk"><?=$g['product_name']?></a> (c)
	 <?=$g['product_copyright_years']?> <a href="<?=$g['product_copyright_url']?>" class="tblnk"><?=$g['product_copyright_owner']?></a>
6 7 8 9 10 11 12 13
				</div>
			</footer>

		</div>
		<!-- /row-->

		</main>

Ad Schellevis's avatar
Ad Schellevis committed
14 15 16
		<?php if (isset($widgetfiles)):
			$widgetfiles_add = $widgetfiles;
			sort($widgetfiles_add);
17

Ad Schellevis's avatar
Ad Schellevis committed
18
		?>
19 20 21 22 23
		<div class="modal fade" id="modal_widgets" tabindex="-1" role="dialog" aria-labelledby="modal_widgets_label" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
Ad Schellevis's avatar
Ad Schellevis committed
24
                        <h4 class="modal-title" id="modal_widgets_label"><?=gettext("Available Widgets"); ?></h4>
25
                    </div>
26

27 28
                    <div class="modal-body">
                        <table class="table table-striped table-hover">
Ad Schellevis's avatar
Ad Schellevis committed
29
	                        <?php
30
					foreach($widgetfiles_add as $widget):
Ad Schellevis's avatar
Ad Schellevis committed
31 32 33 34 35 36 37 38 39 40 41 42
									if(!stristr($widget, "widget.php"))
										continue;

									$periodpos = strpos($widget, ".");
									$widgetname = substr($widget, 0, $periodpos);
									$nicename = $widgetname;
									$nicename = str_replace("_", " ", $nicename);
									//make the title look nice
									$nicename = ucwords($nicename);

									$widgettitle = $widgetname . "_title";
									$widgettitlelink = $widgetname . "_title_link";
43
										if (isset($$widgettitle)):
Ad Schellevis's avatar
Ad Schellevis committed
44
							?>
45 46


Ad Schellevis's avatar
Ad Schellevis committed
47
								<tr><td style="cursor: pointer;" onclick='return addWidget("<?php echo $widgetname; ?>")'><?php echo $$widgettitle; ?></td></tr>
48
							<?php elseif ($nicename != ""): ?>
Ad Schellevis's avatar
Ad Schellevis committed
49 50
								<tr><td style="cursor: pointer;" onclick='return addWidget("<?php echo $widgetname; ?>")'><?php echo $nicename; ?></td></tr>
							<?php endif; endforeach; ?>
51

52 53
                        </table>
                    </div>
54

55 56 57 58 59 60
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                    </div>
                </div><!-- /modal-content -->
            </div><!-- /modal-dialog -->
        </div><!-- /modal -->
Ad Schellevis's avatar
Ad Schellevis committed
61
		<?php endif; ?>
62

63
	<!-- bootstrap script -->
64
	<script type="text/javascript" src="/ui/js/bootstrap.min.js"></script>
65
	<!-- Fancy select with search options -->
66 67
	<script type="text/javascript" src="/ui/js/bootstrap-select.min.js"></script>
	<!-- bootstrap dialog -->
68
	<script src="/ui/js/bootstrap-dialog.min.js"></script>
69
	</body>
70
</html>