Skip to content

Commit

Permalink
Cập nhật các block và phiên bản
Browse files Browse the repository at this point in the history
  • Loading branch information
VINADES.,JSC authored and hoaquynhtim99 committed Nov 15, 2017
1 parent 319fa3a commit 5df659c
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 23 deletions.
2 changes: 1 addition & 1 deletion config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
id="64"
type="module"
name="videoclips"
version="4.2.03"
version="4.3.00"

[author]
name="anhtu"
Expand Down
29 changes: 24 additions & 5 deletions modules/videoclips/blocks/global.list_video.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,33 @@
die('Stop!!!');

if (!nv_function_exists('nv4_block_list_video')) {

/**
* nv_block_config_list_video()
*
* @param mixed $module
* @param mixed $data_block
* @param mixed $lang_block
* @return
*/
function nv_block_config_list_video($module, $data_block, $lang_block)
{
global $site_mods;

$html_input = '';
$html = '';
$html = '<div class="form-group">';
$html .= '<label class="control-label col-sm-6">' . $lang_block['numrow'] . '</label>';
$html .= '<div class="col-sm-8"><input type="text" class="form-control w200" name="config_numrow" size="5" value="' . $data_block['numrow'] . '"/></div>';
$html .= '<div class="form-group">';
$html .= '<label class="control-label col-sm-6">' . $lang_block['numrow'] . ':</label>';
$html .= '<div class="col-sm-8"><input type="text" class="form-control" name="config_numrow" value="' . $data_block['numrow'] . '"/></div>';
$html .= '</div>';
return $html;
}

/**
* nv_block_config_list_video_submit()
*
* @param mixed $module
* @param mixed $lang_block
* @return
*/
function nv_block_config_list_video_submit($module, $lang_block)
{
global $nv_Request;
Expand All @@ -36,6 +49,12 @@ function nv_block_config_list_video_submit($module, $lang_block)
return $return;
}

/**
* nv4_block_list_video()
*
* @param mixed $block_config
* @return
*/
function nv4_block_list_video($block_config)
{
global $global_config, $db, $site_mods, $module_name, $module_info, $module_file;
Expand Down
9 changes: 3 additions & 6 deletions modules/videoclips/blocks/global.slide_list_video.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,10 @@
*/
function nv_block_config_slide_list_video($module, $data_block, $lang_block)
{
global $site_mods;

$html_input = '';
$html = '';
$html = '<div class="form-group">';
$html .= '<label class="control-label col-sm-6">' . $lang_block['numrow'] . '</label>';
$html .= '<div class="col-sm-8"><input type="text" class="form-control w200" name="config_numrow" size="5" value="' . $data_block['numrow'] . '"/></div>';
$html .= '<div class="form-group">';
$html .= '<label class="control-label col-sm-6">' . $lang_block['numrow'] . ':</label>';
$html .= '<div class="col-sm-8"><input type="text" class="form-control" name="config_numrow" value="' . $data_block['numrow'] . '"/></div>';
$html .= '</div>';
return $html;
}
Expand Down
20 changes: 10 additions & 10 deletions modules/videoclips/blocks/global.video.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ function nv_block_config_video($mod_name, $data_block, $lang_block)

$html = '';
$html .= '<div class="form-group">';
$html .= ' <label class="control-label col-sm-6">' . $lang_block['topicvideo'] . '</label>';
$html .= ' <div class="col-sm-18"><select name="config_idtopic" class="form-control w250"><option value="0">' . $lang_block['topicvideo_all'] . '</option>';
$html .= ' <label class="control-label col-sm-6">' . $lang_block['topicvideo'] . ':</label>';
$html .= ' <div class="col-sm-18"><select name="config_idtopic" class="form-control"><option value="0">' . $lang_block['topicvideo_all'] . '</option>';

$db->sqlreset()->select('*')->from(NV_PREFIXLANG . '_' . $site_mods[$mod_name]['module_data'] . '_topic')->where('status= 1')->order('weight ASC');
$result = $db->query($db->sql());
Expand All @@ -39,20 +39,20 @@ function nv_block_config_video($mod_name, $data_block, $lang_block)

$html .= '</div>';
$html .= '<div class="form-group">';
$html .= ' <label class="control-label col-sm-6">' . $lang_block['numvideo'] . '</label>';
$html .= ' <div class="col-sm-8"><input type="text" name="config_numrow" class="form-control w100" size="5" value="' . $data_block['numrow'] . '"/></div>';
$html .= ' <label class="control-label col-sm-6">' . $lang_block['numvideo'] . ':</label>';
$html .= ' <div class="col-sm-5"><input type="text" name="config_numrow" class="form-control" value="' . $data_block['numrow'] . '"/></div>';
$html .= '</div>';
$html .= '<div class="form-group">';
$html .= ' <label class="control-label col-sm-6">' . $lang_block['numothervideo'] . '</label>';
$html .= ' <div class="col-sm-8"><input type="text" name="config_other" class="form-control w100" size="5" value="' . $data_block['other'] . '"/></div>';
$html .= ' <label class="control-label col-sm-6">' . $lang_block['numothervideo'] . ':</label>';
$html .= ' <div class="col-sm-5"><input type="text" name="config_other" class="form-control" value="' . $data_block['other'] . '"/></div>';
$html .= '</div>';
$html .= '<div class="form-group">';
$html .= ' <label class="control-label col-sm-6">' . $lang_block['titlelength'] . '</label>';
$html .= ' <td><input type="text" name="config_length" class="form-control w100" size="5" value="' . $data_block['length'] . '"/></td>';
$html .= ' <label class="control-label col-sm-6">' . $lang_block['titlelength'] . ':</label>';
$html .= ' <div class="col-sm-5"><input type="text" name="config_length" class="form-control" value="' . $data_block['length'] . '"/></div>';
$html .= '</div>';
$html .= '<div class="form-group">';
$html .= ' <label class="control-label col-sm-6">' . $lang_block['showhometext'] . '</label>';
$html .= ' <div class="col-sm-18"><input type="checkbox" name="config_showhometext" value="1"' . (empty($data_block['showhometext']) ? '' : ' checked="checked"') . '/></div>';
$html .= ' <label class="control-label col-sm-6">' . $lang_block['showhometext'] . ':</label>';
$html .= ' <div class="col-sm-18"><div class="checkbox"><label><input type="checkbox" name="config_showhometext" value="1"' . (empty($data_block['showhometext']) ? '' : ' checked="checked"') . '/></label></div></div>';
$html .= '</div>';

return $html;
Expand Down
2 changes: 1 addition & 1 deletion modules/videoclips/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
'is_sysmod' => 0,
'virtual' => 1,
'version' => '4.3.00',
'date' => 'Monday, October 30, 2017 3:14:13 AM',
'date' => 'Web, 15 Nov 2017 12:12:46 GMT',
'author' => 'VINADES ([email protected])',
'note' => 'Module playback of video-clips',
'uploads_dir' => array(
Expand Down

0 comments on commit 5df659c

Please sign in to comment.