Example #1
0
<?php

defined('_JEXEC') || die('=;)');
/**
 * @package    EasyCreator
 * @subpackage Views
 * @author     Nikolai Plath
 * @author     Created on 14-Oct-2009
 * @license    GNU/GPL, see JROOT/LICENSE.php
 */
$templateList = EcrProjectTemplateHelper::getTemplateList();
echo EcrHelp::help(jgettext('Select the templates to export'), EcrHelp::ALL, 'ecrBigInfo');
?>

<h1><?php 
echo jgettext('Export templates');
?>
</h1>

<div class="btn btn-success btn-large" onclick="submitbutton('do_export');">
    <i class="img icon16-ecr_save"></i>
    <?php 
echo jgettext('Export');
?>
</div>

<div style="clear: both;"></div>

<?php 
foreach ($templateList as $group => $templates) {
    echo '<div class="ecr_floatbox">';
Example #2
0
<?php

defined('_JEXEC') || die('=;)');
/**
 * @package       EasyCreator
 * @subpackage    Views
 * @author        Nikolai Plath
 * @author        Created on 14-Oct-2009
 * @license       GNU/GPL, see JROOT/LICENSE.php
 */
ecrScript('templates');
echo EcrHelp::help(jgettext('Select a template package to import'), EcrHelp::ALL, 'ecrBigInfo');
?>

<h1><?php 
echo jgettext('Install templates');
?>
</h1>

<div class="ecr_floatbox">
    <form enctype="multipart/form-data" action="index.php" method="post" name="installForm">
        <div>
            <label class="inline" for="install_package"><?php 
echo jgettext('Package File');
?>
</label>

            <input class="input_box" id="install_package" name="install_package" type="file" size="57"/>

            <input class="btn btn-success btn-large" type="button" value="<?php 
echo jgettext('Upload and install package');
Example #3
0
echo jgettext('Create index.html files');
?>
</label>
    <br/>

    <input type="checkbox" name="buildopts[]" id="createMD5"
        <?php 
echo $preset->createMD5 == 'ON' ? ' checked="checked"' : '';
?>
           value="createMD5"/>
    <label class="inline" for="createMD5"><?php 
echo jgettext('Create MD5 checksum file');
?>
</label>
    <br/>
    &nbsp;&nbsp;&nbsp;|__<input type="checkbox" name="buildopts[]" id="createMD5Compressed"
        <?php 
echo $preset->createMD5Compressed == 'ON' ? ' checked="checked"' : '';
?>
                                value="createMD5Compressed"/>
    <label class="inline" for="createMD5Compressed">
        <?php 
echo jgettext('Compress checksum file');
?>
    </label>

    <?php 
echo EcrHelp::info(jgettext('This will do a small compression on your checksum file'), jgettext('Compress checksum file'));
?>
</p>
</div>

<div class="customPath">
    <?php 
echo $this->project->comName;
?>
<span id="ajName"></span>.zip
</div>

<strong><?php 
echo jgettext('Custom name format');
?>
</strong>

<?php 
echo EcrHelp::info(jgettext('Use:<br />*VERSION*<br />*VCSREV*<br />*DATETIMExxxx*'), jgettext('Custom name format'));
?>

<br/>
<input type="radio" name="opt_format" id="custom_name_1" class="custom_opt" checked="checked"
       value="<?php 
echo $buildOpts->get('custom_name_1');
?>
"
       onclick="<?php 
echo $javascript;
?>
"
    />
<label class="inline filename" id="lbl_custom_name_1" for="custom_name_1">
    <?php 
Example #5
0
$buildPath = $this->project->getZipPath();
?>

<div class="infoHeader img icon16-installfolder"><?php 
echo jgettext('Build folder');
?>
</div>

<div class="customPath">
    <span id="buildFolder"><?php 
echo JPath::clean($buildPath);
?>
</span>
    <?php 
echo DS . '&nbsp;' . $this->project->version;
?>
</div>

<?php 
echo EcrHelp::info(jgettext('The folder where your final package ends up. The folders extension_name and version will be added automatically.' . '<br />' . 'If left blank the default folder will be used.'), jgettext('Build folder'));
?>

<?php 
if (false == JFolder::exists($buildPath . DS . $this->project->version)) {
    //-- The build folder does not exist - let's create it
    if (JFolder::create($buildPath . DS . $this->project->version)) {
        EcrHtml::message(jgettext('The folder has been created'));
    } else {
        EcrHtml::message(array(jgettext('Unable to create the build folder - please check !'), $buildPath . DS . $this->project->version), 'error');
    }
}
?>


        <label class="inline" for="sel_event">
            <?php 
echo jgettext('Event');
?>
        </label>
        <select class="span7" id="sel_event" name="event">
            <option value="precopy">Pre Copy</option>
            <option value="postcopy">Post Copy</option>
            <option value="postbuild">Post Build</option>
        </select>

        <div class="btn-toolbar">
            <div class="btn" onclick="Stuffer.newAction(this);">
                <i class="img icon16-add"></i>
                <?php 
echo jgettext('Add Action');
?>
            </div>
        </div>

        <?php 
echo EcrHelp::info('${temp_dir}<br />${j_root}', jgettext('Available replacements'));
?>

    </fieldset>

</div>
Example #7
0
 /**
  * Display options for packing format.
  *
  * @param EcrProjectModelBuildpreset $projectParams
  */
 public static function packing(EcrProjectModelBuildpreset $projectParams)
 {
     //--Get component parameters
     $params = JComponentHelper::getParams('com_easycreator');
     $opts = array();
     foreach (EcrEasycreator::$packFormats as $name => $ext) {
         if (isset($projectParams->{$name})) {
             $opts[$name] = '1' == $projectParams->{$name} ? true : false;
         } else {
             $opts[$name] = $params->get($name) == 'on' ? true : false;
         }
     }
     if (!$opts['archiveZip'] && !$opts['archiveTgz'] && !$opts['archiveBz2']) {
         EcrHtml::message(jgettext('Please set a compression type'), 'notice');
         echo '<div style="float: right;">' . EcrHelp::helpTip(jgettext('You can set a default compression type in configuration')) . '</div>';
     }
     foreach (EcrEasycreator::$packFormats as $name => $ext) {
         $checked = '1' == $projectParams->{$name} ? ' checked="checked"' : '';
         echo NL . '   <input type="checkbox" name="buildopts[]"' . $checked . ' value="' . $name . '" id="' . $name . '" />';
         echo NL . '   <label class="inline" for="' . $name . '">' . $ext . '</label>';
     }
 }