Notes ACCESS 2022 | Browsers | Css | Htacess | Html | Html5 | Javascript | Microsoft Excel | Mysql | Mysql Dumps | Php | Vb.net | VBscript | Windows <=8 | Windows >=10 | WP | WP Plugin | WP Themes | _Misc Software | ABCDEFGHIJKLMNOPQRSTUVWXYZONPRTOFF codeid operationid title keywords application code languageid show_html show_iframe make_public viewed viewed_date language operation <- Look Inside DataConditions:Order: 8 Language Operation Title Keywords Application Code Languageid Show Html Show Iframe Make Public Viewed Viewed Date WP Themes Archive Software Web Design Home Page Code page plugin ?? Executive Pro /public_html/SWDHome/wp-content/themes/executive-pro/pagesw.php <?php /** * Genesis Framework. * Template Name: SWpages * * WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances. * Please do all modifications in the form of a child theme. * * @package GenesisTemplates * @author StudioPress * @license GPL-2.0+ * @link http://my.studiopress.com/themes/genesis/ */ //* This file handles pages, but only exists for the sake of child theme forward compatibility. /* Moved to admin panel function include_link() { $_SESSION["LEVEL"]=10; echo"Access <a href='/admin31/LoginScreen.php?UR=s0ftw8r3&PD=w3bd3s1gn' target='NewWindow'>Secondary Admin</a>"; } */ function include_page() { global $page1;global $wpdb; global $row; $dirSW="/wp-content/themes/executive-pro"; switch($page1){ case 48: include(get_theme_root_uri()."/executive-pro/colorconvert.php");break; case 53: //InsertCodeSW($page1); break; //BEGIN OF NOTES BEGIN OF NOTES BEGIN OF NOTES BEGIN OF NOTES BEGIN OF NOTES BEGIN OF NOTES BEGIN OF NOTES BEGIN OF NOTES BEGIN OF NOTES BEGIN OF NOTES BEGIN OF NOTES $PDS_=$_GET['PDS_'];$PDS_ = ereg_replace('[^0-9]', '', $PDS_); $SB=$_GET["SB"]; $url=site_url()."?page_id=53&PDS_=$PDS_";$varView="?page_id=53&PDS_=$PDS_&SB=$SB"; $SB="`".$_GET["SB"]."`"; //compiled version: 1.2013.212.0512 function stripDESC($var1){ $m=strpos($var1,'DESC'); if($m>0)$var1=substr($var1,0,$m-1); return $var1; } function CreateLinks($inx,$num,$range,$ALPHA,$VIEW,$varView){ $ratio=(int)($num/$range);$start=1;$maxlinks=30; if($ratio<$num/$range)$ratio+=1; $end=$ratio; if($ratio>$maxlinks){ $start=$inx/$range-$maxlinks/2; if($start<1)$start=1; $end=$start+$maxlinks; if($end>$ratio){ $end=$ratio;$start=$end-$maxlinks; } } for($i=$start;$i<=$end;$i++){ switch($VIEW){ case 2: $submenu.="<A Href='$varView&INX=".($i-1)*$range."&NUM=$num&ALPHA=$ALPHA&VIEW=$VIEW'>$i</A>&nbsp;|&nbsp;"; break; default: $submenu.="<A Href='$varView&INX=".($i-1)*$range."&NUM=$num&ALPHA=$ALPHA&VIEW=$VIEW'>$i</A>&nbsp;|&nbsp;"; } } $dis1.=$submenu; return $dis1; } //include("../admin31/mystuff.php"); //include("../admin31/functions.php"); $varForm="codeForm.php"; // HEADER CODE HERE $prn=$_GET["prn"]; $AC=$_GET["AC"]; $AC = ereg_replace('[^0-9]', '', $AC); switch ($AC){ default: echo "<div id='swnotes' style='float:right;'>"; $sessionListSave='@'.$sessionListSave; $defaultSearchField="code.title"; $_SESSION["TABLENAME"]="code"; $INX=$_GET["INX"];$NUM=$_GET["NUM"];$ALPHA=$_GET["ALPHA"];$VIEW=$_GET["VIEW"];$report=$_GET["report"]; $BUTTON=$_POST['BUTTON'];$search1=$_POST["SEARCH"];$FID=$_POST["updaterecord"]; if($_POST["resetSM"]=="*")$search1="*"; if($_POST["resetLG"]=="**")$search1="**"; if($_GET['PDS_KILL']!='')$_SESSION['PDS_SAVE']=''; //if($PDS_!=''){ $_SESSION['PDS_SAVE']=$PDS_;$_SESSION['INX1']=$_GET['INX']; $_SESSION['NUM1']=$_GET['NUM']; $_SESSION['ALPHA1']=$_GET['ALPHA'] ; $_SESSION['VIEW1']=$_GET['VIEW'];$INX=0;$NUM=0;$ALPHA='';$VIEW=0; } //ELSE $PDS_=$_SESSION['PDS_SAVE']; // `Start Report` $sql="SELECT * FROM language ORDER BY language"; $rlang=mysql_query($sql);$numlang=mysql_numrows($rlang); for($i=1;$i<=$numlang;$i++){ $l=mysql_fetch_array($rlang); $lang[$l[0]]=$l[1]; } if($_SESSION["FIELDSAVE"]=="")$_SESSION["FIELDSAVE"]=$defaultSearchField; if($FID==""){ $FID=$_SESSION["FIELDSAVE"]; } else $_SESSION["FIELDSAVE"]=$FID; if($search1=="*" || $search1=="**"){ $_SESSION["SEARCHSAVE"]=""; if($search1=="**"){ $_SESSION['PDS_SAVE']="";$PDS_=""; } $search1=""; } if($search1==""){ $search1=$_SESSION["SEARCHSAVE"]; } else{ $INX="";$_SESSION["SEARCHSAVE"]=$search1; } if($_POST["inside_search"]=="on" || $_SESSION['INSIDE']=='on'){ $_SESSION['INSIDE']='on';$checked1='checked';$anywhere='%'; } //* Place in Alpha Choice ** if($prn==""){ for($i=65;$i<=90;++$i){ $dis1.="<a class='locate' href='$varView&VIEW=2&ALPHA=".chr($i)."'>".chr($i)."&nbsp;&nbsp;&nbsp;</a>"; } echo $dis1; // ** END ALPHA CHOICE ** // `Report Before Search` echo "<form name='search' method='post' action='$varView'><table width=300><tr>"; echo "<td class=search><input name='SEARCH' type='text' size=20 maxlength=60 value='".$search1."' title='** or * Reset Search.'> <input name='resetSM' type='submit' value='*'><input name='resetLG' type='submit' value='**'><br>"; echo "<select name='updaterecord' size=1>n"; if($FID=="code.title")$FID="code.title"; if($FID=='code.title')echo "<option selected value='code.title'>titlen"; else echo"<option value='code.title'>titlen"; if($FID=='code.code')echo "<option selected value='code.code'>coden"; else echo"<option value='code.code'>coden"; if($FID=='code.keywords')echo "<option selected value='code.keywords'>keywordsn"; else echo"<option value='code.keywords'>keywordsn"; // `Report Search Fields` echo"</select>n"; // `Report Search2` echo "<input name='BUTTON' type='submit' value='SEARCH'>&nbsp;&nbsp;<input type='checkbox' name='inside_search' title='Check me to look inside the data.' $checked1>&nbsp;&nbsp;Look inside data </form>"; // `Report Start Task` echo "</table>"; } //Form variables on update $maxrec=40;if($report==1 || $prn==1)$maxrec=500000; $table='';$terms='';$where='';$AND='WHERE'; $t1="operation";$tables.="$t1,"; $terms.="$t1.operation,"; if(strpos('|'.$where,'WHERE')>0)$AND="AND"; else if($AND=='')$AND="WHERE"; $where.=" $AND code.operationid=operation.operationid";$AND=' AND'; $t0="code";$tables.="$t0"; $terms.="$t0.codeid,$t0.operationid,$t0.title,$t0.code,$t0.keywords, $t0.languageid,$t0.show_html,$t0.make_public,$t0.viewed,$t0.viewed_date"; // `Report Terms` $cancel==false; // `Sql Report` if($PDS_!='' && $cancel==false){ $where.=" $AND $t0.languageid='$PDS_'";$AND='AND'; } if($SB=="``"){ $SB=$_SESSION["SORTBY"]; }else{ if($_SESSION["SORTBY"]==$SB)$SB=$SB." DESC"; $_SESSION["SORTBY"]=$SB; } if($SB=="``" || $SB=="")$sort="`operation`"; else{ $sort=$SB; // `Sort Report Header Links` } if($SB!=""){ $innerjoin=stripDESC($SB);$innerjoin=str_replace("`","",$innerjoin); if(strpos($terms,".".$innerjoin)==0){ $SB="``";$_SESSION["SORTBY"]="";$search1=""; $_SESSION["SEARCHSAVE"]=""; $sort='`operation`'; } } $innerjoin="SELECT $terms FROM $tables $where"; $countrecs="SELECT count(codeid) FROM $tables $where"; $whereAlpha="$AND $FID LIKE '$ALPHA%'"; if($FID!=''){ $whereSearch=" $AND $FID LIKE '".$anywhere.$search1."%'";$AND='AND'; } else { $whereSearch="$AND $FID LIKE '".$anywhere.$search1."%'";$AND='AND'; } if(strpos('|'.$search1,'=')==1){ if(strpos($innerjoin,'WHERE')==0)$AND='WHERE';$search1=substr($search1,1,strlen($search1)-1); $whereSearch=" $AND $search1";$AND='AND'; } $sortcount=0; $orderby=" ORDER BY $sort"; // `Sql Where` append to innerjoin //*************** START REPORT VIEWS ========================== switch($VIEW){ case 2: //======= REPORT ALPHA ========== $whereSearch=str_replace('WHERE','AND',$whereSearch); switch($INX){ case '': $query=$innerjoin.$whereAlpha.$whereSearch; $INX=0; default: $query=$innerjoin.$whereAlpha.$whereSearch." ORDER BY $sort LIMIT ".$INX.",".$maxrec; } $query2=$countrecs.$whereAlpha.$whereSearch; break; // ============= END ALPAHA ================================== default: // next VIEW switch($search1){ case ''://no search used switch($INX){ case '': $query=$innerjoin; $INX=0; default: $query=$innerjoin.$orderby." LIMIT ".$INX.",".$maxrec; } $query2=$countrecs; break; default://SEARCH USED HERE switch($INX){ case '': $query=$innerjoin.$whereSearch; $INX=0; default: $query=$innerjoin.$whereSearch.$orderby." LIMIT ".$INX.",".$maxrec; } $query2=$countrecs.$whereSearch; break; } // end search } // end report $result2=mysql_query($query2); $row2=mysql_fetch_array($result2);$NUM=$row2[0]; $result99=mysql_query($query); $numcode=mysql_numrows($result99); if($VIEW=='')$VIEW=0; if($report!=1){ if($prn==""){ if($NUM>$maxrec) echo CreateLinks($INX,$NUM,$maxrec,$ALPHA,$VIEW,$varView);$dis1=''; echo "<br><form action='$varForm?FORM=0&PID=$PID&INX=$INX&NUM=$NUM&ALPHA=$ALPHA&VIEW=$VIEW' method=post><input type=button value='Printer Friendly' onclick="location.href='$varView?ALPHA=$ALPHA&VIEW=$VIEW&prn=1'"></form>"; } } // == START PRINTING HEADERS OR CHECK FOR DATA REPORT ==== $width="style='width:900px;'"; $dis1.="<table border=1 class=view $width><tr>"; $dis1.="<td class=view ><a href='$varView&SB=languageid'>Languageid</a></td><td class=view><a href='$varView&SB=operation'>Operation</a></td> <td class=view ><a href='$varView&SB=title'>Title</a></td> <td class=view ><a href='$varView&SB=code'>Code</a></td> <td class=view ><a href='$varView&SB=keywords'>Keywords</a></td> <td class=view ><a href='$varView&SB=viewed'>Viewed</a></td><td>Details</td>"; // `Report Append Title` $dis1.="</tr>"; echo $dis1; $cnt=0;// =============== START PRINTING VALUES =========== for($i=1;$i<=$numcode;$i++){ $rcode=mysql_fetch_array($result99); $operation=stripslashes($rcode['operation']); $codeid=$rcode['codeid']; $operationid=$rcode['operationid']; $title=$rcode['title']; $title=stripslashes($title); $keywords=$rcode['keywords']; $keywords=stripslashes($keywords); $languageid=$rcode['languageid']; $show_html=$rcode['show_html']; $make_public=$rcode['make_public']; $viewed=$rcode['viewed']; $viewed_date=$rcode['viewed_date']; $code=$rcode['code']; if($show_html==1) { $code="<textarea rows=4 cols=40>".stripslashes($code)."</textarea>"; } else { $code="<textarea rows=4 cols=40>".stripslashes($code)."</textarea>"; } // `Report Format` if($class=='')$class='class=alt'; else $class=''; $cnt++;$dis.="n<tr $class>"; $dis.="<td class=view>$lang[$languageid]</td> <td class=view>$operation</td> <td class=view>$title</td> <td class=view>$code</td> <td class=view>$keywords</td> <td class=viewnumber align=right>$viewed</td><td class=view><a href='$varView&AC=1&PID=$codeid' name='$codeid'>Get Results</a></td> "; // `Report Append Variable` $dis.="</tr>"; //Generate Totals Here } echo "$dis</table></div>"; if($NUM>$maxrec) echo CreateLinks($INX,$NUM,$maxrec,$ALPHA,$VIEW,$varView); $urlreturn=$varView;if($_GET['URL']!='' || $_SESSION['URLSAVE']!=''){ if($_GET['URL']!=''){ $_SESSION['URLSAVE']=$_GET['URL']; } $urlreturn=$_SESSION['URLSAVE']; } // `End Report` break; case 1: $maxrec=40; $PID=$_GET["PID"]; $PID = ereg_replace('[^0-9]', '', $PID); $table='';$terms='';$where='';$AND=''; $t0="code";$tables.="$t0"; $terms.="$t0.codeid,$t0.title,$t0.code,$t0.show_html,$t0.make_public"; $where="WHERE codeid=$PID"; $innerjoin="SELECT $terms FROM $tables $where"; $query=$innerjoin; $result99=mysql_query($query);$num=mysql_numrows($result99); $dis1.="<div id='swnotes' style='width:880px;float:right;'>"; echo $dis1; $cnt=0;// =============== START PRINTING VALUES =========== for($i=1;$i<=$num;$i++){ $rcode=mysql_fetch_array($result99); $codeid=$rcode['codeid']; $show_html=$rcode['show_html']; $title=$rcode['title']; $title=stripslashes($title); //$code=stripslashes($code); if($show_html==0)$code="<textarea cols=100 rows=30>$code</textarea>"; $make_public=$rcode['make_public']; if($show_html==1) {$b[0]='checked'; $code=stripslashes($rcode['code']); $code=str_replace(chr(10),"<br>",$code); } else { $b[0]=''; $code="<textarea cols=60 rows=40>".stripslashes($rcode['code'])."</textarea>"; } if($make_public==1)$b[1]='checked'; else $b[1]=''; $dis1=array("show_html"=>"<input type='checkbox' name='show_html' ".$b[0].">","make_public"=>"<input type='checkbox' name='make_public' ".$b[1].">","bulldung"=>"scoopshovel"); //REPORT FORMAT here if($class=='')$class='class=alt'; else $class=''; $cnt++;$dis.="<h3>$title</h3>$code</td>"; $dis.=""; } echo $dis; echo "<p><input type=button name='return' value='Return' onclick="location.href='$varView#$PID';"></p></div>"; $sql="UPDATE code SET viewed=viewed+1, viewed_date='".date("Y-m-d")."' WHERE codeid=$codeid"; mysql_query($sql); break; } break; // END OF NOTES END OF NOTES END OF NOTES END OF NOTES END OF NOTES END OF NOTES END OF NOTES END OF NOTES END OF NOTES END OF NOTES END OF NOTES END OF NOTES case 89: InsertCodeSW($page1); break; default: echo admin_url()."<br>". site_url()."<br>". content_url()."<br>". includes_url()."<br>". wp_upload_dir()."<br>". get_template_directory_uri()."<br>". ABSPATH."<br>". get_theme_root_uri(); } } $page1=$post->ID; if(is_user_logged_in()){ add_action('genesis_before_sidebar_widget_area', 'include_link'); } add_action('genesis_entry_footer', 'include_page'); /* add_action('genesis_after_post_content', 'include_page'); function include_page() { global $wpdb; $page_id = genesis_get_custom_field('products'); $page_data = get_page( $page_id ); $title = $page_data->post_title; switch($page_data->ID){ case 69: echo "product prices coming soon"; break; default: echo "why are we here"; break; } } */ genesis(); WP Themes 1 12/22/2022 WP Themes Customizing Executive Pro Theme Html5 article header executive pro Genesis Framework [CSS Changes] // moves content on 2 column article{ width:825px; } //content to navigation separation .content { float: right; width: 900px; padding: 40px 60px 10px; padding: 0.5rem 6rem 0.5rem; } Width of the overall container .site-container { margin: 0 auto; width: 1140px; } I just bloated the rest of css reference to keep from shrinking when resizing window @media only screen and (max-width: 1200px) { .site-container { max-width: 1960px; } @media only screen and (max-width: 1023px) { .site-container { max-width: 1768px; } @media only screen and (max-width: 767px) { .site-container { max-width: 1600px; } WP Themes 1287 09/09/2023 WP Themes Customizing Genesis Loop Hooks Comparison loop hooks html5 xhtml Genesis Framework Genesis Loop Hooks Comparison Below is a comparison chart for the loop hooks in Genesis 1.0+ themes vs. the new loop hooks in Genesis 2.0+ themes. Before Entry XHTML Hook Location --- HTML5 Hook Location genesis_before_post --- genesis_before_entry Entry Header XHTML Hook Location --- HTML5 Hook Location genesis_before_post_title --- genesis_entry_header genesis_post_title --- genesis_entry_header genesis_after_post_title --- genesis_entry_header genesis_before_post_content --- genesis_entry_header Entry Content XHTML Hook Location --- HTML5 Hook Location genesis_post_content --- genesis_entry_content Entry Footer XHTML Hook Location --- HTML5 Hook Location genesis_after_post_content --- genesis_entry_footer After Entry XHTML Hook Location --- HTML5 Hook Location genesis_after_post --- genesis_after_entry WP Themes 1644 09/09/2023 WP Themes Formatting How To Create A Custom Landing Page Template Genesis Framework genesis remove_action template genesis_ remove page content Genesis Framework Creating page templates in Genesis is fairly easy. All you need to do is copy an existing page template like the page_landing.php file and make changes to the code in the file. By default, most landing page templates generate a content area which is fairly narrow which you can change in your themes style.css file or use this code to create a new one. In this tutorial, i’ll show you how to create both a full width landing template and a narrow width template for people who use the Genesis design framework. Wide Landing Page Template Simply create a new file using a code editor like Notepad++ and name it something like page_custom.php. Paste in this code and upload the new file to your themes folder. Here’s what the above code produces using the Metro child theme by StudioPress: You can style your landing page using the new custom class generated by this code. Narrow Landing Page Template The CSS code below creates a template with a narrow content area otherwise use the PHP code above without any styling. .custom-landing #wrap { max-width: 500px; } .custom-landing #inner { padding-top: 0; } After adding the above CSS code, here’s the result: Adjust Width Simply use this code in your child themes style.css file to adjust the width of your landing page content area by percentage: .custom-landing #wrap { max-width: 100%; } Premium Landing Page Plugins http://wpsites.net/web-design/how-to-create-a-custom-landing-page-template-for-genesis/ WP Themes 1153 09/09/2023 WP Themes Formatting Register Widget Areas In Your Admin Cpanel Genesis Framework widget areas register add_theme_support CHILD_THEME_NAME genesis_unregister_layout genesis_register_ Genesis Framework Creating a child themes functions.php: 'Gray', 'associate-green' => 'Green', 'associate-red' => 'Red' ) ); /** Child theme (do not remove) */ define( 'CHILD_THEME_NAME', 'Associate Theme' ); define( 'CHILD_THEME_URL', 'http://www.studiopress.com/themes/associate' ); $content_width = apply_filters( 'content_width', 580, 0, 910 ); /** Unregister 3-column site layouts */ genesis_unregister_layout( 'content-sidebar-sidebar' ); genesis_unregister_layout( 'sidebar-sidebar-content' ); genesis_unregister_layout( 'sidebar-content-sidebar' ); /** Add new featured image sizes */ add_image_size( 'home-bottom', 150, 130, TRUE ); add_image_size( 'home-middle', 287, 120, TRUE ); /** Add suport for custom background */ add_custom_background(); /** Add support for custom header */ add_theme_support( 'genesis-custom-header', array( 'width' => 960, 'height' => 120 ) ); /** Add support for structural wraps */ add_theme_support( 'genesis-structural-wraps', array( 'header', 'nav', 'subnav', 'inner', 'footer-widgets', 'footer' ) ); /** Add support for 3-column footer widgets */ add_theme_support( 'genesis-footer-widgets', 3 ); /** Register widget areas */ genesis_register_sidebar( array( 'id' => 'featured', 'name' => __( 'Featured', 'associate' ), 'description' => __( 'This is the featured section.', 'associate' ), ) ); genesis_register_sidebar( array( 'id' => 'home-middle-1', 'name' => __( 'Home Middle #1', 'associate' ), 'description' => __( 'This is the first column of the home middle section.', 'associate' ), ) ); genesis_register_sidebar( array( 'id' => 'home-middle-2', 'name' => __( 'Home Middle #2', 'associate' ), 'description' => __( 'This is the second column of the home middle section.', 'associate' ), ) ); genesis_register_sidebar( array( 'id' => 'home-middle-3', 'name' => __( 'Home Middle #3', 'associate' ), 'description' => __( 'This is the third column of the home middle section.', 'associate' ), ) ); genesis_register_sidebar( array( 'id' => 'home-bottom-1', 'name' => __( 'Home Bottom #1', 'associate' ), 'description' => __( 'This is the first column of the home bottom section.', 'associate' ), ) ); genesis_register_sidebar( array( 'id' => 'home-bottom-2', 'name' => __( 'Home Bottom #2', 'associate' ), 'description' => __( 'This is the second column of the home bottom section.', 'associate' ), ) ); WP Themes 764 09/09/2023 WP Themes Function List Of Hooks That Have Been Added To The Genesis Framework: hooks genesis wordpress Genesis Framework genesis_pre This is the first hook to execute within Genesis. Think of any function hooked to it as being executed before any Genesis functions have loaded. genesis_pre_framework This hook executes immediately before any of the Genesis Framework components have been loaded, but after all the constants have been defined. genesis_init This hook fires at the end of the /lib/init.php file. Think of any function hooked to it as being executed after all Genesis functions have loaded, but before any custom code in the child functions.php file is run. genesis_title This hook executes between tags and outputs the doctitle. You can find all doctitle related code in /lib/structure/header.php. genesis_meta This hook executes in the section of the document source. By default, things like META descriptions and keywords are output using this hook, along with the default stylesheet and the reference to the favicon. genesis_before This hook executes immediately after the opening tag in the document source. genesis_after This hook executes immediately before the closing tag in the document source. genesis_before_header This hook executes immediately before the header (outside the #header div). genesis_header By default, this hook outputs the header code, including the title, description, and widget area (if necessary). genesis_after_header This hook executes immediately after the header (outside the #header div). genesis_site_title By default, this hook outputs the site title, within the header area. It uses the user-specified SEO settings to build the site title markup appropriately. genesis_site_description By default, this hook outputs the site description, within the header area. It uses the user-specified SEO settings to build the site description markup appropriately. genesis_before_content_sidebar_wrap This hook executes immediately before the div block that wraps the content and the primary sidebar (outside the #content-sidebar-wrap div). genesis_after_content_sidebar_wrap This hook executes immediately after the div block that wraps the content and the primary sidebar (outside the #content-sidebar-wrap div). genesis_before_content This hook executes immediately before the content column (outside the #content div). genesis_after_content This hook executes immediately after the content column (outside the #content div). genesis_sidebar This hook outputs the content of the primary sidebar, including the widget area output. genesis_before_sidebar_widget_area This hook executes immediately before the primary sidebar widget area (inside the #sidebar div). genesis_after_sidebar_widget_area This hook executes immediately after the primary sidebar widget area (inside the #sidebar div). genesis_sidebar_alt This hook outputs the content of the secondary sidebar, including the widget area output. genesis_before_sidebar_alt_widget_area This hook executes immediately before the alternate sidebar widget area (inside the #sidebar-alt div). genesis_after_sidebar_alt_widget_area This hook executes immediately after the alternate sidebar widget area (inside the #sidebar-alt div). genesis_before_footer This hook executes immediately before the footer, outside the #footer div. genesis_footer This hook, by default, outputs the content of the footer, including the #footer div wrapper. genesis_after_footer This hook executes immediately after the footer, outside the #footer div. genesis_before_loop This hook executes immediately before all loop blocks. Therefore, this hook falls outside the loop, and cannot execute functions that require loop template tags or variables. genesis_loop This hook outputs the actual loop. See lib/structure/loop.php and lib/structure/post.php for more details. genesis_after_loop This hook executes immediately after all loop blocks. Therefore, this hook falls outside the loop, and cannot execute functions that require loop template tags or variables. genesis_after_endwhile This hook executes after the endwhile; statement in all loop blocks. genesis_loop_else This hook executes after the else : statement in all loop blocks. genesis_before_entry (HTML5) This hook executes before each entry in all loop blocks (outside the post_class() container). genesis_after_entry (HTML5) This hook executes after each entry in all loop blocks (outside the post_class() container). genesis_entry_header (HTML5) This hook executes before the entry content and generates the entry header content in all loop blocks. genesis_before_entry_content (HTML5) This hook executes before the .entry-content container in all loop blocks. genesis_entry_content (HTML5) This hook executes within the .entry-content container in all loop blocks. genesis_after_entry_content (HTML5) This hook executes after the .entry-content container in all loop blocks. genesis_entry_footer (HTML5) This hook executes after the entry content and generates the entry footer content in all loop blocks. genesis_before_post (XHTML) This hook executes before each post in all loop blocks (outside the post_class() div). genesis_after_post (XHTML) This hook executes after each post in all loop blocks (outside the post_class() div). genesis_before_post_title (XHTML) This hook executes immediately before each post title for each post within the loop. genesis_post_title (XHTML) This hook outputs the actual post title, contextually, based on what type of page you are viewing. genesis_after_post_title (XHTML) This hook executes immediately after each post title for each post within the loop. genesis_before_post_content (XHTML) This hook executes immediately before the post/page content is output, outside the .entry-content div. genesis_post_content (XHTML) This hook outputs the actual post content and if chosen, the post image (inside the #content div). genesis_after_post_content (XHTML) This hook executes immediately after the post/page content is output, outside the .entry-content div. genesis_before_comments This hook executes immediately before the comments block (outside the #comments div). genesis_comments This hook outputs the entire comments block, including the section title. It also executes the genesis_list_comments hook, which outputs the comment list. genesis_after_comments This hook executes immediately after the comments block (outside the #comments div). genesis_list_comments This hook executes inside the comments block, inside the .comment-list OL. By default, it outputs a list of comments associated with a post via the genesis_default_list_comments() function. genesis_before_pings This hook executes immediately before the pings block (outside the #pings div). genesis_pings This hook outputs the entire pings block, including the section title. It also executes the genesis_list_pings hook, which outputs the ping list. genesis_after_pings This hook executes immediately after the pings block (outside the #pings div). genesis_list_pings This hook executes inside the pings block, inside the .ping-list OL. By default, it outputs a list of pings associated with a post via the genesis_default_list_pings() function. genesis_before_comment This hook executes before the output of each individual comment (author, meta, comment text). genesis_after_comment This hook executes after the output of each individual comment (author, meta, comment text). genesis_before_comment_form This hook executes immediately before the comment form, outside the #respond div. genesis_comment_form This hook outputs the actual comment form, including the #respond div wrapper. genesis_after_comment_form This hook executes immediately after the comment form, outside the #respond div WP Themes 1333 09/09/2023 WP Themes Function Genesis Hooks genesis framework hooks Genesis Framework The full hook layout can be found on the My StudioPress site. There are a lot of great articles over there explaining some keys to working with Genesis.Here is a simplified reference in the order the hooks load, starting with the hooks that load the actual frameworkgenesis_pregenesis_pre_frameworkgenesis_init header.php genesis_titlegenesis_metagenesis_beforegenesis_before_headergenesis_header genesis_site_titlegenesis_site_descriptiongenesis_after_headerframework.php genesis_before_content_sidebar_wrapgenesis_before_contentgenesis_before_loopgenesis_loop genesis_before_postgenesis_before_post_titlegenesis_post_titlegenesis_after_post_titlegenesis_before_post_contentgenesis_post_contentgenesis_after_post_contentgenesis_after_post genesis_before_commentsgenesis_comments genesis_list_commentsgenesis_before_pingsgenesis_pings genesis_list_pingsgenesis_after_pingsgenesis_before_commentgenesis_after_commentgenesis_before_comment_formgenesis_comment_formgenesis_after_comment_formgenesis_after_endwhilegenesis_loop_elsegenesis_after_loopgenesis_after_content genesis_sidebar genesis_before_sidebar_widget_areagenesis_after_sidebar_widget_areagenesis_sidebar_alt genesis_before_sidebar_alt_widget_areagenesis_after_sidebar_alt_widget_areagenesis_after_sidebar_content_wrapfooter.php genesis_before_footergenesis_footergenesis_after_footergenesis_afterWow, that’s a lot of hooks. Each on of those can have additional functions added. just a few lines of code can move entire sections of the site around. The next part in the series will be about actions. After that I’ll explain how to read the Genesis files to lear how to quickly find the right code to copy into your theme for editing. WP Themes 601 09/09/2023 WP Themes Function Genesis Functions genesis functions Genesis Framework Genesis FunctionsA list of genesis functionsgenesis_site_layoutFebruary 5, 2011 by Christopher Returns the site layout for different contexts.genesis_get_default_layoutFebruary 5, 2011 by Christopher genesis_get_layoutFebruary 5, 2011 by Christopher genesis_get_layoutsFebruary 5, 2011 by Christopher genesis_unregister_layoutFebruary 5, 2011 by Christopher genesis_set_default_layoutFebruary 5, 2011 by Christopher genesis_register_layoutFebruary 5, 2011 by Christopher This function registers new layouts by modifying the global $_genesis_layouts variable. Usage Parameters $layout_name (required) The name of the layout. $args An array of Arguments. Arguments label Actual name that is displayed in the admin area to select a layout. Default: No Label Selected img Image to be displayed when selecting layout on post page. […]genesis_create_initial_layoutsFebruary 5, 2011 by Christopher genesis_navFebruary 5, 2011 by Christopher genesis_get_term_filterFebruary 5, 2011 by Christopher genesis_get_custom_fieldFebruary 5, 2011 by Christopher genesis_custom_fieldFebruary 5, 2011 by Christopher genesis_seo_optionFebruary 5, 2011 by Christopher genesis_get_seo_optionFebruary 5, 2011 by Christopher genesis_optionFebruary 5, 2011 by Christopher genesis_get_optionFebruary 5, 2011 by Christopher genesis_user_meta_saveFebruary 5, 2011 by Christopher genesis_user_seo_fieldsFebruary 5, 2011 by Christopher genesis_term_meta_saveFebruary 5, 2011 by Christopher genesis_add_taxonomy_seo_optionsFebruary 5, 2011 by Christopher genesis_inpost_seo_saveFebruary 5, 2011 by Christopher genesis_add_inpost_seo_boxFebruary 5, 2011 by Christopher rel_canonicalFebruary 5, 2011 by Christopher genesis_canonicalFebruary 5, 2011 by Christopher genesis_robots_metaFebruary 5, 2011 by Christopher genesis_seo_meta_keywordsFebruary 5, 2011 by Christopher genesis_seo_meta_descriptionFebruary 5, 2011 by Christopher genesis_doc_head_controlFebruary 5, 2011 by Christopher genesis_default_titleFebruary 5, 2011 by Christopher genesis_disable_scribe_nagFebruary 5, 2011 by Christopher genesis_scribe_nagFebruary 5, 2011 by Christopher genesis_seo_compatibility_checkFebruary 5, 2011 by Christopher genesis_clear_update_transientFebruary 5, 2011 by Christopher genesis_update_pushFebruary 5, 2011 by Christopher genesis_update_emailFebruary 5, 2011 by Christopher genesis_update_nagFebruary 5, 2011 by Christopher genesis_update_action_linksFebruary 5, 2011 by Christopher genesis_upgraded_noticeFebruary 5, 2011 by Christopher genesis_upgradeFebruary 5, 2011 by Christopher genesis_update_checkFebruary 5, 2011 by Christopher genesis_register_sidebarFebruary 5, 2011 by Christopher Description This function expedites the widget area registration process by taking common things, before/after_widget, before/after_title, and doing them automatically. Usage Parameters name – Sidebar name. id – Sidebar id – Must be all in lowercase, with no spaces. description – Text description of what/where the sidebar is. Shown on widget management screen. (Since 2.9) before_widget […]genesis_get_imageDecember 19, 2010 by Christopher Info: Pulls an image from the media gallery and returns it. Since: 0.1 Function:genesis_get_image($args = array())genesis_load_faviconDecember 2, 2010 by Christopher Info: This function looks for a favicon. If it finds one, it will output the proper code in the Since: 0.2.2 Function Contents: Function Info: apply_filters() Filter Info: genesis_pre_load_favicon, genesis_favicon_url WP Themes 702 09/09/2023
genesis_register_layoutFebruary 5, 2011 by Christopher This function registers new layouts by modifying the global $_genesis_layouts variable. Usage Parameters $layout_name (required) The name of the layout. $args An array of Arguments. Arguments label Actual name that is displayed in the admin area to select a layout. Default: No Label Selected img Image to be displayed when selecting layout on post page. […]
genesis_register_sidebarFebruary 5, 2011 by Christopher Description This function expedites the widget area registration process by taking common things, before/after_widget, before/after_title, and doing them automatically. Usage Parameters name – Sidebar name. id – Sidebar id – Must be all in lowercase, with no spaces. description – Text description of what/where the sidebar is. Shown on widget management screen. (Since 2.9) before_widget […]
genesis_get_imageDecember 19, 2010 by Christopher Info: Pulls an image from the media gallery and returns it. Since: 0.1 Function:genesis_get_image($args = array())
genesis_load_faviconDecember 2, 2010 by Christopher Info: This function looks for a favicon. If it finds one, it will output the proper code in the Since: 0.2.2 Function Contents: Function Info: apply_filters() Filter Info: genesis_pre_load_favicon, genesis_favicon_url