@@ -46,15 +46,14 @@ class Uw_Module_UploadUpgrader
/**
* Do upload process
*
* @param string $urlholder string of url data
* @param array $updir data of upload folder
* @param array $updir data of upload folder
*
* @return string
*/
function doUpload($updir = '')
{
if (!current_user_can('install_themes')) {
wp_die(__('You do not have sufficient permissions to install themes for this site.'));
wp_die(__('You do not have sufficient permissions to install themes'));
}
check_admin_referer($this->_nonceID);
if (!class_exists('File_Upload_Upgrader', false)) {
@@ -117,16 +116,32 @@ public function getAction()

}

/**
* Create HTML for upload button
*
* @param string $text button title
* @param string $type button type
* @param string $name button name
* @param string $wrap butto wrapping for title
*
* @return html *
* @todo perbaiki bagian ini karena paramnya tidak nyambung dengan logika di
* dalamnya
*/
private function _submitButton($text, $type, $name, $wrap)
{
if (!function_exists('get_submit_button')) {
include_once ABSPATH . 'wp-admin/includes/template.php';
}

return get_submit_button('Install Now', 'button', 'install-theme-submit', false);

return get_submit_button($text, $type, $name, $wrap);
}

/**
* Create upload form
*
* @return html
*/
function createUploadForm()
{
$actionUrl = menu_page_url('upload', false) . '&action=' . $this->_action;
@@ -1,2 +1,18 @@
<p class="haikamu"><?php echo $Description ?></p>
<?php echo $Button ?>
<?php
/**
* Uw Framework
*
* PHP version 5
*
* Template for emergency page description
*
* @category Uw
* @package Resources
* @author Aulia Ashari <uwiuw.inlove@gmail.com>
* @copyright 2011 Outerim Aulia Ashari
* @license http://dummylicense/ dummylicense License
* @version $SVN: $
* @link http://uwiuw.com/outerrim/
*/
?>
<p class="haikamu"><?php echo $Description ?></p>
@@ -1,5 +1,20 @@
<!-- This code is not part of the -->
<script type='text/javascript' src='<?php echo UW_U ?>/wp-includes/js/jquery/jquery.js'></script>
<?php
/**
* Uw Framework
*
* PHP version 5
*
* Default front nav when there's docked widget in sidebar
*
* @category Uw
* @package Resources
* @author Aulia Ashari <uwiuw.inlove@gmail.com>
* @copyright 2011 Outerim Aulia Ashari
* @license http://dummylicense/ dummylicense License
* @version $SVN: $
* @link http://uwiuw.com/outerrim/
*/
?><script type='text/javascript' src='<?php echo UW_U ?>/wp-includes/js/jquery/jquery.js'></script>
<style type="text/css">
.<?php echo $cssClass ?> {width: 98%; height: 0; margin: 0; padding: 0; position: absolute; top: 0; left: 0;background-color:#fff }
.<?php echo $cssClass ?> .bottom { top: 100%; margin-top: -108px; clear: both; }
@@ -1,5 +1,20 @@
<!-- This code is not part og the the -->
<script type='text/javascript' src='<?php echo $UW_U ?>/wp-includes/js/jquery/jquery.js'></script>
<?php
/**
* Uw Framework
*
* PHP version 5
*
* Template for default sidebar
*
* @category Uw
* @package Resources
* @author Aulia Ashari <uwiuw.inlove@gmail.com>
* @copyright 2011 Outerim Aulia Ashari
* @license http://dummylicense/ dummylicense License
* @version $SVN: $
* @link http://uwiuw.com/outerrim/
*/
?><script type='text/javascript' src='<?php echo $UW_U ?>/wp-includes/js/jquery/jquery.js'></script>
<style type="text/css">
.<?php echo $cssClass ?> {
width:100%;height: 0; margin: 0; padding: 0; position: absolute; top: 0; left: 0;
@@ -41,7 +56,7 @@
vertical-align: baseline;
font-family: "proxima-nova-1", "proxima-nova-2", Tahoma, Helvetica, Verdana, sans-serif;
font-size: 14px;
color: #333;
color: #333;
}
li, ul, h2,input, #searchform, .Uw_Widget_PortoSearch {
padding:0;
@@ -1 +1,17 @@
<img src="<?php echo $screenshot ?>" <?php echo $imgcls ?>>
<?php
/**
* Uw Framework
*
* PHP version 5
*
* Template for img
*
* @category Uw
* @package Resources
* @author Aulia Ashari <uwiuw.inlove@gmail.com>
* @copyright 2011 Outerim Aulia Ashari
* @license http://dummylicense/ dummylicense License
* @version $SVN: $
* @link http://uwiuw.com/outerrim/
*/
?><img src="<?php echo $screenshot ?>" <?php echo $imgcls ?>>
@@ -1,3 +1,20 @@
<?php
/**
* Uw Framework
*
* PHP version 5
*
* Template for quick edit for slicer page
*
* @category Uw
* @package Resources
* @author Aulia Ashari <uwiuw.inlove@gmail.com>
* @copyright 2011 Outerim Aulia Ashari
* @license http://dummylicense/ dummylicense License
* @version $SVN: $
* @link http://uwiuw.com/outerrim/
*/
?>
<form method="get" action="">
<table id="<?php echo $Hidden_ID ?>" style="display: none">
<tbody id="inlineedit">
@@ -9,29 +26,51 @@
<label>
<span class="title">Portofolio</span>
<span class="input-text-wrap">
<input type="text" name="post_title" class="ptitle" value="<?php echo $Name ?>" />
<input type="hidden" name="porto_real_title" class="ptitle" value="<?php echo $Name ?>" />
<input type="text"
name="post_title"
class="ptitle"
value="<?php echo $Name ?>" />
<input type="hidden"
name="porto_real_title"
class="ptitle"
value="<?php echo $Name ?>" />
</span>
</label>
<label>
<span class="title">Author</span>
<span class="input-text-wrap">
<input type="text" name="porto_author" value='<?php echo $Author ?>' /><?php echo $Author ?>
<input type="text"
name="porto_author"
value='<?php echo $Author ?>' />
<?php echo $Author ?>
</span>
</label>
</fieldset>
<fieldset class="inline-edit-col-left">
<label>
<span class="title">Description</span>
<span class="input-text-wrap">
<textarea name="porto_desc" id="ping_sites" class="large-text code" rows="3"><?php echo $Description ?></textarea>
<textarea name="porto_desc"
id="ping_sites"
class="large-text code"
rows="3"><?php echo $Description ?>
</textarea>
</span>
</label>
</fieldset>

<p class="submit inline-edit-save">
<a accesskey="c" id="hiddeneditcancel" href="#" title="Cancel" class="button-secondary cancel alignleft">Cancel</a>
<input type="submit" name="bulk_edit" id="bulk_edit" class="button-primary alignright" value="Update" accesskey="s" /> <input type="hidden" name="post_view" value="list" />
<a accesskey="c"
id="hiddeneditcancel"
href="#"
title="Cancel"
class="button-secondary cancel alignleft">Cancel</a>
<input type="submit"
name="bulk_edit"
id="bulk_edit"
class="button-primary alignright"
value="Update" accesskey="s" />
<input type="hidden" name="post_view" value="list" />
<input type="hidden" name="screen" value="edit-post" />
<span class="error" style="display:none"></span>
<br class="clear" />
@@ -1,4 +1,23 @@
<strong><a href="<?php echo $Indexfile ?>"><?php echo $Name ?> <?php echo $Version ?></a></strong>
<?php
/**
* Uw Framework
*
* PHP version 5
*
* Template for table content of Slicer page
*
* @category Uw
* @package Resources
* @author Aulia Ashari <uwiuw.inlove@gmail.com>
* @copyright 2011 Outerim Aulia Ashari
* @license http://dummylicense/ dummylicense License
* @version $SVN: $
* @link http://uwiuw.com/outerrim/
*/
?>
<strong>
<a href="<?php echo $Indexfile ?>"><?php echo $Name ?> <?php echo $Version ?></a>
</strong>
<p class="haikamu"><?php echo $Description ?></p>
<p>author : <?php echo $Author ?></p>
<?php echo $QuickEdit ?>
@@ -1,6 +1,24 @@
<?php
/**
* Uw Framework
*
* PHP version 5
*
* Template for table body of Slicer page content
*
* @category Uw
* @package Resources
* @author Aulia Ashari <uwiuw.inlove@gmail.com>
* @copyright 2011 Outerim Aulia Ashari
* @license http://dummylicense/ dummylicense License
* @version $SVN: $
* @link http://uwiuw.com/outerrim/
*/
?>
<tbody <?php echo $tbody_class ?>>
<th scope="row" <?php echo $th_class ?>>
<input type="checkbox" name="checked[]" <?php echo $disabled ?> value="<?php echo $Name ?>">
<input type="checkbox" name="checked[]"
<?php echo $disabled ?> value="<?php echo $Name ?>">
</th>
<td <?php echo $td_class ?> style="width:100px">
<?php echo $Img ?>
@@ -1,17 +1,42 @@
<?php
/**
* Uw Framework
*
* PHP version 5
*
* Template for table
*
* @category Uw
* @package Resources
* @author Aulia Ashari <uwiuw.inlove@gmail.com>
* @copyright 2011 Outerim Aulia Ashari
* @license http://dummylicense/ dummylicense License
* @version $SVN: $
* @link http://uwiuw.com/outerrim/
*/
?>
<div class="ajax_output"></div>
<table class="widefat" cellspacing="0" id="update-themes-table">
<thead>
<tr>
<th scope="col" class="manage-column check-column"><input type="checkbox" id="themes-select-all"></th>
<th scope="col" class="manage-column"><label for="themes-select-all"><?php echo $headertitle ?></label></th>
<th scope="col" class="manage-column check-column">
<input type="checkbox" id="themes-select-all">
</th>
<th scope="col" class="manage-column">
<label for="themes-select-all"><?php echo $headertitle ?></label>
</th>
<th scope="col"> <?php echo 'Description' ?></th>
<th scope="col"> <?php echo 'Action' ?></th>
</tr>
</thead>
<tfoot>
<tr>
<th scope="col" class="manage-column check-column"><input type="checkbox" id="themes-select-all-2"></th>
<th scope="col" class="manage-column"><label for="themes-select-all-2"><?php echo $footertitle ?></label></th>
<th scope="col" class="manage-column check-column">
<input type="checkbox" id="themes-select-all-2">
</th>
<th scope="col" class="manage-column">
<label for="themes-select-all-2"><?php echo $footertitle ?></label>
</th>
<th scope="col"> <?php echo 'Description' ?></th>
<th scope="col"> <?php echo 'Action' ?></th>
</tr>
@@ -109,7 +109,7 @@ private function _rebuildHtaccess()
* parameter. If a missing key found, the value will transfer to $inDb and it
* will override $inIniFile as by reference param
*
* @param array $inDb data yg ada di database
* @param array $inDb saved database data
* @param array &$inIniFile by reference. config yg berada dalam file ini
*
* @return bool
@@ -31,6 +31,8 @@
class Uw_Widget_NavLeft extends WP_Widget
{

private $_icon = 'semlabs_arrow_left.png';

/**
* Constractor
*
@@ -40,7 +42,9 @@ class Uw_Widget_NavLeft extends WP_Widget
*/
function __construct()
{
$widget_ops = array('description' => __("Help visitor navigate your previous portofolio"));
$widget_ops = array(
'description' => __("Help visitor navigate your previous portofolio")
);
parent::__construct('navleft', __('Previous Portofolio'), $widget_ops);

}
@@ -55,12 +59,12 @@ function __construct()
*/
function widget($args, $instance)
{
$prevFile = $this->dataForWidget['prevFile'];
$UW_URL = $this->dataForWidget['UW_URL'];
$prevFile = $this->_dataWidget['prevFile'];
$iconURL = $this->_dataWidget['UW_URL'] . '/assets/' . $this->_icon;
?>
<style type="text/css">
.prev a {
background: url(<?php echo $UW_URL ?>/assets/semlabs_arrow_left.png) no-repeat left top;
background: url(<?php echo $iconURL ?>) no-repeat left top;
display: block; width: 40px; height: 40px;
}
</style>
@@ -31,6 +31,8 @@
class Uw_Widget_NavRight extends WP_Widget
{

private $_icon = 'semlabs_arrow_right.png';

/**
* Constractor
*
@@ -40,7 +42,9 @@ class Uw_Widget_NavRight extends WP_Widget
*/
function __construct()
{
$widget_ops = array('description' => __("Help visitor navigate your next portofolio"));
$widget_ops = array(
'description' => __("Help visitor navigate your next portofolio")
);
parent::__construct('navright', __('Next Portofolio'), $widget_ops);

}
@@ -55,12 +59,13 @@ function __construct()
*/
function widget($args, $instance)
{
$nextFile = $this->dataForWidget['nextFile'];
$UW_URL = $this->dataForWidget['UW_URL'];
$nextFile = $this->_dataWidget['nextFile'];
$iconURL = $this->_dataWidget['UW_URL'] . '/assets/' . $this->_icon;

?>
<style type="text/css">
.next a {
background: url(<?php echo $UW_URL ?>/assets/semlabs_arrow_right.png) no-repeat right top;
background: url(<?php echo $iconURL ?>) no-repeat right top;
display: block; width: 40px; height: 40px;
}
</style>
@@ -140,7 +140,7 @@ function regThemeWidget()
if ($this->_widgets) {
foreach ($this->_widgets as $k => $v) {
register_widget($v);
$wp_widget_factory->_widgets[$v]->_dataWidget = $this->_dataWidget;
$wp_widget_factory->widgets[$v]->_dataWidget = $this->_dataWidget;
}
}