コード例 #1
0
ファイル: main.php プロジェクト: abhi143u11/ads
                                <div class="caption">
                                    <h3><a href="<?php 
        echo osc_item_url();
        ?>
"><?php 
        echo osc_item_title();
        ?>
</a></h3>
                                    <p class="user"><?php 
        _e('by', 'flatter');
        ?>
 <?php 
        if (osc_item_user_id() != null) {
            ?>
<a href="<?php 
            echo osc_user_public_profile_url(osc_item_user_id());
            ?>
" ><?php 
            echo osc_item_contact_name();
            ?>
</a><?php 
        } else {
            echo osc_item_contact_name();
        }
        ?>
</p>
                                    <p class="description"><?php 
        echo osc_highlight(strip_tags(osc_item_description()), 110);
        ?>
</p>
                                    <div class="row">
コード例 #2
0
ファイル: hUsers.php プロジェクト: mylastof/os-class
/**
 * Gets next user in users array
 *
 * @return <type>
 */
function osc_prepare_user_info()
{
    if (!View::newInstance()->_exists('users')) {
        View::newInstance()->_exportVariableToView('users', array(User::newInstance()->findByPrimaryKey(osc_item_user_id())));
    }
    return View::newInstance()->_next('users');
}
コード例 #3
0
/**
 * Show form to vote a seller if item belongs to a registered user. (itemDetail)
 *
 * @param type $item item array or userId
 */
function voting_item_detail_user($item = null)
{
    $userId = null;
    if ($item == null) {
        $userId = osc_item_user_id();
    } else {
        if (is_numeric($item)) {
            $userId = $item;
        } else {
            if (is_array($item)) {
                $userId = $item['fk_i_user_id'];
            } else {
                exit;
            }
        }
    }
    if (osc_get_preference('user_voting', 'voting') == 1 && is_numeric($userId) && isset($userId) && $userId > 0) {
        // obtener el avg de las votaciones
        $aux_vote = ModelVoting::newInstance()->getUserAvgRating($userId);
        $aux_count = ModelVoting::newInstance()->getUserNumberOfVotes($userId);
        $vote['vote'] = $aux_vote['vote'];
        $vote['total'] = $aux_count['total'];
        $vote['userId'] = $userId;
        $vote['can_vote'] = false;
        if (osc_is_web_user_logged_in() && can_vote_user($userId, osc_logged_user_id())) {
            $vote['can_vote'] = true;
        }
        require 'item_detail_user.php';
    }
}
コード例 #4
0
ファイル: item.php プロジェクト: oanav/closetshare
    /* if (osc_user_phone() != '') { ?>
       <div class="user-phone">
           <i class="fa fa-phone"></i>
           <span><?php echo osc_user_phone() ?></span>
       </div>
       <?php }*/
    ?>
               
                <div class="divider"></div>

                <?php 
}
?>

                <?php 
$aItems = Item::newInstance()->findByUserID(osc_item_user_id(), 0, 3);
View::newInstance()->_exportVariableToView('items', $aItems);
?>
                <div class="user-products">
                    <p><?php 
printf(__('Other products from %s', 'pop'), osc_user_name());
?>
</p>
                    <div>
                        <?php 
while (osc_has_items()) {
    if (osc_count_item_resources()) {
        osc_get_item_resources();
        ?>
                        <a class="user-item" href="<?php 
        echo osc_item_url();
コード例 #5
0
ファイル: seller-ratings.php プロジェクト: Ashishr2/Kathmandu
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h4 class="modal-title">Rate this Seller</h4>
      </div>
      <form name="ratings" id="ratings" method="post" action="">
        <input type="hidden" name="seller_rating" value="submit_it" />
        <div class="modal-body" style="background-color:#ccc;">
          <div id="ratings" style="padding:15px;">
             <div id="jRate"></div><div id="rating-onchange-value">Your Rating: </div>
             <input type="hidden" name="rating_data" id="rating_data"/>
             <input type="hidden" name="rating_user" id="rating_user" value="<?php 
    echo osc_logged_user_id();
    ?>
" />
             <input type="hidden" name="rating_seller" id="rating_seller" value="<?php 
    echo osc_item_user_id();
    ?>
" />
        </div>
          <button type="submit" class="btn btn-primary" >Submit Ratings</button>
        </div>
      </form>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->

<?php 
コード例 #6
0
ファイル: item.php プロジェクト: nsswaga/OSClass
                            </a>
                            <?php 
        }
        ?>
                        </div>
                        <?php 
    }
    ?>
                    <?php 
}
?>
                    <?php 
if (!osc_item_is_expired()) {
    ?>
                    <?php 
    if (osc_logged_user_id() != osc_item_user_id()) {
        ?>
                    <?php 
        if (osc_reg_user_can_contact() && osc_is_web_user_logged_in() || !osc_reg_user_can_contact()) {
            ?>
                    <div id="contact">
                        <h2><?php 
            _e("Contact publisher", 'modern');
            ?>
</h2>
                        <p class="name"><?php 
            _e('Name', 'modern');
            ?>
: <?php 
            echo osc_item_contact_name();
            ?>
コード例 #7
0
" ><?php 
            _e('Activate', 'pop');
            ?>
</a>
                    <?php 
        }
        ?>
                </span>
            </div>
    <?php 
    }
    ?>
    <?php 
} else {
    if (osc_item_user_id() != '') {
        View::newInstance()->_exportVariableToView('user', User::newInstance()->findByPrimaryKey(osc_item_user_id()));
        ?>
    <a href="<?php 
        echo osc_user_public_profile_url();
        ?>
">
        <div class="listing-seller">
            <div class="listing-seller-avatar" style="background-image: url('<?php 
        echo osc_current_web_theme_url('images/seller-default.png');
        ?>
')"></div>
            <span class="seller-name"><?php 
        echo osc_user_name();
        ?>
</span>
            <span class="seller-products"><?php 
コード例 #8
0
}
$location = implode(", ", $location_array);
unset($location_array);
osc_enqueue_script('jquery-validate');
pop_add_body_class('user-public-profile');
//osc_add_hook('before-main', 'pop_user_map_header');
//function pop_user_map_header() {
//    osc_current_web_theme_path('inc.user_header_public_profile.php');
//}
osc_current_web_theme_path('header.php');
?>

<div class="container">
    <div class="user-card pull-left">
       <?php 
$fbUser = OSCFacebook::newInstance()->getFBUser(osc_item_user_id());
if ($fbUser) {
    $user_picture_url = "https://graph.facebook.com/" . $fbUser . "/picture";
} else {
    $user_picture_url = osc_current_web_theme_url('images/user_default.gif');
}
?>
    <div>
        <img class="user-avatar" src="<?php 
echo $user_picture_url;
?>
" />
        <div class="name"><?php 
echo osc_highlight(osc_user_name(), 120);
?>
</div>
コード例 #9
0
ファイル: item.php プロジェクト: kraymond70/osclassclsx
    }
    ?>
                        </div>
                    <?php 
}
?>
                </div>
                <?php 
osc_run_hook('item_detail', osc_item());
?>
                <p class="contact_button">
                    <?php 
if (!osc_item_is_expired()) {
    ?>
                    <?php 
    if (!(osc_logged_user_id() == osc_item_user_id() && osc_logged_user_id() != 0)) {
        ?>
                        <?php 
        if (osc_reg_user_can_contact() && osc_is_web_user_logged_in() || !osc_reg_user_can_contact()) {
            ?>
                            <a href="#contact" class="ui-button ui-button-middle ui-button-main resp-toogle"><?php 
            _e('Contact seller', 'osclassclsx');
            ?>
</a>
                        <?php 
        }
        ?>
                    <?php 
    }
    ?>
                    <?php 
コード例 #10
0
ファイル: item.php プロジェクト: nsswaga/OSClass
<?php

$is_expired = osc_item_is_expired();
$is_user = osc_logged_user_id() != osc_item_user_id();
$is_can_contact = osc_reg_user_can_contact() && osc_is_web_user_logged_in() || !osc_reg_user_can_contact();
$is_comments_enabled = osc_comments_enabled();
$is_can_comment = osc_reg_user_post_comments() && osc_is_web_user_logged_in() || !osc_reg_user_post_comments();
?>
<!DOCTYPE html>
<html dir="ltr" lang="<?php 
echo str_replace('_', '-', osc_current_user_locale());
?>
">
    <head>
        <?php 
osc_current_web_theme_path('head.php');
?>
        <script type="text/javascript" src="<?php 
echo osc_current_web_theme_js_url('fancybox/jquery.fancybox-1.3.4.js');
?>
"></script>
        <script type="text/javascript" src="<?php 
echo osc_current_web_theme_js_url('bootstrap-modal.js');
?>
"></script>
        <link href="<?php 
echo osc_current_web_theme_js_url('fancybox/jquery.fancybox-1.3.4.css');
?>
" rel="stylesheet" type="text/css" />
        <script type="text/javascript">
            $(document).ready(function(){
コード例 #11
0
 *     modify it under the terms of the GNU Affero General Public License
 *     as published by the Free Software Foundation, either version 3 of
 *            the License, or (at your option) any later version.
 *
 *     This program is distributed in the hope that it will be useful, but
 *         WITHOUT ANY WARRANTY; without even the implied warranty of
 *        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *             GNU Affero General Public License for more details.
 *
 *      You should have received a copy of the GNU Affero General Public
 * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
?>
<div id="sidebar" class="columns">
    <?php 
if (!osc_is_web_user_logged_in() || osc_logged_user_id() != osc_item_user_id()) {
    ?>
        <form action="<?php 
    echo osc_base_url(true);
    ?>
" method="post" name="mask_as_form" id="mask_as_form">
            <input type="hidden" name="id" value="<?php 
    echo osc_item_id();
    ?>
" />
            <input type="hidden" name="as" value="spam" />
            <input type="hidden" name="action" value="mark" />
            <input type="hidden" name="page" value="item" />
            <select name="as" id="as" class="mark_as">
                    <option><?php 
    _e("Mark as...", 'osclassclsx');
コード例 #12
0
ファイル: index.php プロジェクト: oanav/closetshare
function osclass_pm_admin_footer()
{
    ?>
              <link rel="stylesheet" type="text/css" href="<?php 
    echo osc_base_url() . 'oc-content/plugins/osclass_pm/css/style.css';
    ?>
" />
       <link rel="stylesheet" type="text/css" href="<?php 
    echo osc_base_url() . 'oc-content/plugins/osclass_pm/css/pmTables.css';
    ?>
" />
       <script type="text/javascript" >
         $(document).ready(function(){
            /*$('#datatables_list').find('#datatables_quick_edit').addClass('dt');

            //$('#datatables_list tbody tr').each(function() {
			      //var thisTr = $('#datatables_list tbody tr').parent();
               //var thirdTDText = $('td:nth-child(3)').text();
               //$(thisTr).append(thirdTDText);
               //alert(thirdTDText);
               $('td:nth-child(3)').each(function () {
                  //$('#datatables_list tbody tr').append($(this).text() + ' ');
                  $('.dt').prepend("<a href=\"<?php 
    echo osc_admin_base_url(true) . '?page=custom&file=osclass_pm/admin-send.php&userId=' . osc_item_user_id() . '&mType=new';
    ?>
\"><?php 
    echo __('Send PM', 'osclass_pm');
    ?>
</a> | " + $(this).text());
               });
		      //}); */
         });
       </script>
        <script type='text/javascript' src="<?php 
    echo osc_base_url() . 'oc-content/plugins/osclass_pm/js/jquery.dataTables.min.js';
    ?>
"></script>
            <script type="text/javascript" charset="utf-8">
			$(document).ready(function() {
				$('#datatables_pm').dataTable( {
					"aaSorting": [[ 1, "desc" ]],
					"bStateSave": true,
					"sPaginationType": "full_numbers",
					"aoColumnDefs": [{ "bSortable": false, "aTargets": [ 0 ] }]
				} );

				$('#datatables_pm_outbox').dataTable( {
					"aaSorting": [[ 1, "desc" ]],
					"bStateSave": true,
					"sPaginationType": "full_numbers",
					"aoColumnDefs": [{ "bSortable": false, "aTargets": [ 0 ] }]
				} );


			$('#checkAll').change(function() {
            $(".delChecks").attr("checked", this.checked);
         });

         $(".delChecks").change(function() {
            $("#checkAll").attr("checked", $(".delChecks:checked").length == $(".delChecks").length);

         });


			} );
		</script>
       <?php 
}
コード例 #13
0
ファイル: item3.php プロジェクト: jhalendra/classmandu
                        <?php 
    if (!nc_osc_check_watchlist()) {
        ?>
                            <Button class="btn btn-primary">Add to Watch List</Button>
                        <?php 
    }
    ?>
                    </form>
                <?php 
}
?>
                <?php 
if (!osc_logged_user_id() == osc_item_user_id()) {
    ?>
                        <a href="<?php 
    echo osc_route_url('seller-items', array('seller' => osc_item_user_id()));
    ?>
" >See other items from seller</a>
                        
                <?php 
}
?>
                <a href="<?php 
echo osc_route_url('watchlist');
?>
" >Check my Watchlist</a>
                <?php 
if (osc_comments_enabled()) {
    ?>
                <?php 
    if (osc_reg_user_post_comments() && osc_is_web_user_logged_in() || !osc_reg_user_post_comments()) {
コード例 #14
0
ファイル: item.php プロジェクト: abhi143u11/ads
                        <li class="sendmail">
                            <a title="" rel="nofollow" href="<?php 
echo osc_item_send_friend_url();
?>
" data-toggle="tooltip" data-original-title="<?php 
_e("Send to a Friend", 'flatter');
?>
">
                            <i class="fa fa-envelope"></i>
                            </a>
                        </li>
                    </ul><!-- Social Share End -->
                	</div>
                    <div class="col-md-6">
                    	<?php 
if (osc_is_web_user_logged_in() && osc_logged_user_id() == osc_item_user_id()) {
    ?>
                        	<div class="pull-right edit">
                        	<a href="<?php 
    echo osc_item_edit_url();
    ?>
"  rel="nofollow"><i class="fa fa-pencil"></i></a>
                            </div>
                        <?php 
} else {
    ?>
                    	<div class="btn-group pull-right markas" data-toggle="tooltip" data-original-title="<?php 
    _e("Mark as...", 'flatter');
    ?>
">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-flag"></i></a>
コード例 #15
0
ファイル: item-sidebar.php プロジェクト: abhi143u11/ads
" target="_blank" rel="nofollow"><?php 
                echo osc_user_website();
                ?>
</a>
                    </div>  
                <?php 
            }
            ?>
                <div class="contactform">
                <button class="btn btn-success" type="button" id="contact"><?php 
            _e("Contact publisher", 'flatter');
            ?>
</button>
                
                <?php 
            if (function_exists("mdh_messenger_contact_form") && osc_is_web_user_logged_in() && osc_item_user_id() != null) {
                ?>
                <?php 
                mdh_messenger_contact_form();
                ?>
                <?php 
            } else {
                ?>
                <form action="<?php 
                echo osc_base_url(true);
                ?>
" method="post" name="contact_form" style="display:none;" id="contact_form" <?php 
                if (osc_item_attachment()) {
                    echo 'enctype="multipart/form-data"';
                }
                ?>
コード例 #16
0
ファイル: item.php プロジェクト: ricktaylord/osclass-themes
<?php

$is_expired = osc_item_is_expired();
$is_user = !(osc_logged_user_id() == osc_item_user_id() && osc_logged_user_id() != 0);
$is_can_contact = osc_reg_user_can_contact() && osc_is_web_user_logged_in() || !osc_reg_user_can_contact();
$is_comments_enabled = osc_comments_enabled();
$is_can_comment = osc_reg_user_post_comments() && osc_is_web_user_logged_in() || !osc_reg_user_post_comments();
?>
<!DOCTYPE html>
<html dir="ltr" lang="<?php 
echo str_replace('_', '-', osc_current_user_locale());
?>
">
    <head>
        <?php 
osc_current_web_theme_path('head.php');
?>
        <script type="text/javascript" src="<?php 
echo osc_current_web_theme_js_url('fancybox/jquery.fancybox-1.3.4.js');
?>
"></script>
        <script type="text/javascript" src="<?php 
echo osc_current_web_theme_js_url('bootstrap-modal.js');
?>
"></script>
        <link href="<?php 
echo osc_current_web_theme_js_url('fancybox/jquery.fancybox-1.3.4.css');
?>
" rel="stylesheet" type="text/css" />
        <script type="text/javascript">
            $(document).ready(function(){