Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help me plugin gallery images
#5
This is using the Cardinal theme as an example. You will need to use an ftp program like Filezilla.
In your site's directory:
yourdomain.com/theme/Cardinal/template.php Download this file, rename it to contact-form.php or something, and open it in something like notepad++(notepad is fine but this is what i prefer)
Code:
<?php if(!defined('IN_GS')){ die('you cannot load this page directly.'); }
/****************************************************
*
* @File:             template.php
* @Package:        GetSimple
* @Action:        Cardinal theme for the GetSimple CMS
*
*****************************************************/
?>
<!DOCTYPE html>
<html>
<head>

    <!-- Site Title -->
    <title><?php get_page_clean_title(); ?> &lt; <?php get_site_name(); ?></title>
    <?php get_header(); ?>
    <meta name="robots" content="index, follow" />
    <link rel="stylesheet" type="text/css" href="<?php get_theme_url(); ?>/style.css" media="all" />

</head>
<body id="<?php get_page_slug(); ?>" >

<div id="wrapper">

    <div id="header">
        
        <ul id="nav">
            <?php get_navigation(return_page_slug()); ?>
        </ul>
        
        <span class="logo2" href="<?php get_site_url(); ?>"><?php get_site_name(); ?></span>
        <a class="logo" href="<?php get_site_url(); ?>"><?php get_site_name(); ?></a>

    </div><!-- end header -->
    
    <div id="content">
        <h1><?php get_page_title(); ?></h1>    
            <div id="page-content">
                <div class="page-text">
          <?php if (function_exists('sc_show')) { sc_show(); } ?>

                    <?php get_page_content(); ?>
                    <p class="page-meta">Published on &nbsp;<span><?php get_page_date('F jS, Y'); ?></span></p>
                </div>
            </div>
    </div>    
        
    <div id="sidebar">
        <div class="section">
            <?php get_component('sidebar');    ?>
        </div>
        <div class="section credits">
            <p><?php echo date('Y'); ?> - <strong><?php get_site_name(); ?></strong></p>
            <p>
                Cardinal Theme by <a href="http://www.cagintranet.com" title="Pittsburgh Creative Agency" >Cagintranet</a><br />
                <?php get_site_credits(); ?>
            </p>
        </div>
    </div>
    
    <div class="clear"></div>
    
    <?php get_footer(); ?>
    
</div><!-- end wrapper -->
</body>
</html>
See this block of code here?
<div id="content">
<h1><?php get_page_title(); ?></h1>
<div id="page-content">
<div class="page-text">
#Putting this piece of code above the content one will probably put the contact form above the WYSIWYG editor and putting it below, well that's obvious.
<?php if (function_exists('sc_show')) { sc_show(); } ?>


#basically this little piece of code outputs anything you put into the WYSIWYG editor.
<?php get_page_content(); ?>



<p class="page-meta">Published on &nbsp;<span><?php get_page_date('F jS, Y'); ?></span></p>
</div>
Now, you have a separate file called contact-form.php and should still have that template.php file. Upload this
contact-form.php to the same directory you downloaded the template.php file.


[Image: captureei.png]

Where you see the black box, this drop down menu should also have an option "contact-form" or whatever you named the php file. This is the same way you would create a custom page layout in wordpress if you wanted to go beyond the basic WYSIWYG editor.
Todo arde si le aplicas la chispa adecuada.
Reply


Messages In This Thread
Help me plugin gallery images - by renatokeuller - 2012-02-08, 00:36:20
Help me plugin gallery images - by yurifanboy - 2012-02-08, 08:26:07
Help me plugin gallery images - by yurifanboy - 2012-02-08, 09:39:21
Help me plugin gallery images - by renatokeuller - 2012-02-08, 12:25:02
Help me plugin gallery images - by yurifanboy - 2012-02-08, 13:02:05
Help me plugin gallery images - by yurifanboy - 2012-02-08, 13:28:10
Help me plugin gallery images - by renatokeuller - 2012-02-08, 15:23:56
Help me plugin gallery images - by yurifanboy - 2012-02-08, 16:01:40



Users browsing this thread: 1 Guest(s)