Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recaptcha Module and tweaked forms/form_model #14

Open
wants to merge 31 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
758a67b
Modified new_response function:
josev814 Oct 15, 2015
84da948
Adding ReCaptcha Module to allow forms to have ReCaptcha 2 implemented.
josev814 Oct 15, 2015
d006904
Courtesy of eckleyval
josev814 Oct 15, 2015
1409f0c
Courtesy of eckleyval
josev814 Oct 15, 2015
85a5990
Integrated all Electric Function Modules into Hero, so it's all centr…
josev814 Oct 15, 2015
9f9b88b
Updated and removed links
josev814 Oct 15, 2015
e9bd3ba
Updated the Twitter Model to use Bitly for a url shortener, and added…
josev814 Oct 16, 2015
713fb1f
Modified the Twitter file to create a table for all of the tweets sen…
josev814 Oct 16, 2015
97ae73d
Adding missing debug.tpl for Smarty when using {debug} within the the…
josev814 Oct 19, 2015
c05c276
Added tweets sent into the Live Site Activity if the module is installed
josev814 Oct 19, 2015
3ffbcd1
Modified the Live Site Activity so that the Twitter keyword would red…
josev814 Oct 20, 2015
783b4d0
Added functions to be able to see the tweet log which is located in t…
josev814 Oct 20, 2015
101e2cd
Modified the function.menu.php file to include child_class in order t…
josev814 Oct 22, 2015
5516d4b
Added child_class information to the example and child sub-menus info…
josev814 Oct 22, 2015
30ba573
Moved the datePicker down a little from the input field.
josev814 Oct 22, 2015
e4636e6
josev814 Oct 22, 2015
43124ed
added the option of unpublish_date and content status' for enabled/di…
josev814 Oct 22, 2015
9a21ed4
added unpublish and content status options to the admincp controller …
josev814 Oct 22, 2015
0cceb8c
added a new db version for modules/publish to allow unpublish and con…
josev814 Oct 22, 2015
c3ee664
josev814 Oct 22, 2015
ad93201
added a readonly attribute so that we can mark a text field as readon…
josev814 Oct 22, 2015
bfa82b4
added readonly function and variable
josev814 Oct 22, 2015
191ebf9
Added a cron hook into publish
josev814 Oct 22, 2015
770b6d9
Modified line 717 to only filter Enabled records if the user isn't in…
josev814 Oct 22, 2015
07c6522
Merge pull request #1 from electricfunction/master
josev814 Oct 26, 2015
de7786d
Added Copy links for content.php, content_non_standard.php, content_s…
josev814 Oct 28, 2015
9150548
Added copy function to admincp in order to resolve Issue Request #4 o…
josev814 Oct 29, 2015
b66e348
Added Custom 404 Pages for templates
josev814 Oct 29, 2015
16b9d94
Merge pull request #2 from electricfunction/master
josev814 Oct 30, 2015
8cf858e
Line 263 was missing a ` to finish naming the orders table on a Trunc…
josev814 Nov 23, 2015
0acac80
changing the creation of hashed passwords to a method call, so it's n…
josev814 Aug 18, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Hero Framework
====

[Hero](http://www.heroframework.com) is a powerful Content Management System (CMS) and eCommerce framework built on CodeIgniter.
Hero is a powerful Content Management System (CMS) and eCommerce framework built on CodeIgniter.

## Documentation

Expand All @@ -27,11 +27,11 @@ If you experience issues, please review the full Server Requirements article in

## Documentation

* There is a full [user guide with designer, developer, and user documentation](http://www.heroframework.com/user_guide)
* There is a full [user guide with designer, developer, and user documentation](https://web.archive.org/web/20140920204221/http://www.heroframework.com/user_guide/index.html)

## eCommerce

[Hero eCommerce](http://www.github.com/electricfunction/hero-ecommerce) is a free, open-source collection of modules that drop right into your
Hero eCommerce is a free, open-source collection of modules that drop right into your
Hero installation and provide you with online store, subscription billing, paywall, and coupon functionality.

## History
Expand Down
5 changes: 4 additions & 1 deletion app/config/default_routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@
$route['checkout'] = 'billing/checkout';
$route['checkout/([a-zA-Z_-]+)'] = 'billing/checkout/$1';
$route['subscriptions'] = 'billing/subscriptions';
$route['subscriptions/(:any)'] = 'billing/subscriptions/$1';
$route['subscriptions/(:any)'] = 'billing/subscriptions/$1';

// 404 route
$route['404_override'] = 'error/view';
14 changes: 14 additions & 0 deletions app/controllers/admincp/dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,20 @@ function activity () {
}
}

if (module_installed('twitter')) {
// ... published to twitter
$result = $this->db->select('tweet')
->select('sent_time')
->from('tweets_sent')
->order_by('sent_time','DESC')
->limit(10)
->get();

foreach ($result->result_array() as $tweets) {
$activity[strtotime($tweets['sent_time'])] = $tweets['tweet'] . ' was tweeted on <a href="' . site_url('admincp/twitter/tweet_logs') . '">Twitter</a>';
}
}

// ... published content
$result = $this->db->select('content.content_id')
->select('user_first_name')
Expand Down
137 changes: 137 additions & 0 deletions app/libraries/smarty/debug.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
{capture name='_smarty_debug' assign=debug_output}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Smarty Debug Console</title>
<style type="text/css">
{literal}
body, h1, h2, td, th, p {
font-family: sans-serif;
font-weight: normal;
font-size: 0.9em;
margin: 1px;
padding: 0;
}

h1 {
margin: 0;
text-align: left;
padding: 2px;
background-color: #f0c040;
color: black;
font-weight: bold;
font-size: 1.2em;
}

h2 {
background-color: #9B410E;
color: white;
text-align: left;
font-weight: bold;
padding: 2px;
border-top: 1px solid black;
}

body {
background: black;
}

p, table, div {
background: #f0ead8;
}

p {
margin: 0;
font-style: italic;
text-align: center;
}

table {
width: 100%;
}

th, td {
font-family: monospace;
vertical-align: top;
text-align: left;
width: 50%;
}

td {
color: green;
}

.odd {
background-color: #eeeeee;
}

.even {
background-color: #fafafa;
}

.exectime {
font-size: 0.8em;
font-style: italic;
}

#table_assigned_vars th {
color: blue;
}

#table_config_vars th {
color: maroon;
}

{/literal}
</style>
</head>
<body>

<h1>Smarty Debug Console
- {if isset($template_name)}{$template_name|debug_print_var nofilter}{else}Total Time {$execution_time|string_format:"%.5f"}{/if}</h1>

{if !empty($template_data)}
<h2>included templates &amp; config files (load time in seconds)</h2>
<div>
{foreach $template_data as $template}
<font color=brown>{$template.name}</font>
<span class="exectime">
(compile {$template['compile_time']|string_format:"%.5f"}) (render {$template['render_time']|string_format:"%.5f"}) (cache {$template['cache_time']|string_format:"%.5f"}
)
</span>
<br>
{/foreach}
</div>
{/if}

<h2>assigned template variables</h2>

<table id="table_assigned_vars">
{foreach $assigned_vars as $vars}
<tr class="{if $vars@iteration % 2 eq 0}odd{else}even{/if}">
<th>${$vars@key|escape:'html'}</th>
<td>{$vars|debug_print_var nofilter}</td>
</tr>
{/foreach}
</table>

<h2>assigned config file variables (outer template scope)</h2>

<table id="table_config_vars">
{foreach $config_vars as $vars}
<tr class="{if $vars@iteration % 2 eq 0}odd{else}even{/if}">
<th>{$vars@key|escape:'html'}</th>
<td>{$vars|debug_print_var nofilter}</td>
</tr>
{/foreach}

</table>
</body>
</html>
{/capture}
<script type="text/javascript">
{$id = $template_name|default:''|md5}
_smarty_console = window.open("", "console{$id}", "width=680,height=600,resizable,scrollbars=yes");
_smarty_console.document.write("{$debug_output|escape:'javascript' nofilter}");
_smarty_console.document.close();
</script>
Loading