Esempio n. 1
0
			<?php 
    foreach ($pictures as $picture) {
        ?>

				<li class="<?php 
        echo text_helper::alternate('odd', 'even');
        ?>
" id="row-picture-<?php 
        echo $picture['picture_id'];
        ?>
">

					<figure class="image classifieds-image">
						<div class="image thumbnail" style="background-image:url('<?php 
        echo storage_helper::getFileURL($picture['file_service_id'], $picture['file_path'], $picture['file_name'], $picture['file_ext'], 't', $picture['file_modify_date']);
        ?>
');">
							<?php 
        echo html_helper::anchor('classifieds/pictures/view/' . $picture['picture_id'] . '/' . text_helper::slug($picture['data_description'], 100), '<span class="name">' . $picture['data_description'] . '</span>', array('class' => 'image'));
        ?>
						</div>
					</figure>

				</li>

			<?php 
    }
    ?>

		</ul>
Esempio n. 2
0
<?php

$picture_file_suffix = isset($picture_file_suffix) ? $picture_file_suffix : '';
$picture = true;
if (isset($group_id) && $group_id == config::item('group_cancelled_id', 'users') || isset($verified) && !$verified || isset($active) && !$active) {
    $user_id = $picture = 0;
}
if ($picture && isset($picture_file_name, $picture_active) && $picture_file_name && ($picture_active == 1 || isset($user_id) && $user_id == session::item('user_id'))) {
    $picture_file_none = '';
    $picture_path = storage_helper::getFileURL($picture_file_service_id, $picture_file_path, $picture_file_name, $picture_file_ext, $picture_file_suffix, $picture_file_modify_date);
    $picture_path_big = storage_helper::getFileURL($picture_file_service_id, $picture_file_path, $picture_file_name, $picture_file_ext, '', $picture_file_modify_date);
} else {
    $picture = 0;
    $picture_file_none = 'no_image' . ($picture_file_suffix ? '_' . $picture_file_suffix : '');
    $picture_path = '';
    $picture_path_big = '';
}
?>

<?php 
if (isset($picture_url) && $picture_url && $picture) {
    ?>

	<div class="image size_<?php 
    echo $picture_file_suffix;
    ?>
 <?php 
    echo $picture_file_none;
    ?>
" <?php 
    echo $picture_path ? 'style="background-image:url(\'' . $picture_path . '\')"' : '';
Esempio n. 3
0
        echo text_helper::alternate('odd', 'even');
        ?>
" id="row-picture-<?php 
        echo $picture['picture_id'];
        ?>
">

						<article class="item">

							<figure class="image pictures-image">
								<div class="image thumbnail" style="background-image:url('<?php 
        echo storage_helper::getFileURL($picture['file_service_id'], $picture['file_path'], $picture['file_name'], $picture['file_ext'], 't', $picture['file_modify_date']);
        ?>
');">
									<?php 
        echo html_helper::anchor(storage_helper::getFileURL($picture['file_service_id'], $picture['file_path'], $picture['file_name'], $picture['file_ext']), '<span class="name">' . $picture['data_description'] . '</span>', array('data-role' => 'modal', 'class' => 'image'));
        ?>
								</div>
							</figure>

							<fieldset class="form <?php 
        echo text_helper::alternate();
        ?>
">

								<?php 
        foreach ($fields as $field) {
            ?>

									<?php 
            if ($field['keyword'] == 'description') {
Esempio n. 4
0
		<?php 
    echo form_helper::openForm('cp/users/pictures/browse?' . $qstring['url'] . 'page=' . $qstring['page'], array('id' => 'form_pictures'));
    ?>

			<ul class="unstyled gallery clearfix">

				<?php 
    foreach ($users as $user) {
        ?>

					<li>
						<figure class="image">

							<div class="image thumbnail" style="background-image:url('<?php 
        echo storage_helper::getFileURL($user['picture_file_service_id'], $user['picture_file_path'], $user['picture_file_name'], $user['picture_file_ext'], 'p');
        ?>
');"></div>

							<div class="overlay top-left check hidden">
								<?php 
        echo form_helper::checkbox('user_id[]', $user['user_id'], '', array('class' => 'checkbox hidden item-picture-checker', 'id' => 'field-picture-checker-' . $user['user_id']));
        ?>
							</div>

							<div class="overlay top-right actions hidden">
								<ul class="unstyled">
									<li><?php 
        echo html_helper::anchor('cp/users/edit/' . $user['user_id'], __('edit', 'system'), array('class' => 'edit'));
        ?>
</li>
Esempio n. 5
0
<section class="plugin-users profile-picture-thumbnail">

	<div class="content-view">

		<article class="item clearfix">

			<figure class="image users-image source">
				<img src="<?php 
echo storage_helper::getFileURL(session::item('picture_file_service_id'), session::item('picture_file_path'), session::item('picture_file_name'), session::item('picture_file_ext'));
?>
" style="max-width:400px;max-height:400px;" />
			</figure>

			<figure class="image users-image preview">
				<img src="<?php 
echo storage_helper::getFileURL(session::item('picture_file_service_id'), session::item('picture_file_path'), session::item('picture_file_name'), session::item('picture_file_ext'));
?>
" />
			</figure>

		</article>

		<?php 
echo form_helper::openForm();
?>

			<fieldset class="form">

				<div class="row actions">
					<?php 
view::load('system/elements/button');
Esempio n. 6
0
    echo text_helper::alternate();
    ?>
">

				<div class="row <?php 
    echo text_helper::alternate('odd', 'even');
    ?>
" id="input_row_user_picture">

					<figure class="image users-image">
						<div class="image thumbnail" style="background-image:url('<?php 
    echo storage_helper::getFileURL($user['picture_file_service_id'], $user['picture_file_path'], $user['picture_file_name'], $user['picture_file_ext'], 'p');
    ?>
')">
							<?php 
    echo html_helper::anchor(storage_helper::getFileURL($user['picture_file_service_id'], $user['picture_file_path'], $user['picture_file_name'], $user['picture_file_ext']), '<span></span>', array('data-role' => 'modal', 'class' => 'image'));
    ?>
						</div>
					</figure>

				</div>

				<div class="row <?php 
    echo text_helper::alternate('odd', 'even');
    ?>
" id="input_row_user_picture_options">

					<div class="field">

						<?php 
    view::load('system/elements/field/edit', array('prefix' => 'user', 'field' => array('keyword' => 'picture_options', 'type' => 'checkbox', 'items' => array('picture_active' => __('active', 'system'), 'picture_delete' => __('picture_delete', 'users_picture'))), 'value' => array('picture_options' => $user['picture_active'] == 1 ? array('picture_active' => 1) : array())));
Esempio n. 7
0
<section class="plugin-users profile-picture-thumbnail">

	<div class="content-view">

		<article class="item clearfix">

			<figure class="image users-image source">
				<img src="<?php 
echo storage_helper::getFileURL(session::item('picture', 'signup', 'service_id'), session::item('picture', 'signup', 'path'), session::item('picture', 'signup', 'name'), session::item('picture', 'signup', 'extension'));
?>
" style="max-width:400px;max-height:400px;" />
			</figure>

			<figure class="image users-image preview">
				<img src="<?php 
echo storage_helper::getFileURL(session::item('picture', 'signup', 'service_id'), session::item('picture', 'signup', 'path'), session::item('picture', 'signup', 'name'), session::item('picture', 'signup', 'extension'));
?>
" />
			</figure>

		</article>

		<?php 
echo form_helper::openForm();
?>

			<fieldset class="form">

				<div class="row actions">
					<?php 
view::load('system/elements/button');
Esempio n. 8
0
			<?php 
            echo form_helper::upload($name, '', array('class' => 'upload ' . (isset($field['class']) && $field['class'] ? $field['class'] : ''), 'style' => isset($field['style']) && $field['style'] ? $field['style'] : '', 'id' => $id));
            ?>
		<?php 
        }
        ?>
		<?php 
        if (isset($value['file_service_id']) && $value['file_service_id'] && (isset($value['file_view']) && $value['file_view'] || isset($value['file_delete']) && $value['file_delete'])) {
            ?>
			<div class="actions">
				<?php 
            if (isset($value['file_view']) && $value['file_view']) {
                ?>
					<span class="view">
						<?php 
                echo html_helper::anchor(storage_helper::getFileURL(isset($value['file_service_id']) ? $value['file_service_id'] : '', isset($value['file_path']) ? $value['file_path'] : '', isset($value['file_name']) ? $value['file_name'] : '', isset($value['file_ext']) ? $value['file_ext'] : '', isset($value['file_suffix']) ? $value['file_suffix'] : ''), __('view_file', 'system'), array('target' => '_blank'));
                ?>
					</span>
				<?php 
            }
            ?>
				<?php 
            if (isset($value['file_delete']) && $value['file_delete']) {
                ?>
					<span class="delete">
						<label>
							<?php 
                echo form_helper::checkbox($name . '__delete', 1, false, array('class' => 'checkbox'));
                ?>
 <?php 
                echo __('file_delete', 'system');