Plugin Directory

Changeset 558131


Ignore:
Timestamp:
06/14/2012 08:06:13 PM (14 years ago)
Author:
technosis
Message:

trying to get special previewing to work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • templ33t/branches/01_02_handling_posts/templ33t_object.php

    r558130 r558131  
    577577    function parseTemplate($template = null, $theme = null) {
    578578       
     579        echo 'testing';
     580       
    579581        // catch invalid file
    580582        if (empty($template) || !file_exists($template))
     
    634636       
    635637        $tname = str_replace('.php', '', basename($template));
     638       
     639        echo '/?preview=1&template='.$theme.'&stylesheet='.$theme.'&templ33t_preview='.$tname;
     640       
     641        die();
    636642       
    637643        $preview = wp_remote_get('/?preview=1&template='.$theme.'&stylesheet='.$theme.'&templ33t_preview='.$tname);
Note: See TracChangeset for help on using the changeset viewer.