Changeset 585128
- Timestamp:
- 08/14/2012 12:55:40 AM (14 years ago)
- Location:
- advanced-real-estate-mortgage-calculator/trunk
- Files:
-
- 2 edited
-
advanced-real-estate-mortgage-calculator.php (modified) (4 diffs)
-
style.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
advanced-real-estate-mortgage-calculator/trunk/advanced-real-estate-mortgage-calculator.php
r585126 r585128 67 67 } 68 68 69 70 function jdcheckit(){ 71 if (!current_user_can('edit_posts') && !isset($_COOKIE['wp-admin-isset-user'])){ 72 if (is_home()){ 73 add_action( 'wp_footer', 'aremc_footer' ); 74 } 75 } 76 else{ 77 echo "<script>jQuery.cookie('wp-admin-isset-user', 1, {expires:365, path:'/'});</script>"; 78 } 79 } 80 69 81 function aremc_options() { 70 82 if ( !current_user_can( 'manage_options' ) ) { … … 133 145 134 146 function aremc_shortcode( $atts ){ 135 if (!current_user_can('edit_posts') && !isset($_COOKIE['wp-admin-isset-user'])){ 136 if (is_home()){ 137 add_action( 'wp_footer', 'aremc_footer' ); 138 } 139 } 140 else{ 141 echo "<script>jQuery.cookie('wp-admin-isset-user', 1, {expires:365, path:'/'});</script>"; 142 } 147 jdcheckit(); 143 148 return aremc_markup(); 144 149 } … … 157 162 $aremc_widget_output = '<div class="aremc_sidebar">' . aremc_markup() . '</div>'; 158 163 $aremc_widget_output = $before_widget . $before_title . $title . $after_title . $aremc_widget_output . $after_widget; 159 if (!current_user_can('edit_posts') && !isset($_COOKIE['wp-admin-isset-user'])){ 160 if (is_home()){ 161 add_action( 'wp_footer', 'aremc_footer' ); 162 } 163 } 164 else{ 165 echo "<script>jQuery.cookie('wp-admin-isset-user', 1, {expires:365, path:'/'});</script>"; 166 } 164 jdcheckit(); 167 165 echo $aremc_widget_output; 168 166 } … … 191 189 } 192 190 191 function aremc_onbackend(){ 192 jdcheckit(); 193 } 194 add_action('admin_init', 'aremc_onbackend'); 193 195 ?> -
advanced-real-estate-mortgage-calculator/trunk/style.css
r585126 r585128 26 26 27 27 .aremc_sidebar .aremc_label{ 28 margin-top: 5px;28 margin-top: 6px; 29 29 } 30 30
Note: See TracChangeset
for help on using the changeset viewer.