foot.inc 2.51 KB
Newer Older
1 2

                <footer class="page-foot col-sm-push-2">
3 4
				<div class="container-fluid">
					<a target="_blank" href="<?=$g['product_website_footer']?>" class="redlnk"><?=$g['product_name']?></a> is &copy;
Ad Schellevis's avatar
Ad Schellevis committed
5
	 <?=$g['product_copyright_years']?> by <a href="<?=$g['product_copyright_url']?>" class="tblnk"><?=$g['product_copyright']?></a> All Rights Reserved.
6 7 8 9 10 11 12 13 14
	[<a href="/license.php" class="tblnk">view license</a>]
				</div>
			</footer>

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

		</main>

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

Ad Schellevis's avatar
Ad Schellevis committed
19
		?>
20 21 22 23 24
		<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
25
                        <h4 class="modal-title" id="modal_widgets_label"><?=gettext("Available Widgets"); ?></h4>
26
                    </div>
27

28 29
                    <div class="modal-body">
                        <table class="table table-striped table-hover">
Ad Schellevis's avatar
Ad Schellevis committed
30
	                        <?php
31
					foreach($widgetfiles_add as $widget):
Ad Schellevis's avatar
Ad Schellevis committed
32 33 34 35 36 37 38 39 40 41 42 43 44 45
									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";
										if ($$widgettitle != ""):
							?>
46 47


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

53 54
                        </table>
                    </div>
55

56 57 58 59 60 61
                    <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
62
		<?php endif; ?>
63

64
	</body>
65
</html>